Passed
Branch master (279e71)
by Terry
05:03
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/Apc.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     protected function doGet(string $key): array
62 62
     {
63 63
         $success = false;
64
-		$content = apc_fetch($key, $success);
64
+        $content = apc_fetch($key, $success);
65 65
 
66 66
         if (empty($content) || !$success) {
67 67
             return [];
Please login to merge, or discard this patch.
src/SimpleCache/Driver/Memcached.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $config = [
47 47
             'host' => '127.0.0.1',
48
-			'port' => 11211,
48
+            'port' => 11211,
49 49
         ];
50 50
 
51 51
         foreach (array_keys($config) as $key) {
@@ -72,10 +72,10 @@  discard block
 block discarded – undo
72 72
             try {
73 73
                 $this->memcached = new MemcachedServer();
74 74
                 $this->memcached->addServer(
75
-					$config['host'],
76
-					$config['port'],
77
-					1
78
-				);
75
+                    $config['host'],
76
+                    $config['port'],
77
+                    1
78
+                );
79 79
             // @codeCoverageIgnoreStart
80 80
             } catch (Exception $e) {
81 81
                 throw new CacheException($e->getMessage());
Please login to merge, or discard this patch.
src/SimpleCache/Driver/Memcache.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $config = [
47 47
             'host' => '127.0.0.1',
48
-			'port' => 11211,
48
+            'port' => 11211,
49 49
         ];
50 50
 
51 51
         foreach (array_keys($config) as $key) {
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
             try {
73 73
                 $this->memcache = new MemcacheServer();
74 74
                 $this->memcache->addServer(
75
-					$config['host'],
75
+                    $config['host'],
76 76
                     $config['port'],
77 77
                     true,
78
-					1
79
-				);
78
+                    1
79
+                );
80 80
             // @codeCoverageIgnoreStart
81 81
             } catch (Exception $e) {
82 82
                 throw new CacheException($e->getMessage());
Please login to merge, or discard this patch.