partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit b159ef5587956adb0e58e03f3eac2aebe1acd286
parent ada2ed69a54b473203d853becf062346d4ef06c5
Author: Felicia Hummel <felicia@partkeepr.com>
Date:   Mon, 30 Jan 2017 16:00:47 +0100

Make styleci happy

Diffstat:
Msrc/PartKeepr/PartBundle/Tests/MetaPartTest.php | 7++-----
Msrc/PartKeepr/ProjectBundle/Controller/ProjectReportController.php | 5+++--
Msrc/PartKeepr/ProjectBundle/Entity/ProjectRun.php | 1+
Msrc/PartKeepr/ProjectBundle/Tests/ProjectTest.php | 1-
4 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/PartKeepr/PartBundle/Tests/MetaPartTest.php b/src/PartKeepr/PartBundle/Tests/MetaPartTest.php @@ -1,6 +1,6 @@ <?php -namespace PartKeepr\PartBundle\Tests; +namespace PartKeepr\PartBundle\Tests; use Doctrine\Common\DataFixtures\ProxyReferenceRepository; use PartKeepr\CoreBundle\Tests\WebTestCase; @@ -27,7 +27,7 @@ class MetaPartTest extends WebTestCase )->getReferenceRepository(); } - public function testMetaPartMatching () + public function testMetaPartMatching() { /** * @var Part $metaPart1 @@ -53,8 +53,5 @@ class MetaPartTest extends WebTestCase $this->assertNotContains($metaSourcePart1, $matches2); $this->assertContains($metaSourcePart2, $matches2); $this->assertNotContains($metaSourcePart3, $matches2); - } - - } diff --git a/src/PartKeepr/ProjectBundle/Controller/ProjectReportController.php b/src/PartKeepr/ProjectBundle/Controller/ProjectReportController.php @@ -55,7 +55,9 @@ class ProjectReportController extends FOSRestController $projects[] = ['project' => $project, 'quantity' => $projectParameter->quantity]; } - $partRepository = $this->get('doctrine.orm.entity_manager')->getRepository('PartKeepr\\PartBundle\\Entity\\Part'); + $partRepository = $this->get('doctrine.orm.entity_manager')->getRepository( + 'PartKeepr\\PartBundle\\Entity\\Part' + ); $aPartResults = []; foreach ($projects as $report) { @@ -73,7 +75,6 @@ class ProjectReportController extends FOSRestController /** * @var Part $part */ - if ($result["overageType"] === ProjectPart::OVERAGE_TYPE_PERCENT) { $overage = $result['quantity'] * $report['quantity'] * ($result["overage"] / 100); } else { diff --git a/src/PartKeepr/ProjectBundle/Entity/ProjectRun.php b/src/PartKeepr/ProjectBundle/Entity/ProjectRun.php @@ -47,6 +47,7 @@ class ProjectRun extends BaseEntity /** * Stores the parts. + * * @ORM\OneToMany( * targetEntity="PartKeepr\ProjectBundle\Entity\ProjectRunPart", * mappedBy="projectRun", diff --git a/src/PartKeepr/ProjectBundle/Tests/ProjectTest.php b/src/PartKeepr/ProjectBundle/Tests/ProjectTest.php @@ -240,6 +240,5 @@ class ProjectTest extends WebTestCase foreach ($project->parts as $part) { $this->assertObjectNotHasAttribute("project", $part); } - } }