| @@ 68-75 (lines=8) @@ | ||
| 65 | } |
|
| 66 | } |
|
| 67 | ||
| 68 | private static function createDir($dirName) |
|
| 69 | { |
|
| 70 | if (!@file_exists($dirName)) { |
|
| 71 | if (false === @mkdir($dirName, 0700, true)) { |
|
| 72 | throw new RuntimeException(sprintf('unable to create directory "%s"', $dirName)); |
|
| 73 | } |
|
| 74 | } |
|
| 75 | } |
|
| 76 | } |
|
| 77 | ||
| @@ 128-135 (lines=8) @@ | ||
| 125 | return @file_exists($vootFile); |
|
| 126 | } |
|
| 127 | ||
| 128 | private static function createDir($dirName) |
|
| 129 | { |
|
| 130 | if (!@file_exists($dirName)) { |
|
| 131 | if (false === @mkdir($dirName, 0700, true)) { |
|
| 132 | throw new RuntimeException(sprintf('unable to create directory "%s"', $dirName)); |
|
| 133 | } |
|
| 134 | } |
|
| 135 | } |
|
| 136 | } |
|
| 137 | ||