PSR 2 Recomendation Followed

This commit is contained in:
devansh bawari 2020-10-09 13:48:51 +05:30
parent 9fa1e1c9a8
commit eeb437a5f8
1 changed files with 2 additions and 4 deletions

View File

@ -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,