@@ -3,13 +3,9 @@ |
||
| 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 { |
@@ -43,7 +43,7 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -77,7 +77,7 @@ |
||
| 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 |
@@ -37,7 +37,7 @@ |
||
| 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; |
@@ -3,10 +3,8 @@ |
||
| 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 { |
@@ -77,7 +77,7 @@ |
||
| 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 |