Passed
Branch master (62fb64)
by MediaCT
03:43
created
Category
src/XmlAccessorInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public function getChild(
24 24
         SimpleXMLElement $element,
25 25
         $name,
26
-        array $attributes = []
26
+        array $attributes = [ ]
27 27
     );
28 28
 
29 29
     /**
Please login to merge, or discard this patch.
src/Filesystem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,14 +135,14 @@
 block discarded – undo
135 135
             RecursiveIteratorIterator::SELF_FIRST
136 136
         );
137 137
 
138
-        $files = [];
138
+        $files = [ ];
139 139
 
140 140
         /** @var SplFileInfo $fileInfo */
141 141
         foreach ($iterator as $fileInfo) {
142 142
             if ($fileInfo->isDir()) {
143 143
                 continue;
144 144
             }
145
-            $files[] = preg_replace(
145
+            $files[ ] = preg_replace(
146 146
                 sprintf('/^%s/', preg_quote($this->root, '/')),
147 147
                 '',
148 148
                 $fileInfo->getPathName()
Please login to merge, or discard this patch.
src/XmlAccessor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     public function getChild(
24 24
         SimpleXMLElement $element,
25 25
         $name,
26
-        array $attributes = []
26
+        array $attributes = [ ]
27 27
     ) {
28 28
         $xpath = $name . $this->getAttributesXpath($attributes);
29 29
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $name       = array_shift($childProperties);
62 62
             $attributes = count($childProperties)
63 63
                 ? array_shift($childProperties)
64
-                : [];
64
+                : [ ];
65 65
 
66 66
             $element = $this->getChild($element, $name, $attributes);
67 67
         }
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
     {
102 102
         $xpath = '';
103 103
         if (!empty($attributes)) {
104
-            $parts = [];
104
+            $parts = [ ];
105 105
             foreach ($attributes as $key => $value) {
106
-                $parts[] = '@' . $key . '="' . $value . '"';
106
+                $parts[ ] = '@' . $key . '="' . $value . '"';
107 107
             }
108 108
             $xpath .= '[' . implode(' and ', $parts) . ']';
109 109
         }
Please login to merge, or discard this patch.
src/Patcher/FileTemplatesPatcher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,14 +71,14 @@
 block discarded – undo
71 71
         $node = $this->xmlAccessor->getDescendant(
72 72
             $xml,
73 73
             [
74
-                ['component', ['name' => 'FileTemplateManagerImpl']],
75
-                ['option', ['name' => 'SCHEME']]
74
+                [ 'component', [ 'name' => 'FileTemplateManagerImpl' ] ],
75
+                [ 'option', [ 'name' => 'SCHEME' ] ]
76 76
             ]
77 77
         );
78 78
 
79 79
         $this->xmlAccessor->setAttributes(
80 80
             $node,
81
-            ['value' => 'Project']
81
+            [ 'value' => 'Project' ]
82 82
         );
83 83
 
84 84
         $ideConfigFs->put('workspace.xml', $xml->asXML());
Please login to merge, or discard this patch.
src/Patcher/InspectionsPatcher.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,14 +87,14 @@
 block discarded – undo
87 87
         $node = $this->xmlAccessor->getDescendant(
88 88
             $xml,
89 89
             [
90
-                ['profile'],
91
-                ['inspection_tool', ['class' => 'PhpCSValidationInspection']],
92
-                ['option', ['name' => 'CUSTOM_RULESET_PATH']]
90
+                [ 'profile' ],
91
+                [ 'inspection_tool', [ 'class' => 'PhpCSValidationInspection' ] ],
92
+                [ 'option', [ 'name' => 'CUSTOM_RULESET_PATH' ] ]
93 93
             ]
94 94
         );
95 95
         $this->xmlAccessor->setAttributes(
96 96
             $node,
97
-            ['value' => '$PROJECT_DIR$/' . self::PROJECT_PHPCS]
97
+            [ 'value' => '$PROJECT_DIR$/' . self::PROJECT_PHPCS ]
98 98
         );
99 99
     }
100 100
 }
Please login to merge, or discard this patch.