@@ -43,13 +43,13 @@ |
||
43 | 43 | |
44 | 44 | private static $backup; |
45 | 45 | |
46 | - public static function overwriteParent(){ |
|
46 | + public static function overwriteParent() { |
|
47 | 47 | self::$backup = MainObjectSpec::$specs; |
48 | 48 | MainObjectSpec::$specs = self::$specs; |
49 | 49 | } |
50 | 50 | |
51 | 51 | public static function restoreParent() { |
52 | - if(!empty(self::$backup)){ |
|
52 | + if (!empty(self::$backup)) { |
|
53 | 53 | MainObjectSpec::$specs = self::$backup; |
54 | 54 | } |
55 | 55 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | if (strpos($path_parts[$i], ':') === false) { |
142 | 142 | $node_ns = 'epp'; |
143 | 143 | $node_name = $path_parts[$i]; |
144 | - $path_parts[$i] = $node_ns . ':' . $node_name; |
|
144 | + $path_parts[$i] = $node_ns.':'.$node_name; |
|
145 | 145 | } else { |
146 | 146 | list($node_ns, $node_name) = explode(':', $path_parts[$i], 2); |
147 | 147 | } |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | // get next key |
153 | 153 | $next_key = -1; |
154 | 154 | foreach (array_keys($this->nodes) as $each) { |
155 | - if (preg_match('/' . preg_quote($node_ns . ':' . $node_name, '/') . '\[(\d+)\]$/', $each, $matches)) { |
|
155 | + if (preg_match('/'.preg_quote($node_ns.':'.$node_name, '/').'\[(\d+)\]$/', $each, $matches)) { |
|
156 | 156 | if ($matches[1] > $next_key) { |
157 | 157 | $next_key = (int) $matches[1]; |
158 | 158 | } |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | if ($node_ns === 'epp') { |
189 | 189 | $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_name); |
190 | 190 | } else { |
191 | - $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_ns . ':' . $node_name); |
|
191 | + $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_ns.':'.$node_name); |
|
192 | 192 | } |
193 | 193 | |
194 | 194 | // set attribute |
@@ -227,15 +227,15 @@ discard block |
||
227 | 227 | } |
228 | 228 | |
229 | 229 | if (!empty($this->mapping) && !empty($this->command)) { |
230 | - array_unshift($path_parts, $this->mapping . ':' . $this->command); |
|
230 | + array_unshift($path_parts, $this->mapping.':'.$this->command); |
|
231 | 231 | } |
232 | 232 | |
233 | 233 | if (!empty($this->command) && !$this->ignore_command) { |
234 | - array_unshift($path_parts, 'epp:' . $this->command); |
|
234 | + array_unshift($path_parts, 'epp:'.$this->command); |
|
235 | 235 | } |
236 | 236 | |
237 | 237 | if (!empty($this->format)) { |
238 | - array_unshift($path_parts, 'epp:' . $this->format); |
|
238 | + array_unshift($path_parts, 'epp:'.$this->format); |
|
239 | 239 | } |
240 | 240 | |
241 | 241 | array_unshift($path_parts, 'epp:epp'); |