@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | empty($payload) ? [] : ['form_params' => $payload] |
39 | 39 | ); |
40 | 40 | |
41 | - if (! $this->isSuccessful($response)) { |
|
41 | + if (!$this->isSuccessful($response)) { |
|
42 | 42 | return $this->handleRequestError($response); |
43 | 43 | } |
44 | 44 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | public function isSuccessful($response): bool |
51 | 51 | { |
52 | - if (! $response) { |
|
52 | + if (!$response) { |
|
53 | 53 | return false; |
54 | 54 | } |
55 | 55 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | |
64 | 64 | protected function transformCollection(array $collection, string $class): array |
65 | 65 | { |
66 | - return array_map(function ($attributes) use ($class) { |
|
66 | + return array_map(function($attributes) use ($class) { |
|
67 | 67 | return new $class($attributes, $this); |
68 | 68 | }, $collection); |
69 | 69 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | { |
48 | 48 | $publicProperties = (new ReflectionObject($this))->getProperties(ReflectionProperty::IS_PUBLIC); |
49 | 49 | |
50 | - $publicPropertyNames = array_map(function (ReflectionProperty $property) { |
|
50 | + $publicPropertyNames = array_map(function(ReflectionProperty $property) { |
|
51 | 51 | return $property->getName(); |
52 | 52 | }, $publicProperties); |
53 | 53 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | parent::__construct($attributes, $ohDear); |
23 | 23 | |
24 | - $this->checks = array_map(function (array $checkAttributes) use ($ohDear) { |
|
24 | + $this->checks = array_map(function(array $checkAttributes) use ($ohDear) { |
|
25 | 25 | return new Check($checkAttributes, $ohDear); |
26 | 26 | }, $this->checks); |
27 | 27 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct($attributes, $ohDear); |
21 | 21 | |
22 | - $this->teams = array_map(function (array $teamAttributes) { |
|
22 | + $this->teams = array_map(function(array $teamAttributes) { |
|
23 | 23 | return new Team($teamAttributes); |
24 | 24 | }, $this->teams); |
25 | 25 | } |
@@ -12,6 +12,6 @@ |
||
12 | 12 | { |
13 | 13 | $this->errors = $errors; |
14 | 14 | |
15 | - parent::__construct('The given data failed to pass validation. ' . print_r($this->errors, true)); |
|
15 | + parent::__construct('The given data failed to pass validation. '.print_r($this->errors, true)); |
|
16 | 16 | } |
17 | 17 | } |