@@ -90,21 +90,21 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | private function traceData(array $args, $type) |
| 92 | 92 | { |
| 93 | - $data = $args[0]; |
|
| 94 | - $socket = $args[1]; |
|
| 93 | + $data = $args[ 0 ]; |
|
| 94 | + $socket = $args[ 1 ]; |
|
| 95 | 95 | |
| 96 | 96 | if (!is_string($data)) { |
| 97 | 97 | $data = serialize($data); |
| 98 | 98 | } |
| 99 | 99 | $to = $socket->to(); |
| 100 | - $message = "-> {$to['port']} {$to['process']['id']}"; |
|
| 100 | + $message = "-> {$to[ 'port' ]} {$to[ 'process' ][ 'id' ]}"; |
|
| 101 | 101 | |
| 102 | 102 | $from = $socket->from(); |
| 103 | - if (isset($from['process'])) { |
|
| 104 | - $message = " {$from['process']['id']} {$from['port']} {$message}"; |
|
| 103 | + if (isset($from[ 'process' ])) { |
|
| 104 | + $message = " {$from[ 'process' ][ 'id' ]} {$from[ 'port' ]} {$message}"; |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - $this->logger->info("{$message} {$this->actions[$type]} {$data}"); |
|
| 107 | + $this->logger->info("{$message} {$this->actions[ $type ]} {$data}"); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
@@ -113,15 +113,15 @@ discard block |
||
| 113 | 113 | */ |
| 114 | 114 | private function traceAction(array $args, $type) |
| 115 | 115 | { |
| 116 | - $socket = $args[0]; |
|
| 116 | + $socket = $args[ 0 ]; |
|
| 117 | 117 | $to = $socket->to(); |
| 118 | - $message = "-> {$to['port']} {$to['process']['id']}"; |
|
| 118 | + $message = "-> {$to[ 'port' ]} {$to[ 'process' ][ 'id' ]}"; |
|
| 119 | 119 | |
| 120 | 120 | $from = $socket->from(); |
| 121 | - if (isset($from['process'])) { |
|
| 122 | - $message = " {$from['process']['id']} {$from['port']} {$message}"; |
|
| 121 | + if (isset($from[ 'process' ])) { |
|
| 122 | + $message = " {$from[ 'process' ][ 'id' ]} {$from[ 'port' ]} {$message}"; |
|
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - $this->logger->debug("{$message} {$this->actions[$type]}"); |
|
| 125 | + $this->logger->debug("{$message} {$this->actions[ $type ]}"); |
|
| 126 | 126 | } |
| 127 | 127 | } |