for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Actions\Image;
use League\Flysystem\FilesystemInterface;
use Staticus\Middlewares\ActionListAbstract;
use Staticus\Resources\Image\ResourceImageDO;
use Staticus\Resources\Image\ResourceImageDOInterface;
class ActionList extends ActionListAbstract
{
public function __construct(
ResourceImageDOInterface $resourceDO
, FilesystemInterface $filesystem
)
parent::__construct($resourceDO, $filesystem);
}
protected function allowedProperties()
$allowed = parent::allowedProperties();
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
$a = "a"; $ab = "ab"; $abc = "abc";
will produce issues in the first and second line, while this second example
will produce no issues.
$allowed[] = ResourceImageDO::TOKEN_DIMENSION;
return $allowed;
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.