Completed
Push — 2.0 ( 096a4b...a51c1d )
by Marco
09:02 queued 06:29
created
src/Comodojo/Cache/Interfaces/EnhancedCacheItemPoolInterface.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     /**
61 61
      * Set provider in error state
62 62
      *
63
-     * @param bool $status
63
+     * @param bool $state
64 64
      *   Current status
65 65
      *
66 66
      * @param string $message
@@ -85,6 +85,9 @@  discard block
 block discarded – undo
85 85
 
86 86
     public function getNamespace();
87 87
 
88
+    /**
89
+     * @return \Comodojo\Cache\Traits\NamespaceTrait
90
+     */
88 91
     public function setNamespace($namespace);
89 92
 
90 93
     public function clearNamespace();
Please login to merge, or discard this patch.
src/Comodojo/Cache/Providers/Filesystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
                 throw new InvalidSimpleCacheArgumentException("Invalid or unspecified cache folder");
37 37
             }
38 38
 
39
-            if ( $cache_folder[strlen($cache_folder)-1] != "/" ) $cache_folder = "$cache_folder/";
39
+            if ( $cache_folder[strlen($cache_folder) - 1] != "/" ) $cache_folder = "$cache_folder/";
40 40
 
41 41
             if ( self::isXattrSupported($cache_folder) ) {
42 42
                 $this->driver = new FilesystemXattrDriver(['cache-folder'=>$cache_folder]);
Please login to merge, or discard this patch.
src/Comodojo/Cache/Providers/Memcached.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function __construct(
32 32
         $server = '127.0.0.1',
33
-        $port=11211,
34
-        $weight=0,
35
-        $persistent_id=null,
36
-        LoggerInterface $logger=null
33
+        $port = 11211,
34
+        $weight = 0,
35
+        $persistent_id = null,
36
+        LoggerInterface $logger = null
37 37
     ) {
38 38
 
39 39
         if ( empty($server) ) {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
         $objects = 0;
78 78
 
79
-        foreach ($info as $key => $value) {
79
+        foreach ( $info as $key => $value ) {
80 80
 
81 81
             $objects = max($objects, $value['curr_items']);
82 82
 
Please login to merge, or discard this patch.
src/Comodojo/Cache/Providers/AbstractProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      */
59 59
     public function setLogger(LoggerInterface $logger = null) {
60 60
 
61
-        $this->logger = is_null($logger) ? LogManager::create('cache',false)->getLogger() : $logger;
61
+        $this->logger = is_null($logger) ? LogManager::create('cache', false)->getLogger() : $logger;
62 62
 
63 63
         return $this;
64 64
 
Please login to merge, or discard this patch.
src/Comodojo/Cache/Providers/PhpRedis.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
 
32 32
     public function __construct(
33 33
         $server = '127.0.0.1',
34
-        $port=6379,
35
-        $timeout=0,
36
-        LoggerInterface $logger=null
34
+        $port = 6379,
35
+        $timeout = 0,
36
+        LoggerInterface $logger = null
37 37
     ) {
38 38
 
39 39
         if ( empty($server) ) {
Please login to merge, or discard this patch.
src/Comodojo/Cache/Drivers/Apc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
         $return = [];
121 121
 
122
-        foreach ($data as $scoped_key => $value) {
122
+        foreach ( $data as $scoped_key => $value ) {
123 123
             $key = substr($scoped_key, strlen("$scope-"));
124 124
             $return[$key] = $value;
125 125
         }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
         $shadowNames = [];
142 142
 
143
-        foreach ($key_values as $key => $value) {
143
+        foreach ( $key_values as $key => $value ) {
144 144
             $shadowNames["$scope-$key"] = $value;
145 145
         }
146 146
 
Please login to merge, or discard this patch.
src/Comodojo/Cache/Drivers/Vacuum.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -33,18 +33,28 @@  discard block
 block discarded – undo
33 33
 
34 34
     }
35 35
 
36
+    /**
37
+     * @param string $key
38
+     */
36 39
     public function get($key, $namespace) {
37 40
 
38 41
         return null;
39 42
 
40 43
     }
41 44
 
45
+    /**
46
+     * @param string $key
47
+     * @param string $value
48
+     */
42 49
     public function set($key, $namespace, $value, $ttl = null) {
43 50
 
44 51
         return true;
45 52
 
46 53
     }
47 54
 
55
+    /**
56
+     * @param string $key
57
+     */
48 58
     public function delete($key, $namespace) {
49 59
 
50 60
         return false;
@@ -75,6 +85,9 @@  discard block
 block discarded – undo
75 85
 
76 86
     }
77 87
 
88
+    /**
89
+     * @param string $key
90
+     */
78 91
     public function has($key, $namespace) {
79 92
 
80 93
         return false;
Please login to merge, or discard this patch.