Completed
Push — master ( 651cee...b2acd3 )
by Axel
05:20 queued 02:47
created
Manager/ProjectManager.php 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -3,13 +3,9 @@
 block discarded – undo
3 3
 namespace Developtech\AgilityBundle\Manager;
4 4
 
5 5
 use Doctrine\ORM\EntityManager;
6
-
7 6
 use Developtech\AgilityBundle\Entity\Project;
8
-
9 7
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
10
-
11 8
 use Symfony\Component\Security\Core\User\UserInterface;
12
-
13 9
 use Developtech\AgilityBundle\Utils\Slugger;
14 10
 
15 11
 class ProjectManager {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function getProject($slug) {
45 45
         $project = $this->em->getRepository($this->projectClass)->findOneBySlug($slug);
46
-        if($project === null) {
46
+        if ($project === null) {
47 47
             throw new NotFoundHttpException('Project not found');
48 48
         }
49 49
         return $project;
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             ->setBetaTestStatus($betaTestStatus)
88 88
             ->setNbBetaTesters($nbBetaTesters)
89 89
         ;
90
-        if($productOwner !== null) {
90
+        if ($productOwner !== null) {
91 91
             $project->setProductOwner($productOwner);
92 92
         }
93 93
         $this->em->flush();
Please login to merge, or discard this patch.
Tests/Manager/FeatureManagerTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     }
78 78
 
79 79
     public function getFeatureMock($id) {
80
-        if($id === 2) {
80
+        if ($id === 2) {
81 81
             return null;
82 82
         }
83 83
         return
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,8 @@
 block discarded – undo
3 3
 namespace Developtech\AgilityBundle\Manager;
4 4
 
5 5
 use Doctrine\ORM\EntityManager;
6
-
7 6
 use Developtech\AgilityBundle\Model\ProjectModel;
8 7
 use Developtech\AgilityBundle\Model\FeatureModel;
9
-
10 8
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
11 9
 
12 10
 class FeatureManager {
Please login to merge, or discard this patch.
Tests/Manager/ProjectManagerTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     }
78 78
 
79 79
     public function getFeatureMock($id) {
80
-        if($id === 2) {
80
+        if ($id === 2) {
81 81
             return null;
82 82
         }
83 83
         return
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,12 +3,9 @@
 block discarded – undo
3 3
 namespace Developtech\AgilityBundle\Manager;
4 4
 
5 5
 use Doctrine\ORM\EntityManager;
6
-
7 6
 use Developtech\AgilityBundle\Model\ProjectModel;
8 7
 use Developtech\AgilityBundle\Model\FeatureModel;
9
-
10 8
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
11
-
12 9
 use Developtech\AgilityBundle\Utils\Slugger;
13 10
 
14 11
 class FeatureManager {
Please login to merge, or discard this patch.
Tests/Manager/FeedbackManagerTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     }
78 78
 
79 79
     public function getFeatureMock($id) {
80
-        if($id === 2) {
80
+        if ($id === 2) {
81 81
             return null;
82 82
         }
83 83
         return
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,8 @@
 block discarded – undo
3 3
 namespace Developtech\AgilityBundle\Manager;
4 4
 
5 5
 use Doctrine\ORM\EntityManager;
6
-
7 6
 use Developtech\AgilityBundle\Model\ProjectModel;
8 7
 use Developtech\AgilityBundle\Model\FeatureModel;
9
-
10 8
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
11 9
 
12 10
 class FeatureManager {
Please login to merge, or discard this patch.
Entity/Project.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Developtech\AgilityBundle\Manager;
4 4
 
5 5
 use Doctrine\ORM\EntityManager;
6
-
7 6
 use Developtech\AgilityBundle\Model\ProjectModel;
8 7
 
9 8
 class FeedbackManager {
Please login to merge, or discard this patch.
Model/ProjectModel.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Developtech\AgilityBundle\Model;
4 4
 
5
-use Doctrine\ORM\Mapping as ORM;
6
-
7 5
 use Doctrine\Common\Collections\ArrayCollection;
8 6
 
9 7
 /**
Please login to merge, or discard this patch.
Manager/FeatureManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * @return FeatureModel
42 42
      */
43 43
     public function getFeature($id) {
44
-        if(($feature = $this->em->getRepository(Feature::class)->find($id)) === null) {
44
+        if (($feature = $this->em->getRepository(Feature::class)->find($id)) === null) {
45 45
             throw new NotFoundHttpException('Feature not found');
46 46
         }
47 47
         return $feature;
Please login to merge, or discard this patch.
Manager/FeedbackManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * @return FeedbackModel
59 59
      */
60 60
     public function getFeedback($id) {
61
-        if(($feedback = $this->em->getRepository(Feedback::class)->find($id)) === null) {
61
+        if (($feedback = $this->em->getRepository(Feedback::class)->find($id)) === null) {
62 62
             throw new NotFoundHttpException('Feedback not found');
63 63
         }
64 64
         return $feedback;
Please login to merge, or discard this patch.
EventSubscriber/DynamicRelationSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             ->getNamingStrategy()
49 49
         ;
50 50
 
51
-        switch($metadata->getName()) {
51
+        switch ($metadata->getName()) {
52 52
             case self::MODEL_PROJECT: return $this->mapProject($metadata, $namingStrategy);
53 53
             case self::MODEL_FEATURE: return $this->mapFeature($metadata, $namingStrategy);
54 54
             case self::MODEL_FEEDBACK: return $this->mapFeedback($metadata, $namingStrategy);
Please login to merge, or discard this patch.