@@ -6,7 +6,7 @@ |
||
| 6 | 6 | /** |
| 7 | 7 | * @var Composer\Autoload\ClassLoader $loader |
| 8 | 8 | */ |
| 9 | -$loader = require __DIR__ . '/../app/autoload.php'; |
|
| 9 | +$loader = require __DIR__.'/../app/autoload.php'; |
|
| 10 | 10 | Debug::enable(); |
| 11 | 11 | |
| 12 | 12 | $kernel = new AppKernel('dev', true); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $monTexte = implode( |
| 41 | 41 | "\n", |
| 42 | 42 | array_map( |
| 43 | - function ($ligne) { |
|
| 43 | + function($ligne) { |
|
| 44 | 44 | return trim($ligne); |
| 45 | 45 | }, |
| 46 | 46 | explode("\n", $monTexte) |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function testFindAll() |
| 24 | 24 | { |
| 25 | - $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/{{ nomEntity }}Manager.yml',]); |
|
| 25 | + $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/{{ nomEntity }}Manager.yml', ]); |
|
| 26 | 26 | $this->assertCount(10, $this->manager->findAll()); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public function testInsertNew{{ nomEntity }}() |
| 34 | 34 | { |
| 35 | - $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/Default{{ nomEntity }}.yml',]); |
|
| 35 | + $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/Default{{ nomEntity }}.yml', ]); |
|
| 36 | 36 | ${{ nomEntity|lower }} = new \{{namespace}}\Entity\{{ nomEntity }}(); |
| 37 | 37 | $this->manager->insert(${{ nomEntity|lower }}); |
| 38 | 38 | $this->assertCount(2, $this->manager->findAll()); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function testUpdate{{ nomEntity }}() |
| 46 | 46 | { |
| 47 | - $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/Default{{ nomEntity }}.yml',]); |
|
| 47 | + $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/Default{{ nomEntity }}.yml', ]); |
|
| 48 | 48 | $criteria = ['createdAt' => new \DateTime("2016-08-05 12:12:12")]; |
| 49 | 49 | ${{ nomEntity|lower }} = $this->manager->findOneBy($criteria); |
| 50 | 50 | |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | return "<a href='{{unsubscribe:".$lien."}}' style='".$style."' title='Désinscription'>".$texte.'</a>'; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - return "<a href='{{click:".$lien."}}' style='".$style."'>".$texte.'</a>';; |
|
| 61 | + return "<a href='{{click:".$lien."}}' style='".$style."'>".$texte.'</a>'; ; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | public function getSupport($api, $version) |