@@ -129,7 +129,7 @@ |
||
| 129 | 129 | |
| 130 | 130 | $this->promiseList = []; |
| 131 | 131 | |
| 132 | - if (! empty($exceptionList)) { |
|
| 132 | + if (!empty($exceptionList)) { |
|
| 133 | 133 | throw ClientException::fromException('Encountered errors while resolving requests', ...$exceptionList); |
| 134 | 134 | } |
| 135 | 135 | } |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | { |
| 108 | 108 | $me = clone $this; |
| 109 | 109 | |
| 110 | - if (! isset($me->markList[$group])) { |
|
| 110 | + if (!isset($me->markList[$group])) { |
|
| 111 | 111 | $me->markList[$group] = []; |
| 112 | 112 | } |
| 113 | 113 | $me->markList[$group][$event] = $timestamp; |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | |
| 81 | 81 | public function addMark(string $group, string $event, float $timestamp): void |
| 82 | 82 | { |
| 83 | - if (! isset($this->markList[$group])) { |
|
| 83 | + if (!isset($this->markList[$group])) { |
|
| 84 | 84 | $this->markList[$group] = []; |
| 85 | 85 | } |
| 86 | 86 | |
@@ -69,8 +69,8 @@ |
||
| 69 | 69 | private function createMessage(ServerRequestInterface $request, Throwable $throwable): ErrorMessage |
| 70 | 70 | { |
| 71 | 71 | $message = ErrorMessage::fromException($this->createException($throwable), new Timestamp()) |
| 72 | - ->withId(Uuid::uuid4()) |
|
| 73 | - ->inContext($this->createContext($request)); |
|
| 72 | + ->withId(Uuid::uuid4()) |
|
| 73 | + ->inContext($this->createContext($request)); |
|
| 74 | 74 | |
| 75 | 75 | /** @var OpenTransaction|null $transaction */ |
| 76 | 76 | $transaction = $request->getAttribute(TransactionMiddleware::TRANSACTION_ATTRIBUTE); |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | private function createStackTrace(Throwable $throwable): array |
| 96 | 96 | { |
| 97 | 97 | return array_map( |
| 98 | - function (array $frame): StackTraceFrame { |
|
| 98 | + function(array $frame): StackTraceFrame { |
|
| 99 | 99 | $function = implode('::', array_filter([ |
| 100 | 100 | $frame['class'] ?? null, |
| 101 | 101 | $frame['function'] ?? null, |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | public static function filterUnset(array $input): array |
| 18 | 18 | { |
| 19 | - return array_filter($input, function ($value): bool { |
|
| 19 | + return array_filter($input, function($value): bool { |
|
| 20 | 20 | if ($value === null) { |
| 21 | 21 | return false; |
| 22 | 22 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public static function serialize(JsonSerializable ...$serializable): array |
| 36 | 36 | { |
| 37 | - return array_map(function (JsonSerializable $frame) { |
|
| 37 | + return array_map(function(JsonSerializable $frame) { |
|
| 38 | 38 | return $frame->jsonSerialize(); |
| 39 | 39 | }, $serializable); |
| 40 | 40 | } |