Skip to content

Add POC elements

Add POC elements #10

Triggered via push January 26, 2024 10:17
Status Failure
Total duration 1m 16s
Artifacts 1
Matrix: Static Analysis with PHPStan
Fit to window
Zoom out
Zoom in

Annotations

16 errors, 20 warnings, and 15 notices
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/Serializer/AssetNormalizer.php#L17
Property Pimcore\Bundle\StudioApiBundle\Serializer\AssetNormalizer::$requestStack is never read, only written.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/State/ResetPasswordProcessor.php#L89
Instantiated class Pimcore\Bundle\AdminBundle\Event\Login\LostPasswordEvent not found.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/State/ResetPasswordProcessor.php#L90
Access to constant LOGIN_LOSTPASSWORD on an unknown class Pimcore\Bundle\AdminBundle\Event\AdminEvents.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/State/ResetPasswordProcessor.php#L93
Call to method getSendMail() on an unknown class Pimcore\Bundle\AdminBundle\Event\Login\LostPasswordEvent.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/State/ResetPasswordProcessor.php#L101
Call to method hasResponse() on an unknown class Pimcore\Bundle\AdminBundle\Event\Login\LostPasswordEvent.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true): src/State/ResetPasswordProcessor.php#L102
Call to method getResponse() on an unknown class Pimcore\Bundle\AdminBundle\Event\Login\LostPasswordEvent.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true)
Process completed with exit code 1.
Static Analysis with PHPStan (8.1, lowest, false): src/Serializer/AssetNormalizer.php#L17
Property Pimcore\Bundle\StudioApiBundle\Serializer\AssetNormalizer::$requestStack is never read, only written.
Static Analysis with PHPStan (8.1, lowest, false): src/State/ResetPasswordProcessor.php#L89
Instantiated class Pimcore\Bundle\AdminBundle\Event\Login\LostPasswordEvent not found.
Static Analysis with PHPStan (8.1, lowest, false): src/State/ResetPasswordProcessor.php#L90
Access to constant LOGIN_LOSTPASSWORD on an unknown class Pimcore\Bundle\AdminBundle\Event\AdminEvents.
Static Analysis with PHPStan (8.1, lowest, false): src/State/ResetPasswordProcessor.php#L93
Call to method getSendMail() on an unknown class Pimcore\Bundle\AdminBundle\Event\Login\LostPasswordEvent.
Static Analysis with PHPStan (8.1, lowest, false): src/State/ResetPasswordProcessor.php#L101
Call to method hasResponse() on an unknown class Pimcore\Bundle\AdminBundle\Event\Login\LostPasswordEvent.
Static Analysis with PHPStan (8.1, lowest, false): src/State/ResetPasswordProcessor.php#L102
Call to method getResponse() on an unknown class Pimcore\Bundle\AdminBundle\Event\Login\LostPasswordEvent.
Static Analysis with PHPStan (8.1, lowest, false)
Process completed with exit code 1.
Static Analysis with PHPStan (8.2, highest, false)
The operation was canceled.
Missing strict types declaration: src/Serializer/AssetNormalizer.php#L1
Strict types declaration is missing
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, shimataro/ssh-key-action@v2, actions/cache@v3, actions/upload-artifact@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Static Analysis with PHPStan (8.1, lowest, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, shimataro/ssh-key-action@v2, actions/cache@v3, actions/upload-artifact@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Static Analysis with PHPStan (8.1, lowest, false)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Static Analysis with PHPStan (8.2, highest, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, shimataro/ssh-key-action@v2, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Static Analysis with PHPStan (8.2, highest, false)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Line is longer than allowed by code style: src/State/ResetPasswordProcessor.php#L96
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/DependencyInjection/PimcoreStudioApiExtension.php#L55
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/State/ResetPasswordProcessor.php#L38
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/State/ResetPasswordProcessor.php#L96
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/State/ResetPasswordProcessor.php#L38
Line is longer than allowed by code style (\> 120 columns)
Line is longer than allowed by code style: src/DependencyInjection/PimcoreStudioApiExtension.php#L55
Line is longer than allowed by code style (\> 120 columns)
Null reference: src/State/ResetPasswordProcessor.php#L49
\[EA\] Null pointer exception may occur here.
One-time use variables: src/State/AssetProvider.php#L28
\[EA\] Variable $test is redundant.
Undefined class: src/State/ResetPasswordProcessor.php#L89
Undefined class 'LostPasswordEvent'
Undefined class: src/State/ResetPasswordProcessor.php#L90
Undefined class 'AdminEvents'
Undefined class: src/State/ResetPasswordProcessor.php#L12
Undefined class 'AdminEvents'
Undefined class: src/State/ResetPasswordProcessor.php#L13
Undefined class 'LostPasswordEvent'
Undefined namespace: src/State/ResetPasswordProcessor.php#L13
Undefined namespace 'Login'
Undefined namespace: src/State/ResetPasswordProcessor.php#L12
Undefined namespace 'Event'
Yoda/regular conditions style usage: src/State/ResetPasswordProcessor.php#L51
\[EA\] Regular conditions style should be used instead.
Efferent coupling between objects: src/State/ResetPasswordProcessor.php#L26
\[EA\] High efferent coupling (20).
Non-optimal if conditions: src/State/ResetPasswordProcessor.php#L38
\[EA\] This condition execution costs less than the previous one.
Property can be 'readonly': src/State/ResetPasswordProcessor.php#L29
Property can be 'readonly'
Property can be 'readonly': src/State/ResetPasswordProcessor.php#L32
Property can be 'readonly'
Property can be 'readonly': src/State/ResetPasswordProcessor.php#L31
Property can be 'readonly'
Property can be 'readonly': src/State/ResetPasswordProcessor.php#L30
Property can be 'readonly'
Property can be 'readonly': src/Serializer/AssetNormalizer.php#L17
Property can be 'readonly'
Redundant optional argument: src/State/ResetPasswordProcessor.php#L51
Argument matches the parameter's default value
Traditional syntax array literal detected: src/Serializer/AssetNormalizer.php#L21
Traditional syntax array literal used
Unnecessary local variable: src/State/AssetProvider.php#L28
Unnecessary local variable
Unused import: src/State/AssetProvider.php#L10
Import 'Pimcore\\Model\\Element\\Tag' is never used
General exception is thrown: src/State/ResetPasswordProcessor.php#L73
\[EA\] \\Exception is too general. Consider throwing one of SPL exceptions instead.
Unnecessary double quotes: src/DependencyInjection/PimcoreStudioApiExtension.php#L62
\[EA\] Safely use single quotes instead.
Unnecessary double quotes: src/DependencyInjection/PimcoreStudioApiExtension.php#L61
\[EA\] Safely use single quotes instead.

Artifacts

Produced during runtime
Name Size
phpstan-baseline.neon Expired
1.22 KB