@@ -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; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** @var ContainerInterface */ |
| 18 | 18 | private $container; |
| 19 | 19 | /** |
| 20 | - * @param ContainerInterface $container |
|
| 20 | + * @param \Symfony\Component\DependencyInjection\ContainerInterface $container |
|
| 21 | 21 | */ |
| 22 | 22 | public function setContainer(ContainerInterface $container = null) { |
| 23 | 23 | $this->container = $container; |
@@ -71,6 +71,9 @@ |
||
| 71 | 71 | $this->assertEquals(3, $this->manager->countFeedbacksPerStatus((new Project())->setId(1), Feedback::STATUS_OPEN)); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @return \Doctrine\ORM\EntityManager |
|
| 76 | + */ |
|
| 74 | 77 | public function getEntityManagerMock() { |
| 75 | 78 | $entityManagerMock = $this |
| 76 | 79 | ->getMockBuilder('Doctrine\ORM\EntityManager') |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$loader = @include __DIR__ . '/../vendor/autoload.php'; |
|
| 3 | +$loader = @include __DIR__.'/../vendor/autoload.php'; |
|
| 4 | 4 | if (!$loader) { |
| 5 | 5 | die(<<<'EOT' |
| 6 | 6 | You must set up the project dependencies, run the following commands: |