@@ -23,7 +23,7 @@ |
||
23 | 23 | public function getChild( |
24 | 24 | SimpleXMLElement $element, |
25 | 25 | $name, |
26 | - array $attributes = [] |
|
26 | + array $attributes = [ ] |
|
27 | 27 | ); |
28 | 28 | |
29 | 29 | /** |
@@ -135,14 +135,14 @@ |
||
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() |
@@ -23,7 +23,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -71,14 +71,14 @@ |
||
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()); |
@@ -87,14 +87,14 @@ |
||
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 | } |