Skip to content

Develop#22

Merged
SimonvanWijhe merged 7 commits intomainfrom
develop
Dec 6, 2024
Merged

Develop#22
SimonvanWijhe merged 7 commits intomainfrom
develop

Conversation

@SimonvanWijhe
Copy link
Member

No description provided.

@github-actions
Copy link

github-actions bot commented Dec 2, 2024

Coverage report for commit: c12050f
File: coverage.xml

Cover ┌─────────────────────────┐ Freq.
   0% │ ███████████████████████ │ 71.4%
  10% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  20% │ ███░░░░░░░░░░░░░░░░░░░░ │  7.1%
  30% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  40% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  50% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  60% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  70% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  80% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  90% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
 100% │ ███████░░░░░░░░░░░░░░░░ │ 21.4%
      └─────────────────────────┘
 *Legend:* █ = Current Distribution 
Summary - Lines: 12.97% | Methods: 9.30%
FilesLinesMethodsBranches
src/Attributes
   Meta.php--100.00%
   MetaPrefix.php--100.00%
   TaxonomyPrefix.php--100.00%
   Terms.php--100.00%
src/Contracts
   PostDataInterface.php100.00%100.00%100.00%
src/Enums
   PostStatus.php100.00%100.00%100.00%
src
   ImageData.php--100.00%
   PostData.php17.89%8.70%100.00%
   TermData.php--100.00%
   UserData.php--100.00%
src/Mappers
   PostPrefixMapper.php--100.00%
   UserPrefixMapper.php--100.00%
src/Normalizers
   WPPostNormalizer.php--100.00%
src/Providers
   DataServiceProvider.php100.00%100.00%100.00%

🤖 comment via lucassabreu/comment-coverage-clover

@github-actions
Copy link

github-actions bot commented Dec 2, 2024

Composer package changes
Prod Packages Operation Base Target
fakerphp/faker Upgraded v1.24.0 v1.24.1
laravel/framework Upgraded v10.48.23 v10.48.25
laravel/serializable-closure Upgraded v1.3.6 v1.3.7
nunomaduro/termwind Upgraded v1.16.0 v1.17.0
phpdocumentor/reflection Upgraded 6.0.0 6.1.0
spatie/laravel-package-tools Upgraded 1.16.5 1.16.6
symfony/http-foundation Upgraded v6.4.15 v6.4.16
symfony/http-kernel Upgraded v6.4.15 v6.4.16
symfony/routing Upgraded v6.4.13 v6.4.16
voku/portable-ascii Upgraded 2.0.1 2.0.3
Dev Packages Operation Base Target
jean85/pretty-package-versions Upgraded 2.0.6 2.1.0
larastan/larastan Upgraded v2.9.11 v2.9.12
orchestra/canvas Upgraded v8.11.9 v8.12.0
orchestra/testbench Upgraded v8.27.2 v8.29.0
orchestra/testbench-core Upgraded v8.28.5 v8.30.0
orchestra/workbench Upgraded v8.11.0 v8.13.0
php-stubs/wordpress-stubs Upgraded v6.6.2 v6.7.1
phpstan/phpstan Upgraded 1.12.10 1.12.12
psy/psysh Upgraded v0.12.4 v0.12.5
guzzlehttp/psr7 Removed 2.7.0 -
php-di/invoker Removed 2.3.4 -
php-di/php-di Removed 7.0.7 -
ralouphie/getallheaders Removed 3.0.3 -
rector/rector Removed 1.2.10 -
spatie/backtrace Removed 1.6.2 -
spatie/laravel-ray Removed 1.37.1 -
spatie/macroable Removed 2.0.0 -
spatie/ray Removed 1.41.2 -
symfony/polyfill-iconv Removed v1.31.0 -
zbateson/mail-mime-parser Removed 3.0.3 -
zbateson/mb-wrapper Removed 2.0.0 -
zbateson/stream-decorators Removed 2.1.1 -

public function excerpt(int $count = 0): string
{
return get_the_excerpt($this->id);
if (0 === $count) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 > $count om ook negatieve waarden af te vangen?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 is de default waarde van $count. En hier wordt gecheck of $count gezet is.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, hoe klein de kans ook is maar je kunt ook -1 meegeven aan de functie toch. Ook al gaat het nooit voorvallen is het wel goed om te checken. Mocht het wel ooit echt nodig zijn zit het in je systeem.

@SimonvanWijhe SimonvanWijhe merged commit f01c7ef into main Dec 6, 2024
@SimonvanWijhe SimonvanWijhe deleted the develop branch December 6, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants