We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 7 | class CrudOverwrite extends Command |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The console command name. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $name = 'backpack:overwrite'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The name and signature of the console command. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $signature = 'backpack:overwrite |
||
| 22 | {type : what are you overwriting? field/column/button} |
||
| 23 | {name : name of the field}'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The console command description. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $description = 'Publishes a built in field/column/button for modification'; |
||
| 31 | |||
| 32 | public $packageDir = 'vendor/backpack/crud/src/resources/views/'; |
||
| 33 | public $appDir = 'resources/views/vendor/backpack/crud/'; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Create a new command instance. |
||
| 37 | * |
||
| 38 | * @return void |
||
|
|
|||
| 39 | */ |
||
| 40 | public function __construct() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Execute the console command. |
||
| 47 | * |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | public function handle() |
||
| 73 | |||
| 74 | protected function processPublish($file, $label) |
||
| 117 | |||
| 118 | protected function publishField() |
||
| 122 | |||
| 123 | protected function publishColumn() |
||
| 127 | |||
| 128 | protected function publishButton() |
||
| 132 | } |
||
| 133 |
Adding a
@returnannotation 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.