We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 20 | class Activity extends Model |
||
| 21 | { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | public static $deleted = 0; |
||
| 27 | /** |
||
| 28 | * @var int |
||
| 29 | */ |
||
| 30 | public static $created = 1; |
||
| 31 | /** |
||
| 32 | * @var int |
||
| 33 | */ |
||
| 34 | public static $updated = 2; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * The table associated with the model. |
||
| 38 | * |
||
| 39 | * @var string |
||
| 40 | */ |
||
| 41 | protected $table = 'activity'; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * The attributes that are not mass assignable. |
||
| 45 | * |
||
| 46 | * @var array |
||
| 47 | */ |
||
| 48 | protected $guarded = []; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return bool|string |
||
|
|
|||
| 52 | */ |
||
| 53 | public function eventName() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 67 | */ |
||
| 68 | public function account() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return Linker |
||
| 75 | */ |
||
| 76 | public function model() |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @param int $action |
||
| 83 | * @param Model $model |
||
| 84 | * @param Account|null $account |
||
| 85 | * @return mixed |
||
| 86 | */ |
||
| 87 | public function log(int $action, Model $model, Account $account = null) |
||
| 99 | } |
||
| 100 |
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.