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 #11 from Naoray/analysis-XW4dyJ
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
Naoray authored Aug 15, 2018
2 parents 41866d0 + 2e826cb commit 2772a27
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
10 changes: 5 additions & 5 deletions src/Commands/AddPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,24 @@ public function handle()
$name = str_after($name, '/');
}

if (!$vendor) {
if (! $vendor) {
$vendor = $this->ask('What is your package\'s vendor name?');
}

if (!$name) {
if (! $name) {
$name = $this->ask('What is your package\'s name?');
}

if (!$path) {
if (! $path) {
$path = $this->anticipate('What is your package\'s path?', ['../packages/'.$name]);
}

if (!$branch) {
if (! $branch) {
$branch = $this->anticipate('What branch do you want to link?', ['dev', 'master']);
}

$this->table(['vendor', 'name', 'path', 'branch', 'type'], [[$vendor, $name, $path, $branch, $type]]);
if (!$this->option('without-interaction') && !$this->confirm('Do you wish to continue?')) {
if (! $this->option('without-interaction') && ! $this->confirm('Do you wish to continue?')) {
return;
}

Expand Down
14 changes: 7 additions & 7 deletions src/Commands/PackageMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function handle()
{
$this->checkForInputs();

if (!$this->confirm('Do you wish to continue?')) {
if (! $this->confirm('Do you wish to continue?')) {
return $this->error('Canceled command!');
}

Expand Down Expand Up @@ -269,7 +269,7 @@ protected function getDirectoryInput()
return $this->dir;
}

if (!$this->dir = $this->argument('dir')) {
if (! $this->dir = $this->argument('dir')) {
$this->dir = $this->anticipate('Where should the package be installed?', ['../packages/', 'packages/']);
}

Expand All @@ -287,7 +287,7 @@ public function getCopyrightInput()
return $this->copyright;
}

if (!$this->copyright = $this->argument('copyright')) {
if (! $this->copyright = $this->argument('copyright')) {
$this->copyright = $this->ask('Who will hold the copyrights?');
}

Expand All @@ -305,7 +305,7 @@ protected function getNameInput()
return $this->packageName;
}

if (!$this->packageName = trim($this->argument('name'))) {
if (! $this->packageName = trim($this->argument('name'))) {
$this->packageName = $this->ask('What\'s your packages name?');
}

Expand All @@ -323,7 +323,7 @@ protected function getVendorInput()
return $this->vendor;
}

if (!$this->vendor = trim($this->argument('vendor'))) {
if (! $this->vendor = trim($this->argument('vendor'))) {
$this->vendor = $this->ask('What\'s the packages github name (vendor name of the package)?');
}

Expand All @@ -341,7 +341,7 @@ public function getAuthorInput()
return $this->author;
}

if (!$this->author = $this->argument('author')) {
if (! $this->author = $this->argument('author')) {
$this->author = $this->ask('Who is the author of the package?');
}

Expand All @@ -359,7 +359,7 @@ public function getEmailInput()
return $this->email;
}

if (!$this->email = $this->argument('email')) {
if (! $this->email = $this->argument('email')) {
$this->email = $this->ask('What\'s the mantainer\'s e-mail?');
}

Expand Down
4 changes: 2 additions & 2 deletions src/Commands/ProviderMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Naoray\LaravelPackageMaker\Commands;

use Illuminate\Foundation\Console\ProviderMakeCommand as MakeProvider;
use Naoray\LaravelPackageMaker\Traits\CreatesPackageStubs;
use Naoray\LaravelPackageMaker\Traits\HasNameAttribute;
use Naoray\LaravelPackageMaker\Traits\CreatesPackageStubs;
use Illuminate\Foundation\Console\ProviderMakeCommand as MakeProvider;

class ProviderMakeCommand extends MakeProvider
{
Expand Down
6 changes: 3 additions & 3 deletions src/Commands/TestMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Naoray\LaravelPackageMaker\Commands;

use Illuminate\Foundation\Console\TestMakeCommand as MakeTest;
use Naoray\LaravelPackageMaker\Traits\CreatesPackageStubs;
use Naoray\LaravelPackageMaker\Traits\HasNameAttribute;
use Symfony\Component\Console\Input\InputOption;
use Naoray\LaravelPackageMaker\Traits\HasNameAttribute;
use Naoray\LaravelPackageMaker\Traits\CreatesPackageStubs;
use Illuminate\Foundation\Console\TestMakeCommand as MakeTest;

class TestMakeCommand extends MakeTest
{
Expand Down
18 changes: 9 additions & 9 deletions src/LaravelPackageMakerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

use Illuminate\Support\ServiceProvider;
use Naoray\LaravelPackageMaker\Commands\AddPackage;
use Naoray\LaravelPackageMaker\Commands\BaseTestMakeCommand;
use Naoray\LaravelPackageMaker\Commands\ComposerMakeCommand;
use Naoray\LaravelPackageMaker\Commands\ContributionMakeCommand;
use Naoray\LaravelPackageMaker\Commands\GitignoreMakeCommand;
use Naoray\LaravelPackageMaker\Commands\TestMakeCommand;
use Naoray\LaravelPackageMaker\Commands\ReadmeMakeCommand;
use Naoray\LaravelPackageMaker\Commands\TravisMakeCommand;
use Naoray\LaravelPackageMaker\Commands\CodecovMakeCommand;
use Naoray\LaravelPackageMaker\Commands\LicenseMakeCommand;
use Naoray\LaravelPackageMaker\Commands\PackageMakeCommand;
use Naoray\LaravelPackageMaker\Commands\PhpunitMakeCommand;
use Naoray\LaravelPackageMaker\Commands\ProviderMakeCommand;
use Naoray\LaravelPackageMaker\Commands\ReadmeMakeCommand;
use Naoray\LaravelPackageMaker\Commands\StyleciMakeCommand;
use Naoray\LaravelPackageMaker\Commands\TestMakeCommand;
use Naoray\LaravelPackageMaker\Commands\TravisMakeCommand;
use Naoray\LaravelPackageMaker\Commands\CodecovMakeCommand;
use Naoray\LaravelPackageMaker\Commands\BaseTestMakeCommand;
use Naoray\LaravelPackageMaker\Commands\ComposerMakeCommand;
use Naoray\LaravelPackageMaker\Commands\ProviderMakeCommand;
use Naoray\LaravelPackageMaker\Commands\GitignoreMakeCommand;
use Naoray\LaravelPackageMaker\Commands\ContributionMakeCommand;

class LaravelPackageMakerServiceProvider extends ServiceProvider
{
Expand Down

0 comments on commit 2772a27

Please sign in to comment.