Code cleanup from inspection results

This commit is contained in:
Nabeel Shahzad
2018-08-26 13:50:08 -05:00
parent 0f3424f41e
commit e95b3eb366
76 changed files with 226 additions and 268 deletions

View File

@@ -241,7 +241,7 @@ class AcarsReplay extends Command
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$files = $this->argument('files');
$manual_mode = $this->option('manual');
@@ -249,6 +249,7 @@ class AcarsReplay extends Command
if ($this->option('write-all')) {
$this->info('In "dump-all" mode, just writing it all in');
} else {
/** @noinspection NestedPositiveIfStatementsInspection */
if (!$manual_mode) {
$this->info('Going to send updates every 10s');
} else {

View File

@@ -33,6 +33,7 @@ class ComposerCommand extends Command
protected function postUpdate(): void
{
if (config('app.env') === 'dev') {
/** @noinspection NestedPositiveIfStatementsInspection */
if (class_exists(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class)) {
Artisan::call('ide-helper:generate');
Artisan::call('ide-helper:meta');

View File

@@ -16,6 +16,7 @@ class Version extends Command
* Create the version number that gets written out
*
* @param mixed $cfg
* @return bool|string
*/
protected function createVersionNumber($cfg)
{