@@ -93,13 +93,13 @@ |
||
| 93 | 93 | } |
| 94 | 94 | foreach ($zfiles as $file) { |
| 95 | 95 | Debug::enterScope($file); |
| 96 | - $this->sourceFiles[]= $file; |
|
| 96 | + $this->sourceFiles[] = $file; |
|
| 97 | 97 | $this->loader->load($file); |
| 98 | 98 | Debug::exitScope($file); |
| 99 | 99 | } |
| 100 | 100 | foreach ($this->loader->getPlugins() as $name => $file) { |
| 101 | 101 | Debug::enterScope($file); |
| 102 | - $this->sourceFiles[]= $file; |
|
| 102 | + $this->sourceFiles[] = $file; |
|
| 103 | 103 | $this->loadPlugin($name, $file); |
| 104 | 104 | Debug::exitScope($file); |
| 105 | 105 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @var array |
| 38 | 38 | */ |
| 39 | 39 | protected $plugins = array(); |
| 40 | - protected $pluginPaths = array(); |
|
| 40 | + protected $pluginPaths = array(); |
|
| 41 | 41 | protected $sourceFiles = array(); |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | if (!is_file($resource)) { |
| 78 | 78 | $fileContents = $resource; |
| 79 | 79 | } else { |
| 80 | - $this->sourceFiles[]= $resource; |
|
| 80 | + $this->sourceFiles[] = $resource; |
|
| 81 | 81 | $fileContents = file_get_contents($resource); |
| 82 | 82 | } |
| 83 | 83 | Debug::enterScope('annotations'); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | unset($config['imports']); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | - $this->configs[]= $config; |
|
| 117 | + $this->configs[] = $config; |
|
| 118 | 118 | |
| 119 | 119 | return $config; |
| 120 | 120 | } |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $this->pluginPaths[$name] = dirname($this->plugins[$name]); |
| 184 | 184 | |
| 185 | 185 | $hasPlugin = true; |
| 186 | - $this->sourceFiles[]= $this->plugins[$name]; |
|
| 186 | + $this->sourceFiles[] = $this->plugins[$name]; |
|
| 187 | 187 | } catch (\InvalidArgumentException $e) { |
| 188 | 188 | } |
| 189 | 189 | |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | $hasZfile = true; |
| 203 | - $this->sourceFiles[]= $zFileLocation; |
|
| 203 | + $this->sourceFiles[] = $zFileLocation; |
|
| 204 | 204 | } catch (\InvalidArgumentException $e) { |
| 205 | 205 | } |
| 206 | 206 | |
@@ -24,12 +24,12 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public static function getByPath($subject, array $path, $notFoundIsError = true) |
| 26 | 26 | { |
| 27 | - $ptr =& $subject; |
|
| 27 | + $ptr = & $subject; |
|
| 28 | 28 | foreach ($path as $key) { |
| 29 | 29 | if (is_object($ptr) && property_exists($ptr, $key)) { |
| 30 | - $ptr =& $ptr->$key; |
|
| 30 | + $ptr = & $ptr->$key; |
|
| 31 | 31 | } elseif (is_array($ptr) && array_key_exists($key, $ptr)) { |
| 32 | - $ptr =& $ptr[$key]; |
|
| 32 | + $ptr = & $ptr[$key]; |
|
| 33 | 33 | } else { |
| 34 | 34 | if ($notFoundIsError === true) { |
| 35 | 35 | throw new \OutOfBoundsException("Path not found: " . implode('.', $path) . ", key {$key} did not resolve"); |
@@ -51,18 +51,18 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public static function setByPath(&$subject, array $path, $value) |
| 53 | 53 | { |
| 54 | - $ptr =& $subject; |
|
| 54 | + $ptr = & $subject; |
|
| 55 | 55 | foreach ($path as $key) { |
| 56 | 56 | if (is_object($ptr)) { |
| 57 | 57 | if (!isset($ptr->$key)) { |
| 58 | 58 | $ptr->$key = array(); |
| 59 | 59 | } |
| 60 | - $ptr =& $ptr->$key; |
|
| 60 | + $ptr = & $ptr->$key; |
|
| 61 | 61 | } elseif (is_array($ptr)) { |
| 62 | 62 | if (!isset($ptr[$key])) { |
| 63 | 63 | $ptr[$key] = array(); |
| 64 | 64 | } |
| 65 | - $ptr =& $ptr[$key]; |
|
| 65 | + $ptr = & $ptr[$key]; |
|
| 66 | 66 | } |
| 67 | 67 | } |
| 68 | 68 | $ptr = $value; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | if (in_array($errstr, $this->repeating)) { |
| 47 | 47 | return; |
| 48 | 48 | } |
| 49 | - $this->repeating[]= $errstr; |
|
| 49 | + $this->repeating[] = $errstr; |
|
| 50 | 50 | if ( |
| 51 | 51 | error_reporting() & E_USER_DEPRECATED |
| 52 | 52 | || error_reporting() & E_USER_NOTICE |
@@ -32,12 +32,12 @@ |
||
| 32 | 32 | |
| 33 | 33 | foreach ($b->nodes as $n) { |
| 34 | 34 | if (null === $n) { |
| 35 | - $ret['nodes'][]= $n; |
|
| 35 | + $ret['nodes'][] = $n; |
|
| 36 | 36 | } else { |
| 37 | - if (! $n instanceof Node\Node) { |
|
| 37 | + if (!$n instanceof Node\Node) { |
|
| 38 | 38 | throw new \InvalidArgumentException("Invalid child node in " . Util::toPhp($path)); |
| 39 | 39 | } |
| 40 | - $ret['nodes'][]= $this->getAst($n); |
|
| 40 | + $ret['nodes'][] = $this->getAst($n); |
|
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | } |
@@ -45,11 +45,11 @@ discard block |
||
| 45 | 45 | // match either '$(' or '@(' and mark that as an EXPR_START token. |
| 46 | 46 | if (preg_match('/^([$@])\(/', $substr, $m)) { |
| 47 | 47 | $needle += strlen($m[0]); |
| 48 | - $ret[]= new Token(Token::EXPR_START, $m[0]); |
|
| 48 | + $ret[] = new Token(Token::EXPR_START, $m[0]); |
|
| 49 | 49 | |
| 50 | 50 | // record expression depth, to make sure the usage of parentheses inside the expression doesn't |
| 51 | 51 | // break tokenization (e.g. '$( ("foo") )' |
| 52 | - $depth ++; |
|
| 52 | + $depth++; |
|
| 53 | 53 | } else { |
| 54 | 54 | // store the current token in a temp var for appending, in case it's a DATA token |
| 55 | 55 | $token = end($ret); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $token->value .= $value; |
| 70 | 70 | unset($token); |
| 71 | 71 | } else { |
| 72 | - $ret[]= new Token(Token::DATA, $value); |
|
| 72 | + $ret[] = new Token(Token::DATA, $value); |
|
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | } else { |
@@ -38,6 +38,6 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function append(Node $node) |
| 40 | 40 | { |
| 41 | - $this->nodes[]= $node; |
|
| 41 | + $this->nodes[] = $node; |
|
| 42 | 42 | } |
| 43 | 43 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public function __construct($name, $expr) |
| 27 | 27 | { |
| 28 | 28 | parent::__construct(); |
| 29 | - $this->nodes[0]= $expr; |
|
| 29 | + $this->nodes[0] = $expr; |
|
| 30 | 30 | $this->name = $name; |
| 31 | 31 | } |
| 32 | 32 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function __construct($function) |
| 25 | 25 | { |
| 26 | 26 | parent::__construct(); |
| 27 | - $this->nodes[]= $function; |
|
| 27 | + $this->nodes[] = $function; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |