Passed
Push — master ( 6eb35f...62fcbe )
by Asmir
48s queued 10s
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
@@ -31,18 +31,18 @@
 block discarded – undo
31 31
 
32 32
     public function load(string $class): ?ClassMetadata
33 33
     {
34
-        $cache = $this->cache->fetch($this->prefix . $class);
34
+        $cache = $this->cache->fetch($this->prefix.$class);
35 35
 
36 36
         return false === $cache ? null : $cache;
37 37
     }
38 38
 
39 39
     public function put(ClassMetadata $metadata): void
40 40
     {
41
-        $this->cache->save($this->prefix . $metadata->name, $metadata);
41
+        $this->cache->save($this->prefix.$metadata->name, $metadata);
42 42
     }
43 43
 
44 44
     public function evict(string $class): void
45 45
     {
46
-        $this->cache->delete($this->prefix . $class);
46
+        $this->cache->delete($this->prefix.$class);
47 47
     }
48 48
 }
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,14 +35,14 @@  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
     }
42 42
 
43 43
     public function put(ClassMetadata $metadata): void
44 44
     {
45
-        $key = $this->sanitizeCacheKey($this->prefix . $metadata->name);
45
+        $key = $this->sanitizeCacheKey($this->prefix.$metadata->name);
46 46
 
47 47
         if (null === $this->lastItem || $this->lastItem->getKey() !== $key) {
48 48
             $this->lastItem = $this->pool->getItem($key);
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function evict(string $class): void
55 55
     {
56
-        $this->pool->deleteItem($this->sanitizeCacheKey($this->prefix . $class));
56
+        $this->pool->deleteItem($this->sanitizeCacheKey($this->prefix.$class));
57 57
     }
58 58
 
59 59
     /**
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
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     public function load(string $class): ?ClassMetadata
27 27
     {
28
-        $path = $this->dir . '/' . $this->sanitizeCacheKey($class) . '.cache.php';
28
+        $path = $this->dir.'/'.$this->sanitizeCacheKey($class).'.cache.php';
29 29
         if (!file_exists($path)) {
30 30
             return null;
31 31
         }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             throw new \InvalidArgumentException(sprintf('The directory "%s" is not writable.', $this->dir));
51 51
         }
52 52
 
53
-        $path = $this->dir . '/' . $this->sanitizeCacheKey($metadata->name) . '.cache.php';
53
+        $path = $this->dir.'/'.$this->sanitizeCacheKey($metadata->name).'.cache.php';
54 54
 
55 55
         $tmpFile = tempnam($this->dir, 'metadata-cache');
56 56
         if (false === $tmpFile) {
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             return;
60 60
         }
61 61
 
62
-        $data = '<?php return unserialize(' . var_export(serialize($metadata), true) . ');';
62
+        $data = '<?php return unserialize('.var_export(serialize($metadata), true).');';
63 63
         $bytesWritten = file_put_contents($tmpFile, $data);
64 64
         // use strlen and not mb_strlen. if there is utf8 in the code, it also writes more bytes.
65 65
         if ($bytesWritten !== strlen($data)) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
     public function evict(string $class): void
99 99
     {
100
-        $path = $this->dir . '/' . $this->sanitizeCacheKey($class) . '.cache.php';
100
+        $path = $this->dir.'/'.$this->sanitizeCacheKey($class).'.cache.php';
101 101
         if (file_exists($path)) {
102 102
             @unlink($path);
103 103
         }
Please login to merge, or discard this patch.