We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 13-46 (lines=34) @@ | ||
| 10 | use GiveBlood\Modules\Bank\Database\Seeders\BanksSeeder; |
|
| 11 | ||
| 12 | ||
| 13 | class BankServiceProvider extends ServiceProvider |
|
| 14 | { |
|
| 15 | use LaravelMigrator; |
|
| 16 | ||
| 17 | public function register() |
|
| 18 | { |
|
| 19 | $this->registerMigrations(); |
|
| 20 | $this->registerFactories(); |
|
| 21 | $this->registerSeeders(); |
|
| 22 | } |
|
| 23 | ||
| 24 | public function registerMigrations() |
|
| 25 | { |
|
| 26 | $this->migrations( |
|
| 27 | [ |
|
| 28 | CreateBanksTable::class |
|
| 29 | ] |
|
| 30 | ); |
|
| 31 | } |
|
| 32 | ||
| 33 | public function registerFactories() |
|
| 34 | { |
|
| 35 | (new BankFactory())->define(); |
|
| 36 | } |
|
| 37 | ||
| 38 | public function registerSeeders() |
|
| 39 | { |
|
| 40 | $this->seeders( |
|
| 41 | [ |
|
| 42 | BanksSeeder::class |
|
| 43 | ] |
|
| 44 | ); |
|
| 45 | } |
|
| 46 | } |
|
| 47 | ||
| @@ 14-47 (lines=34) @@ | ||
| 11 | use GiveBlood\Modules\Blood\Database\Seeders\BloodTypeSeeder; |
|
| 12 | ||
| 13 | ||
| 14 | class BloodServiceProvider extends ServiceProvider |
|
| 15 | { |
|
| 16 | use LaravelMigrator; |
|
| 17 | ||
| 18 | public function register() |
|
| 19 | { |
|
| 20 | $this->registerMigrations(); |
|
| 21 | $this->registerFactories(); |
|
| 22 | $this->registerSeeders(); |
|
| 23 | } |
|
| 24 | ||
| 25 | public function registerMigrations() |
|
| 26 | { |
|
| 27 | $this->migrations( |
|
| 28 | [ |
|
| 29 | CreateBloodTypesTable::class |
|
| 30 | ] |
|
| 31 | ); |
|
| 32 | } |
|
| 33 | ||
| 34 | public function registerFactories() |
|
| 35 | { |
|
| 36 | (new BloodTypeFactory())->define(); |
|
| 37 | } |
|
| 38 | ||
| 39 | public function registerSeeders() |
|
| 40 | { |
|
| 41 | $this->seeders( |
|
| 42 | [ |
|
| 43 | BloodTypeSeeder::class |
|
| 44 | ] |
|
| 45 | ); |
|
| 46 | } |
|
| 47 | } |
|
| 48 | ||
| @@ 14-48 (lines=35) @@ | ||
| 11 | use GiveBlood\Modules\Campaign\CampaignFactory; |
|
| 12 | ||
| 13 | ||
| 14 | class CampaignServiceProvider extends ServiceProvider |
|
| 15 | { |
|
| 16 | use LaravelMigrator; |
|
| 17 | ||
| 18 | public function register() |
|
| 19 | { |
|
| 20 | $this->registerMigrations(); |
|
| 21 | $this->registerFactories(); |
|
| 22 | $this->registerSeeders(); |
|
| 23 | } |
|
| 24 | ||
| 25 | public function registerMigrations() |
|
| 26 | { |
|
| 27 | $this->migrations( |
|
| 28 | [ |
|
| 29 | CreateCampaignsTable::class, |
|
| 30 | CreateCommentsTable::class |
|
| 31 | ] |
|
| 32 | ); |
|
| 33 | } |
|
| 34 | ||
| 35 | public function registerFactories() |
|
| 36 | { |
|
| 37 | (new CampaignFactory())->define(); |
|
| 38 | } |
|
| 39 | ||
| 40 | public function registerSeeders() |
|
| 41 | { |
|
| 42 | $this->seeders( |
|
| 43 | [ |
|
| 44 | CampaignsSeeder::class, |
|
| 45 | ] |
|
| 46 | ); |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||