Improved extensions #37
Open
Annotations
10 errors and 1 warning
|
Run code quality checks:
src/ModelBehaviorsExtension.php#L98
* [Line length] Line exceeds 80 characters; contains 88 characters
|
|
Run code quality checks:
src/ModelBehaviorsExtension.php#L95
* [Line length] Line exceeds 80 characters; contains 85 characters
|
|
Run code quality checks:
src/ModelBehaviorsExtension.php#L1
* [Having `classes` with more than 5 cyclomatic complexity is prohibited - Consider refactoring] 9 cyclomatic complexity
* [Function declaration] @@ -63,3 +63,3 @@
array_map(
- fn(MethodReflection $methodReflection) => $methodReflection->getName(),
+ fn (MethodReflection $methodReflection) => $methodReflection->getName(),
$this->getModelBehaviorMethods($classReflection)
@@ -120,3 +120,3 @@
array_map(
- fn(ArrayItem $item) => $item->value instanceof String_ ? $item->value->value : null,
+ fn (ArrayItem $item) => $item->value instanceof String_ ? $item->value->value : null,
$actsAs->items
@@ -150,3 +150,3 @@
),
- fn(ClassReflection $class) => $class->getName() === $behaviorName.'Behavior',
+ fn (ClassReflection $class) => $class->getName() === $behaviorName.'Behavior',
);
|
|
Run code quality checks:
src/ModelBehaviorsExtension.php#L151
* [Static closure] Closure not using "$this" should be declared static.
* [Line length] Line exceeds 80 characters; contains 93 characters
|
|
Run code quality checks:
src/ModelBehaviorsExtension.php#L121
* [Static closure] Closure not using "$this" should be declared static.
* [Line length] Line exceeds maximum limit of 100 characters; contains 108 characters
|
|
Run code quality checks:
src/ModelBehaviorsExtension.php#L64
* [Static closure] Closure not using "$this" should be declared static.
* [Line length] Line exceeds 80 characters; contains 91 characters
|
|
Run code quality checks:
src/ModelBehaviorsExtension.php#L134
* [Parameter type hint] Method \ARiddlestone\PHPStanCakePHP2\ModelBehaviorsExtension::getBehaviorMethods() has useless @param annotation for parameter $behaviorName.
|
|
Run code quality checks:
src/ModelBehaviorsExtension.php#L102
* [Parameter type hint] Method \ARiddlestone\PHPStanCakePHP2\ModelBehaviorsExtension::getModelBehaviorNames() has useless @param annotation for parameter $modelReflection.
|
|
Run code quality checks:
src/ModelBehaviorsExtension.php#L92
* [Parameter type hint] Method \ARiddlestone\PHPStanCakePHP2\ModelBehaviorsExtension::getModelBehaviorMethods() has useless @param annotation for parameter $modelReflection.
|
|
Run code quality checks:
src/ModelBehaviorsExtension.php#L110
* [Todo] Comment refers to a TODO task "merge parent class actsAs?"
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
Loading