Completed
Pull Request — master (#1224)
by Alexander
13:48
created
src/Type/Parser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $this->lexer->moveNext();
38 38
 
39
-        if (!$this->lexer->token) {
39
+        if ( ! $this->lexer->token) {
40 40
             throw new SyntaxError(
41 41
                 'Syntax error, unexpected end of stream'
42 42
             );
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                 return $this->visitArrayType();
58 58
             }
59 59
             return $this->visitSimpleType();
60
-        } elseif (!$this->root && Lexer::T_ARRAY_START === $this->lexer->token['type']) {
60
+        } elseif ( ! $this->root && Lexer::T_ARRAY_START === $this->lexer->token['type']) {
61 61
             return $this->visitArrayType();
62 62
         }
63 63
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $this->match(Lexer::T_TYPE_START);
85 85
 
86 86
         $params = [];
87
-        if (!$this->lexer->isNextToken(Lexer::T_TYPE_END)) {
87
+        if ( ! $this->lexer->isNextToken(Lexer::T_TYPE_END)) {
88 88
             while (true) {
89 89
                 $params[] = $this->visit();
90 90
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
          */
110 110
 
111 111
         $params = [];
112
-        if (!$this->lexer->isNextToken(Lexer::T_ARRAY_END)) {
112
+        if ( ! $this->lexer->isNextToken(Lexer::T_ARRAY_END)) {
113 113
             while (true) {
114 114
                 $params[] = $this->visit();
115 115
                 if ($this->lexer->isNextToken(Lexer::T_ARRAY_END)) {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
     private function match(int $token): void
126 126
     {
127
-        if (!$this->lexer->lookahead) {
127
+        if ( ! $this->lexer->lookahead) {
128 128
             throw new SyntaxError(
129 129
                 sprintf('Syntax error, unexpected end of stream, expected %s', $this->getConstant($token))
130 130
             );
Please login to merge, or discard this patch.
src/Construction/DoctrineObjectConstructor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         // Locate possible ObjectManager
54 54
         $objectManager = $this->managerRegistry->getManagerForClass($metadata->name);
55 55
 
56
-        if (!$objectManager) {
56
+        if ( ! $objectManager) {
57 57
             // No ObjectManager found, proceed with normal deserialization
58 58
             return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context);
59 59
         }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         }
68 68
 
69 69
         // Managed entity, check for proxy load
70
-        if (!\is_array($data) && !(is_object($data) && 'SimpleXMLElement' === get_class($data))) {
70
+        if ( ! \is_array($data) && ! (is_object($data) && 'SimpleXMLElement' === get_class($data))) {
71 71
             // Single identifier, load proxy
72 72
             return $objectManager->getReference($metadata->name, $data);
73 73
         }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 $dataName = $name;
84 84
             }
85 85
 
86
-            if (!array_key_exists($dataName, $data)) {
86
+            if ( ! array_key_exists($dataName, $data)) {
87 87
                 return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context);
88 88
             }
89 89
             $identifierList[$name] = $data[$dataName];
Please login to merge, or discard this patch.