@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | $timeout = fgets($fp); |
| 74 | 74 | |
| 75 | - if ($timeout > time() || $timeout==0) {
|
|
| 75 | + if ($timeout > time() || $timeout == 0) {
|
|
| 76 | 76 | $contents = ""; |
| 77 | 77 | while (!feof($fp)) {
|
| 78 | 78 | $contents .= fread($fp, 65536); |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | } |
| 191 | 191 | } |
| 192 | 192 | $files = glob($this->getDirectory()."*"); |
| 193 | - if ($files !== false){// some file systems wont distinguish between empty match and an error
|
|
| 193 | + if ($files !== false) {// some file systems wont distinguish between empty match and an error
|
|
| 194 | 194 | $prefixFile = str_replace(array("_", "/", "\\", ":"), array("___", "_s_", "_b_", "_d_"), $this->prefix);
|
| 195 | 195 | foreach ($files as $filename) {
|
| 196 | 196 | if (empty($prefixFile) || strpos(basename($filename), $prefixFile) === 0) {
|
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | $fullPath = $this->getDirectory().$key.".cache"; |
| 223 | 223 | |
| 224 | 224 | // Approximative value due to NTFS short file names (e.g. PROGRA~1) that get longer when evaluated by Windows |
| 225 | - if (strlen($fullPath)<160) {
|
|
| 225 | + if (strlen($fullPath) < 160) {
|
|
| 226 | 226 | return $fullPath; |
| 227 | 227 | } |
| 228 | 228 | |