@@ -21,6 +21,6 @@ |
||
| 21 | 21 | if (PHP_VERSION_ID < 70000) { // backwards compatibility |
| 22 | 22 | |
| 23 | 23 | namespace { |
| 24 | - class Throwable extends \Exception{} // it's actually interface, but this is shortcut |
|
| 24 | + class Throwable extends \Exception {} // it's actually interface, but this is shortcut |
|
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | 27 | \ No newline at end of file |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function &__get($name) |
| 53 | 53 | { |
| 54 | - if(in_array($name, ['container', 'arguments'])){ |
|
| 54 | + if (in_array($name, ['container', 'arguments'])) { |
|
| 55 | 55 | $method = 'get' . ucfirst($name); |
| 56 | 56 | trigger_error(E_USER_WARNING, "Property '$name' is deprecated, use method $method() instead."); |
| 57 | 57 | return $this->$method(); |
@@ -98,8 +98,8 @@ |
||
| 98 | 98 | $optionalSwitches = [ |
| 99 | 99 | 'configFile' => '--configuration', |
| 100 | 100 | ]; |
| 101 | - foreach($optionalSwitches as $name => $switch) { |
|
| 102 | - if(isset($this->options[$name])) { |
|
| 101 | + foreach ($optionalSwitches as $name => $switch) { |
|
| 102 | + if (isset($this->options[$name])) { |
|
| 103 | 103 | $cmd .= $switch . ' '; |
| 104 | 104 | $cmd .= escapeshellarg($this->options[$name]) . ' '; |
| 105 | 105 | } |
@@ -98,8 +98,8 @@ |
||
| 98 | 98 | $options = [ |
| 99 | 99 | 'configFile' => '--configuration', |
| 100 | 100 | ]; |
| 101 | - foreach($options as $name => $switch) { |
|
| 102 | - if(isset($this->options[$name])) { |
|
| 101 | + foreach ($options as $name => $switch) { |
|
| 102 | + if (isset($this->options[$name])) { |
|
| 103 | 103 | $cmd .= $switch . ' '; |
| 104 | 104 | $cmd .= escapeshellarg($this->options[$name]) . ' '; |
| 105 | 105 | } |