Test Failed
Pull Request — master (#102)
by
unknown
15:00
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
@@ -30,19 +30,19 @@
 block discarded – undo
30 30
 
31 31
     public function load(string $class): ?ClassMetadata
32 32
     {
33
-        $cache = $this->cache->fetch($this->prefix . $class);
33
+        $cache = $this->cache->fetch($this->prefix.$class);
34 34
 
35 35
         return false === $cache ? null : $cache;
36 36
     }
37 37
 
38 38
     public function put(ClassMetadata $metadata): void
39 39
     {
40
-        $this->cache->save($this->prefix . $metadata->name, $metadata);
40
+        $this->cache->save($this->prefix.$metadata->name, $metadata);
41 41
     }
42 42
 
43 43
     public function evict(string $class): void
44 44
     {
45
-        $this->cache->delete($this->prefix . $class);
45
+        $this->cache->delete($this->prefix.$class);
46 46
     }
47 47
 
48 48
     public function clear(): bool
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
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function load(string $class): ?ClassMetadata
34 34
     {
35
-        $this->lastItem = $this->pool->getItem($this->sanitizeCacheKey($this->prefix . $class));
35
+        $this->lastItem = $this->pool->getItem($this->sanitizeCacheKey($this->prefix.$class));
36 36
 
37 37
         return $this->lastItem->get();
38 38
     }
39 39
 
40 40
     public function put(ClassMetadata $metadata): void
41 41
     {
42
-        $key = $this->sanitizeCacheKey($this->prefix . $metadata->name);
42
+        $key = $this->sanitizeCacheKey($this->prefix.$metadata->name);
43 43
 
44 44
         if (null === $this->lastItem || $this->lastItem->getKey() !== $key) {
45 45
             $this->lastItem = $this->pool->getItem($key);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     public function evict(string $class): void
52 52
     {
53
-        $this->pool->deleteItem($this->sanitizeCacheKey($this->prefix . $class));
53
+        $this->pool->deleteItem($this->sanitizeCacheKey($this->prefix.$class));
54 54
     }
55 55
 
56 56
     public function clear(): bool
Please login to merge, or discard this patch.
src/Cache/FileCache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             return;
62 62
         }
63 63
 
64
-        $data = '<?php return unserialize(' . var_export($metadata->serialize(), true) . ');';
64
+        $data = '<?php return unserialize('.var_export($metadata->serialize(), true).');';
65 65
         $bytesWritten = file_put_contents($tmpFile, $data);
66 66
         // use strlen and not mb_strlen. if there is utf8 in the code, it also writes more bytes.
67 67
         if ($bytesWritten !== strlen($data)) {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     public function clear(): bool
110 110
     {
111 111
         $result = true;
112
-        $files = glob($this->dir . '/*.cache.php');
112
+        $files = glob($this->dir.'/*.cache.php');
113 113
         foreach ($files as $file) {
114 114
             if (is_file($file)) {
115 115
                 $result = $result && @unlink($file);
@@ -129,6 +129,6 @@  discard block
 block discarded – undo
129 129
     {
130 130
         $fileName = str_replace(['\\', "\0", '@', '/', '$', '{', '}', ':'], '-', $key);
131 131
 
132
-        return $this->dir . '/' . $fileName . '.cache.php';
132
+        return $this->dir.'/'.$fileName.'.cache.php';
133 133
     }
134 134
 }
Please login to merge, or discard this patch.