From 9afec5426533d895ab85a2ca86c2eb217d0326f5 Mon Sep 17 00:00:00 2001 From: Zak Henry Date: Fri, 4 Sep 2015 02:16:15 -0400 Subject: [PATCH] Applied fixes from StyleCI --- api/app/Services/ModelFactoryInstance.php | 1 - api/tests/ModelFactoryTest.php | 3 --- 2 files changed, 4 deletions(-) diff --git a/api/app/Services/ModelFactoryInstance.php b/api/app/Services/ModelFactoryInstance.php index 2f0d229b..f6dac35b 100644 --- a/api/app/Services/ModelFactoryInstance.php +++ b/api/app/Services/ModelFactoryInstance.php @@ -227,7 +227,6 @@ private function modifyEntity(BaseModel $entity) } if ($this->customizations) { - foreach ($this->customizations as $key => $value) { $entity->{$key} = $value; } diff --git a/api/tests/ModelFactoryTest.php b/api/tests/ModelFactoryTest.php index 4cb0e719..a4064506 100644 --- a/api/tests/ModelFactoryTest.php +++ b/api/tests/ModelFactoryTest.php @@ -158,7 +158,6 @@ public function testModelFactoryInstanceArrayableAndJsonable() public function testPredefinedModel() { - $testEntity = \App\Models\TestEntity::first(); $serviceCreatedFactoryInstance = $this->modelFactoryTest->get(\App\Models\TestEntity::class) @@ -176,7 +175,6 @@ public function testPredefinedModel() public function testPredefinedCollection() { - $testEntityCollection = \App\Models\TestEntity::take(10)->get(); $serviceCreatedFactoryCollection = $this->modelFactoryTest->get(\App\Models\TestEntity::class) @@ -188,5 +186,4 @@ public function testPredefinedCollection() $this->assertInstanceOf(\Illuminate\Support\Collection::class, $serviceCreatedFactoryCollection); $this->assertEquals(3, $serviceCreatedFactoryCollection->count()); } - }