Skip to content

+ Tests\Feature\App\Eloquent\Model\Post\PostFactoryTest with multip… #173

+ Tests\Feature\App\Eloquent\Model\Post\PostFactoryTest with multip…

+ Tests\Feature\App\Eloquent\Model\Post\PostFactoryTest with multip… #173

Triggered via push September 26, 2024 14:00
Status Failure
Total duration 4m 46s
Artifacts 3

be.yml

on: push
Matrix: runs-on
Fit to window
Zoom out
Zoom in

Annotations

60 errors and 67 warnings
runs-on (ubuntu-latest) / phpmd: tests/Feature/App/Http/PostsQuery/BaseQueryTest.php#L50
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) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L37
BatchTableSQLGenerator.php: property.notFound: Access to an undefined property App\Eloquent\Model\Forum::$fid.
runs-on (ubuntu-latest) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L38
BatchTableSQLGenerator.php: argument.type: Parameter #3 $subject of function str_replace expects array|string, mixed given.
runs-on (ubuntu-latest) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L45
BatchTableSQLGenerator.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Connection::statement().
runs-on (ubuntu-latest) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L46
BatchTableSQLGenerator.php: nullCoalesce.expr: Expression on left side of ?? is not nullable.
runs-on (ubuntu-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L25
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\Post\Reply>::whereBetween().
runs-on (ubuntu-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L31
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\BilibiliVote>::groupBy().
runs-on (ubuntu-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L31
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\BilibiliVote>::selectRaw().
runs-on (ubuntu-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L31
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\BilibiliVote>::whereIn().
runs-on (ubuntu-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L42
GenerateBilibiliVote.php: nullCoalesce.expr: Expression on left side of ?? is not nullable.
runs-on (ubuntu-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L63
GenerateBilibiliVote.php: method.notFound: Call to an undefined method App\Eloquent\Model\BilibiliVote::chunkInsertOnDuplicate().
runs-on (ubuntu-latest) / psalm
Process completed with exit code 2.
runs-on (ubuntu-latest) / phan: app/Eloquent/Model/Post/Post.php#L33
Post.php: PhanTypeMismatchReturnReal: Returning self::MODEL_CLASS_TO_TABLE_NAME_SUFFIX[$this::class] of type null but getTableNameSuffix() is declared to return string
runs-on (ubuntu-latest) / phan: app/Exceptions/Handler.php#L16
Handler.php: PhanUndeclaredMethod: Call to undeclared method \Illuminate\Container\Container::json
runs-on (ubuntu-latest) / phan: app/Helper.php#L94
Helper.php: PhanUndeclaredMethod: Call to undeclared method \Illuminate\Container\Container::json
runs-on (ubuntu-latest) / phan: app/Helper.php#L100
Helper.php: PhanUndeclaredMethod: Call to undeclared method \Illuminate\Container\Container::withHeaders
runs-on (ubuntu-latest) / phan: app/Http/Controllers/PostsQuery.php#L58
PostsQuery.php: PhanParamTooFew: Call with 0 arg(s) to \App\Http\PostsQuery\IndexQuery::__construct(\Barryvdh\Debugbar\LaravelDebugbar $debugbar, \App\Http\PostsQuery\CursorCodec $cursorCodec, int $perPageItems = 50) which requires 2 arg(s) defined at app/Http/PostsQuery/BaseQuery.php:36
runs-on (ubuntu-latest) / phan: app/Http/PostsQuery/BaseQuery.php#L274
BaseQuery.php: PhanNonClassMethodCall: Call to method values on non-class type string
runs-on (ubuntu-latest) / phan: app/Http/PostsQuery/BaseQuery.php#L279
BaseQuery.php: PhanNonClassMethodCall: Call to method filter on non-class type string
runs-on (ubuntu-latest) / phan: app/Http/PostsQuery/BaseQuery.php#L288
BaseQuery.php: PhanNonClassMethodCall: Call to method first on non-class type string
runs-on (ubuntu-latest) / phan: app/Http/PostsQuery/BaseQuery.php#L321
BaseQuery.php: PhanNonClassMethodCall: Call to method map on non-class type string
runs-on (ubuntu-latest) / phan: app/Http/PostsQuery/BaseQuery.php#L327
BaseQuery.php: PhanNonClassMethodCall: Call to method sortBy on non-class type string
runs-on (windows-latest) / phpmd: be/tests/Feature/App/Http/PostsQuery/BaseQueryTest.php#L50
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 (windows-latest) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L37
BatchTableSQLGenerator.php: property.notFound: Access to an undefined property App\Eloquent\Model\Forum::$fid.
runs-on (windows-latest) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L38
BatchTableSQLGenerator.php: argument.type: Parameter #3 $subject of function str_replace expects array|string, mixed given.
runs-on (windows-latest) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L45
BatchTableSQLGenerator.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Connection::statement().
runs-on (windows-latest) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L46
BatchTableSQLGenerator.php: nullCoalesce.expr: Expression on left side of ?? is not nullable.
runs-on (windows-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L25
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\Post\Reply>::whereBetween().
runs-on (windows-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L31
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\BilibiliVote>::groupBy().
runs-on (windows-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L31
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\BilibiliVote>::selectRaw().
runs-on (windows-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L31
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\BilibiliVote>::whereIn().
runs-on (windows-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L42
GenerateBilibiliVote.php: nullCoalesce.expr: Expression on left side of ?? is not nullable.
runs-on (windows-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L63
GenerateBilibiliVote.php: method.notFound: Call to an undefined method App\Eloquent\Model\BilibiliVote::chunkInsertOnDuplicate().
runs-on (windows-latest) / psalm
Process completed with exit code 127.
runs-on (macos-latest) / phpmd: tests/Feature/App/Http/PostsQuery/BaseQueryTest.php#L50
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) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L37
BatchTableSQLGenerator.php: property.notFound: Access to an undefined property App\Eloquent\Model\Forum::$fid.
runs-on (macos-latest) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L38
BatchTableSQLGenerator.php: argument.type: Parameter #3 $subject of function str_replace expects array|string, mixed given.
runs-on (macos-latest) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L45
BatchTableSQLGenerator.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Connection::statement().
runs-on (macos-latest) / phpstan: app/Console/Commands/BatchTableSQLGenerator.php#L46
BatchTableSQLGenerator.php: nullCoalesce.expr: Expression on left side of ?? is not nullable.
runs-on (macos-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L25
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\Post\Reply>::whereBetween().
runs-on (macos-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L31
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\BilibiliVote>::groupBy().
runs-on (macos-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L31
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\BilibiliVote>::selectRaw().
runs-on (macos-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L31
GenerateBilibiliVote.php: staticMethod.dynamicCall: Dynamic call to static method Illuminate\Database\Eloquent\Builder<App\Eloquent\Model\BilibiliVote>::whereIn().
runs-on (macos-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L42
GenerateBilibiliVote.php: nullCoalesce.expr: Expression on left side of ?? is not nullable.
runs-on (macos-latest) / phpstan: app/Console/Commands/GenerateBilibiliVote.php#L63
GenerateBilibiliVote.php: method.notFound: Call to an undefined method App\Eloquent\Model\BilibiliVote::chunkInsertOnDuplicate().
runs-on (macos-latest) / phan
Process completed with exit code 1.
runs-on (windows-latest) / phan: app\Eloquent\Model\Post\Post.php#L33
Post.php: PhanTypeMismatchReturnReal: Returning self::MODEL_CLASS_TO_TABLE_NAME_SUFFIX[$this::class] of type null but getTableNameSuffix() is declared to return string
runs-on (windows-latest) / phan: app\Exceptions\Handler.php#L16
Handler.php: PhanUndeclaredMethod: Call to undeclared method \Illuminate\Container\Container::json
runs-on (windows-latest) / phan: app\Helper.php#L94
Helper.php: PhanUndeclaredMethod: Call to undeclared method \Illuminate\Container\Container::json
runs-on (windows-latest) / phan: app\Helper.php#L100
Helper.php: PhanUndeclaredMethod: Call to undeclared method \Illuminate\Container\Container::withHeaders
runs-on (windows-latest) / phan: app\Http\Controllers\PostsQuery.php#L58
PostsQuery.php: PhanParamTooFew: Call with 0 arg(s) to \App\Http\PostsQuery\IndexQuery::__construct(\Barryvdh\Debugbar\LaravelDebugbar $debugbar, \App\Http\PostsQuery\CursorCodec $cursorCodec, int $perPageItems = 50) which requires 2 arg(s) defined at app\Http\PostsQuery\BaseQuery.php:36
runs-on (windows-latest) / phan: app\Http\PostsQuery\BaseQuery.php#L274
BaseQuery.php: PhanNonClassMethodCall: Call to method values on non-class type string
runs-on (windows-latest) / phan: app\Http\PostsQuery\BaseQuery.php#L279
BaseQuery.php: PhanNonClassMethodCall: Call to method filter on non-class type string
runs-on (windows-latest) / phan: app\Http\PostsQuery\BaseQuery.php#L288
BaseQuery.php: PhanNonClassMethodCall: Call to method first on non-class type string
runs-on (windows-latest) / phan: app\Http\PostsQuery\BaseQuery.php#L321
BaseQuery.php: PhanNonClassMethodCall: Call to method map on non-class type string
runs-on (windows-latest) / phan: app\Http\PostsQuery\BaseQuery.php#L327
BaseQuery.php: PhanNonClassMethodCall: Call to method sortBy on non-class type string
runs-on (macos-latest) / psalm
Process completed with exit code 2.
runs-on (ubuntu-latest) / phpmd: app/Http/Controllers/PostsQuery.php#L18
PostsQuery.php: The class PostsQuery has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
runs-on (ubuntu-latest) / phpmd: app/Http/PostsQuery/IndexQuery.php#L17
IndexQuery.php: The method query() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
runs-on (ubuntu-latest) / phpmd: app/Http/PostsQuery/IndexQuery.php#L17
IndexQuery.php: The method query() has an NPath complexity of 400. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
runs-on (ubuntu-latest) / phpmd: app/Http/PostsQuery/SearchQuery.php#L53
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: tests/Feature/App/Http/PostsQuery/BaseQueryTest.php#L55
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) / phan: app/Console/Commands/BatchTableSQLGenerator.php#L9
BatchTableSQLGenerator.php: PhanUnreferencedClass: Possibly zero references to class \App\Console\Commands\BatchTableSQLGenerator
runs-on (ubuntu-latest) / phan: app/Console/Commands/BatchTableSQLGenerator.php#L20
BatchTableSQLGenerator.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Console\Commands\BatchTableSQLGenerator::handle()
runs-on (ubuntu-latest) / phan: app/Console/Commands/BatchTableSQLGenerator.php#L46
BatchTableSQLGenerator.php: PhanCoalescingNeverNull: Using non-null (($outputSQL . ' 影响行数:') . $affectedRows) of type string as the left hand side of a null coalescing (??) operation. The right hand side may be unnecessary.
runs-on (ubuntu-latest) / phan: app/Console/Commands/BatchTableSQLGenerator.php#L46
BatchTableSQLGenerator.php: PhanPartialTypeMismatchArgument: Argument 1 ($string) is ((($outputSQL . ' 影响行数:') . $affectedRows) ?? 0) of type 0|string but \App\Console\Commands\BatchTableSQLGenerator::info() takes string (0 is incompatible) defined at vendor/laravel/framework/src/Illuminate/Console/Concerns/InteractsWithIO.php:289
runs-on (ubuntu-latest) / phan: app/Console/Commands/BatchTableSQLGenerator.php#L46
BatchTableSQLGenerator.php: PhanTypeSuspiciousStringExpression: Suspicious type bool of a variable or expression $affectedRows used to build a string. (Expected type to be able to cast to a string)
runs-on (ubuntu-latest) / phan: app/Console/Commands/GenerateBilibiliVote.php#L11
GenerateBilibiliVote.php: PhanUnreferencedClass: Possibly zero references to class \App\Console\Commands\GenerateBilibiliVote
runs-on (ubuntu-latest) / phan: app/Console/Commands/GenerateBilibiliVote.php#L17
GenerateBilibiliVote.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Console\Commands\GenerateBilibiliVote::handle()
runs-on (ubuntu-latest) / phan: app/Console/Commands/GenerateBilibiliVote.php#L28
GenerateBilibiliVote.php: PhanUnreferencedClosure: Possibly zero references to Closure(\Illuminate\Support\Collection $voteReplies)
runs-on (ubuntu-latest) / phan: app/Console/Commands/GenerateBilibiliVote.php#L42
GenerateBilibiliVote.php: PhanCoalescingNeverNullInLoop: Using non-null \Safe\json_encode($voteReply['content']) of type string as the left hand side of a null coalescing (??) operation. The right hand side may be unnecessary. (in a loop body - this is likely a false positive)
runs-on (ubuntu-latest) / phan: app/Console/Kernel.php#L8
Kernel.php: PhanUnreferencedClass: Possibly zero references to class \App\Console\Kernel
runs-on (windows-latest) / phpmd: be/app/Http/Controllers/PostsQuery.php#L18
PostsQuery.php: The class PostsQuery has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
runs-on (windows-latest) / phpmd: be/app/Http/PostsQuery/IndexQuery.php#L17
IndexQuery.php: The method query() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
runs-on (windows-latest) / phpmd: be/app/Http/PostsQuery/IndexQuery.php#L17
IndexQuery.php: The method query() has an NPath complexity of 400. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
runs-on (windows-latest) / phpmd: be/app/Http/PostsQuery/SearchQuery.php#L53
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/tests/Feature/App/Http/PostsQuery/BaseQueryTest.php#L55
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) / phpmd: app/Http/Controllers/PostsQuery.php#L18
PostsQuery.php: The class PostsQuery has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
runs-on (macos-latest) / phpmd: app/Http/PostsQuery/IndexQuery.php#L17
IndexQuery.php: The method query() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
runs-on (macos-latest) / phpmd: app/Http/PostsQuery/IndexQuery.php#L17
IndexQuery.php: The method query() has an NPath complexity of 400. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
runs-on (macos-latest) / phpmd: app/Http/PostsQuery/SearchQuery.php#L53
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: tests/Feature/App/Http/PostsQuery/BaseQueryTest.php#L55
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 (windows-latest) / phan: app\Console\Commands\BatchTableSQLGenerator.php#L9
BatchTableSQLGenerator.php: PhanUnreferencedClass: Possibly zero references to class \App\Console\Commands\BatchTableSQLGenerator
runs-on (windows-latest) / phan: app\Console\Commands\BatchTableSQLGenerator.php#L20
BatchTableSQLGenerator.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Console\Commands\BatchTableSQLGenerator::handle()
runs-on (windows-latest) / phan: app\Console\Commands\BatchTableSQLGenerator.php#L46
BatchTableSQLGenerator.php: PhanCoalescingNeverNull: Using non-null (($outputSQL . ' 影响行数:') . $affectedRows) of type string as the left hand side of a null coalescing (??) operation. The right hand side may be unnecessary.
runs-on (windows-latest) / phan: app\Console\Commands\BatchTableSQLGenerator.php#L46
BatchTableSQLGenerator.php: PhanPartialTypeMismatchArgument: Argument 1 ($string) is ((($outputSQL . ' 影响行数:') . $affectedRows) ?? 0) of type 0|string but \App\Console\Commands\BatchTableSQLGenerator::info() takes string (0 is incompatible) defined at vendor\laravel\framework\src\Illuminate\Console\Concerns\InteractsWithIO.php:289
runs-on (windows-latest) / phan: app\Console\Commands\BatchTableSQLGenerator.php#L46
BatchTableSQLGenerator.php: PhanTypeSuspiciousStringExpression: Suspicious type bool of a variable or expression $affectedRows used to build a string. (Expected type to be able to cast to a string)
runs-on (windows-latest) / phan: app\Console\Commands\GenerateBilibiliVote.php#L11
GenerateBilibiliVote.php: PhanUnreferencedClass: Possibly zero references to class \App\Console\Commands\GenerateBilibiliVote
runs-on (windows-latest) / phan: app\Console\Commands\GenerateBilibiliVote.php#L17
GenerateBilibiliVote.php: PhanUnreferencedPublicMethod: Possibly zero references to public method \App\Console\Commands\GenerateBilibiliVote::handle()
runs-on (windows-latest) / phan: app\Console\Commands\GenerateBilibiliVote.php#L28
GenerateBilibiliVote.php: PhanUnreferencedClosure: Possibly zero references to Closure(\Illuminate\Support\Collection $voteReplies)
runs-on (windows-latest) / phan: app\Console\Commands\GenerateBilibiliVote.php#L42
GenerateBilibiliVote.php: PhanCoalescingNeverNullInLoop: Using non-null \Safe\json_encode($voteReply['content']) of type string as the left hand side of a null coalescing (??) operation. The right hand side may be unnecessary. (in a loop body - this is likely a false positive)
runs-on (windows-latest) / phan: app\Console\Kernel.php#L8
Kernel.php: PhanUnreferencedClass: Possibly zero references to class \App\Console\Kernel
runs-on (ubuntu-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L31
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ use ModelHasPublicField; protected const array TIMESTAMP_FIELDS = ['createdAt', 'updatedAt', 'lastSeenAt']; private const array MODEL_CLASS_TO_TABLE_NAME_SUFFIX = [Thread::class => 'thread', Reply::class => 'reply', ReplyContent::class => 'reply_content', SubReply::class => 'subReply', SubReplyContent::class => 'subReply_content']; - protected function getTableNameSuffix() : string + private function getTableNameSuffix() : string { return self::MODEL_CLASS_TO_TABLE_NAME_SUFFIX[$this::class]; }
runs-on (ubuntu-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L38
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ } protected function getTableNameWithFid(int $fid) : string { - return "tbmc_f{$fid}_" . $this->getTableNameSuffix(); + return $this->getTableNameSuffix() . "tbmc_f{$fid}_"; } public function scopeSelectCurrentAndParentPostID(Builder $query) : Builder {
runs-on (ubuntu-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L38
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } protected function getTableNameWithFid(int $fid) : string { - return "tbmc_f{$fid}_" . $this->getTableNameSuffix(); + return $this->getTableNameSuffix(); } public function scopeSelectCurrentAndParentPostID(Builder $query) : Builder {
runs-on (ubuntu-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L38
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } protected function getTableNameWithFid(int $fid) : string { - return "tbmc_f{$fid}_" . $this->getTableNameSuffix(); + return "tbmc_f{$fid}_"; } public function scopeSelectCurrentAndParentPostID(Builder $query) : Builder {
runs-on (ubuntu-latest) / phpunit-infection: be/app/Eloquent/ModelWithTableNameSplitByFid.php#L14
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function setFid(int $fid) : static { $this->fid = $fid; - $this->setTable($this->getTableNameWithFid($fid)); + return $this; } protected abstract function getTableNameWithFid(int $fid) : string;
runs-on (ubuntu-latest) / phpunit-infection: be/app/Exceptions/Handler.php#L19
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ */ protected function convertValidationExceptionToResponse(ValidationException $e, $request) : Response { - return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 400); + return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 399); } }
runs-on (ubuntu-latest) / phpunit-infection: be/app/Exceptions/Handler.php#L19
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ */ protected function convertValidationExceptionToResponse(ValidationException $e, $request) : Response { - return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 400); + return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 401); } }
runs-on (ubuntu-latest) / phpunit-infection: be/app/Helper.php#L83
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/app/Http/Middleware/DumpJsonResponse.php#L15
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ public function handle(Request $request, \Closure $next) : Response { $response = $next($request); - if ($response instanceof JsonResponse) { + if (true) { if ($request->accepts('text/html')) { $json = $response->content(); $jsonLength = mb_strlen($json);
runs-on (ubuntu-latest) / phpunit-infection: be/app/Http/Middleware/DumpJsonResponse.php#L18
Escaped Mutant for Mutator "MBString": --- Original +++ New @@ @@ if ($response instanceof JsonResponse) { if ($request->accepts('text/html')) { $json = $response->content(); - $jsonLength = mb_strlen($json); + $jsonLength = strlen($json); $assetsUrl = collect(['react-json-view', 'react', 'react-dom'])->mapWithKeys(fn($asset) => [$asset => url("/assets/{$asset}.js")]); return response(<<<HTML <h4>{$jsonLength} bytes</h4>
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/app/Eloquent/ModelWithTableNameSplitByFid.php#L14
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function setFid(int $fid) : static { $this->fid = $fid; - $this->setTable($this->getTableNameWithFid($fid)); + return $this; } protected abstract function getTableNameWithFid(int $fid) : string;
runs-on (windows-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L31
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ use ModelHasPublicField; protected const array TIMESTAMP_FIELDS = ['createdAt', 'updatedAt', 'lastSeenAt']; private const array MODEL_CLASS_TO_TABLE_NAME_SUFFIX = [Thread::class => 'thread', Reply::class => 'reply', ReplyContent::class => 'reply_content', SubReply::class => 'subReply', SubReplyContent::class => 'subReply_content']; - protected function getTableNameSuffix() : string + private function getTableNameSuffix() : string { return self::MODEL_CLASS_TO_TABLE_NAME_SUFFIX[$this::class]; }
runs-on (windows-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L38
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ } protected function getTableNameWithFid(int $fid) : string { - return "tbmc_f{$fid}_" . $this->getTableNameSuffix(); + return $this->getTableNameSuffix() . "tbmc_f{$fid}_"; } public function scopeSelectCurrentAndParentPostID(Builder $query) : Builder {
runs-on (windows-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L38
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } protected function getTableNameWithFid(int $fid) : string { - return "tbmc_f{$fid}_" . $this->getTableNameSuffix(); + return $this->getTableNameSuffix(); } public function scopeSelectCurrentAndParentPostID(Builder $query) : Builder {
runs-on (windows-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L38
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } protected function getTableNameWithFid(int $fid) : string { - return "tbmc_f{$fid}_" . $this->getTableNameSuffix(); + return "tbmc_f{$fid}_"; } public function scopeSelectCurrentAndParentPostID(Builder $query) : Builder {
runs-on (windows-latest) / phpunit-infection: be/app/Exceptions/Handler.php#L19
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ */ protected function convertValidationExceptionToResponse(ValidationException $e, $request) : Response { - return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 400); + return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 399); } }
runs-on (windows-latest) / phpunit-infection: be/app/Exceptions/Handler.php#L19
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ */ protected function convertValidationExceptionToResponse(ValidationException $e, $request) : Response { - return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 400); + return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 401); } }
runs-on (windows-latest) / phpunit-infection: be/app/Helper.php#L83
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/app/Http/Middleware/DumpJsonResponse.php#L15
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ public function handle(Request $request, \Closure $next) : Response { $response = $next($request); - if ($response instanceof JsonResponse) { + if (true) { if ($request->accepts('text/html')) { $json = $response->content(); $jsonLength = mb_strlen($json);
runs-on (windows-latest) / phpunit-infection: be/app/Http/Middleware/DumpJsonResponse.php#L18
Escaped Mutant for Mutator "MBString": --- Original +++ New @@ @@ if ($response instanceof JsonResponse) { if ($request->accepts('text/html')) { $json = $response->content(); - $jsonLength = mb_strlen($json); + $jsonLength = strlen($json); $assetsUrl = collect(['react-json-view', 'react', 'react-dom'])->mapWithKeys(fn($asset) => [$asset => url("/assets/{$asset}.js")]); return response(<<<HTML <h4>{$jsonLength} bytes</h4>
runs-on (macos-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L31
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ use ModelHasPublicField; protected const array TIMESTAMP_FIELDS = ['createdAt', 'updatedAt', 'lastSeenAt']; private const array MODEL_CLASS_TO_TABLE_NAME_SUFFIX = [Thread::class => 'thread', Reply::class => 'reply', ReplyContent::class => 'reply_content', SubReply::class => 'subReply', SubReplyContent::class => 'subReply_content']; - protected function getTableNameSuffix() : string + private function getTableNameSuffix() : string { return self::MODEL_CLASS_TO_TABLE_NAME_SUFFIX[$this::class]; }
runs-on (macos-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L38
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ } protected function getTableNameWithFid(int $fid) : string { - return "tbmc_f{$fid}_" . $this->getTableNameSuffix(); + return $this->getTableNameSuffix() . "tbmc_f{$fid}_"; } public function scopeSelectCurrentAndParentPostID(Builder $query) : Builder {
runs-on (macos-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L38
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } protected function getTableNameWithFid(int $fid) : string { - return "tbmc_f{$fid}_" . $this->getTableNameSuffix(); + return $this->getTableNameSuffix(); } public function scopeSelectCurrentAndParentPostID(Builder $query) : Builder {
runs-on (macos-latest) / phpunit-infection: be/app/Eloquent/Model/Post/Post.php#L38
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } protected function getTableNameWithFid(int $fid) : string { - return "tbmc_f{$fid}_" . $this->getTableNameSuffix(); + return "tbmc_f{$fid}_"; } public function scopeSelectCurrentAndParentPostID(Builder $query) : Builder {
runs-on (macos-latest) / phpunit-infection: be/app/Eloquent/ModelWithTableNameSplitByFid.php#L14
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function setFid(int $fid) : static { $this->fid = $fid; - $this->setTable($this->getTableNameWithFid($fid)); + return $this; } protected abstract function getTableNameWithFid(int $fid) : string;
runs-on (macos-latest) / phpunit-infection: be/app/Exceptions/Handler.php#L19
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ */ protected function convertValidationExceptionToResponse(ValidationException $e, $request) : Response { - return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 400); + return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 399); } }
runs-on (macos-latest) / phpunit-infection: be/app/Exceptions/Handler.php#L19
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ */ protected function convertValidationExceptionToResponse(ValidationException $e, $request) : Response { - return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 400); + return $e->response ?? response()->json(['errorCode' => 40000, 'errorInfo' => $e->validator->getMessageBag()->getMessages()], 401); } }
runs-on (macos-latest) / phpunit-infection: be/app/Helper.php#L83
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/app/Http/Middleware/DumpJsonResponse.php#L15
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ public function handle(Request $request, \Closure $next) : Response { $response = $next($request); - if ($response instanceof JsonResponse) { + if (true) { if ($request->accepts('text/html')) { $json = $response->content(); $jsonLength = mb_strlen($json);
runs-on (macos-latest) / phpunit-infection: be/app/Http/Middleware/DumpJsonResponse.php#L18
Escaped Mutant for Mutator "MBString": --- Original +++ New @@ @@ if ($response instanceof JsonResponse) { if ($request->accepts('text/html')) { $json = $response->content(); - $jsonLength = mb_strlen($json); + $jsonLength = strlen($json); $assetsUrl = collect(['react-json-view', 'react', 'react-dom'])->mapWithKeys(fn($asset) => [$asset => url("/assets/{$asset}.js")]); return response(<<<HTML <h4>{$jsonLength} bytes</h4>

Artifacts

Produced during runtime
Name Size
coverage-macos-latest
5.65 KB
coverage-ubuntu-latest
5.65 KB
coverage-windows-latest
5.61 KB