Completed
Pull Request — master (#50)
by Jonathan
04:29 queued 02:01
created
lib/Doctrine/Persistence/Mapping/AbstractClassMetadataFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function getAllMetadata() : array
79 79
     {
80
-        if (! $this->initialized) {
80
+        if (!$this->initialized) {
81 81
             $this->initialize();
82 82
         }
83 83
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
         try {
166 166
             if ($this->cacheDriver !== null) {
167
-                $cached = $this->cacheDriver->fetch($realClassName . $this->cacheSalt);
167
+                $cached = $this->cacheDriver->fetch($realClassName.$this->cacheSalt);
168 168
 
169 169
                 if ($cached instanceof ClassMetadata) {
170 170
                     $this->loadedMetadata[$realClassName] = $cached;
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                 } else {
174 174
                     foreach ($this->loadMetadata($realClassName) as $loadedClassName) {
175 175
                         $this->cacheDriver->save(
176
-                            $loadedClassName . $this->cacheSalt,
176
+                            $loadedClassName.$this->cacheSalt,
177 177
                             $this->loadedMetadata[$loadedClassName],
178 178
                             0
179 179
                         );
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      */
261 261
     protected function loadMetadata(string $name) : array
262 262
     {
263
-        if (! $this->initialized) {
263
+        if (!$this->initialized) {
264 264
             $this->initialize();
265 265
         }
266 266
 
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
      */
345 345
     public function isTransient(string $class) : bool
346 346
     {
347
-        if (! $this->initialized) {
347
+        if (!$this->initialized) {
348 348
             $this->initialize();
349 349
         }
350 350
 
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
      */
384 384
     private function getRealClass(string $class) : string
385 385
     {
386
-        $pos = strrpos($class, '\\' . Proxy::MARKER . '\\');
386
+        $pos = strrpos($class, '\\'.Proxy::MARKER.'\\');
387 387
 
388 388
         if ($pos === false) {
389 389
             return $class;
Please login to merge, or discard this patch.
lib/Doctrine/Persistence/AbstractManagerRegistry.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             $name = $this->defaultConnection;
92 92
         }
93 93
 
94
-        if (! isset($this->connections[$name])) {
94
+        if (!isset($this->connections[$name])) {
95 95
             throw new InvalidArgumentException(
96 96
                 sprintf('Doctrine %s Connection named "%s" does not exist.', $this->name, $name)
97 97
             );
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             $name = $this->defaultManager;
149 149
         }
150 150
 
151
-        if (! isset($this->managers[$name])) {
151
+        if (!isset($this->managers[$name])) {
152 152
             throw new InvalidArgumentException(
153 153
                 sprintf('Doctrine %s Manager named "%s" does not exist.', $this->name, $name)
154 154
             );
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         if (strpos($class, ':') !== false) {
170 170
             [$namespaceAlias, $simpleClassName] = explode(':', $class, 2);
171 171
 
172
-            $class = $this->getAliasNamespace($namespaceAlias) . '\\' . $simpleClassName;
172
+            $class = $this->getAliasNamespace($namespaceAlias).'\\'.$simpleClassName;
173 173
         }
174 174
 
175 175
         $proxyClass = new ReflectionClass($class);
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             /** @var ObjectManager $manager */
189 189
             $manager = $this->getService($id);
190 190
 
191
-            if (! $manager->getMetadataFactory()->isTransient($class)) {
191
+            if (!$manager->getMetadataFactory()->isTransient($class)) {
192 192
                 return $manager;
193 193
             }
194 194
         }
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
             $name = $this->defaultManager;
248 248
         }
249 249
 
250
-        if (! isset($this->managers[$name])) {
250
+        if (!isset($this->managers[$name])) {
251 251
             throw new InvalidArgumentException(sprintf('Doctrine %s Manager named "%s" does not exist.', $this->name, $name));
252 252
         }
253 253
 
Please login to merge, or discard this patch.