We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 19 | class Link extends Model |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The table associated with the model. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $table = 'links'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The attributes that are not mass assignable. |
||
| 31 | * |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | protected $guarded = []; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * The table date columns, casted to Carbon. |
||
| 38 | * |
||
| 39 | * @var array |
||
| 40 | */ |
||
| 41 | protected $dates = ['created_at', 'updated_at', 'deleted_at']; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo|Collection |
||
| 45 | */ |
||
| 46 | public function from() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo|Collection|Linkable |
||
| 53 | */ |
||
| 54 | public function to() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function url() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return bool |
||
| 72 | */ |
||
| 73 | public function isExternal() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @param Linker $model |
||
| 80 | * @param Linkable|null $object |
||
| 81 | * @param string $external |
||
| 82 | * @return $this |
||
|
|
|||
| 83 | */ |
||
| 84 | public function connect(Linker $model, Linkable $object = null, string $external = "") |
||
| 110 | } |
||
| 111 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.