Code formatting for #9288

This commit is contained in:
Alexander Makarov
2015-09-05 01:41:52 +03:00
parent 4d21c48bc4
commit 6b2748a0b3

View File

@ -462,7 +462,7 @@ class BaseFileHelper
$result = mkdir($path, $mode);
chmod($path, $mode);
} catch (\Exception $e) {
if(is_dir($path)){ // #9288
if (is_dir($path)) { // https://github.com/yiisoft/yii2/issues/9288
return true;
}
throw new \yii\base\Exception("Failed to create directory '$path': " . $e->getMessage(), $e->getCode(), $e);