Completed
Pull Request — master (#12)
by Klaus
03:18
created
src/Adapter/MysqlAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Component\Cache\Adapter;
5 5
 
Please login to merge, or discard this patch.
src/Adapter/ApcAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Component\Cache\Adapter;
5 5
 
Please login to merge, or discard this patch.
src/Adapter/AbstractAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Component\Cache\Adapter;
5 5
 
Please login to merge, or discard this patch.
src/Adapter/RedisAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Component\Cache\Adapter;
5 5
 
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
     protected function getConnectionParameters(array $config): array
153 153
     {
154 154
         $connectionParameters = [];
155
-        $connectionParameters['host'] = $config['host'] ?? '127.0.0.1';
156
-        $connectionParameters['port'] = $config['port'] ?? 6379;
155
+        $connectionParameters['host'] = $config['host'] ? ? '127.0.0.1';
156
+        $connectionParameters['port'] = $config['port'] ? ? 6379;
157 157
         if (isset($config['database'])) {
158 158
             $connectionParameters['database'] = $config['database'];
159 159
         }
Please login to merge, or discard this patch.
src/Adapter/ArrayAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Component\Cache\Adapter;
5 5
 
Please login to merge, or discard this patch.