@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function createLink(string $name, array $data): Link |
29 | 29 | { |
30 | - if (! preg_match(self::RESOURCE_PATTERN, $data['resource'], $matches)) { |
|
30 | + if (!preg_match(self::RESOURCE_PATTERN, $data['resource'], $matches)) { |
|
31 | 31 | throw new \LogicException(sprintf('Invalid resource definition: "%s"', $data['resource'])); |
32 | 32 | } |
33 | 33 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | { |
55 | 55 | foreach (['get', 'is'] as $prefix) |
56 | 56 | { |
57 | - $getter = $prefix . ucfirst($name); |
|
57 | + $getter = $prefix.ucfirst($name); |
|
58 | 58 | |
59 | 59 | if ($reflection->hasMethod($getter) && $reflection->getMethod($getter)->isPublic()) { |
60 | 60 | return $getter; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | throw new \LogicException(sprintf( |
65 | - 'Getter-method for "%s" cannot be resolved automatically. ' . |
|
65 | + 'Getter-method for "%s" cannot be resolved automatically. '. |
|
66 | 66 | 'Probably there is no get%2$s() or is%2$s() method or it is not public.', |
67 | 67 | $name, ucfirst($name) |
68 | 68 | )); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function process(array $config, Definition $definition) |
20 | 20 | { |
21 | - if (! isset($config['relationships'])) { |
|
21 | + if (!isset($config['relationships'])) { |
|
22 | 22 | return; |
23 | 23 | } |
24 | 24 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function handleLinks(array $data, Relationship $relationship) |
70 | 70 | { |
71 | - if (! isset($data['links'])) { |
|
71 | + if (!isset($data['links'])) { |
|
72 | 72 | return; |
73 | 73 | } |
74 | 74 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $definition->setType($config['type']); |
22 | 22 | } |
23 | 23 | |
24 | - if (! isset($config['links'])) { |
|
24 | + if (!isset($config['links'])) { |
|
25 | 25 | return; |
26 | 26 | } |
27 | 27 |