We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 46 | class Account extends Authenticatable |
||
| 47 | { |
||
| 48 | /* |
||
| 49 | * Soft Delete trait |
||
| 50 | */ |
||
| 51 | use SoftDeletes; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * The table associated with the model. |
||
| 55 | * |
||
| 56 | * @var string |
||
| 57 | */ |
||
| 58 | protected $table = 'accounts'; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * The attributes that should be mutated to dates. |
||
| 62 | * |
||
| 63 | * @var array |
||
| 64 | */ |
||
| 65 | protected $dates = ['last_login', 'created_at']; |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Return the full name of the account. |
||
| 69 | * |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | public function fullName() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Check if the user has the role. |
||
| 79 | * @info Role::groups. |
||
| 80 | * |
||
| 81 | * @param int $role_id |
||
| 82 | * @param bool $rule |
||
| 83 | * @return bool |
||
| 84 | */ |
||
| 85 | public function hasRole(int $role_id, bool $rule = true) |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @return string |
||
| 92 | */ |
||
| 93 | public function makeGravatarImage() |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @return HasMany |
||
| 100 | */ |
||
| 101 | public function pages() |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @return HasMany |
||
| 108 | */ |
||
| 109 | public function menus() |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @return HasMany |
||
| 116 | */ |
||
| 117 | public function articles() |
||
| 121 | |||
| 122 | /** |
||
| 123 | * @return Role|BelongsTo |
||
| 124 | */ |
||
| 125 | public function role() |
||
| 129 | |||
| 130 | /** |
||
| 131 | * Return the generated redirects by the user. |
||
| 132 | * |
||
| 133 | * @param array $attributes |
||
| 134 | * @return Redirect|HasMany |
||
| 135 | */ |
||
| 136 | public function redirects($attributes = []) |
||
| 144 | |||
| 145 | /** |
||
| 146 | * Generate a bCrpyt string for new password enties. |
||
| 147 | * |
||
| 148 | * @param string $string |
||
| 149 | * @return $this |
||
| 150 | */ |
||
| 151 | public function setPassword(string $string) |
||
| 155 | } |
||
| 156 |
This check marks parameter names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString.