mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Merge branch 'rhymix:master' into master
This commit is contained in:
commit
0739f82c49
28 changed files with 160 additions and 58 deletions
|
|
@ -453,8 +453,8 @@ class Formatter
|
|||
}
|
||||
if ($import_type === 'scss')
|
||||
{
|
||||
$import_content = preg_replace('!//.*?\n!s', '', $import_content);
|
||||
$import_content = preg_replace('![\r\n]+!', ' ', $import_content);
|
||||
$import_content = preg_replace('@(?<!:)//.*?\n@s', '', $import_content);
|
||||
$import_content = preg_replace('@[\r\n]@', ' ', $import_content);
|
||||
}
|
||||
return trim($import_content);
|
||||
}, $content);
|
||||
|
|
|
|||
|
|
@ -91,7 +91,11 @@ class HTTP
|
|||
$target_dir = dirname($target_filename);
|
||||
if (!Storage::isDirectory($target_dir) && !Storage::createDirectory($target_dir))
|
||||
{
|
||||
return false;
|
||||
return new Helpers\HTTPHelper(new Exception('Cannot create directory: ' . $target_dir));
|
||||
}
|
||||
if (!Storage::isWritable($target_dir) && (!Storage::exists($target_filename) || !Storage::isWritable($target_filename)))
|
||||
{
|
||||
return new Helpers\HTTPHelper(new Exception('No permission to write file: ' . $target_filename));
|
||||
}
|
||||
|
||||
// Pass to request() with appropriate settings for the filename.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue