@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | public function moveTo($targetPath) |
32 | 32 | { |
33 | - if (! is_string($targetPath)) { |
|
33 | + if (!is_string($targetPath)) { |
|
34 | 34 | throw new SaveResourceErrorException( |
35 | 35 | 'Invalid path provided for move operation; must be a string' |
36 | 36 | ); |
@@ -28,10 +28,10 @@ |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | $cropObject = new CropImageDO(); |
31 | - $cropObject->setX((int) $crop[0]); |
|
32 | - $cropObject->setY((int) $crop[1]); |
|
33 | - $cropObject->setWidth((int) $crop[2]); |
|
34 | - $cropObject->setHeight((int) $crop[3]); |
|
31 | + $cropObject->setX((int)$crop[0]); |
|
32 | + $cropObject->setY((int)$crop[1]); |
|
33 | + $cropObject->setWidth((int)$crop[2]); |
|
34 | + $cropObject->setHeight((int)$crop[3]); |
|
35 | 35 | |
36 | 36 | if (!$resource->getWidth() || !$cropObject->getHeight()) { |
37 | 37 | throw new WrongRequestException('You should send the size=[X]x[Y] parameter together with the crop parameter'); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | ]); |
30 | 30 | $lastVersion = 0; |
31 | 31 | if (!empty($result)) { |
32 | - array_filter($result, function ($found) use (&$lastVersion) { |
|
32 | + array_filter($result, function($found) use (&$lastVersion) { |
|
33 | 33 | $found = (int)$found['version']; |
34 | 34 | $lastVersion = $found > $lastVersion |
35 | 35 | ? $found |
@@ -86,7 +86,7 @@ |
||
86 | 86 | */ |
87 | 87 | public function removeRole($role) |
88 | 88 | { |
89 | - if(($key = array_search($role, $this->roles, true)) !== false) { |
|
89 | + if (($key = array_search($role, $this->roles, true)) !== false) { |
|
90 | 90 | unset($this->roles[$key]); |
91 | 91 | |
92 | 92 | return true; |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | $sessionConfig = new SessionConfig(); |
21 | 21 | $sessionConfig->setOptions($this->config['options']); |
22 | - $saveHandler = new Redis( |
|
22 | + $saveHandler = new Redis( |
|
23 | 23 | $this->config['redis']['host'], |
24 | 24 | $this->config['redis']['port'], |
25 | 25 | $this->config['redis']['password'] |
@@ -60,10 +60,10 @@ |
||
60 | 60 | { |
61 | 61 | return [ |
62 | 62 | // $namespace, $type, $variant, $version, $name, $nameAlternative, $author |
63 | - [ '', 'jpg', 'def', '0', 'Aloha', '', 'user-puser' ], |
|
64 | - [ 'space', 'txt', 'def', '0', 'Hello', '', 'user-cucuser' ], |
|
65 | - [ 'space', 'txt', 'def', '0', 'Hello', 'Привет', 'user-vantuser' ], |
|
66 | - [ 'my/long/space', 'jpg', 'varvarvar', '3', 'Aloha', '$%^&*O', 'user-shmuser' ], |
|
63 | + ['', 'jpg', 'def', '0', 'Aloha', '', 'user-puser'], |
|
64 | + ['space', 'txt', 'def', '0', 'Hello', '', 'user-cucuser'], |
|
65 | + ['space', 'txt', 'def', '0', 'Hello', 'Привет', 'user-vantuser'], |
|
66 | + ['my/long/space', 'jpg', 'varvarvar', '3', 'Aloha', '$%^&*O', 'user-shmuser'], |
|
67 | 67 | ]; |
68 | 68 | } |
69 | 69 |