@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | throw new InvalidArgumentException("cache path does not exist: {$cache_path}"); |
52 | 52 | } |
53 | 53 | |
54 | - if (! is_writable($path . DIRECTORY_SEPARATOR)) { |
|
54 | + if (!is_writable($path . DIRECTORY_SEPARATOR)) { |
|
55 | 55 | throw new InvalidArgumentException("cache path is not writable: {$cache_path}"); |
56 | 56 | } |
57 | 57 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | $path = $this->getPath($key); |
65 | 65 | |
66 | - if (! file_exists($path)) { |
|
66 | + if (!file_exists($path)) { |
|
67 | 67 | return $default; // file not found |
68 | 68 | } |
69 | 69 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | $dir = dirname($path); |
108 | 108 | |
109 | - if (! file_exists($dir)) { |
|
109 | + if (!file_exists($dir)) { |
|
110 | 110 | @mkdir($dir, 0777, true); // ensure that the parent path exists |
111 | 111 | } |
112 | 112 | |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | $ttl = $this->default_ttl; |
126 | 126 | } |
127 | 127 | |
128 | - if (! is_int($ttl)) { |
|
128 | + if (!is_int($ttl)) { |
|
129 | 129 | throw new InvalidArgumentException("invalid TTL: " . print_r($ttl, true)); |
130 | 130 | } |
131 | 131 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | |
208 | 208 | $dir = dirname($path); |
209 | 209 | |
210 | - if (! file_exists($dir)) { |
|
210 | + if (!file_exists($dir)) { |
|
211 | 211 | @mkdir($dir, 0777, true); // ensure that the parent path exists |
212 | 212 | } |
213 | 213 |