Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #56 from Naoray/analysis-qBmbNL
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
Naoray authored Aug 28, 2019
2 parents ae2e04b + d06a6c2 commit b6fd6c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/Commands/Database/MigrationMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ public function __construct(Filesystem $files, MigrationCreator $creator, Compos
*/
protected function getMigrationPath()
{
$path = $this->basePath() . 'database/migrations';
$path = $this->basePath().'database/migrations';

if (! is_null($targetPath = $this->input->getOption('path'))) {
$path = ! $this->usingRealPath()
? $this->basePath() . $targetPath
? $this->basePath().$targetPath
: $targetPath;
}

$this->makeDirectory($path . '/some_migration.php');
$this->makeDirectory($path.'/some_migration.php');

return $path;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Foundation/ModelMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ModelMakeCommand extends MakeModel
*/
protected function resolveDirectory()
{
return $this->getDirInput() . 'src';
return $this->getDirInput().'src';
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Commands/Routing/ControllerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ControllerMakeCommand extends MakeController
*/
protected function resolveDirectory()
{
return $this->getDirInput() . 'src';
return $this->getDirInput().'src';
}

/**
Expand All @@ -38,9 +38,9 @@ protected function buildClass($name)
{
$class = parent::buildClass($name);

if (str_contains($class, $this->rootNamespace() . 'Http\Controllers\Controller')) {
if (str_contains($class, $this->rootNamespace().'Http\Controllers\Controller')) {
return str_replace(
$this->rootNamespace() . 'Http\Controllers\Controller',
$this->rootNamespace().'Http\Controllers\Controller',
'Illuminate\Routing\Controller',
$class
);
Expand Down Expand Up @@ -123,7 +123,7 @@ protected function parseModel($model)
$model = trim(str_replace('/', '\\', $model), '\\');

if (! starts_with($model, $rootNamespace = $this->rootNamespace()) && ! starts_with($model, $this->laravel->getNamespace())) {
$model = $rootNamespace . '\\' . $model;
$model = $rootNamespace.'\\'.$model;
}

return $model;
Expand Down

0 comments on commit b6fd6c3

Please sign in to comment.