for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TildBJ\Seeder\Tests\Functional\Seeder;
use TildBJ\Seeder;
/**
* Class Pages
* @package TildBJ\Seeder\Tests\Functional\Seeder
*/
class Pages extends Seeder\Seeder\DatabaseSeeder
{
* Run the database seeds.
*
* @return void
public function run()
$this->factory->create('pages', 2)->each(function (Seeder\Seed $seed, Seeder\Faker $faker) {
$faker
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$seed->set([
'title' => 'foobar',
'media' => $this->call(Seeder\Seeder\Image::class)
]);
});
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.