We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 12 | class UpgradePageMenuLinks extends Command |
||
| 13 | { |
||
| 14 | |||
| 15 | private $menus; |
||
| 16 | |||
| 17 | private $pages; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The name and signature of the console command. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $signature = 'upgrade:page_links'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The console command description. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $description = 'Upgrade for version 5.0.1'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Create a new command instance. |
||
| 35 | * |
||
| 36 | * @return void |
||
|
|
|||
| 37 | */ |
||
| 38 | public function __construct(PageRepository $pages, MenuRepository $menus) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Execute the console command. |
||
| 49 | * |
||
| 50 | * @return mixed |
||
| 51 | */ |
||
| 52 | public function handle() |
||
| 78 | } |
||
| 79 |
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.