Passed
Push — master ( 10b50b...4a76d9 )
by Mathias
14:14
created
module/Core/src/Entity/Hydrator/Strategy/FileUploadStrategy.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@
 block discarded – undo
61 61
         $file = $this->getFileEntity();
62 62
         
63 63
         $file->setName($value['name'])
64
-             ->setType($value['type'])
65
-             ->setFile($value['tmp_name']);
64
+                ->setType($value['type'])
65
+                ->setFile($value['tmp_name']);
66 66
         
67 67
         return $file;
68 68
     }
Please login to merge, or discard this patch.
module/Core/src/Entity/Hydrator/Strategy/FileCopyStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         
79 79
         // ensures garbage removal
80 80
         register_shutdown_function(
81
-            function ($filename) {
81
+            function($filename) {
82 82
                 @unlink($filename);
83 83
             },
84 84
             $tmp
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         foreach (['user', 'name', 'type'] as $key) {
96 96
             $v = $value->{"get$key"}();
97 97
             if ($v) {
98
-                $return[$key]=$v;
98
+                $return[$key] = $v;
99 99
             }
100 100
         }
101 101
 
Please login to merge, or discard this patch.
module/Core/src/Entity/Hydrator/ImageSetHydrator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $imageSpecs = $this->options->getImages();
87 87
 
88 88
 
89
-        $images = [ ImageSetInterface::ORIGINAL => $this->createEntity($file, $data) ];
89
+        $images = [ImageSetInterface::ORIGINAL => $this->createEntity($file, $data)];
90 90
 
91 91
         foreach ($imageSpecs as $key => $size) {
92 92
             $newImage = ImageSetInterface::THUMBNAIL == $key
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                 : $this->createImage($image, $size);
95 95
 
96 96
             if ($newImage) {
97
-                $entity   = $this->createEntity($newImage, $data, $key);
97
+                $entity = $this->createEntity($newImage, $data, $key);
98 98
                 $images[$key] = $entity;
99 99
             }
100 100
         }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
         $entity
144 144
             ->setFile($file)
145
-            ->setName(($prefix ? "$prefix-" : '') . $data['name'])
145
+            ->setName(($prefix ? "$prefix-" : '').$data['name'])
146 146
             ->setType($data['type'])
147 147
         ;
148 148
 
Please login to merge, or discard this patch.
module/Core/src/Entity/MetaDataProviderTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function setMetaData($key, $value = null)
32 32
     {
33 33
         if (is_array($key)) {
34
-            $this->metaData  = $key;
34
+            $this->metaData = $key;
35 35
         } else {
36 36
             $this->metaData[$key] = $value;
37 37
         }
Please login to merge, or discard this patch.
module/Core/src/Entity/AbstractStatusEntity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $name = $this->default;
83 83
         }
84 84
 
85
-        if (!isset(static::$orderMap[ $name ])) {
85
+        if (!isset(static::$orderMap[$name])) {
86 86
             throw new \InvalidArgumentException(sprintf(
87 87
                 'Unknown status name "%s" for "%s"',
88 88
                 $name,
@@ -91,6 +91,6 @@  discard block
 block discarded – undo
91 91
         }
92 92
 
93 93
         $this->name  = $name;
94
-        $this->order = static::$orderMap[ $name ];
94
+        $this->order = static::$orderMap[$name];
95 95
     }
96 96
 }
Please login to merge, or discard this patch.
module/Core/src/Mail/Message.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
52 52
 
53 53
         if ($emailOrAddressOrList instanceof UserInterface) {
54 54
             parent::updateAddressList(
55
-                         $addressList,
56
-                         $emailOrAddressOrList->getInfo()->getEmail(),
57
-                         $emailOrAddressOrList->getInfo()->getDisplayName(false),
58
-                         $callingMethod
55
+                            $addressList,
56
+                            $emailOrAddressOrList->getInfo()->getEmail(),
57
+                            $emailOrAddressOrList->getInfo()->getDisplayName(false),
58
+                            $callingMethod
59 59
             );
60 60
             return;
61 61
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             throw new \InvalidArgumentException(
27 27
                 sprintf(
28 28
                     'Expected $options to be an array or \Traversable, but received %s',
29
-                    (is_object($options) ? 'instance of ' . get_class($options) : 'skalar')
29
+                    (is_object($options) ? 'instance of '.get_class($options) : 'skalar')
30 30
                 )
31 31
             );
32 32
         }
Please login to merge, or discard this patch.
module/Core/src/Mail/StringTemplateMessage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                 throw new \InvalidArgumentException(
40 40
                     sprintf(
41 41
                         'Expect an array or an instance of \Traversable, but received %s',
42
-                        is_object($variables) ? 'instance of ' . get_class($variables) : 'skalar'
42
+                        is_object($variables) ? 'instance of '.get_class($variables) : 'skalar'
43 43
                     )
44 44
                 );
45 45
             }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                 throw new \InvalidArgumentException(
70 70
                     sprintf(
71 71
                         'Expect an array or an instance of \Traversable, but received %s',
72
-                        is_object($callbacks) ? 'instance of ' . get_class($callbacks) : 'skalar'
72
+                        is_object($callbacks) ? 'instance of '.get_class($callbacks) : 'skalar'
73 73
                     )
74 74
                 );
75 75
             }
@@ -141,6 +141,6 @@  discard block
 block discarded – undo
141 141
     
142 142
     protected function getNamePattern($name)
143 143
     {
144
-        return '~##' . preg_quote($name) . '##~is';
144
+        return '~##'.preg_quote($name).'##~is';
145 145
     }
146 146
 }
Please login to merge, or discard this patch.
module/Core/src/Mail/MailServiceConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                     $recipients->add($match[1]);
70 70
                 }
71 71
             } else {
72
-                trigger_error('invalid address format ("' . $recipient . '") in mails.develop.override_recipient', E_USER_WARNING);
72
+                trigger_error('invalid address format ("'.$recipient.'") in mails.develop.override_recipient', E_USER_WARNING);
73 73
             }
74 74
         }
75 75
         return $recipients;
Please login to merge, or discard this patch.
module/Core/src/Mail/FileTransport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         $options  = $this->options;
34 34
         $filename = call_user_func($options->getCallback(), $this);
35
-        $file     = $options->getPath() . DIRECTORY_SEPARATOR . $filename;
35
+        $file     = $options->getPath().DIRECTORY_SEPARATOR.$filename;
36 36
 
37 37
 
38 38
         $contents = $message->toString();
Please login to merge, or discard this patch.