@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function getNotFoundMessage() |
28 | 28 | { |
29 | - $message = ! empty($this->exception->getMessage()) |
|
29 | + $message = !empty($this->exception->getMessage()) |
|
30 | 30 | ? $this->exception->getMessage() |
31 | 31 | : class_basename($this->exception); |
32 | 32 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | $array = []; |
17 | 17 | foreach (get_object_vars($this) as $attribute => $value) { |
18 | - if (! is_null($value)) { |
|
18 | + if (!is_null($value)) { |
|
19 | 19 | $array[$attribute] = $value instanceof Arrayable ? $value->toArray() : $value; |
20 | 20 | } |
21 | 21 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | ->setTitle($title ?? $this->getDefaultTitle()) |
28 | 28 | ->setDetail($message); |
29 | 29 | |
30 | - if (! is_null($code)) { |
|
30 | + if (!is_null($code)) { |
|
31 | 31 | $error->setCode($code); |
32 | 32 | } |
33 | 33 |
@@ -76,7 +76,7 @@ |
||
76 | 76 | public function validatedContent(string $type): ErrorHandledCollectionInterface |
77 | 77 | { |
78 | 78 | foreach ($this->items as $item) { |
79 | - if (! $item instanceof $type) { |
|
79 | + if (!$item instanceof $type) { |
|
80 | 80 | throw new InvalidContentException('All items on ['.self::class.'] must to be instances of ['.$type.'].'); |
81 | 81 | } |
82 | 82 | } |