for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Acacha\AdminLTETemplateLaravel\Console;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
use League\Flysystem\Adapter\Local as LocalAdapter;
use League\Flysystem\Filesystem as Flysystem;
use League\Flysystem\MountManager;
/**
* Class PublishAdminLTESidebar.
*/
class PublishAdminLTESidebar extends Command
{
use Installable;
* The filesystem instance.
*
* @var \Illuminate\Filesystem\Filesystem
protected $files;
* The name and signature of the console command.
protected $signature = 'adminlte-laravel:sidebar {--f|force : Force overwrite of files}';
* The console command description.
* @var string
protected $description = 'Publish Acacha adminlte sidebar view in your project allowing you to customize your project sidebar';
* Force overwrite of files.
* @var bool
protected $force = false;
* Create a new command instance.
* @param \Illuminate\Filesystem\Filesystem $files
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct(Filesystem $files)
parent::__construct();
$this->files = $files;
}
* Execute the console command.
public function handle()
$this->processOptions();
$this->publishSidebarView();
* Install views.
private function publishSidebarView()
$this->install(\Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::sidebarView());
* Process options before running command.
private function processOptions()
$this->force = $this->option('force');
$this->option('force')
string
array
boolean
$force
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.