We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05be7dd commit 024f410Copy full SHA for 024f410
src/DebugBar/Storage/FileStorage.php
@@ -23,16 +23,16 @@ class FileStorage implements StorageInterface
23
public function __construct($dirname)
24
{
25
$this->dirname = rtrim($dirname, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
26
- if (!file_exists($this->dirname)) {
27
- mkdir($this->dirname, 0777, true);
28
- }
29
}
30
31
/**
32
* {@inheritDoc}
33
*/
34
public function save($id, $data)
35
+ if (!file_exists($this->dirname)) {
+ mkdir($this->dirname, 0777, true);
+ }
36
file_put_contents($this->makeFilename($id), json_encode($data));
37
38
0 commit comments