mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-11 19:20:01 +08:00
Code formatting for #9288
This commit is contained in:
@@ -462,7 +462,7 @@ class BaseFileHelper
|
|||||||
$result = mkdir($path, $mode);
|
$result = mkdir($path, $mode);
|
||||||
chmod($path, $mode);
|
chmod($path, $mode);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
if(is_dir($path)){ // #9288
|
if (is_dir($path)) { // https://github.com/yiisoft/yii2/issues/9288
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
throw new \yii\base\Exception("Failed to create directory '$path': " . $e->getMessage(), $e->getCode(), $e);
|
throw new \yii\base\Exception("Failed to create directory '$path': " . $e->getMessage(), $e->getCode(), $e);
|
||||||
|
|||||||
Reference in New Issue
Block a user