Completed
Push — 2.0 ( c9f4d8...1bf5a3 )
by Marco
46:52
created
src/Comodojo/SimpleCache/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/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.