Completed
Push — master ( 0002ba...cd8c72 )
by Guillaume
03:23 queued 27s
created
src/AppBundle/Controller/PanierController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
     public function ajouterAuPanierAction(Request $request)
13 13
     {
14
-        return new JsonResponse(["ok"],201);
14
+        return new JsonResponse(["ok"], 201);
15 15
 
16 16
     }
17 17
 
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Controller/EventController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             return new JsonResponse([]);
28 28
         }
29 29
         $retour = array_map(
30
-            function ($element) use ($manager, $options) {
30
+            function($element) use ($manager, $options) {
31 31
                 return $manager->toArray($element, $this->getFields($options['fields']));
32 32
             },
33 33
             $resultSets
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Controller/CampagneController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             return new JsonResponse([]);
28 28
         }
29 29
         $retour = array_map(
30
-            function ($element) use ($manager, $options) {
30
+            function($element) use ($manager, $options) {
31 31
                 return $manager->toArray($element, $this->getFields($options['fields']));
32 32
             },
33 33
             $resultSets
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Tests/Manager/CibleManagerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function testFindAll()
26 26
     {
27
-        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/CibleManager/CibleManager.yml',]);
27
+        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/CibleManager/CibleManager.yml', ]);
28 28
         $this->assertCount(10, $this->manager->findAll());
29 29
     }
30 30
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function testInsertNewCible()
36 36
     {
37
-        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/CibleManager/DefaultCible.yml',]);
37
+        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/CibleManager/DefaultCible.yml', ]);
38 38
         $cible = new Cible();
39 39
         $this->manager->insert($cible);
40 40
         $this->assertCount(2, $this->manager->findAll());
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function testUpdateCible()
48 48
     {
49
-        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/CibleManager/DefaultCible.yml',]);
49
+        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/CibleManager/DefaultCible.yml', ]);
50 50
         $criteria = ['createdAt' => new \DateTime("2016-08-05 12:12:12")];
51 51
         $cible = $this->manager->findOneBy($criteria);
52 52
         $this->manager->update($cible);
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Tests/Manager/EventManagerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function testFindAll()
26 26
     {
27
-        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/EventManager/EventManager.yml',]);
27
+        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/EventManager/EventManager.yml', ]);
28 28
         $this->assertCount(10, $this->manager->findAll());
29 29
     }
30 30
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function testInsertNewEvent()
36 36
     {
37
-        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/EventManager/DefaultEvent.yml',]);
37
+        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/EventManager/DefaultEvent.yml', ]);
38 38
         $event = new Event();
39 39
         $this->manager->insert($event);
40 40
         $this->assertCount(2, $this->manager->findAll());
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function testUpdateEvent()
48 48
     {
49
-        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/EventManager/DefaultEvent.yml',]);
49
+        $this->loadFixtureFiles(['@StarkerxpCampagneBundle/Tests/DataFixtures/EventManager/DefaultEvent.yml', ]);
50 50
         $criteria = ['createdAt' => new \DateTime("2016-08-05 12:12:12")];
51 51
         $event = $this->manager->findOneBy($criteria);
52 52
         $this->manager->update($event);
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Tests/Controller/EventControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $manager = $this->getContainer()->get('starkerxp_campagne.manager.event');
54 54
         $listeEvents = $manager->getRepository()->findAll();
55 55
         $this->assertCount(1, $listeEvents);
56
-        $EventDepart = $manager->toArray($listeEvents[0], [/*'nom'*/]);// Exemple
56
+        $EventDepart = $manager->toArray($listeEvents[0], [/*'nom'*/]); // Exemple
57 57
         $data = [
58 58
             //'nom'     => "Mon nom", //exemple
59 59
         ];
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $manager->clear();
65 65
         $Events = $manager->findAll();
66 66
         $this->assertCount(1, $Events);
67
-        $EventFinal = $manager->toArray($Events[0], [/*'nom'*/]);// Exemple
67
+        $EventFinal = $manager->toArray($Events[0], [/*'nom'*/]); // Exemple
68 68
         $this->assertNotEquals($EventDepart, $EventFinal);
69 69
         $this->assertEquals($data, $EventFinal);
70 70
     }
Please login to merge, or discard this patch.
src/Starkerxp/CampagneBundle/Tests/Controller/CampagneControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $manager = $this->getContainer()->get('starkerxp_campagne.manager.campagne');
54 54
         $listeCampagnes = $manager->getRepository()->findAll();
55 55
         $this->assertCount(1, $listeCampagnes);
56
-        $CampagneDepart = $manager->toArray($listeCampagnes[0], [/*'nom'*/]);// Exemple
56
+        $CampagneDepart = $manager->toArray($listeCampagnes[0], [/*'nom'*/]); // Exemple
57 57
         $data = [
58 58
             //'nom'     => "Mon nom", //exemple
59 59
         ];
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $manager->clear();
65 65
         $Campagnes = $manager->findAll();
66 66
         $this->assertCount(1, $Campagnes);
67
-        $CampagneFinal = $manager->toArray($Campagnes[0], [/*'nom'*/]);// Exemple
67
+        $CampagneFinal = $manager->toArray($Campagnes[0], [/*'nom'*/]); // Exemple
68 68
         $this->assertNotEquals($CampagneDepart, $CampagneFinal);
69 69
         $this->assertEquals($data, $CampagneFinal);
70 70
     }
Please login to merge, or discard this patch.
src/Starkerxp/UtilisateurBundle/Controller/UtilisateurController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             return new JsonResponse([]);
28 28
         }
29 29
         $retour = array_map(
30
-            function ($element) use ($manager, $options) {
30
+            function($element) use ($manager, $options) {
31 31
                 return $manager->toArray($element, $this->getFields($options['fields']));
32 32
             },
33 33
             $resultSets
Please login to merge, or discard this patch.
src/Starkerxp/UtilisateurBundle/Tests/Manager/UtilisateurManagerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function testFindAll()
26 26
     {
27
-        $this->loadFixtureFiles(['@StarkerxpUtilisateurBundle/Tests/DataFixtures/UtilisateurManager/UtilisateurManager.yml',]);
27
+        $this->loadFixtureFiles(['@StarkerxpUtilisateurBundle/Tests/DataFixtures/UtilisateurManager/UtilisateurManager.yml', ]);
28 28
         $this->assertCount(10, $this->manager->findAll());
29 29
     }
30 30
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function testInsertNewUtilisateur()
36 36
     {
37
-        $this->loadFixtureFiles(['@StarkerxpUtilisateurBundle/Tests/DataFixtures/UtilisateurManager/DefaultUtilisateur.yml',]);
37
+        $this->loadFixtureFiles(['@StarkerxpUtilisateurBundle/Tests/DataFixtures/UtilisateurManager/DefaultUtilisateur.yml', ]);
38 38
         $utilisateur = new Utilisateur();
39 39
         $this->manager->insert($utilisateur);
40 40
         $this->assertCount(2, $this->manager->findAll());
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function testUpdateUtilisateur()
48 48
     {
49
-        $this->loadFixtureFiles(['@StarkerxpUtilisateurBundle/Tests/DataFixtures/UtilisateurManager/DefaultUtilisateur.yml',]);
49
+        $this->loadFixtureFiles(['@StarkerxpUtilisateurBundle/Tests/DataFixtures/UtilisateurManager/DefaultUtilisateur.yml', ]);
50 50
         $criteria = ['createdAt' => new \DateTime("2016-08-05 12:12:12")];
51 51
         $utilisateur = $this->manager->findOneBy($criteria);
52 52
         $this->manager->update($utilisateur);
Please login to merge, or discard this patch.