@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * @author Georges.L (Geolim4) <[email protected]> |
12 | 12 | * |
13 | 13 | */ |
14 | -declare(strict_types=1); |
|
14 | +declare(strict_types = 1); |
|
15 | 15 | |
16 | 16 | namespace Phpfastcache\Core\Item; |
17 | 17 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $this->driver = $driver; |
71 | 71 | $this->driver->setItem($this); |
72 | 72 | $this->expirationDate = new \DateTime(); |
73 | - if($this->driver->getConfigOption('itemDetailedDate')){ |
|
73 | + if ($this->driver->getConfigOption('itemDetailedDate')) { |
|
74 | 74 | $this->creationDate = new \DateTime(); |
75 | 75 | $this->modificationDate = new \DateTime(); |
76 | 76 | } |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | { |
233 | 233 | case 'array': |
234 | 234 | case 'object': |
235 | - if(\is_array($this->data) || $this->data instanceof \Countable){ |
|
235 | + if (\is_array($this->data) || $this->data instanceof \Countable) { |
|
236 | 236 | return \count($this->data); |
237 | 237 | } |
238 | 238 | break; |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | if (\is_array($this->data)) { |
291 | 291 | $this->data[] = $data; |
292 | 292 | } else if (\is_string($data)) { |
293 | - $this->data .= (string)$data; |
|
293 | + $this->data .= (string) $data; |
|
294 | 294 | } else { |
295 | 295 | throw new PhpfastcacheInvalidArgumentException('$data must be either array nor string.'); |
296 | 296 | } |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | if (\is_array($this->data)) { |
310 | 310 | \array_unshift($this->data, $data); |
311 | 311 | } else if (\is_string($data)) { |
312 | - $this->data = (string)$data . $this->data; |
|
312 | + $this->data = (string) $data . $this->data; |
|
313 | 313 | } else { |
314 | 314 | throw new PhpfastcacheInvalidArgumentException('$data must be either array nor string.'); |
315 | 315 | } |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | public function removeTag($tagName): ExtendedCacheItemInterface |
389 | 389 | { |
390 | 390 | if (($key = array_search($tagName, $this->tags)) !== false) { |
391 | - unset($this->tags[ $key ]); |
|
391 | + unset($this->tags[$key]); |
|
392 | 392 | $this->removedTags[] = $tagName; |
393 | 393 | } |
394 | 394 | |
@@ -467,8 +467,8 @@ discard block |
||
467 | 467 | final public function __debugInfo() |
468 | 468 | { |
469 | 469 | $info = \get_object_vars($this); |
470 | - $info[ 'driver' ] = 'object(' . \get_class($info[ 'driver' ]) . ')'; |
|
470 | + $info['driver'] = 'object(' . \get_class($info['driver']) . ')'; |
|
471 | 471 | |
472 | - return (array)$info; |
|
472 | + return (array) $info; |
|
473 | 473 | } |
474 | 474 | } |
475 | 475 | \ No newline at end of file |