@@ -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 | )); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | protected function resolveSetter(\ReflectionClass $reflection, string $name) |
| 79 | 79 | { |
| 80 | - $setter = 'set' . ucfirst($name); |
|
| 80 | + $setter = 'set'.ucfirst($name); |
|
| 81 | 81 | |
| 82 | 82 | if ($reflection->hasMethod($setter) && $reflection->getMethod($setter)->isPublic()) { |
| 83 | 83 | return $setter; |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | public function process(array $config, Definition $definition) |
| 25 | 25 | { |
| 26 | - if (! isset($config['attributes'])) { |
|
| 26 | + if (!isset($config['attributes'])) { |
|
| 27 | 27 | return; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -94,13 +94,13 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | protected function processDataType(string $definition, Attribute $attribute) |
| 96 | 96 | { |
| 97 | - if (! preg_match(self::DATATYPE_PATTERN, $definition, $matches)) { |
|
| 97 | + if (!preg_match(self::DATATYPE_PATTERN, $definition, $matches)) { |
|
| 98 | 98 | throw new \LogicException(sprintf('Data-type definition "%s" is invalid.', $definition)); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | $attribute->setType($matches['type']); |
| 102 | 102 | |
| 103 | - if (! empty($matches['many'])) { |
|
| 103 | + if (!empty($matches['many'])) { |
|
| 104 | 104 | $attribute->setMany(); |
| 105 | 105 | } |
| 106 | 106 | |