@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cacheasy; |
| 5 | 5 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | */ |
| 102 | 102 | public function hitString(string $label) : string |
| 103 | 103 | { |
| 104 | - if($this->isCached($label)){ |
|
| 104 | + if ($this->isCached($label)) { |
|
| 105 | 105 | $filename = $this->path . "/" . md5($label); |
| 106 | 106 | return file_get_contents($filename); |
| 107 | 107 | } else { |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | public function isCached(string $label) : bool |
| 134 | 134 | { |
| 135 | 135 | $filename = $this->path . "/" . md5($label); |
| 136 | - if(file_exists($filename) && (filemtime($filename) + $this->ttl >= time())) { |
|
| 136 | + if (file_exists($filename) && (filemtime($filename) + $this->ttl >= time())) { |
|
| 137 | 137 | return true; |
| 138 | 138 | } |
| 139 | 139 | return false; |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cacheasy; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cacheasy; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cacheasy; |
| 5 | 5 | |