GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch v2 (777d15)
by Hilari
02:30
created
src/Backend/RedisCache.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Cmp\Cache\Cache;
6 6
 use Cmp\Cache\Exceptions\NotFoundException;
7
-use Cmp\Cache\TimeToLiveAwareCache;
8 7
 use Cmp\Cache\Traits\MultiCacheTrait;
9 8
 use Redis;
10 9
 
Please login to merge, or discard this patch.
spec/Backend/RedisCacheSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     {
66 66
         $redis->delete(['foo', 'bar'])->willReturn(true);
67 67
 
68
-        $this->delete(['foo','bar'])->shouldReturn(true);
68
+        $this->delete(['foo', 'bar'])->shouldReturn(true);
69 69
     }
70 70
 
71 71
     function it_can_check_the_existence_of_an_item_in_the_cache(Redis $redis)
Please login to merge, or discard this patch.
src/Decorator/LoggerCache.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function set($key, $value, $timeToLive = null)
56 56
     {
57 57
         return $this->call(
58
-            function () use ($key, $value, $timeToLive) {
58
+            function() use ($key, $value, $timeToLive) {
59 59
                 return $this->cache->set($key, $value, $timeToLive);
60 60
             },
61 61
             __METHOD__,
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     public function has($key)
70 70
     {
71 71
         return $this->call(
72
-            function () use ($key) {
72
+            function() use ($key) {
73 73
                 return $this->cache->has($key);
74 74
             },
75 75
             __METHOD__,
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     public function get($key, $default = null)
84 84
     {
85 85
         return $this->call(
86
-            function () use ($key, $default) {
86
+            function() use ($key, $default) {
87 87
                 return $this->cache->get($key, $default);
88 88
             },
89 89
             __METHOD__,
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     public function demand($key)
98 98
     {
99 99
         return $this->call(
100
-            function () use ($key) {
100
+            function() use ($key) {
101 101
                 return $this->cache->demand($key);
102 102
             },
103 103
             __METHOD__,
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     public function delete($key)
112 112
     {
113 113
         return $this->call(
114
-            function () use ($key) {
114
+            function() use ($key) {
115 115
                 return $this->cache->delete($key);
116 116
             },
117 117
             __METHOD__,
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     public function flush()
126 126
     {
127 127
         return $this->call(
128
-            function () {
128
+            function() {
129 129
                 return $this->cache->flush();
130 130
             },
131 131
             __METHOD__
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     public function setItems(array $items, $timeToLive = null)
139 139
     {
140 140
         return $this->call(
141
-            function () use ($items, $timeToLive) {
141
+            function() use ($items, $timeToLive) {
142 142
                 return $this->cache->setItems($items, $timeToLive);
143 143
             },
144 144
             __METHOD__,
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     public function getItems(array $keys)
153 153
     {
154 154
         return $this->call(
155
-            function () use ($keys) {
155
+            function() use ($keys) {
156 156
                 return $this->cache->getItems($keys);
157 157
             },
158 158
             __METHOD__,
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     public function deleteItems(array $keys)
167 167
     {
168 168
         return $this->call(
169
-            function () use ($keys) {
169
+            function() use ($keys) {
170 170
                 return $this->cache->deleteItems($keys);
171 171
             },
172 172
             __METHOD__,
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     public function getTimeToLive($key)
185 185
     {
186 186
         return $this->call(
187
-            function () use($key) {
187
+            function() use($key) {
188 188
                 return $this->cache->getTimeToLive($key);
189 189
             },
190 190
             __METHOD__
Please login to merge, or discard this patch.
src/Backend/ChainCache.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
      */
150 150
     private function populatePreviousCaches($index, $key, $item, $timeToLive)
151 151
     {
152
-        for (--$index; $index >= 0 ; $index--) {
152
+        for (--$index; $index >= 0; $index--) {
153 153
             $this->cache[$index]->set($key, $item, $timeToLive);
154 154
         }
155 155
     }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Cmp\Cache\Cache;
6 6
 use Cmp\Cache\Exceptions\NotFoundException;
7
-use Cmp\Cache\TimeToLiveAwareCache;
8 7
 use Cmp\Cache\Traits\MultiCacheTrait;
9 8
 use Redis;
10 9
 
Please login to merge, or discard this patch.