@@ -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') |
@@ -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 |