We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 26 | class Plugin extends EloquentModel |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * The table associated with the model. |
||
| 30 | * |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | protected $table = 'plugins'; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * The attributes that are mass assignable. |
||
| 37 | * |
||
| 38 | * @var array |
||
| 39 | */ |
||
| 40 | protected $fillable = []; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * The table date columns, casted to Carbon. |
||
| 44 | * |
||
| 45 | * @var array |
||
| 46 | */ |
||
| 47 | protected $dates = ['created_at', 'updated_at']; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * The attributes that should be cast to native types. |
||
| 51 | * |
||
| 52 | * @var array |
||
| 53 | */ |
||
| 54 | protected $casts = ['enabled' => 'boolean', 'required' => 'boolean']; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Return the plugins namespace |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | protected function dirNamespace() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * |
||
| 68 | * @return PluginHandler |
||
| 69 | */ |
||
| 70 | protected function getHandlerAttribute() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * ==========================================================. |
||
| 77 | * |
||
| 78 | * GET THE ATTRIBUTES OF THE MODEL |
||
| 79 | * |
||
| 80 | * ========================================================== |
||
| 81 | */ |
||
| 82 | public function icon() |
||
| 86 | |||
| 87 | public function name() |
||
| 91 | |||
| 92 | public function version() |
||
| 96 | |||
| 97 | public function isEnabled() |
||
| 101 | |||
| 102 | public function isDisabled() |
||
| 106 | |||
| 107 | public function isFrontEnd() |
||
| 111 | |||
| 112 | public function isBackEnd() |
||
| 116 | |||
| 117 | public function getCreatedAt() |
||
| 121 | |||
| 122 | public function getUpdatedAt() |
||
| 126 | |||
| 127 | public function setEnabled($boolean) |
||
| 135 | |||
| 136 | /** |
||
| 137 | * Enable the product. |
||
| 138 | * |
||
| 139 | * @return $this |
||
| 140 | */ |
||
| 141 | public function enable() |
||
| 147 | |||
| 148 | /** |
||
| 149 | * Disable the product. |
||
| 150 | * |
||
| 151 | * @return $this |
||
| 152 | */ |
||
| 153 | public function disable() |
||
| 159 | |||
| 160 | public function setInstalled(bool $boolean) |
||
| 166 | |||
| 167 | /** |
||
| 168 | * @return mixed |
||
|
|
|||
| 169 | */ |
||
| 170 | public function isInstalled() |
||
| 174 | |||
| 175 | public function setName($string) |
||
| 181 | |||
| 182 | public function setVersion($integer) |
||
| 188 | |||
| 189 | public function setIcon($string) |
||
| 195 | |||
| 196 | public function adminUrl() |
||
| 204 | |||
| 205 | public function userUrl() |
||
| 213 | |||
| 214 | public function isHidden() |
||
| 218 | |||
| 219 | public function setHide(bool $boolean) |
||
| 225 | |||
| 226 | public function setRequired($boolean) |
||
| 232 | |||
| 233 | public function setFrontEnd($boolean) |
||
| 239 | |||
| 240 | public function setBackEnd($boolean) |
||
| 246 | |||
| 247 | /** |
||
| 248 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 249 | */ |
||
| 250 | public function options() |
||
| 254 | |||
| 255 | public function option($key) |
||
| 259 | |||
| 260 | public function feeds() |
||
| 264 | |||
| 265 | public function install() |
||
| 271 | } |
||
| 272 |
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.