We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 32 | class Menu extends EloquentModel |
||
| 33 | { |
||
| 34 | /* |
||
| 35 | * Laravel Deleting. |
||
| 36 | * @ https://laravel.com/docs/5.5/eloquent#soft-deleting |
||
| 37 | */ |
||
| 38 | use SoftDeletes; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * The table associated with the model. |
||
| 42 | * |
||
| 43 | * @var string |
||
| 44 | */ |
||
| 45 | protected $table = 'menus'; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Generate a link that the menu will visit when clicked. |
||
| 49 | * |
||
| 50 | * @return \Illuminate\Contracts\Routing\UrlGenerator|mixed|string |
||
|
|
|||
| 51 | */ |
||
| 52 | public function link() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Relationship to the submenu table. |
||
| 59 | * |
||
| 60 | * @return Menu|\Illuminate\Database\Eloquent\Relations\HasMany |
||
| 61 | */ |
||
| 62 | public function submenus() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * A Menu can have a menu. |
||
| 69 | * |
||
| 70 | * @return \Illuminate\Database\Eloquent\Relations\HasOne |
||
| 71 | */ |
||
| 72 | public function parent() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Menu belongs to a single Page. |
||
| 79 | * |
||
| 80 | * @return Page|\Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 81 | */ |
||
| 82 | public function page() |
||
| 86 | |||
| 87 | /** |
||
| 88 | * Get the creators account name. |
||
| 89 | * |
||
| 90 | * @return Account|mixed |
||
| 91 | */ |
||
| 92 | public function creator() : Account |
||
| 96 | |||
| 97 | /** |
||
| 98 | * Get the creator model of the eloquent model. |
||
| 99 | * |
||
| 100 | * @return Account|mixed |
||
| 101 | */ |
||
| 102 | public function modifier() |
||
| 106 | } |
||
| 107 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.