Completed
Push — feature/0.7.0 ( 385c73...df772f )
by Ryuichi
03:38
created
WebStream/Module/Utility/CacheUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
                 $driver = $factory->create("WebStream\Cache\Driver\Apcu");
32 32
                 break;
33 33
             case "memcached":
34
-                $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot() . '/config/cache.yml');
34
+                $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot().'/config/cache.yml');
35 35
                 if (array_key_exists('memcached', $cacheConfig)) {
36 36
                     $config = new Container(false);
37 37
                     $config->servers = [$cacheConfig['host'], $cacheConfig['port']];
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                 }
40 40
                 break;
41 41
             case "redis":
42
-                $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot() . '/config/cache.yml');
42
+                $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot().'/config/cache.yml');
43 43
                 if (array_key_exists('redis', $cacheConfig)) {
44 44
                     $config = new Container(false);
45 45
                     $config->host = $cacheConfig['host'];
Please login to merge, or discard this patch.
WebStream/Cache/LoggerCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function add(string $content)
52 52
     {
53
-        $this->driver->add($this->key . $this->index++, $content);
53
+        $this->driver->add($this->key.$this->index++, $content);
54 54
     }
55 55
 
56 56
     /**
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     {
62 62
         $list = [];
63 63
         for ($i = 0; $i < $this->index; $i++) {
64
-            $list[] = $this->driver->get($this->key . $i);
64
+            $list[] = $this->driver->get($this->key.$i);
65 65
         }
66 66
 
67 67
         return $list;
Please login to merge, or discard this patch.