| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public static function createAdmin(): bool |
||
| 28 | { |
||
| 29 | return (null !== User::create([ |
||
| 30 | 'name' => 'admin', |
||
| 31 | 'email' => '[email protected]', |
||
| 32 | 'password' => password_hash('password', PASSWORD_ARGON2ID), |
||
| 33 | 'token' => null, |
||
| 34 | 'is_admin' => true, |
||
| 35 | ]) |
||
| 50 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.