| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | protected function setUp(): void |
||
| 17 | { |
||
| 18 | parent::setUp(); |
||
| 19 | |||
| 20 | DB::purge('testing'); |
||
| 21 | DB::setDefaultConnection('testing'); |
||
| 22 | |||
| 23 | Artisan::call('migrate'); |
||
| 24 | |||
| 25 | foreach ($this->seeders() as $seeder) { |
||
| 26 | // Instantiated seeder class (likely with constructor params) |
||
| 27 | if ($seeder instanceof Seeder) { |
||
| 28 | $seeder->run(); |
||
|
|
|||
| 29 | } |
||
| 30 | |||
| 31 | // Seeder class string to be used in Artisan command |
||
| 32 | else { |
||
| 33 | $this->seed($seeder); |
||
| 34 | } |
||
| 71 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.