@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | protected function stackTraceCallToString(array $trace) |
| 89 | 89 | { |
| 90 | - if (! isset($trace['type'])) |
|
| 90 | + if ( ! isset($trace['type'])) |
|
| 91 | 91 | { |
| 92 | 92 | return 'function'; |
| 93 | 93 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | { |
| 114 | 114 | $params = []; |
| 115 | 115 | |
| 116 | - if (! isset($trace['args'])) |
|
| 116 | + if ( ! isset($trace['args'])) |
|
| 117 | 117 | { |
| 118 | 118 | return $params; |
| 119 | 119 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | { |
| 123 | 123 | if (is_array($arg)) |
| 124 | 124 | { |
| 125 | - $params[] = 'array(' . count($arg) . ')'; |
|
| 125 | + $params[] = 'array('.count($arg).')'; |
|
| 126 | 126 | } |
| 127 | 127 | else if (is_object($arg)) |
| 128 | 128 | { |
@@ -130,19 +130,19 @@ discard block |
||
| 130 | 130 | } |
| 131 | 131 | else if (is_string($arg)) |
| 132 | 132 | { |
| 133 | - $params[] = 'string(' . $arg . ')'; |
|
| 133 | + $params[] = 'string('.$arg.')'; |
|
| 134 | 134 | } |
| 135 | 135 | else if (is_int($arg)) |
| 136 | 136 | { |
| 137 | - $params[] = 'int(' . $arg . ')'; |
|
| 137 | + $params[] = 'int('.$arg.')'; |
|
| 138 | 138 | } |
| 139 | 139 | else if (is_float($arg)) |
| 140 | 140 | { |
| 141 | - $params[] = 'float(' . $arg . ')'; |
|
| 141 | + $params[] = 'float('.$arg.')'; |
|
| 142 | 142 | } |
| 143 | 143 | else if (is_bool($arg)) |
| 144 | 144 | { |
| 145 | - $params[] = 'bool(' . ($arg ? 'true' : 'false') . ')'; |
|
| 145 | + $params[] = 'bool('.($arg ? 'true' : 'false').')'; |
|
| 146 | 146 | } |
| 147 | 147 | else |
| 148 | 148 | { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public function __construct($message = '', $code = 0, $previous = null) |
| 12 | 12 | { |
| 13 | - $message = 'understand-monolog: ' . $message; |
|
| 13 | + $message = 'understand-monolog: '.$message; |
|
| 14 | 14 | |
| 15 | 15 | parent::__construct($message, $code, $previous); |
| 16 | 16 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | $formatted = []; |
| 30 | 30 | |
| 31 | - foreach($records as $record) |
|
| 31 | + foreach ($records as $record) |
|
| 32 | 32 | { |
| 33 | 33 | $formatted[] = $this->convertDatetime($record); |
| 34 | 34 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | // U - Seconds since the Unix Epoch |
| 50 | 50 | // u - Microseconds (added in PHP 5.2.2). Note that date() will always generate 000000 |
| 51 | 51 | // http://php.net/manual/en/function.date.php |
| 52 | - $record['timestamp'] = intval(round((float)$record['datetime']->format('U.u') * 1000)); |
|
| 52 | + $record['timestamp'] = intval(round((float) $record['datetime']->format('U.u') * 1000)); |
|
| 53 | 53 | |
| 54 | 54 | unset($record['datetime']); |
| 55 | 55 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | { |
| 57 | 57 | if ($sslBundlePath === false) |
| 58 | 58 | { |
| 59 | - $this->sslBundlePath = __DIR__ . DIRECTORY_SEPARATOR . 'ca_bundle.crt'; |
|
| 59 | + $this->sslBundlePath = __DIR__.DIRECTORY_SEPARATOR.'ca_bundle.crt'; |
|
| 60 | 60 | } |
| 61 | 61 | else |
| 62 | 62 | { |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | { |
| 135 | 135 | if ( ! $responseArr) |
| 136 | 136 | { |
| 137 | - throw new HandlerException('Cannot create connection to ' . $this->apiUrl . ' ' . $this->lastError); |
|
| 137 | + throw new HandlerException('Cannot create connection to '.$this->apiUrl.' '.$this->lastError); |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | if (isset($responseArr['error'])) |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | throw new HandlerException($responseArr['error']); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | - throw new HandlerException('Error. ' . ' Request data: ' . json_encode($requestData)); |
|
| 145 | + throw new HandlerException('Error. '.' Request data: '.json_encode($requestData)); |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | /** |