We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75aed1a commit 876fbc8Copy full SHA for 876fbc8
src/Services/MaxMindDatabase.php
@@ -27,7 +27,9 @@ public function boot()
27
28
// Copy test database for now
29
if (is_file($path) === false) {
30
- if (!mkdir($concurrentDirectory = dirname($path)) && !is_dir($concurrentDirectory)) {
+ if (!is_dir($concurrentDirectory = dirname($path)) &&
31
+ !mkdir($concurrentDirectory) &&
32
+ !is_dir($concurrentDirectory)) {
33
throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory));
34
}
35
@@ -170,4 +172,4 @@ protected function deleteDirectory(string $directory)
170
172
171
173
return rmdir($directory);
174
-}
175
+}
0 commit comments