|
@@ -59,12 +59,12 @@ |
|
|
block discarded – undo |
|
59
|
59
|
} |
|
60
|
60
|
|
|
61
|
61
|
if (false === is_dir(self::getCacheDir())) { |
|
62
|
|
- if(false === mkdir(self::getCacheDir(), 0755, true)){ |
|
|
62
|
+ if (false === mkdir(self::getCacheDir(), 0755, true)) { |
|
63
|
63
|
throw new \Exception(self::getCacheDir() . ' is not a writable directory.'); |
|
64
|
64
|
} |
|
65
|
65
|
} |
|
66
|
66
|
|
|
67
|
|
- if(false === file_put_contents(self::getCacheFilePath($filename), '<?php return unserialize(\'' . serialize($cachedMap) . '\');' . PHP_EOL)) { |
|
|
67
|
+ if (false === file_put_contents(self::getCacheFilePath($filename), '<?php return unserialize(\'' . serialize($cachedMap) . '\');' . PHP_EOL)) { |
|
68
|
68
|
throw new \Exception(' Can\'t write cache file.'); |
|
69
|
69
|
} |
|
70
|
70
|
} |
Please login to merge, or discard this patch.