@@ -24,7 +24,6 @@ |
||
| 24 | 24 | * Checks if process with given pid exists, returns whether operation was successful. |
| 25 | 25 | * |
| 26 | 26 | * @param string $pid |
| 27 | - * @param bool $isolate |
|
| 28 | 27 | * @return bool |
| 29 | 28 | */ |
| 30 | 29 | public function existsPid($pid); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | if ($this->isolator !== null) |
| 39 | 39 | { |
| 40 | - return $this->isolator->call('exec', [ $command ]); |
|
| 40 | + return $this->isolator->call('exec', [$command]); |
|
| 41 | 41 | } |
| 42 | 42 | else |
| 43 | 43 | { |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | $this->pid = (string) $pid; |
| 108 | 108 | $this->socket = $sockets[0]; |
| 109 | 109 | |
| 110 | - while(($message = @fgets($this->socket)) !== false) |
|
| 110 | + while (($message = @fgets($this->socket)) !== false) |
|
| 111 | 111 | { |
| 112 | 112 | $ex = null; |
| 113 | 113 | |
@@ -117,9 +117,11 @@ |
||
| 117 | 117 | $return = (string) call_user_func_array($data['func'], $data['params']); |
| 118 | 118 | } |
| 119 | 119 | catch (Error $ex) |
| 120 | - {} |
|
| 120 | + { |
|
| 121 | +} |
|
| 121 | 122 | catch (Exception $ex) |
| 122 | - {} |
|
| 123 | + { |
|
| 124 | +} |
|
| 123 | 125 | |
| 124 | 126 | if ($ex !== null || @fwrite($this->socket, $return . "\n") === false) |
| 125 | 127 | { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | $keys = explode('.', $key); |
| 101 | 101 | $last = array_pop($keys); |
| 102 | - $currentElement =& $array; |
|
| 102 | + $currentElement = & $array; |
|
| 103 | 103 | |
| 104 | 104 | foreach ($keys as $currentKey) |
| 105 | 105 | { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | $currentElement[$currentKey] = []; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - $currentElement =& $currentElement[$currentKey]; |
|
| 111 | + $currentElement = & $currentElement[$currentKey]; |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | $currentElement[$last] = $value; |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | |
| 135 | 135 | $keys = explode('.', $key); |
| 136 | 136 | $last = array_pop($keys); |
| 137 | - $currentElement =& $array; |
|
| 137 | + $currentElement = & $array; |
|
| 138 | 138 | |
| 139 | 139 | foreach ($keys as $currentKey) |
| 140 | 140 | { |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | $currentElement[$currentKey] = []; |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | - $currentElement =& $currentElement[$currentKey]; |
|
| 146 | + $currentElement = & $currentElement[$currentKey]; |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | unset($currentElement[$last]); |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | { |
| 241 | 241 | return ($key === null) ? null : trim( |
| 242 | 242 | str_replace( |
| 243 | - [ " ", "\t", "\n", "\r", "\0", "\x0B" ], [ '', '', '', '', '', '' ], $key |
|
| 243 | + [" ", "\t", "\n", "\r", "\0", "\x0B"], ['', '', '', '', '', ''], $key |
|
| 244 | 244 | ), '.' |
| 245 | 245 | ); |
| 246 | 246 | } |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public static function now() |
| 13 | 13 | { |
| 14 | - return round(microtime(true)*1000); |
|
| 14 | + return round(microtime(true) * 1000); |
|
| 15 | 15 | } |
| 16 | 16 | } |
@@ -57,7 +57,8 @@ discard block |
||
| 57 | 57 | * @param FactoryInterface $factory |
| 58 | 58 | */ |
| 59 | 59 | protected function register(FactoryInterface $factory) |
| 60 | - {} |
|
| 60 | + { |
|
| 61 | +} |
|
| 61 | 62 | |
| 62 | 63 | /** |
| 63 | 64 | * Define how plugin should be unregistered. |
@@ -65,7 +66,8 @@ discard block |
||
| 65 | 66 | * @param FactoryInterface $factory |
| 66 | 67 | */ |
| 67 | 68 | protected function unregister(FactoryInterface $factory) |
| 68 | - {} |
|
| 69 | + { |
|
| 70 | +} |
|
| 69 | 71 | |
| 70 | 72 | /** |
| 71 | 73 | * @param Error|Exception $ex |
@@ -57,7 +57,8 @@ discard block |
||
| 57 | 57 | * @param SimpleFactoryInterface $factory |
| 58 | 58 | */ |
| 59 | 59 | protected function register(SimpleFactoryInterface $factory) |
| 60 | - {} |
|
| 60 | + { |
|
| 61 | +} |
|
| 61 | 62 | |
| 62 | 63 | /** |
| 63 | 64 | * Define how plugin should be unregistered. |
@@ -65,7 +66,8 @@ discard block |
||
| 65 | 66 | * @param SimpleFactoryInterface $factory |
| 66 | 67 | */ |
| 67 | 68 | protected function unregister(SimpleFactoryInterface $factory) |
| 68 | - {} |
|
| 69 | + { |
|
| 70 | +} |
|
| 69 | 71 | |
| 70 | 72 | /** |
| 71 | 73 | * @param Error|Exception $ex |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * @var int |
| 25 | 25 | */ |
| 26 | - const DECODE_ARRAY = 2; |
|
| 26 | + const DECODE_ARRAY = 2; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @var int |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -namespace Dazzle\Util\Parser\Null; |
|
| 3 | +namespace Dazzle\Util\Parser\null; |
|
| 4 | 4 | |
| 5 | 5 | use Dazzle\Util\Parser\ParserInterface; |
| 6 | 6 | |