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 | * @return PluginHandler |
||
| 68 | */ |
||
| 69 | protected function getHandlerAttribute() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * ==========================================================. |
||
| 76 | * |
||
| 77 | * GET THE ATTRIBUTES OF THE MODEL |
||
| 78 | * |
||
| 79 | * ========================================================== |
||
| 80 | */ |
||
| 81 | public function icon() |
||
| 85 | |||
| 86 | public function name() |
||
| 90 | |||
| 91 | public function version() |
||
| 95 | |||
| 96 | public function isEnabled() |
||
| 100 | |||
| 101 | public function isDisabled() |
||
| 105 | |||
| 106 | public function isFrontEnd() |
||
| 110 | |||
| 111 | public function isBackEnd() |
||
| 115 | |||
| 116 | public function getCreatedAt() |
||
| 120 | |||
| 121 | public function getUpdatedAt() |
||
| 125 | |||
| 126 | public function setEnabled($boolean) |
||
| 134 | |||
| 135 | /** |
||
| 136 | * Enable the product. |
||
| 137 | * |
||
| 138 | * @return $this |
||
| 139 | */ |
||
| 140 | public function enable() |
||
| 146 | |||
| 147 | /** |
||
| 148 | * Disable the product. |
||
| 149 | * |
||
| 150 | * @return $this |
||
| 151 | */ |
||
| 152 | public function disable() |
||
| 158 | |||
| 159 | public function setInstalled(bool $boolean) |
||
| 165 | |||
| 166 | /** |
||
| 167 | * @return mixed |
||
|
|
|||
| 168 | */ |
||
| 169 | public function isInstalled() |
||
| 173 | |||
| 174 | public function setName($string) |
||
| 180 | |||
| 181 | public function setVersion($integer) |
||
| 187 | |||
| 188 | public function setIcon($string) |
||
| 194 | |||
| 195 | public function adminUrl() |
||
| 203 | |||
| 204 | public function userUrl() |
||
| 212 | |||
| 213 | public function isHidden() |
||
| 217 | |||
| 218 | public function setHide(bool $boolean) |
||
| 224 | |||
| 225 | public function setRequired($boolean) |
||
| 231 | |||
| 232 | public function setFrontEnd($boolean) |
||
| 238 | |||
| 239 | public function setBackEnd($boolean) |
||
| 245 | |||
| 246 | /** |
||
| 247 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 248 | */ |
||
| 249 | public function options() |
||
| 253 | |||
| 254 | public function option($key) |
||
| 258 | |||
| 259 | public function feeds() |
||
| 263 | |||
| 264 | public function install() |
||
| 270 | } |
||
| 271 |
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.