Completed
Push — develop ( fdb6a9...488668 )
by Paul
02:02
created
src/Parser/NodeParser/UseNodeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
          * @var Node\Stmt\Use_        $node The namespace node to parse.
29 29
          * @var PhpFileModelInterface $parent        The node which contains this namespace.
30 30
          */
31
-        if (! Validator::instance(Node\Stmt\Use_::class)->validate($node)) {
31
+        if (!Validator::instance(Node\Stmt\Use_::class)->validate($node)) {
32 32
             return $parent;
33 33
         }
34 34
         foreach ($node->uses as $use) {
Please login to merge, or discard this patch.
src/Parser/NodeParser/AttributeNodeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
          * @var Node\Stmt\Property  $node   The property node to parse.
31 31
          * @var TraitModelInterface $parent The node which contains this namespace.
32 32
          */
33
-        if (! Validator::instance(Node\Stmt\Property::class)->validate($node)) {
33
+        if (!Validator::instance(Node\Stmt\Property::class)->validate($node)) {
34 34
             return $parent;
35 35
         }
36 36
         foreach ($node->props as $property) {
Please login to merge, or discard this patch.
src/Container/Container.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     private function resolve($id): object
94 94
     {
95
-        if (! Validator::stringType()->validate($id)) {
95
+        if (!Validator::stringType()->validate($id)) {
96 96
             throw new ContainerException("Identifier is not a string.");
97 97
         }
98 98
         if (Validator::key($id)->validate($this->instances)) {
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
      */
119 119
     private function autoResolve(string $class): object
120 120
     {
121
-        if (! class_exists($class)) {
121
+        if (!class_exists($class)) {
122 122
             throw new ContainerException(sprintf("Class %s does not exists.", $class));
123 123
         }
124 124
 
125 125
         $reflection = new \ReflectionClass($class);
126 126
 
127
-        if (! $reflection->isInstantiable()) {
127
+        if (!$reflection->isInstantiable()) {
128 128
             throw new ContainerException(sprintf("Class %s is not instantiable.", $class));
129 129
         }
130 130
         if (($constructor = $reflection->getConstructor()) === null) {
Please login to merge, or discard this patch.