From 592e25f45689dc2fdddbdbcb97ebcbd60695f34e Mon Sep 17 00:00:00 2001 From: Alex Sofronie Date: Wed, 14 Dec 2016 00:39:34 +0200 Subject: [PATCH] fix style ci --- .../Routing/Console/ControllerMakeCommand.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Illuminate/Routing/Console/ControllerMakeCommand.php b/src/Illuminate/Routing/Console/ControllerMakeCommand.php index e16666045ff0..5eb92e1ca183 100755 --- a/src/Illuminate/Routing/Console/ControllerMakeCommand.php +++ b/src/Illuminate/Routing/Console/ControllerMakeCommand.php @@ -2,8 +2,8 @@ namespace Illuminate\Routing\Console; -use Illuminate\Console\GeneratorCommand; use Illuminate\Support\Str; +use Illuminate\Console\GeneratorCommand; use Symfony\Component\Console\Input\InputOption; class ControllerMakeCommand extends GeneratorCommand @@ -37,7 +37,7 @@ class ControllerMakeCommand extends GeneratorCommand protected function getStub() { if ($this->option('model')) { - return __DIR__ . '/stubs/controller.model.stub'; + return __DIR__.'/stubs/controller.model.stub'; } elseif ($this->option('resource')) { return __DIR__.'/stubs/controller.stub'; } @@ -70,7 +70,7 @@ protected function getOptions() } /** - * Parses the model namespace + * Parses the model namespace. * * @param string $modelNamespace * @return string @@ -78,10 +78,10 @@ protected function getOptions() protected function parseModel($modelNamespace) { if (preg_match('([^A-Za-z0-9_/\\\\])', $modelNamespace)) { - $this->line(""); - $this->error(" "); - $this->error(" Model name contains invalid characters "); - $this->error(" "); + $this->line(''); + $this->error(' '); + $this->error(' Model name contains invalid characters '); + $this->error(' '); exit(1); } @@ -92,8 +92,8 @@ protected function parseModel($modelNamespace) $modelNamespace = trim($modelNamespace, '\\'); $rootNamespace = $this->laravel->getNamespace(); - if (!Str::startsWith($modelNamespace, $rootNamespace)) { - $modelNamespace = $rootNamespace . $modelNamespace; + if (! Str::startsWith($modelNamespace, $rootNamespace)) { + $modelNamespace = $rootNamespace.$modelNamespace; } return $modelNamespace;