Test Setup Failed
Branch master (95afbf)
by Eugene
04:58
created
src/Diactoros/DownloadedFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
src/Resources/Middlewares/Image/PrepareImageMiddlewareAbstract.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Resources/Commands/FindResourceLastVersionCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Auth/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Auth/Factories/SessionManagerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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']
Please login to merge, or discard this patch.
src/test/Resources/Commands/FindResourceOptionsCommandTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.