Test Failed
Push — master ( ca58d9...3c676e )
by Sebastian
14:55 queued 10:31
created
src/Linna/Router/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
199 199
             return $this->callback;
200 200
         }
201 201
 
202
-        return function () {
202
+        return function() {
203 203
         };
204 204
     }
205 205
 
Please login to merge, or discard this patch.
src/Linna/Router/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
      */
223 223
     private function buildParamFromQueryString(string $queryString): void
224 224
     {
225
-        $param = \array_map(function ($array_value) {
225
+        $param = \array_map(function($array_value) {
226 226
             $tmp = \explode('=', $array_value);
227 227
             $array_value = [];
228 228
             $key = $tmp[0];
Please login to merge, or discard this patch.
src/Linna/Session/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
             \session_start([
135 135
                 'cookie_path'      => $this->cookiePath,
136 136
                 'cookie_domain'    => $this->cookieDomain,
137
-                'cookie_lifetime'  => $this->expire,//($this->expire > 0) ? time() + $this->expire : 0,
137
+                'cookie_lifetime'  => $this->expire, //($this->expire > 0) ? time() + $this->expire : 0,
138 138
                 'cookie_secure'    => $this->cookieSecure,
139 139
                 'cookie_httponly'  => $this->cookieHttpOnly,
140 140
                 'cookie_samesite'  => $this->cookieSameSite
Please login to merge, or discard this patch.
src/Linna/Container/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
 
166 166
         //get parameter from constructor
167 167
         //can return error when constructor not declared
168
-        $constructor = (new ReflectionClass($class))->getConstructor();//->getParameters();
168
+        $constructor = (new ReflectionClass($class))->getConstructor(); //->getParameters();
169 169
         //this should resolve the error when a class without constructor is encountered
170 170
         $parameters = \is_null($constructor) ? [] : $constructor->getParameters();
171 171
 
Please login to merge, or discard this patch.
src/Linna/Cache/ActionMultipleTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @throws \Psr\SimpleCache\InvalidArgumentException
46 46
      *   MUST be thrown if the $key string is not a legal value.
47 47
      */
48
-    abstract public function set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool;
48
+    abstract public function set(string $key, mixed $value, DateInterval | int | null $ttl = null): bool;
49 49
 
50 50
     /**
51 51
      * Determines whether an item is present in the cache.
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      *   MUST be thrown if $values is neither an array nor a Traversable,
114 114
      *   or if any of the $values are not a legal value.
115 115
      */
116
-    public function setMultiple(iterable $values, null|int|DateInterval $ttl = null): bool
116
+    public function setMultiple(iterable $values, null | int | DateInterval $ttl = null): bool
117 117
     {
118 118
         foreach ($values as $key => $value) {
119 119
             $this->set($key, $value, $ttl);
Please login to merge, or discard this patch.
src/Linna/Cache/MemcachedCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @throws \Psr\SimpleCache\InvalidArgumentException
83 83
      *   MUST be thrown if the $key string is not a legal value.
84 84
      */
85
-    public function set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool
85
+    public function set(string $key, mixed $value, DateInterval | int | null $ttl = null): bool
86 86
     {
87 87
         return $this->memcached->set($key, $value, $this->handleTtl($ttl));
88 88
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      *
97 97
      * @return int Ttl in seconds.
98 98
      */
99
-    private function handleTtl(DateInterval|int|null $ttl): int
99
+    private function handleTtl(DateInterval | int | null $ttl): int
100 100
     {
101 101
         if ($ttl == null) {
102 102
             return 0;
Please login to merge, or discard this patch.
src/Linna/Cache/DiskCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      * @throws \Psr\SimpleCache\InvalidArgumentException
115 115
      *   MUST be thrown if the $key string is not a legal value.
116 116
      */
117
-    public function set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool
117
+    public function set(string $key, mixed $value, DateInterval | int | null $ttl = null): bool
118 118
     {
119 119
         $vTtl = $this->handleTtl($ttl);
120 120
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @return int Ttl in seconds.
147 147
      */
148
-    private function handleTtl(DateInterval|int|null $ttl): int
148
+    private function handleTtl(DateInterval | int | null $ttl): int
149 149
     {
150 150
         if ($ttl == null) {
151 151
             return 0;
Please login to merge, or discard this patch.