@@ -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 |
@@ -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 |
@@ -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 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function countPerStatus(ProjectModel $project, $status) { |
21 | 21 | $statement = $this->getEntityManager()->getConnection()->prepare( |
22 | - "SELECT COUNT(*) as nb_feedbacks FROM {$this->getClassMetadata()->getTableName()} " . |
|
22 | + "SELECT COUNT(*) as nb_feedbacks FROM {$this->getClassMetadata()->getTableName()} ". |
|
23 | 23 | "WHERE project_id = :project_id AND status = :status" |
24 | 24 | ); |
25 | 25 | $statement->execute([ |
@@ -41,7 +41,7 @@ |
||
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; |
@@ -58,7 +58,7 @@ |
||
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; |
@@ -48,7 +48,7 @@ |
||
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); |
@@ -7,7 +7,7 @@ |
||
7 | 7 | * For the full copyright and license information, please view the LICENSE |
8 | 8 | * file that was distributed with this source code. |
9 | 9 | */ |
10 | -if (!($loader = @include __DIR__ . '/../vendor/autoload.php')) { |
|
10 | +if (!($loader = @include __DIR__.'/../vendor/autoload.php')) { |
|
11 | 11 | echo <<<EOT |
12 | 12 | You need to install the project dependencies using Composer: |
13 | 13 | $ wget http://getcomposer.org/composer.phar |