Remove ambiguity around what classes are being used

Fixes https://github.com/octobercms/october/issues/3184.
This commit is contained in:
Luke Towers 2017-10-20 21:39:54 -06:00
parent a62a6e6493
commit d292eeb85e
5 changed files with 5 additions and 10 deletions

View File

@ -4,7 +4,6 @@ use Url;
use Str;
use Lang;
use File;
use Form;
use Input;
use Config;
use Request;
@ -500,7 +499,7 @@ class MediaManager extends WidgetBase
{
$path = Input::get('path');
$path = MediaLibrary::validatePath($path);
$cropSessionKey = md5(Form::getSessionKey());
$cropSessionKey = md5(\Form::getSessionKey());
$selectionParams = $this->getSelectionParams();
$urlAndSize = $this->getCropEditImageUrlAndSize($path, $cropSessionKey);

View File

@ -3,7 +3,6 @@
use App;
use Url;
use Str;
use File;
use Lang;
use Model;
use Cache;
@ -152,7 +151,7 @@ class MailBrandSetting extends Model
$parser->ModifyVars(static::makeCssVars());
$parser->parse(File::get($basePath . '/custom.less'));
$parser->parse(\File::get($basePath . '/custom.less'));
$css = $parser->getCss();

View File

@ -1,6 +1,5 @@
<?php namespace System\Models;
use File;
use View;
use Model;
use System\Classes\MailManager;
@ -132,6 +131,6 @@ class MailLayout extends Model
protected static function getTemplateSections($code)
{
return MailParser::parse(File::get(View::make($code)->getPath()));
return MailParser::parse(\File::get(View::make($code)->getPath()));
}
}

View File

@ -1,7 +1,6 @@
<?php namespace System\Models;
use Twig;
use File;
use View;
use Model;
use Markdown;
@ -116,6 +115,6 @@ class MailPartial extends Model
protected static function getTemplateSections($code)
{
return MailParser::parse(File::get(View::make($code)->getPath()));
return MailParser::parse(\File::get(View::make($code)->getPath()));
}
}

View File

@ -1,7 +1,6 @@
<?php namespace System\Models;
use App;
use File;
use View;
use Model;
use System\Classes\MailManager;
@ -147,7 +146,7 @@ class MailTemplate extends Model
protected static function getTemplateSections($code)
{
return MailParser::parse(File::get(View::make($code)->getPath()));
return MailParser::parse(\File::get(View::make($code)->getPath()));
}
public static function findOrMakeTemplate($code)