* fix https://github.com/symfony/recipes-contrib/pull/1689#pullreques… #224
Annotations
102 errors and 121 warnings
runs-on (ubuntu-latest) / php-cs-fixer
Process completed with exit code 8.
|
runs-on (ubuntu-latest) / phpmd:
src/PostsQuery/SearchQuery.php#L187
SearchQuery.php: The method applyTextMatchParamOnQuery uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
|
runs-on (ubuntu-latest) / phpmd:
tests/PostsQuery/BaseQueryTest.php#L48
BaseQueryTest.php: The method testReOrderNestedPosts uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
|
runs-on (ubuntu-latest) / phpmd
Process completed with exit code 2.
|
runs-on (ubuntu-latest) / pint
Process completed with exit code 1.
|
runs-on (ubuntu-latest) / phpstan:
src/Controller/AssetController.php#L30
AssetController.php: binaryOp.invalid: Binary operation "." between array|bool|float|int|string|null and non-falsy-string results in an error.
|
runs-on (ubuntu-latest) / phpstan:
src/Controller/ForumsController.php#L13
ForumsController.php: missingType.iterableValue: Method App\Controller\ForumsController::query() return type has no value type specified in iterable type array.
|
runs-on (ubuntu-latest) / phpstan:
src/Controller/PostsController.php#L49
PostsController.php: missingType.iterableValue: Method App\Controller\PostsController::query() return type has no value type specified in iterable type array.
|
runs-on (ubuntu-latest) / phpstan:
src/Controller/PostsController.php#L61
PostsController.php: method.nonObject: Cannot call method setParams() on mixed.
|
runs-on (ubuntu-latest) / phpstan:
src/Controller/PostsController.php#L61
PostsController.php: argument.type: Parameter #1 $json of function Safe\json_decode expects string, string|null given.
|
runs-on (ubuntu-latest) / phpstan:
src/Controller/PostsController.php#L78
PostsController.php: method.nonObject: Cannot call method addDefaultParamsThenValidate() on mixed.
|
runs-on (ubuntu-latest) / phpstan:
src/Controller/PostsController.php#L95
PostsController.php: argument.type: Parameter #1 $callback of method Illuminate\Support\Collection<string,array<string, int>|Illuminate\Support\Collection<int, App\Entity\Post\Reply>|Illuminate\Support\Collection<int, App\Entity\Post\SubReply>|Illuminate\Support\Collection<int, App\Entity\Post\Thread>|int>::flatMap() expects callable(array{thread: int, reply: int, subReply?: int}|Illuminate\Support\Collection<int, App\Entity\Post\Reply>|Illuminate\Support\Collection<int, App\Entity\Post\SubReply>|Illuminate\Support\Collection<int, App\Entity\Post\Thread>|int, string): (array<int, int>|Illuminate\Support\Collection<int, int>), Closure(Illuminate\Support\Collection): Illuminate\Support\Collection<int, int> given.
|
runs-on (ubuntu-latest) / phpstan:
src/Controller/PostsController.php#L103
PostsController.php: argument.templateType: Unable to resolve the template type TKey in call to function collect
|
runs-on (ubuntu-latest) / phpstan:
src/Controller/PostsController.php#L103
PostsController.php: argument.templateType: Unable to resolve the template type TValue in call to function collect
|
runs-on (ubuntu-latest) / phpstan:
src/Controller/PostsController.php#L104
PostsController.php: argument.type: Parameter #1 $keyBy of method Illuminate\Support\Collection<(int|string),mixed>::keyBy() expects array|(callable(mixed, int|string): int)|string, Closure(App\DTO\User\AuthorExpGrade): int given.
|
runs-on (ubuntu-latest) / phpcs:
src/PostsQuery/PostsTree.php#L146
PostsTree.php: Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace: The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
|
runs-on (ubuntu-latest) / phpcs:
src/PostsQuery/PostsTree.php#L157
PostsTree.php: Squiz.Functions.MultiLineFunctionDeclaration.UseOneParamPerLine: Multi-line use declarations must define one parameter per line
|
runs-on (ubuntu-latest) / phpcs
Process completed with exit code 1.
|
runs-on (ubuntu-latest) / phpcs
Process completed with exit code 2.
|
runs-on (ubuntu-latest) / psalm:
src/Controller/AssetController.php#L11
AssetController.php: UnusedClass: Class App\Controller\AssetController is never used
|
runs-on (ubuntu-latest) / psalm:
src/Controller/AssetController.php#L30
AssetController.php: PossiblyNullOperand: Cannot concatenate with a possibly null UnitEnum|array<array-key, mixed>|null|scalar
|
runs-on (ubuntu-latest) / psalm:
src/Controller/ForumsController.php#L9
ForumsController.php: UnusedClass: Class App\Controller\ForumsController is never used
|
runs-on (ubuntu-latest) / psalm:
src/Controller/PostsController.php#L31
PostsController.php: UnusedClass: Class App\Controller\PostsController is never used
|
runs-on (ubuntu-latest) / psalm:
src/Controller/PostsController.php#L61
PostsController.php: MixedArgument: Argument 1 of App\PostsQuery\ParamsValidator::setParams cannot be mixed, expecting array<array-key, array<array-key, mixed>>
|
runs-on (ubuntu-latest) / psalm:
src/Controller/PostsController.php#L61
PostsController.php: PossiblyNullArgument: Argument 1 of Safe\json_decode cannot be null, possibly null value provided
|
runs-on (ubuntu-latest) / psalm:
src/Controller/PostsController.php#L95
PostsController.php: InvalidArgument: Argument 1 of Illuminate\Support\Collection::flatMap expects callable(Illuminate\Support\Collection<int, App\Entity\Post\Reply>|Illuminate\Support\Collection<int, App\Entity\Post\SubReply>|Illuminate\Support\Collection<int, App\Entity\Post\Thread>|array{reply: int, subReply?: int, thread: int}|int, 'fid'|'matchQueryPostCount'|'notMatchQueryParentPostCount'|'replies'|'subReplies'|'threads'):(Illuminate\Support\Collection<array-key, int>|array<array-key, int>), but impure-Closure(Illuminate\Support\Collection):Illuminate\Support\Collection<array-key, int>&static provided
|
runs-on (ubuntu-latest) / psalm:
src/Controller/PostsController.php#L103
PostsController.php: MixedArgument: Argument 1 of collect cannot be mixed, expecting Illuminate\Contracts\Support\Arrayable<array-key, mixed>|iterable<array-key, mixed>|null
|
runs-on (ubuntu-latest) / psalm:
src/Controller/PostsController.php#L105
PostsController.php: MixedArgumentTypeCoercion: Type mixed should be a subtype of App\Entity\User
|
runs-on (ubuntu-latest) / psalm:
src/Controller/PostsController.php#L105
PostsController.php: PossiblyNullArrayOffset: Cannot access value on variable $authorExpGrades using possibly null offset int|null
|
runs-on (ubuntu-latest) / phan:
src/Entity/LatestReplier.php#L54
LatestReplier.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (ubuntu-latest) / phan:
src/Entity/Post/Content/PostContent.php#L21
PostContent.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (ubuntu-latest) / phan:
src/Entity/Post/Reply.php#L78
Reply.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (ubuntu-latest) / phan:
src/Entity/Post/Thread.php#L147
Thread.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (ubuntu-latest) / phan:
src/Entity/Post/Thread.php#L158
Thread.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (ubuntu-latest) / phan:
src/Entity/User.php#L55
User.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (ubuntu-latest) / phan:
src/Entity/User.php#L106
User.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (ubuntu-latest) / phan:
src/PostsQuery/ParamsValidator.php#L54
ParamsValidator.php: PhanTypeMismatchArgumentReal: Argument 1 ($values) is 'fid' of type 'fid' but \Illuminate\Support\Collection::push() takes 'authorExpGrade'[]|'authorUid'[]|'latestReplierUid'[]|'pid'[]|'replySubReplyCount'[]|'spid'[]|'threadReplyCount'[]|'threadShareCount'[]|'threadViewCount'[]|'tid'[] (real type array) defined at vendor/illuminate/collections/Collection.php:1018
|
runs-on (ubuntu-latest) / phan:
src/PostsQuery/PostsTree.php#L160
PostsTree.php: PhanNonClassMethodCall: Call to method values on non-class type string
|
runs-on (ubuntu-latest) / phan:
src/PostsQuery/PostsTree.php#L165
PostsTree.php: PhanNonClassMethodCall: Call to method filter on non-class type string
|
runs-on (windows-latest) / psalm
Process completed with exit code 127.
|
runs-on (windows-latest) / phpmd:
be/src/PostsQuery/SearchQuery.php#L187
SearchQuery.php: The method applyTextMatchParamOnQuery uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
|
runs-on (windows-latest) / phpmd:
be/tests/PostsQuery/BaseQueryTest.php#L48
BaseQueryTest.php: The method testReOrderNestedPosts uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
|
runs-on (windows-latest) / phpmd
Process completed with exit code 2.
|
runs-on (ubuntu-latest) / phpunit-infection
Process completed with exit code 2.
|
runs-on (windows-latest) / phpcs
Process completed with exit code 1.
|
runs-on (windows-latest) / phpcs:
be/src/PostsQuery/PostsTree.php#L146
PostsTree.php: Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace: The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
|
runs-on (windows-latest) / phpcs:
be/src/PostsQuery/PostsTree.php#L157
PostsTree.php: Squiz.Functions.MultiLineFunctionDeclaration.UseOneParamPerLine: Multi-line use declarations must define one parameter per line
|
runs-on (windows-latest) / phpcs
Process completed with exit code 1.
|
runs-on (windows-latest) / phpstan:
src/Controller/AssetController.php#L30
AssetController.php: binaryOp.invalid: Binary operation "." between array|bool|float|int|string|null and non-falsy-string results in an error.
|
runs-on (windows-latest) / phpstan:
src/Controller/ForumsController.php#L13
ForumsController.php: missingType.iterableValue: Method App\Controller\ForumsController::query() return type has no value type specified in iterable type array.
|
runs-on (windows-latest) / phpstan:
src/Controller/PostsController.php#L49
PostsController.php: missingType.iterableValue: Method App\Controller\PostsController::query() return type has no value type specified in iterable type array.
|
runs-on (windows-latest) / phpstan:
src/Controller/PostsController.php#L61
PostsController.php: method.nonObject: Cannot call method setParams() on mixed.
|
runs-on (windows-latest) / phpstan:
src/Controller/PostsController.php#L61
PostsController.php: argument.type: Parameter #1 $json of function Safe\json_decode expects string, string|null given.
|
runs-on (windows-latest) / phpstan:
src/Controller/PostsController.php#L78
PostsController.php: method.nonObject: Cannot call method addDefaultParamsThenValidate() on mixed.
|
runs-on (windows-latest) / phpstan:
src/Controller/PostsController.php#L95
PostsController.php: argument.type: Parameter #1 $callback of method Illuminate\Support\Collection<string,array<string, int>|Illuminate\Support\Collection<int, App\Entity\Post\Reply>|Illuminate\Support\Collection<int, App\Entity\Post\SubReply>|Illuminate\Support\Collection<int, App\Entity\Post\Thread>|int>::flatMap() expects callable(array{thread: int, reply: int, subReply?: int}|Illuminate\Support\Collection<int, App\Entity\Post\Reply>|Illuminate\Support\Collection<int, App\Entity\Post\SubReply>|Illuminate\Support\Collection<int, App\Entity\Post\Thread>|int, string): (array<int, int>|Illuminate\Support\Collection<int, int>), Closure(Illuminate\Support\Collection): Illuminate\Support\Collection<int, int> given.
|
runs-on (windows-latest) / phpstan:
src/Controller/PostsController.php#L103
PostsController.php: argument.templateType: Unable to resolve the template type TKey in call to function collect
|
runs-on (windows-latest) / phpstan:
src/Controller/PostsController.php#L103
PostsController.php: argument.templateType: Unable to resolve the template type TValue in call to function collect
|
runs-on (windows-latest) / phpstan:
src/Controller/PostsController.php#L104
PostsController.php: argument.type: Parameter #1 $keyBy of method Illuminate\Support\Collection<(int|string),mixed>::keyBy() expects array|(callable(mixed, int|string): int)|string, Closure(App\DTO\User\AuthorExpGrade): int given.
|
runs-on (windows-latest) / php-cs-fixer
Process completed with exit code 8.
|
runs-on (windows-latest) / pint
Process completed with exit code 1.
|
runs-on (macos-latest) / phan
Process completed with exit code 1.
|
runs-on (macos-latest) / phpstan:
src/Controller/AssetController.php#L30
AssetController.php: binaryOp.invalid: Binary operation "." between array|bool|float|int|string|null and non-falsy-string results in an error.
|
runs-on (macos-latest) / phpstan:
src/Controller/ForumsController.php#L13
ForumsController.php: missingType.iterableValue: Method App\Controller\ForumsController::query() return type has no value type specified in iterable type array.
|
runs-on (macos-latest) / phpstan:
src/Controller/PostsController.php#L49
PostsController.php: missingType.iterableValue: Method App\Controller\PostsController::query() return type has no value type specified in iterable type array.
|
runs-on (macos-latest) / phpstan:
src/Controller/PostsController.php#L61
PostsController.php: method.nonObject: Cannot call method setParams() on mixed.
|
runs-on (macos-latest) / phpstan:
src/Controller/PostsController.php#L61
PostsController.php: argument.type: Parameter #1 $json of function Safe\json_decode expects string, string|null given.
|
runs-on (macos-latest) / phpstan:
src/Controller/PostsController.php#L78
PostsController.php: method.nonObject: Cannot call method addDefaultParamsThenValidate() on mixed.
|
runs-on (macos-latest) / phpstan:
src/Controller/PostsController.php#L95
PostsController.php: argument.type: Parameter #1 $callback of method Illuminate\Support\Collection<string,array<string, int>|Illuminate\Support\Collection<int, App\Entity\Post\Reply>|Illuminate\Support\Collection<int, App\Entity\Post\SubReply>|Illuminate\Support\Collection<int, App\Entity\Post\Thread>|int>::flatMap() expects callable(array{thread: int, reply: int, subReply?: int}|Illuminate\Support\Collection<int, App\Entity\Post\Reply>|Illuminate\Support\Collection<int, App\Entity\Post\SubReply>|Illuminate\Support\Collection<int, App\Entity\Post\Thread>|int, string): (array<int, int>|Illuminate\Support\Collection<int, int>), Closure(Illuminate\Support\Collection): Illuminate\Support\Collection<int, int> given.
|
runs-on (macos-latest) / phpstan:
src/Controller/PostsController.php#L103
PostsController.php: argument.templateType: Unable to resolve the template type TKey in call to function collect
|
runs-on (macos-latest) / phpstan:
src/Controller/PostsController.php#L103
PostsController.php: argument.templateType: Unable to resolve the template type TValue in call to function collect
|
runs-on (macos-latest) / phpstan:
src/Controller/PostsController.php#L104
PostsController.php: argument.type: Parameter #1 $keyBy of method Illuminate\Support\Collection<(int|string),mixed>::keyBy() expects array|(callable(mixed, int|string): int)|string, Closure(App\DTO\User\AuthorExpGrade): int given.
|
runs-on (macos-latest) / psalm:
src/Controller/AssetController.php#L11
AssetController.php: UnusedClass: Class App\Controller\AssetController is never used
|
runs-on (macos-latest) / psalm:
src/Controller/AssetController.php#L30
AssetController.php: PossiblyNullOperand: Cannot concatenate with a possibly null UnitEnum|array<array-key, mixed>|null|scalar
|
runs-on (macos-latest) / psalm:
src/Controller/ForumsController.php#L9
ForumsController.php: UnusedClass: Class App\Controller\ForumsController is never used
|
runs-on (macos-latest) / psalm:
src/Controller/PostsController.php#L31
PostsController.php: UnusedClass: Class App\Controller\PostsController is never used
|
runs-on (macos-latest) / psalm:
src/Controller/PostsController.php#L61
PostsController.php: MixedArgument: Argument 1 of App\PostsQuery\ParamsValidator::setParams cannot be mixed, expecting array<array-key, array<array-key, mixed>>
|
runs-on (macos-latest) / psalm:
src/Controller/PostsController.php#L61
PostsController.php: PossiblyNullArgument: Argument 1 of Safe\json_decode cannot be null, possibly null value provided
|
runs-on (macos-latest) / psalm:
src/Controller/PostsController.php#L95
PostsController.php: InvalidArgument: Argument 1 of Illuminate\Support\Collection::flatMap expects callable(Illuminate\Support\Collection<int, App\Entity\Post\Reply>|Illuminate\Support\Collection<int, App\Entity\Post\SubReply>|Illuminate\Support\Collection<int, App\Entity\Post\Thread>|array{reply: int, subReply?: int, thread: int}|int, 'fid'|'matchQueryPostCount'|'notMatchQueryParentPostCount'|'replies'|'subReplies'|'threads'):(Illuminate\Support\Collection<array-key, int>|array<array-key, int>), but impure-Closure(Illuminate\Support\Collection):Illuminate\Support\Collection<array-key, int>&static provided
|
runs-on (macos-latest) / psalm:
src/Controller/PostsController.php#L103
PostsController.php: MixedArgument: Argument 1 of collect cannot be mixed, expecting Illuminate\Contracts\Support\Arrayable<array-key, mixed>|iterable<array-key, mixed>|null
|
runs-on (macos-latest) / psalm:
src/Controller/PostsController.php#L105
PostsController.php: MixedArgumentTypeCoercion: Type mixed should be a subtype of App\Entity\User
|
runs-on (macos-latest) / psalm:
src/Controller/PostsController.php#L105
PostsController.php: PossiblyNullArrayOffset: Cannot access value on variable $authorExpGrades using possibly null offset int|null
|
runs-on (windows-latest) / phan:
src\Entity\LatestReplier.php#L54
LatestReplier.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (windows-latest) / phan:
src\Entity\Post\Content\PostContent.php#L21
PostContent.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (windows-latest) / phan:
src\Entity\Post\Reply.php#L78
Reply.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (windows-latest) / phan:
src\Entity\Post\Thread.php#L147
Thread.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (windows-latest) / phan:
src\Entity\Post\Thread.php#L158
Thread.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (windows-latest) / phan:
src\Entity\User.php#L55
User.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (windows-latest) / phan:
src\Entity\User.php#L106
User.php: PhanCompatibleStandaloneType: Cannot use null as a standalone type before php 8.2.
|
runs-on (windows-latest) / phan:
src\PostsQuery\ParamsValidator.php#L54
ParamsValidator.php: PhanTypeMismatchArgumentReal: Argument 1 ($values) is 'fid' of type 'fid' but \Illuminate\Support\Collection::push() takes 'authorExpGrade'[]|'authorUid'[]|'latestReplierUid'[]|'pid'[]|'replySubReplyCount'[]|'spid'[]|'threadReplyCount'[]|'threadShareCount'[]|'threadViewCount'[]|'tid'[] (real type array) defined at vendor\illuminate\collections\Collection.php:1018
|
runs-on (windows-latest) / phan:
src\PostsQuery\PostsTree.php#L160
PostsTree.php: PhanNonClassMethodCall: Call to method values on non-class type string
|
runs-on (windows-latest) / phan:
src\PostsQuery\PostsTree.php#L165
PostsTree.php: PhanNonClassMethodCall: Call to method filter on non-class type string
|
runs-on (macos-latest) / phpcs
Process completed with exit code 2.
|
runs-on (macos-latest) / phpcs:
src/PostsQuery/PostsTree.php#L146
PostsTree.php: Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace: The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
|
runs-on (macos-latest) / phpcs:
src/PostsQuery/PostsTree.php#L157
PostsTree.php: Squiz.Functions.MultiLineFunctionDeclaration.UseOneParamPerLine: Multi-line use declarations must define one parameter per line
|
runs-on (macos-latest) / phpcs
Process completed with exit code 1.
|
runs-on (windows-latest) / phpunit-infection
Process completed with exit code 1.
|
runs-on (macos-latest) / phpunit-infection
Process completed with exit code 2.
|
runs-on (macos-latest) / php-cs-fixer
Process completed with exit code 8.
|
runs-on (macos-latest) / phpmd:
src/PostsQuery/SearchQuery.php#L187
SearchQuery.php: The method applyTextMatchParamOnQuery uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
|
runs-on (macos-latest) / phpmd:
tests/PostsQuery/BaseQueryTest.php#L48
BaseQueryTest.php: The method testReOrderNestedPosts uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
|
runs-on (macos-latest) / phpmd
Process completed with exit code 2.
|
runs-on (macos-latest) / pint
Process completed with exit code 1.
|
runs-on (ubuntu-latest) / php-cs-fixer:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (ubuntu-latest) / php-cs-fixer:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.braces_position: Found violation(s) of type: braces_position
|
runs-on (ubuntu-latest) / php-cs-fixer:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.statement_indentation: Found violation(s) of type: statement_indentation
|
runs-on (ubuntu-latest) / php-cs-fixer:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.single_line_empty_body: Found violation(s) of type: single_line_empty_body
|
runs-on (ubuntu-latest) / php-cs-fixer:
src/PostsQuery/IndexQuery.php#L1
IndexQuery.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (ubuntu-latest) / phpmd:
src/Controller/PostsController.php#L31
PostsController.php: The class PostsController has a coupling between objects value of 25. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
|
runs-on (ubuntu-latest) / phpmd:
src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
|
runs-on (ubuntu-latest) / phpmd:
src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has an NPath complexity of 200. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
|
runs-on (ubuntu-latest) / phpmd:
src/PostsQuery/PostsTree.php#L20
PostsTree.php: The class PostsTree has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
|
runs-on (ubuntu-latest) / phpmd:
src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
|
runs-on (ubuntu-latest) / phpmd:
src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has an NPath complexity of 384. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
|
runs-on (ubuntu-latest) / phpmd:
src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has 111 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
|
runs-on (ubuntu-latest) / phpmd:
tests/PostsQuery/BaseQueryTest.php#L53
BaseQueryTest.php: The method provideReOrderNestedPostsData() has 168 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
|
runs-on (ubuntu-latest) / pint:
src/Controller/UsersController.php#L1
UsersController.php: PHP-CS-Fixer.braces_position: Found violation(s) of type: braces_position
|
runs-on (ubuntu-latest) / pint:
src/Controller/UsersController.php#L1
UsersController.php: PHP-CS-Fixer.no_unused_imports: Found violation(s) of type: no_unused_imports
|
runs-on (ubuntu-latest) / pint:
src/Controller/UsersController.php#L1
UsersController.php: PHP-CS-Fixer.single_line_empty_body: Found violation(s) of type: single_line_empty_body
|
runs-on (ubuntu-latest) / pint:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (ubuntu-latest) / pint:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.braces_position: Found violation(s) of type: braces_position
|
runs-on (ubuntu-latest) / pint:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.statement_indentation: Found violation(s) of type: statement_indentation
|
runs-on (ubuntu-latest) / pint:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.single_line_empty_body: Found violation(s) of type: single_line_empty_body
|
runs-on (ubuntu-latest) / pint:
src/PostsQuery/IndexQuery.php#L1
IndexQuery.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (ubuntu-latest) / phpcs:
src/PostsQuery/PostsTree.php#L213
PostsTree.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 128 characters
|
runs-on (ubuntu-latest) / phpcs:
src/PostsQuery/QueryResult.php#L68
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 127 characters
|
runs-on (ubuntu-latest) / phan:
public/index.php#L7
index.php: PhanUnreferencedClosure: Possibly zero references to Closure(array $context)
|
runs-on (ubuntu-latest) / phan:
src/Controller/AssetController.php#L11
AssetController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\AssetController
|
runs-on (ubuntu-latest) / phan:
src/Controller/AssetController.php#L21
AssetController.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Controller\AssetController::getAsset()
|
runs-on (ubuntu-latest) / phan:
src/Controller/AssetController.php#L24
AssetController.php: PhanPartialTypeMismatchArgument: Argument 1 ($content) is preg_replace_callback_array(['#/npm/(?<filename>\\w+)@(\\d+\\.?){3}/\\+esm#'=>(fn),'@^//# sourceMappingURL=.+$@m'=>(fn)], $this->filesystem->readFile(($this->getParameter('kernel.project_dir') . "/public/react-json-view/{$filename}"))) of type string|string[] but \Symfony\Component\HttpFoundation\Response::__construct() takes ?string (string[] is incompatible) defined at vendor/symfony/http-foundation/Response.php:200
|
runs-on (ubuntu-latest) / phan:
src/Controller/AssetController.php#L26
AssetController.php: PhanTypeMismatchArgumentInternal: Argument 1 ($pattern) is ['#/npm/(?<filename>\\w+)@(\\d+\\.?){3}/\\+esm#'=>(fn),'@^//# sourceMappingURL=.+$@m'=>(fn)] of type array{\x23/npm/\x28\x3f\x3cfilename\x3e\\w+\x29\x40\x28\\d+\\.\x3f\x29\x7b3\x7d/\\+esm\x23:Closure(array):string,\x40^//\x23\x20sourceMappingURL\x3d.+$\x40m:Closure():''} but \preg_replace_callback_array() takes array<string,callable(array):string>
|
runs-on (ubuntu-latest) / phan:
src/Controller/AssetController.php#L26
AssetController.php: PhanUnreferencedClosure: Possibly zero references to Closure(array $m)
|
runs-on (ubuntu-latest) / phan:
src/Controller/AssetController.php#L28
AssetController.php: PhanUnreferencedClosure: Possibly zero references to Closure()
|
runs-on (ubuntu-latest) / phan:
src/Controller/ForumsController.php#L9
ForumsController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\ForumsController
|
runs-on (ubuntu-latest) / phan:
src/Controller/ForumsController.php#L14
ForumsController.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Controller\ForumsController::query()
|
runs-on (ubuntu-latest) / phan:
src/Controller/PostsController.php#L31
PostsController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\PostsController
|
runs-on (windows-latest) / phpmd:
be/src/Controller/PostsController.php#L31
PostsController.php: The class PostsController has a coupling between objects value of 25. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
|
runs-on (windows-latest) / phpmd:
be/src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
|
runs-on (windows-latest) / phpmd:
be/src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has an NPath complexity of 200. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
|
runs-on (windows-latest) / phpmd:
be/src/PostsQuery/PostsTree.php#L20
PostsTree.php: The class PostsTree has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
|
runs-on (windows-latest) / phpmd:
be/src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
|
runs-on (windows-latest) / phpmd:
be/src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has an NPath complexity of 384. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
|
runs-on (windows-latest) / phpmd:
be/src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has 111 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
|
runs-on (windows-latest) / phpmd:
be/tests/PostsQuery/BaseQueryTest.php#L53
BaseQueryTest.php: The method provideReOrderNestedPostsData() has 168 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
|
runs-on (ubuntu-latest) / phpunit-infection:
be/src/Entity/BlobResourceGetter.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
if ($value === null) {
return null;
}
- rewind($value);
+
return stream_get_contents($value);
}
}
|
runs-on (ubuntu-latest) / phpunit-infection:
be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function __invoke(ExceptionEvent $event) : void
{
$exception = $event->getThrowable();
- if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
+ if (true && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
$event->setResponse(JsonResponse::fromJsonString($exception->getMessage()));
} elseif ($exception instanceof ValidationFailedException) {
$event->setResponse(JsonResponse::fromJsonString(
|
runs-on (ubuntu-latest) / phpunit-infection:
be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function __invoke(ExceptionEvent $event) : void
{
$exception = $event->getThrowable();
- if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
+ if ($exception instanceof HttpException || collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
$event->setResponse(JsonResponse::fromJsonString($exception->getMessage()));
} elseif ($exception instanceof ValidationFailedException) {
$event->setResponse(JsonResponse::fromJsonString(
|
runs-on (ubuntu-latest) / phpunit-infection:
be/src/EventListener/ExceptionToJsonResponse.php#L26
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$exception = $event->getThrowable();
if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
$event->setResponse(JsonResponse::fromJsonString($exception->getMessage()));
- } elseif ($exception instanceof ValidationFailedException) {
+ } elseif (true) {
$event->setResponse(JsonResponse::fromJsonString(
// https://github.com/symfony/serializer/blob/7.1/Normalizer/ConstraintViolationListNormalizer.php
$this->serializer->serialize(['errorCode' => 40000, 'errorInfo' => $exception->getViolations()], 'json')
|
runs-on (ubuntu-latest) / phpunit-infection:
be/src/EventListener/PrettyJsonResponse.php#L16
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
// https://github.com/laravel/framework/issues/3929#issuecomment-935123918
$response = $event->getResponse();
- if ($response instanceof JsonResponse) {
+ if (true) {
$response->setEncodingOptions(JSON_PRETTY_PRINT);
}
}
}
|
runs-on (ubuntu-latest) / phpunit-infection:
be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
$request = $event->getRequest();
$response = $event->getResponse();
- if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
+ if (!true || !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
return;
}
$json = $response->getContent();
|
runs-on (ubuntu-latest) / phpunit-infection:
be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
{
$request = $event->getRequest();
$response = $event->getResponse();
- if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
+ if (!$response instanceof JsonResponse && !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
return;
}
$json = $response->getContent();
|
runs-on (ubuntu-latest) / phpunit-infection:
be/src/EventListener/ShowReactJsonView.php#L25
Escaped Mutant for Mutator "MBString":
--- Original
+++ New
@@ @@
return;
}
$json = $response->getContent();
- $jsonLength = mb_strlen($json);
+ $jsonLength = strlen($json);
$assetsUrl = collect(['react-json-view', 'react', 'react-dom'])->mapWithKeys(fn($asset) => [$asset => $this->assets->getUrl("/assets/{$asset}.js")]);
$event->setResponse(new Response(<<<HTML
<html>
|
runs-on (ubuntu-latest) / phpunit-infection:
be/src/Helper.php#L85
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
];
public static function abortAPI(int $errorCode) : never
{
- $statusCode = 0;
+ $statusCode = -1;
$errorInfo = null;
foreach (self::ERROR_STATUS_CODE_INFO as $infoStatusCode => $infoErrorInfo) {
if (\array_key_exists($errorCode, $infoErrorInfo)) {
|
runs-on (ubuntu-latest) / phpunit-infection:
be/src/PostsQuery/ParamsValidator.php#L36
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function addDefaultParamsThenValidate(bool $shouldSkip40003) : void
{
- $this->params->addDefaultValueOnParams();
+
$this->params->addDefaultValueOnUniqueParams();
// sort here to prevent further sort while validating
$sortedPostTypes = collect($this->params->getUniqueParamValue('postTypes'))->sort()->values()->all();
|
runs-on (windows-latest) / phpcs:
be/src/PostsQuery/PostsTree.php#L213
PostsTree.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 128 characters
|
runs-on (windows-latest) / phpcs:
be/src/PostsQuery/QueryResult.php#L68
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 127 characters
|
runs-on (windows-latest) / php-cs-fixer:
src\PostsQuery\IndexQuery.php#L1
IndexQuery.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (windows-latest) / php-cs-fixer:
src\PostsQuery\PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (windows-latest) / php-cs-fixer:
src\PostsQuery\PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.braces_position: Found violation(s) of type: braces_position
|
runs-on (windows-latest) / php-cs-fixer:
src\PostsQuery\PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.statement_indentation: Found violation(s) of type: statement_indentation
|
runs-on (windows-latest) / php-cs-fixer:
src\PostsQuery\PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.single_line_empty_body: Found violation(s) of type: single_line_empty_body
|
runs-on (windows-latest) / pint:
be/src/Controller/UsersController.php#L1
UsersController.php: PHP-CS-Fixer.braces_position: Found violation(s) of type: braces_position
|
runs-on (windows-latest) / pint:
be/src/Controller/UsersController.php#L1
UsersController.php: PHP-CS-Fixer.no_unused_imports: Found violation(s) of type: no_unused_imports
|
runs-on (windows-latest) / pint:
be/src/Controller/UsersController.php#L1
UsersController.php: PHP-CS-Fixer.single_line_empty_body: Found violation(s) of type: single_line_empty_body
|
runs-on (windows-latest) / pint:
be/src/PostsQuery/IndexQuery.php#L1
IndexQuery.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (windows-latest) / pint:
be/src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (windows-latest) / pint:
be/src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.braces_position: Found violation(s) of type: braces_position
|
runs-on (windows-latest) / pint:
be/src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.statement_indentation: Found violation(s) of type: statement_indentation
|
runs-on (windows-latest) / pint:
be/src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.single_line_empty_body: Found violation(s) of type: single_line_empty_body
|
runs-on (windows-latest) / phan:
public\index.php#L7
index.php: PhanUnreferencedClosure: Possibly zero references to Closure(array $context)
|
runs-on (windows-latest) / phan:
src\Controller\AssetController.php#L11
AssetController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\AssetController
|
runs-on (windows-latest) / phan:
src\Controller\AssetController.php#L21
AssetController.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Controller\AssetController::getAsset()
|
runs-on (windows-latest) / phan:
src\Controller\AssetController.php#L24
AssetController.php: PhanPartialTypeMismatchArgument: Argument 1 ($content) is preg_replace_callback_array(['#/npm/(?<filename>\\w+)@(\\d+\\.?){3}/\\+esm#'=>(fn),'@^//# sourceMappingURL=.+$@m'=>(fn)], $this->filesystem->readFile(($this->getParameter('kernel.project_dir') . "/public/react-json-view/{$filename}"))) of type string|string[] but \Symfony\Component\HttpFoundation\Response::__construct() takes ?string (string[] is incompatible) defined at vendor\symfony\http-foundation\Response.php:200
|
runs-on (windows-latest) / phan:
src\Controller\AssetController.php#L26
AssetController.php: PhanTypeMismatchArgumentInternal: Argument 1 ($pattern) is ['#/npm/(?<filename>\\w+)@(\\d+\\.?){3}/\\+esm#'=>(fn),'@^//# sourceMappingURL=.+$@m'=>(fn)] of type array{\x23/npm/\x28\x3f\x3cfilename\x3e\\w+\x29\x40\x28\\d+\\.\x3f\x29\x7b3\x7d/\\+esm\x23:Closure(array):string,\x40^//\x23\x20sourceMappingURL\x3d.+$\x40m:Closure():''} but \preg_replace_callback_array() takes array<string,callable(array):string>
|
runs-on (windows-latest) / phan:
src\Controller\AssetController.php#L26
AssetController.php: PhanUnreferencedClosure: Possibly zero references to Closure(array $m)
|
runs-on (windows-latest) / phan:
src\Controller\AssetController.php#L28
AssetController.php: PhanUnreferencedClosure: Possibly zero references to Closure()
|
runs-on (windows-latest) / phan:
src\Controller\ForumsController.php#L9
ForumsController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\ForumsController
|
runs-on (windows-latest) / phan:
src\Controller\ForumsController.php#L14
ForumsController.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Controller\ForumsController::query()
|
runs-on (windows-latest) / phan:
src\Controller\PostsController.php#L31
PostsController.php: PhanUnreferencedClass: Possibly zero references to class \App\Controller\PostsController
|
runs-on (macos-latest) / phpcs:
src/PostsQuery/QueryResult.php#L68
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 127 characters
|
runs-on (macos-latest) / phpcs:
src/PostsQuery/PostsTree.php#L213
PostsTree.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 128 characters
|
runs-on (windows-latest) / phpunit-infection
JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled.
|
runs-on (windows-latest) / phpunit-infection
JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled.
|
runs-on (windows-latest) / phpunit-infection:
be/src/Entity/BlobResourceGetter.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
if ($value === null) {
return null;
}
- rewind($value);
+
return stream_get_contents($value);
}
}
|
runs-on (windows-latest) / phpunit-infection:
be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function __invoke(ExceptionEvent $event) : void
{
$exception = $event->getThrowable();
- if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
+ if (true && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
$event->setResponse(JsonResponse::fromJsonString($exception->getMessage()));
} elseif ($exception instanceof ValidationFailedException) {
$event->setResponse(JsonResponse::fromJsonString(
|
runs-on (windows-latest) / phpunit-infection:
be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function __invoke(ExceptionEvent $event) : void
{
$exception = $event->getThrowable();
- if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
+ if ($exception instanceof HttpException || collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
$event->setResponse(JsonResponse::fromJsonString($exception->getMessage()));
} elseif ($exception instanceof ValidationFailedException) {
$event->setResponse(JsonResponse::fromJsonString(
|
runs-on (windows-latest) / phpunit-infection:
be/src/EventListener/ExceptionToJsonResponse.php#L26
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$exception = $event->getThrowable();
if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
$event->setResponse(JsonResponse::fromJsonString($exception->getMessage()));
- } elseif ($exception instanceof ValidationFailedException) {
+ } elseif (true) {
$event->setResponse(JsonResponse::fromJsonString(
// https://github.com/symfony/serializer/blob/7.1/Normalizer/ConstraintViolationListNormalizer.php
$this->serializer->serialize(['errorCode' => 40000, 'errorInfo' => $exception->getViolations()], 'json')
|
runs-on (windows-latest) / phpunit-infection:
be/src/EventListener/PrettyJsonResponse.php#L16
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
// https://github.com/laravel/framework/issues/3929#issuecomment-935123918
$response = $event->getResponse();
- if ($response instanceof JsonResponse) {
+ if (true) {
$response->setEncodingOptions(JSON_PRETTY_PRINT);
}
}
}
|
runs-on (windows-latest) / phpunit-infection:
be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
$request = $event->getRequest();
$response = $event->getResponse();
- if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
+ if (!true || !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
return;
}
$json = $response->getContent();
|
runs-on (windows-latest) / phpunit-infection:
be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
{
$request = $event->getRequest();
$response = $event->getResponse();
- if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
+ if (!$response instanceof JsonResponse && !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
return;
}
$json = $response->getContent();
|
runs-on (windows-latest) / phpunit-infection:
be/src/EventListener/ShowReactJsonView.php#L25
Escaped Mutant for Mutator "MBString":
--- Original
+++ New
@@ @@
return;
}
$json = $response->getContent();
- $jsonLength = mb_strlen($json);
+ $jsonLength = strlen($json);
$assetsUrl = collect(['react-json-view', 'react', 'react-dom'])->mapWithKeys(fn($asset) => [$asset => $this->assets->getUrl("/assets/{$asset}.js")]);
$event->setResponse(new Response(<<<HTML
<html>
|
runs-on (windows-latest) / phpunit-infection:
be/src/Helper.php#L85
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
];
public static function abortAPI(int $errorCode) : never
{
- $statusCode = 0;
+ $statusCode = -1;
$errorInfo = null;
foreach (self::ERROR_STATUS_CODE_INFO as $infoStatusCode => $infoErrorInfo) {
if (\array_key_exists($errorCode, $infoErrorInfo)) {
|
runs-on (windows-latest) / phpunit-infection:
be/src/PostsQuery/ParamsValidator.php#L36
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function addDefaultParamsThenValidate(bool $shouldSkip40003) : void
{
- $this->params->addDefaultValueOnParams();
+
$this->params->addDefaultValueOnUniqueParams();
// sort here to prevent further sort while validating
$sortedPostTypes = collect($this->params->getUniqueParamValue('postTypes'))->sort()->values()->all();
|
runs-on (macos-latest) / phpunit-infection:
be/src/Entity/BlobResourceGetter.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
if ($value === null) {
return null;
}
- rewind($value);
+
return stream_get_contents($value);
}
}
|
runs-on (macos-latest) / phpunit-infection:
be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function __invoke(ExceptionEvent $event) : void
{
$exception = $event->getThrowable();
- if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
+ if (true && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
$event->setResponse(JsonResponse::fromJsonString($exception->getMessage()));
} elseif ($exception instanceof ValidationFailedException) {
$event->setResponse(JsonResponse::fromJsonString(
|
runs-on (macos-latest) / phpunit-infection:
be/src/EventListener/ExceptionToJsonResponse.php#L21
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function __invoke(ExceptionEvent $event) : void
{
$exception = $event->getThrowable();
- if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
+ if ($exception instanceof HttpException || collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
$event->setResponse(JsonResponse::fromJsonString($exception->getMessage()));
} elseif ($exception instanceof ValidationFailedException) {
$event->setResponse(JsonResponse::fromJsonString(
|
runs-on (macos-latest) / phpunit-infection:
be/src/EventListener/ExceptionToJsonResponse.php#L26
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$exception = $event->getThrowable();
if ($exception instanceof HttpException && collect(Helper::ERROR_STATUS_CODE_INFO)->flatMap(static fn(array $codes) => array_keys($codes))->contains($exception->getCode())) {
$event->setResponse(JsonResponse::fromJsonString($exception->getMessage()));
- } elseif ($exception instanceof ValidationFailedException) {
+ } elseif (true) {
$event->setResponse(JsonResponse::fromJsonString(
// https://github.com/symfony/serializer/blob/7.1/Normalizer/ConstraintViolationListNormalizer.php
$this->serializer->serialize(['errorCode' => 40000, 'errorInfo' => $exception->getViolations()], 'json')
|
runs-on (macos-latest) / phpunit-infection:
be/src/EventListener/PrettyJsonResponse.php#L16
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
// https://github.com/laravel/framework/issues/3929#issuecomment-935123918
$response = $event->getResponse();
- if ($response instanceof JsonResponse) {
+ if (true) {
$response->setEncodingOptions(JSON_PRETTY_PRINT);
}
}
}
|
runs-on (macos-latest) / phpunit-infection:
be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
$request = $event->getRequest();
$response = $event->getResponse();
- if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
+ if (!true || !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
return;
}
$json = $response->getContent();
|
runs-on (macos-latest) / phpunit-infection:
be/src/EventListener/ShowReactJsonView.php#L20
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
{
$request = $event->getRequest();
$response = $event->getResponse();
- if (!$response instanceof JsonResponse || !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
+ if (!$response instanceof JsonResponse && !in_array('text/html', $request->getAcceptableContentTypes(), true)) {
return;
}
$json = $response->getContent();
|
runs-on (macos-latest) / phpunit-infection:
be/src/EventListener/ShowReactJsonView.php#L25
Escaped Mutant for Mutator "MBString":
--- Original
+++ New
@@ @@
return;
}
$json = $response->getContent();
- $jsonLength = mb_strlen($json);
+ $jsonLength = strlen($json);
$assetsUrl = collect(['react-json-view', 'react', 'react-dom'])->mapWithKeys(fn($asset) => [$asset => $this->assets->getUrl("/assets/{$asset}.js")]);
$event->setResponse(new Response(<<<HTML
<html>
|
runs-on (macos-latest) / phpunit-infection:
be/src/Helper.php#L85
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
];
public static function abortAPI(int $errorCode) : never
{
- $statusCode = 0;
+ $statusCode = -1;
$errorInfo = null;
foreach (self::ERROR_STATUS_CODE_INFO as $infoStatusCode => $infoErrorInfo) {
if (\array_key_exists($errorCode, $infoErrorInfo)) {
|
runs-on (macos-latest) / phpunit-infection:
be/src/PostsQuery/ParamsValidator.php#L36
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function addDefaultParamsThenValidate(bool $shouldSkip40003) : void
{
- $this->params->addDefaultValueOnParams();
+
$this->params->addDefaultValueOnUniqueParams();
// sort here to prevent further sort while validating
$sortedPostTypes = collect($this->params->getUniqueParamValue('postTypes'))->sort()->values()->all();
|
runs-on (macos-latest) / php-cs-fixer:
src/PostsQuery/IndexQuery.php#L1
IndexQuery.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (macos-latest) / php-cs-fixer:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (macos-latest) / php-cs-fixer:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.braces_position: Found violation(s) of type: braces_position
|
runs-on (macos-latest) / php-cs-fixer:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.statement_indentation: Found violation(s) of type: statement_indentation
|
runs-on (macos-latest) / php-cs-fixer:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.single_line_empty_body: Found violation(s) of type: single_line_empty_body
|
runs-on (macos-latest) / phpmd:
src/Controller/PostsController.php#L31
PostsController.php: The class PostsController has a coupling between objects value of 25. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
|
runs-on (macos-latest) / phpmd:
src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
|
runs-on (macos-latest) / phpmd:
src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has an NPath complexity of 200. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
|
runs-on (macos-latest) / phpmd:
src/PostsQuery/PostsTree.php#L20
PostsTree.php: The class PostsTree has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
|
runs-on (macos-latest) / phpmd:
src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
|
runs-on (macos-latest) / phpmd:
src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has an NPath complexity of 384. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
|
runs-on (macos-latest) / phpmd:
src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has 111 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
|
runs-on (macos-latest) / phpmd:
tests/PostsQuery/BaseQueryTest.php#L53
BaseQueryTest.php: The method provideReOrderNestedPostsData() has 168 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
|
runs-on (macos-latest) / pint:
src/Controller/UsersController.php#L1
UsersController.php: PHP-CS-Fixer.braces_position: Found violation(s) of type: braces_position
|
runs-on (macos-latest) / pint:
src/Controller/UsersController.php#L1
UsersController.php: PHP-CS-Fixer.no_unused_imports: Found violation(s) of type: no_unused_imports
|
runs-on (macos-latest) / pint:
src/Controller/UsersController.php#L1
UsersController.php: PHP-CS-Fixer.single_line_empty_body: Found violation(s) of type: single_line_empty_body
|
runs-on (macos-latest) / pint:
src/PostsQuery/IndexQuery.php#L1
IndexQuery.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (macos-latest) / pint:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.trailing_comma_in_multiline: Found violation(s) of type: trailing_comma_in_multiline
|
runs-on (macos-latest) / pint:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.braces_position: Found violation(s) of type: braces_position
|
runs-on (macos-latest) / pint:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.statement_indentation: Found violation(s) of type: statement_indentation
|
runs-on (macos-latest) / pint:
src/PostsQuery/PostsTree.php#L1
PostsTree.php: PHP-CS-Fixer.single_line_empty_body: Found violation(s) of type: single_line_empty_body
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
coverage-macos-latest
|
7.01 KB |
|
coverage-ubuntu-latest
|
7.01 KB |
|
coverage-windows-latest
|
6.96 KB |
|