Passed
Push — master ( 6671a7...0d969f )
by Asmir
54s queued 11s
created
src/Driver/FileLocator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             }
28 28
 
29 29
             $len = '' === $prefix ? 0 : strlen($prefix) + 1;
30
-            $path = $dir . '/' . str_replace('\\', '.', substr($class->name, $len)) . '.' . $extension;
30
+            $path = $dir.'/'.str_replace('\\', '.', substr($class->name, $len)).'.'.$extension;
31 31
             if (file_exists($path)) {
32 32
                 return $path;
33 33
             }
@@ -48,13 +48,13 @@  discard block
 block discarded – undo
48 48
                 new \RecursiveDirectoryIterator($dir),
49 49
                 \RecursiveIteratorIterator::LEAVES_ONLY
50 50
             );
51
-            $nsPrefix = '' !== $prefix ? $prefix . '\\' : '';
51
+            $nsPrefix = '' !== $prefix ? $prefix.'\\' : '';
52 52
             foreach ($iterator as $file) {
53
-                if (($fileName = $file->getBasename('.' . $extension)) === $file->getBasename()) {
53
+                if (($fileName = $file->getBasename('.'.$extension)) === $file->getBasename()) {
54 54
                     continue;
55 55
                 }
56 56
 
57
-                $classes[] = $nsPrefix . str_replace('.', '\\', $fileName);
57
+                $classes[] = $nsPrefix.str_replace('.', '\\', $fileName);
58 58
             }
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Driver/DriverChain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             if (!$driver instanceof AdvancedDriverInterface) {
40 40
                 throw new \RuntimeException(
41 41
                     sprintf(
42
-                        'Driver "%s" must be an instance of "AdvancedDriverInterface" to use ' .
42
+                        'Driver "%s" must be an instance of "AdvancedDriverInterface" to use '.
43 43
                         '"DriverChain::getAllClassNames()".',
44 44
                         get_class($driver)
45 45
                     )
Please login to merge, or discard this patch.
src/Cache/DoctrineCacheAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function load(string $class): ?ClassMetadata
36 36
     {
37
-        $cache = $this->cache->fetch($this->prefix . $class);
37
+        $cache = $this->cache->fetch($this->prefix.$class);
38 38
         return false === $cache ? null : $cache;
39 39
     }
40 40
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function put(ClassMetadata $metadata): void
45 45
     {
46
-        $this->cache->save($this->prefix . $metadata->name, $metadata);
46
+        $this->cache->save($this->prefix.$metadata->name, $metadata);
47 47
     }
48 48
 
49 49
     /**
@@ -51,6 +51,6 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function evict(string $class): void
53 53
     {
54
-        $this->cache->delete($this->prefix . $class);
54
+        $this->cache->delete($this->prefix.$class);
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
src/Cache/PsrCacheAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function load(string $class): ?ClassMetadata
37 37
     {
38
-        $this->lastItem = $this->pool->getItem($this->sanitizeCacheKey($this->prefix . $class));
38
+        $this->lastItem = $this->pool->getItem($this->sanitizeCacheKey($this->prefix.$class));
39 39
 
40 40
         return $this->lastItem->get();
41 41
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function put(ClassMetadata $metadata): void
47 47
     {
48
-        $key = $this->sanitizeCacheKey($this->prefix . $metadata->name);
48
+        $key = $this->sanitizeCacheKey($this->prefix.$metadata->name);
49 49
 
50 50
         if (null === $this->lastItem || $this->lastItem->getKey() !== $key) {
51 51
             $this->lastItem = $this->pool->getItem($key);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function evict(string $class): void
61 61
     {
62
-        $this->pool->deleteItem($this->sanitizeCacheKey($this->prefix . $class));
62
+        $this->pool->deleteItem($this->sanitizeCacheKey($this->prefix.$class));
63 63
     }
64 64
 
65 65
     /**
Please login to merge, or discard this patch.
src/Cache/FileCache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function load(string $class): ?ClassMetadata
29 29
     {
30
-        $path = $this->dir . '/' . $this->sanitizeCacheKey($class) . '.cache.php';
30
+        $path = $this->dir.'/'.$this->sanitizeCacheKey($class).'.cache.php';
31 31
         if (!file_exists($path)) {
32 32
             return null;
33 33
         }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             throw new \InvalidArgumentException(sprintf('The directory "%s" is not writable.', $this->dir));
55 55
         }
56 56
 
57
-        $path = $this->dir . '/' . $this->sanitizeCacheKey($metadata->name) . '.cache.php';
57
+        $path = $this->dir.'/'.$this->sanitizeCacheKey($metadata->name).'.cache.php';
58 58
 
59 59
         $tmpFile = tempnam($this->dir, 'metadata-cache');
60 60
         if (false === $tmpFile) {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
             return;
64 64
         }
65
-        $data = '<?php return unserialize(' . var_export(serialize($metadata), true) . ');';
65
+        $data = '<?php return unserialize('.var_export(serialize($metadata), true).');';
66 66
         $bytesWritten = file_put_contents($tmpFile, $data);
67 67
         // use strlen and not mb_strlen. if there is utf8 in the code, it also writes more bytes.
68 68
         if ($bytesWritten !== strlen($data)) {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function evict(string $class): void
105 105
     {
106
-        $path = $this->dir . '/' . $this->sanitizeCacheKey($class) . '.cache.php';
106
+        $path = $this->dir.'/'.$this->sanitizeCacheKey($class).'.cache.php';
107 107
         if (file_exists($path)) {
108 108
             @unlink($path);
109 109
         }
Please login to merge, or discard this patch.