Completed
Push — master ( b322d1...651cee )
by Axel
8s
created
Manager/ProjectManager.php 3 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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     protected $projectClass;
22 22
 
23 23
     /**
24
-     * @param Doctrine\ORM\EntityManager $em
24
+     * @param EntityManager $em
25 25
      */
26 26
     public function __construct(EntityManager $em, Slugger $slugger, $projectClass) {
27 27
         $this->em = $em;
Please login to merge, or discard this patch.
Tests/Manager/FeatureManagerTest.php 1 patch
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.
Manager/FeatureManager.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      * @return FeatureModel
38 38
      */
39 39
     public function getFeature($id) {
40
-        if(($feature = $this->em->getRepository($this->featureClass)->find($id)) === null) {
40
+        if (($feature = $this->em->getRepository($this->featureClass)->find($id)) === null) {
41 41
             throw new NotFoundHttpException('Feature not found');
42 42
         }
43 43
         return $feature;
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.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     }
50 50
 
51 51
     /**
52
-    *  @param ProjectModel $project
52
+     *  @param ProjectModel $project
53 53
      * @param string $name
54 54
      * @param string $description
55 55
      * @param integer $status
Please login to merge, or discard this patch.
Tests/Manager/ProjectManagerTest.php 1 patch
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.
Manager/FeedbackManager.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * @return FeedbackModel
37 37
      */
38 38
     public function getFeedback($id) {
39
-        if(($feedback = $this->em->getRepository($this->feedbackClass)->find($id)) === null) {
39
+        if (($feedback = $this->em->getRepository($this->feedbackClass)->find($id)) === null) {
40 40
             throw new NotFoundHttpException('Feedback not found');
41 41
         }
42 42
         return $feedback;
Please login to merge, or discard this patch.
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.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@
 block discarded – undo
41 41
     }
42 42
 
43 43
     /**
44
-    * @param ProjectModel $project
45
-    * @param UserInterface $author
46
-    * @param array $orderBy
47
-    * @param integer $limit
48
-    * @param integer $offset
49
-    * @return array
50
-    */
44
+     * @param ProjectModel $project
45
+     * @param UserInterface $author
46
+     * @param array $orderBy
47
+     * @param integer $limit
48
+     * @param integer $offset
49
+     * @return array
50
+     */
51 51
     public function getProjectFeedbacksByAuthor(ProjectModel $project, UserInterface $author, $orderBy = null, $limit = null, $offset = null) {
52 52
         return $this->em->getRepository($this->feedbackClass)->findBy([
53 53
             'project' => $project,
Please login to merge, or discard this patch.
Tests/Manager/FeedbackManagerTest.php 1 patch
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.