Passed
Branch master (fc4881)
by Eugene
02:31
created

ActionList::allowedProperties()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
rs 9.4285
c 1
b 0
f 1
ccs 0
cts 4
cp 0
crap 2
1
<?php
2
namespace App\Actions\Image;
3
4
use League\Flysystem\FilesystemInterface;
5
use Staticus\Middlewares\ActionListAbstract;
6
use Staticus\Resources\Image\ResourceImageDO;
7
use Staticus\Resources\Image\ResourceImageDOInterface;
8
9
class ActionList extends ActionListAbstract
10
{
11
    public function __construct(
12
        ResourceImageDOInterface $resourceDO
13
        , FilesystemInterface $filesystem
14
    )
15
    {
16
        parent::__construct($resourceDO, $filesystem);
17
    }
18
19
    protected function allowedProperties()
20
    {
21
        $allowed = parent::allowedProperties();
1 ignored issue
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space

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

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
22
        $allowed[] = ResourceImageDO::TOKEN_DIMENSION;
23
24
        return $allowed;
25
    }
26
}