@@ -104,8 +104,8 @@ discard block |
||
104 | 104 | |
105 | 105 | if (!isset($this->tmp[$full_path_hash]) || (!@\file_exists($full_path) || !@\is_writable($full_path))) { |
106 | 106 | if (!@\file_exists($full_path)) { |
107 | - if (@mkdir($full_path, $this->getDefaultChmod(), true) === false && !\is_dir($full_path) ) { |
|
108 | - throw new PhpfastcacheIOException('The directory '.$full_path.' could not be created.'); |
|
107 | + if (@mkdir($full_path, $this->getDefaultChmod(), true) === false && !\is_dir($full_path)) { |
|
108 | + throw new PhpfastcacheIOException('The directory ' . $full_path . ' could not be created.'); |
|
109 | 109 | } |
110 | 110 | } else { |
111 | 111 | if (!@\is_writable($full_path)) { |
@@ -116,8 +116,8 @@ discard block |
||
116 | 116 | */ |
117 | 117 | $full_path = $full_path_tmp; |
118 | 118 | if (!@\file_exists($full_path)) { |
119 | - if(@mkdir($full_path, $this->getDefaultChmod(), true) && !\is_dir($full_path)){ |
|
120 | - throw new PhpfastcacheIOException('The directory '.$full_path.' could not be created.'); |
|
119 | + if (@mkdir($full_path, $this->getDefaultChmod(), true) && !\is_dir($full_path)) { |
|
120 | + throw new PhpfastcacheIOException('The directory ' . $full_path . ' could not be created.'); |
|
121 | 121 | } |
122 | 122 | } |
123 | 123 | } |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | )); |
300 | 300 | |
301 | 301 | $f = \fopen($tmpFilename, 'w+b'); |
302 | - if(\is_resource($f)){ |
|
302 | + if (\is_resource($f)) { |
|
303 | 303 | \flock($f, \LOCK_EX); |
304 | 304 | $octetWritten = fwrite($f, $data); |
305 | 305 | \flock($f, \LOCK_UN); |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | } |
312 | 312 | } else { |
313 | 313 | $f = \fopen($file, 'w+b'); |
314 | - if(\is_resource($f)){ |
|
314 | + if (\is_resource($f)) { |
|
315 | 315 | $octetWritten = \fwrite($f, $data); |
316 | 316 | \fclose($f); |
317 | 317 | } |