Passed
Push — master ( fad3cd...8c9440 )
by Michael
02:31
created
src/Mapper/Definition/ConfigurationProcessor/AbstractProcessor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         ));
Please login to merge, or discard this patch.
src/Mapper/Definition/ConfigurationProcessor/RelationshipProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Mapper/Definition/ConfigurationProcessor/ClassProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.