Passed
Push — master ( 90a365...15fd0e )
by Terry
09:12
created
src/SimpleCache/Driver/SqlTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
         $query = $this->db->prepare($sql);
154 154
         $query->bindValue(':cache_key', $key, PDO::PARAM_STR);
155 155
         $query->execute();
156
-        $count =$query->fetchColumn();
156
+        $count = $query->fetchColumn();
157 157
 
158 158
         return $count > 0;
159 159
     }
Please login to merge, or discard this patch.
src/SimpleCache/Driver/Mysql.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@
 block discarded – undo
65 65
     protected function connect(array $config): void
66 66
     {
67 67
         $host = 'mysql' . 
68
-            ':host='   . $config['host'] . 
69
-            ';port='   . $config['port'] .
68
+            ':host=' . $config['host'] . 
69
+            ';port=' . $config['port'] .
70 70
             ';dbname=' . $config['dbname'] .
71
-            ';charset='. $config['charset'];
71
+            ';charset=' . $config['charset'];
72 72
 
73 73
         $user = $config['user'];
74 74
         $pass = $config['pass'];
Please login to merge, or discard this patch.
src/SimpleCache/Driver/Mongo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
         $cursor = $this->mongo->executeQuery($this->getCollectionName(), $query);
158 158
 
159 159
         $data = [];
160
-        foreach($cursor as $document) {
160
+        foreach ($cursor as $document) {
161 161
             $data[] = unserialize($document->content);
162 162
         }
163 163
 
Please login to merge, or discard this patch.
src/SimpleCache/Driver/Apc.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     protected function doGet(string $key): array
65 65
     {
66 66
         $success = false;
67
-		$content = apc_fetch($this->getKeyName($key), $success);
67
+        $content = apc_fetch($this->getKeyName($key), $success);
68 68
 
69 69
         if (empty($content) || !$success) {
70 70
             return [];
Please login to merge, or discard this patch.
src/SimpleCache/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
         $removedList = [];
174 174
 
175 175
         $probability = $settings['gc_probability'] ?? 1;
176
-        $divisor     = $settings['gc_divisor']     ?? 100;
176
+        $divisor     = $settings['gc_divisor'] ?? 100;
177 177
 
178 178
         if (method_exists($this->driver, 'gc')) {
179 179
             $removedList = $this->driver->gc($probability, $divisor);
Please login to merge, or discard this patch.