PSR 2 Recomendation Followed
This commit is contained in:
parent
9fa1e1c9a8
commit
eeb437a5f8
|
|
@ -30,8 +30,7 @@ class CategoryBulkTableSeeder extends Seeder
|
|||
|
||||
public function run()
|
||||
{
|
||||
for ($i=0; $i<$this->numberOfParentCategories; ++$i) {
|
||||
|
||||
for ($i = 0; $i < $this->numberOfParentCategories; ++$i) {
|
||||
$createdCategory = $this->categoryRepository->create([
|
||||
'slug' => $this->faker->slug,
|
||||
'name' => $this->faker->firstName,
|
||||
|
|
@ -41,8 +40,7 @@ class CategoryBulkTableSeeder extends Seeder
|
|||
]);
|
||||
|
||||
if ($createdCategory) {
|
||||
|
||||
for ($j=0; $j<$this->numberOfChildCategories; ++$j) {
|
||||
for ($j = 0; $j < $this->numberOfChildCategories; ++$j) {
|
||||
|
||||
$this->categoryRepository->create([
|
||||
'slug' => $this->faker->slug,
|
||||
|
|
|
|||
Loading…
Reference in New Issue