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

Apply fixes from StyleCI #42

Merged
merged 1 commit into from
Oct 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Commands/Package/ComposerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function handle()
*/
protected function getStub()
{
return __DIR__ . '/stubs/composer.stub';
return __DIR__.'/stubs/composer.stub';
}

/**
Expand Down Expand Up @@ -83,15 +83,15 @@ protected function getNameInput()
*/
protected function composerNamespace()
{
return ucfirst($this->vendorName()) . '\\\\' . studly_case($this->packageName()) . '\\\\';
return ucfirst($this->vendorName()).'\\\\'.studly_case($this->packageName()).'\\\\';
}

/**
* @return string
*/
protected function composerProviderNamespace()
{
return $this->composerNamespace() . studly_case($this->packageName()) . 'ServiceProvider';
return $this->composerNamespace().studly_case($this->packageName()).'ServiceProvider';
}

/**
Expand Down
10 changes: 5 additions & 5 deletions src/Traits/CreatesPackageStubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function getPath($name)
{
$name = str_replace_first($this->rootNamespace(), '', $name);

return $this->basePath() . str_replace('\\', '/', $name) . $this->getFileType();
return $this->basePath().str_replace('\\', '/', $name).$this->getFileType();
}

/**
Expand All @@ -37,7 +37,7 @@ protected function getPath($name)
*/
protected function basePath()
{
return base_path() . '/' . $this->resolveDirectory();
return base_path().'/'.$this->resolveDirectory();
}

/**
Expand Down Expand Up @@ -109,7 +109,7 @@ protected function getNamespaceInput()
{
$namespace = trim($this->option('namespace'));

if (!$namespace && !$namespace = cache()->get('package:namespace')) {
if (! $namespace && ! $namespace = cache()->get('package:namespace')) {
$namespace = $this->ask('What is the namespace of your package?');
}

Expand All @@ -134,11 +134,11 @@ protected function getDirInput()
{
$dir = trim($this->option('dir'));

if (!$dir && !$dir = cache()->get('package:path')) {
if (! $dir && ! $dir = cache()->get('package:path')) {
$dir = $this->ask('Where is your package stored (relative path)?');
}

return ends_with($dir, '/') ? $dir : $dir . '/';
return ends_with($dir, '/') ? $dir : $dir.'/';
}

/**
Expand Down