@@ -121,7 +121,7 @@ |
||
| 121 | 121 | * @return Project|null |
| 122 | 122 | */ |
| 123 | 123 | public function getProjectMock($id) { |
| 124 | - if($id === 2) { |
|
| 124 | + if ($id === 2) { |
|
| 125 | 125 | return null; |
| 126 | 126 | } |
| 127 | 127 | return |
@@ -3,12 +3,9 @@ |
||
| 3 | 3 | namespace Developtech\AgilityBundle\Tests\Manager; |
| 4 | 4 | |
| 5 | 5 | use Developtech\AgilityBundle\Manager\ProjectManager; |
| 6 | - |
|
| 7 | 6 | use Developtech\AgilityBundle\Entity\Project; |
| 8 | 7 | use Developtech\AgilityBundle\Tests\Mock\User; |
| 9 | - |
|
| 10 | 8 | use Developtech\AgilityBundle\Utils\Slugger; |
| 11 | - |
|
| 12 | 9 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 13 | 10 | |
| 14 | 11 | class ProjectManagerTest extends \PHPUnit_Framework_TestCase { |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function getProject($slug) { |
| 43 | 43 | $project = $this->em->getRepository(Project::class)->findOneBySlug($slug); |
| 44 | - if($project === null) { |
|
| 44 | + if ($project === null) { |
|
| 45 | 45 | throw new NotFoundHttpException('Project not found'); |
| 46 | 46 | } |
| 47 | 47 | return $project; |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | ->setSlug($this->slugger->slugify($name)) |
| 86 | 86 | ->setDescription($description) |
| 87 | 87 | ; |
| 88 | - if($productOwner !== null) { |
|
| 88 | + if ($productOwner !== null) { |
|
| 89 | 89 | $project->setProductOwner($productOwner); |
| 90 | 90 | } |
| 91 | 91 | |