CS: PSR1/2

parent fbccc690
......@@ -63,34 +63,24 @@ class ConfigureAppUrl implements SetupScript
*/
protected function askAppUrl()
{
do {
$str = $this->command->ask('Enter you application url (e.g. http://localhost, http://dev.example.com)', 'http://localhost');
if ($str == '' || (strpos($str, 'http://') !== 0 && strpos($str, 'https://') !== 0)) {
$this->command->error('A valid http:// or https:// url is required');
$str = false;
}
} while (!$str);
return $str;
}
/**
* @param $vars
*/
protected function setLaravelConfiguration($vars)
{
$this->config['app.url'] = $vars['app_url'];
}
}
\ No newline at end of file
}
......@@ -34,7 +34,6 @@ class RenameFolderOnDisk
$newPath = $event->folder->path->getRelativeUrl();
$this->replacePathReferences($event->folder->id, $previousPath, $newPath);
}
private function renameFolder($event)
......
......@@ -4,7 +4,6 @@ namespace Modules\Media\Http\Controllers\Api;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Modules\Media\Entities\File;
use Modules\Media\Image\Imagy;
use Modules\Media\Repositories\FileRepository;
use Modules\Media\Repositories\FolderRepository;
......
......@@ -2,7 +2,6 @@
namespace Modules\Media\Http\Controllers\Api;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Modules\Media\Entities\File;
use Modules\Media\Repositories\FolderRepository;
......
......@@ -10,7 +10,6 @@ use Modules\Media\Image\Intervention\InterventionFactory;
use Modules\Media\Image\ThumbnailManager;
use Modules\Media\Repositories\FolderRepository;
use Modules\Media\Services\FileService;
use Modules\Media\ValueObjects\MediaPath;
class ImagyTest extends MediaTestCase
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment