Skip to content

Commit

Permalink
Merge pull request #31 from imanghafoori1/analysis-z4oEK1
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
imanghafoori1 committed Jan 20, 2018
2 parents 6adfdc6 + a7ec49f commit 9f3c960
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/WidgetGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private function createView()
$this->files->put($path, $this->getViewStub());

$this->info(' - '.$this->qualifyClass($this->getNameInput()).'View.blade.php - was created. (^_^)');

$this->printStarUs();
}

Expand Down Expand Up @@ -148,11 +148,11 @@ private function getViewStub()
{
return 'Note that you can reference partials within "App\Widgets" folder like this: @include("Widgets::somePartial") ';
}

private function printStarUs()
{
if (mt_rand (1, 6) !== 4) {
return null;
if (mt_rand(1, 6) !== 4) {
return;
}
$this->info('************************ Star It ************************');
$this->info('Dear developer, if you find Laravel-Widgetize useful for you');
Expand All @@ -162,5 +162,4 @@ private function printStarUs()
$this->info('Thanks. lol ');
$this->info('********************************************************');
}

}

0 comments on commit 9f3c960

Please sign in to comment.