Passed
Push — master ( 20caea...cf7f72 )
by Gaetano
03:43
created
Core/FieldHandler/EzRichText.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function setReferenceResolver(ReferenceResolverInterface $referenceResolver)
13 13
     {
14
-        if (! $referenceResolver instanceof EmbeddedReferenceResolverInterface) {
14
+        if (!$referenceResolver instanceof EmbeddedReferenceResolverInterface) {
15 15
             throw new \Exception("Reference resolver injected into EzRichText field handler should implement EmbeddedReferenceResolverInterface");
16 16
         }
17 17
         parent::setReferenceResolver($referenceResolver);
Please login to merge, or discard this patch.
Core/FieldHandler/EzXmlText.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function setReferenceResolver(ReferenceResolverInterface $referenceResolver)
13 13
     {
14
-        if (! $referenceResolver instanceof EmbeddedReferenceResolverInterface) {
14
+        if (!$referenceResolver instanceof EmbeddedReferenceResolverInterface) {
15 15
             throw new \Exception("Reference resolver injected into EzXmlText field handler should implement EmbeddedReferenceResolverInterface");
16 16
         }
17 17
         parent::setReferenceResolver($referenceResolver);
Please login to merge, or discard this patch.
Core/Executor/ContentTypeManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
                 }
250 250
 
251 251
                 // Add new attributes
252
-                foreach($newFieldDefinitions as $newFieldDefinition) {
252
+                foreach ($newFieldDefinitions as $newFieldDefinition) {
253 253
                     if ($newFieldDefinition->position == 0) {
254 254
                         $newFieldDefinition->position = ++$maxFieldDefinitionPos;
255 255
                     }
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
                     break;
371 371
                 case 'content_type_groups_ids':
372 372
                     $value = [];
373
-                    foreach($contentType->contentTypeGroups as $existingGroup) {
373
+                    foreach ($contentType->contentTypeGroups as $existingGroup) {
374 374
                         $value[] = $existingGroup->id;
375 375
                     }
376 376
                     break;
@@ -766,7 +766,7 @@  discard block
 block discarded – undo
766 766
         $contentTypeGroup = $this->contentTypeGroupMatcher->matchOneByKey($contentTypeGroupId);
767 767
         $contentTypeGroupId = $contentTypeGroup->id;
768 768
 
769
-        foreach($contentType->contentTypeGroups as $existingGroup) {
769
+        foreach ($contentType->contentTypeGroups as $existingGroup) {
770 770
             if ($existingGroup->id === $contentTypeGroupId) {
771 771
                 return;
772 772
             }
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
         $contentTypeGroup = $this->contentTypeGroupMatcher->matchOneByKey($contentTypeGroupId);
783 783
         $contentTypeGroupId = $contentTypeGroup->id;
784 784
 
785
-        foreach($contentType->contentTypeGroups as $existingGroup) {
785
+        foreach ($contentType->contentTypeGroups as $existingGroup) {
786 786
             if ($existingGroup->id === $contentTypeGroupId) {
787 787
                 $contentTypeService = $this->repository->getContentTypeService();
788 788
                 $contentTypeService->unassignContentTypeGroup($contentType, $contentTypeGroup);
Please login to merge, or discard this patch.
Core/ReferenceResolver/LoopResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function getReferenceValue($identifier)
37 37
     {
38
-        switch(substr($identifier, 5)) {
38
+        switch (substr($identifier, 5)) {
39 39
             case 'iteration':
40 40
                 $current = end($this->stack);
41 41
                 return $current['step'];
Please login to merge, or discard this patch.
Core/Helper/SortConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     public function sortField2Hash($value)
41 41
     {
42 42
         $ref = new \ReflectionClass('eZ\Publish\API\Repository\Values\Content\Location');
43
-        foreach($ref->getConstants() as $key => $val) {
43
+        foreach ($ref->getConstants() as $key => $val) {
44 44
             if (strpos($key, 'SORT_FIELD_') === 0 && $val == $value) {
45 45
                 $out = strtolower(substr($key, 11));
46 46
                 if ($out == 'contentobject_id') {
Please login to merge, or discard this patch.
Core/Executor/ContentVersionManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 
150 150
     protected function versionStatusToHash($status)
151 151
     {
152
-        foreach(ContentVersionMatcher::STATUS_MAP as $own => $ez) {
152
+        foreach (ContentVersionMatcher::STATUS_MAP as $own => $ez) {
153 153
             if ($status == $ez) {
154 154
                 return $own;
155 155
             }
Please login to merge, or discard this patch.
Core/Process/Process.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
     public static function forceSigchildEnabled($force)
16 16
     {
17
-        self::$forceSigchildEnabled = (bool) $force;
17
+        self::$forceSigchildEnabled = (bool)$force;
18 18
     }
19 19
 
20 20
     protected function isSigchildEnabled()
Please login to merge, or discard this patch.
Core/Process/ProcessBuilder.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,23 +22,23 @@
 block discarded – undo
22 22
     public function getProcess()
23 23
     {
24 24
         $parentClass = get_parent_class($this);
25
-        $this_prefix = \Closure::bind(function(ProcessBuilder $builder){return $builder->prefix;}, null, $parentClass);
25
+        $this_prefix = \Closure::bind(function(ProcessBuilder $builder) {return $builder->prefix; }, null, $parentClass);
26 26
         $this_prefix = $this_prefix($this);
27
-        $this_arguments = \Closure::bind(function(ProcessBuilder $builder){return $builder->arguments;}, null, $parentClass);
27
+        $this_arguments = \Closure::bind(function(ProcessBuilder $builder) {return $builder->arguments; }, null, $parentClass);
28 28
         $this_arguments = $this_arguments($this);
29
-        $this_options = \Closure::bind(function(ProcessBuilder $builder){return $builder->options;}, null, $parentClass);
29
+        $this_options = \Closure::bind(function(ProcessBuilder $builder) {return $builder->options; }, null, $parentClass);
30 30
         $this_options = $this_options($this);
31
-        $this_inheritEnv = \Closure::bind(function(ProcessBuilder $builder){return $builder->inheritEnv;}, null, $parentClass);
31
+        $this_inheritEnv = \Closure::bind(function(ProcessBuilder $builder) {return $builder->inheritEnv; }, null, $parentClass);
32 32
         $this_inheritEnv = $this_inheritEnv($this);
33
-        $this_env = \Closure::bind(function(ProcessBuilder $builder){return $builder->env;}, null, $parentClass);
33
+        $this_env = \Closure::bind(function(ProcessBuilder $builder) {return $builder->env; }, null, $parentClass);
34 34
         $this_env = $this_env($this);
35
-        $this_cwd = \Closure::bind(function(ProcessBuilder $builder){return $builder->cwd;}, null, $parentClass);
35
+        $this_cwd = \Closure::bind(function(ProcessBuilder $builder) {return $builder->cwd; }, null, $parentClass);
36 36
         $this_cwd = $this_cwd($this);
37
-        $this_input = \Closure::bind(function(ProcessBuilder $builder){return $builder->input;}, null, $parentClass);
37
+        $this_input = \Closure::bind(function(ProcessBuilder $builder) {return $builder->input; }, null, $parentClass);
38 38
         $this_input = $this_input($this);
39
-        $this_timeout = \Closure::bind(function(ProcessBuilder $builder){return $builder->timeout;}, null, $parentClass);
39
+        $this_timeout = \Closure::bind(function(ProcessBuilder $builder) {return $builder->timeout; }, null, $parentClass);
40 40
         $this_timeout = $this_timeout($this);
41
-        $this_outputDisabled = \Closure::bind(function(ProcessBuilder $builder){return $builder->outputDisabled;}, null, $parentClass);
41
+        $this_outputDisabled = \Closure::bind(function(ProcessBuilder $builder) {return $builder->outputDisabled; }, null, $parentClass);
42 42
         $this_outputDisabled = $this_outputDisabled($this);
43 43
 
44 44
         if (0 === count($this_prefix) && 0 === count($this_arguments)) {
Please login to merge, or discard this patch.
Core/Executor/TagManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 
162 162
         // sort tags by depth so that there will be no errors in case we are deleting parent and child
163 163
         $tagsCollection = $tagsCollection->getArrayCopy();
164
-        uasort($tagsCollection, function ($t1, $t2) {
164
+        uasort($tagsCollection, function($t1, $t2) {
165 165
             if ($t1->depth == $t2->depth) return 0;
166 166
             return ($t1->depth > $t2->depth) ? -1 : 1;
167 167
         });
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
             case 'create':
267 267
                 // sort top to bottom
268 268
                 $tagCollection = $tagCollection->getArrayCopy();
269
-                uasort($tagCollection, function ($t1, $t2) {
269
+                uasort($tagCollection, function($t1, $t2) {
270 270
                     if ($t1->depth == $t2->depth) return 0;
271 271
                     return ($t1->depth > $t2->depth) ? 1 : -1;
272 272
                 });
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
             case 'delete':
275 275
                 // sort bottom to top
276 276
                 $tagCollection = $tagCollection->getArrayCopy();
277
-                uasort($tagCollection, function ($t1, $t2) {
277
+                uasort($tagCollection, function($t1, $t2) {
278 278
                     if ($t1->depth == $t2->depth) return 0;
279 279
                     return ($t1->depth > $t2->depth) ? -1 : 1;
280 280
                 });
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     protected function getTagKeywords($tag)
353 353
     {
354 354
         $out = array();
355
-        foreach($tag->languageCodes as $languageCode) {
355
+        foreach ($tag->languageCodes as $languageCode) {
356 356
             $out[$languageCode] = $tag->getKeyword($languageCode);
357 357
         }
358 358
         return $out;
Please login to merge, or discard this patch.