Completed
Push — master ( c39dfb...499778 )
by Emily
02:18
created
src/Exception/MissingContextException.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,13 +28,11 @@
 block discarded – undo
28 28
      *
29 29
      * @param Throwable $previous The exception which caused this
30 30
      */
31
-    public function __construct
32
-    (
31
+    public function __construct(
33 32
         Throwable $previous = null
34 33
     )
35 34
     {
36
-        parent::__construct
37
-        (
35
+        parent::__construct(
38 36
               'Cannot serialize object containing generics without '
39 37
             . 'context',
40 38
             0,
Please login to merge, or discard this patch.
src/Factory/Reflection/GenericCompositeGenerator.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@
 block discarded – undo
73 73
     public function generateClassCode(...$generics) : string
74 74
     {
75 75
         $object = $this->createObject(...$generics);
76
-        $this->nameProvider = new GenericNameProvider
77
-        (
76
+        $this->nameProvider = new GenericNameProvider(
78 77
             new GenericContext($object, $this->reflect)
79 78
         );
80 79
         $class = $this->nameProvider->inferName($object);
Please login to merge, or discard this patch.
src/Service/ReflectionCompositeProvider.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
      *
55 55
      * @param ReflectionCompositeProviderInterface $default
56 56
      */
57
-    public static function setDefault
58
-    (
57
+    public static function setDefault(
59 58
         ReflectionCompositeProviderInterface $default
60 59
     )
61 60
     {
@@ -90,8 +89,7 @@  discard block
 block discarded – undo
90 89
         {
91 90
             $this->cache[$classname] =
92 91
                 (
93
-                    ReflectionCompositeFactory::fromClassName
94
-                    (
92
+                    ReflectionCompositeFactory::fromClassName(
95 93
                         $classname
96 94
                     )
97 95
                 )
Please login to merge, or discard this patch.
src/Service/GenericNameProvider.php 1 patch
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@  discard block
 block discarded – undo
69 69
                 return $this->inferGenericName($reflect);
70 70
         }
71 71
 
72
-        throw new \DomainException
73
-        (
72
+        throw new \DomainException(
74 73
             'Unknown type: ' . get_class($reflect)
75 74
         );
76 75
     }
@@ -89,8 +88,7 @@  discard block
 block discarded – undo
89 88
             throw new MissingContextException();
90 89
         }
91 90
 
92
-        return $this->inferName
93
-        (
91
+        return $this->inferName(
94 92
             $this->context->getGenericType($reflect->name)
95 93
         );
96 94
     }
@@ -115,8 +113,7 @@  discard block
 block discarded – undo
115 113
                 $items[] = $this->inferName($generic);
116 114
             }
117 115
 
118
-            return new ClassName
119
-            (
116
+            return new ClassName(
120 117
                   self::BASE . $reflect->classname
121 118
                 . '_g' . implode('_c', $items) . '_e'
122 119
             );
Please login to merge, or discard this patch.
src/Service/TypeComparator.php 1 patch
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@  discard block
 block discarded – undo
31 31
      * @param AbstractType $child
32 32
      * @return boolean
33 33
      */
34
-    public function compatible
35
-    (
34
+    public function compatible(
36 35
         AbstractType $parent,
37 36
         AbstractType $child
38 37
     )
@@ -50,16 +49,14 @@  discard block
 block discarded – undo
50 49
         {
51 50
             return
52 51
                 $child instanceof ObjectType && 
53
-                is_a
54
-                (
52
+                is_a(
55 53
                     $child->classname->__toString(),
56 54
                     $parent->classname->__toString(),
57 55
                     true
58 56
                 );
59 57
         }
60 58
 
61
-        throw new \DomainException
62
-        (
59
+        throw new \DomainException(
63 60
             'Unknown type: ' . get_class($parent)
64 61
         );
65 62
     }
Please login to merge, or discard this patch.