Failed Conditions
Pull Request — master (#70)
by Alexander M.
02:45
created
lib/Doctrine/Persistence/Mapping/AbstractClassMetadataFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         @trigger_error(sprintf('%s is deprecated.', __METHOD__), E_USER_DEPRECATED);
73 73
 
74
-        if ($this->cache !== null && ! $this->cache instanceof SimpleCacheAdapter) {
74
+        if ($this->cache !== null && !$this->cache instanceof SimpleCacheAdapter) {
75 75
             throw new BadMethodCallException('Cannot convert a PSR-16 cache back to a Doctrine cache.');
76 76
         }
77 77
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function getAllMetadata() : array
103 103
     {
104
-        if (! $this->initialized) {
104
+        if (!$this->initialized) {
105 105
             $this->initialize();
106 106
         }
107 107
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
         try {
190 190
             if ($this->cache !== null) {
191
-                $cacheKey = str_replace('\\', '.', $realClassName) . $this->cacheSalt;
191
+                $cacheKey = str_replace('\\', '.', $realClassName).$this->cacheSalt;
192 192
                 $cached   = $this->cache->get($cacheKey);
193 193
 
194 194
                 if ($cached instanceof ClassMetadata) {
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      */
285 285
     protected function loadMetadata(string $name) : array
286 286
     {
287
-        if (! $this->initialized) {
287
+        if (!$this->initialized) {
288 288
             $this->initialize();
289 289
         }
290 290
 
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
      */
368 368
     public function isTransient(string $class) : bool
369 369
     {
370
-        if (! $this->initialized) {
370
+        if (!$this->initialized) {
371 371
             $this->initialize();
372 372
         }
373 373
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
      */
407 407
     private function getRealClass(string $class) : string
408 408
     {
409
-        $pos = strrpos($class, '\\' . Proxy::MARKER . '\\');
409
+        $pos = strrpos($class, '\\'.Proxy::MARKER.'\\');
410 410
 
411 411
         if ($pos === false) {
412 412
             return $class;
Please login to merge, or discard this patch.