Passed
Branch master (3d4f7a)
by Matteo
03:42
created
src/Cache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/StringProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Cacheasy;
5 5
 
Please login to merge, or discard this patch.
src/NotCachedException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Cacheasy;
5 5
 
Please login to merge, or discard this patch.
src/JsonProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Cacheasy;
5 5
 
Please login to merge, or discard this patch.