Completed
Push — master ( 778ba1...db4111 )
by Guillaume
02:44
created
src/Starkerxp/LeadBundle/Controller/LeadController.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/LeadBundle/Tests/Manager/LeadManagerTest.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(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/LeadManager.yml',]);
27
+        $this->loadFixtureFiles(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/LeadManager.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 testInsertNewLead()
36 36
     {
37
-        $this->loadFixtureFiles(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/DefaultLead.yml',]);
37
+        $this->loadFixtureFiles(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/DefaultLead.yml', ]);
38 38
         $lead = new Lead();
39 39
         $this->manager->insert($lead);
40 40
         $this->assertCount(2, $this->manager->findAll());
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function testUpdateLead()
48 48
     {
49
-        $this->loadFixtureFiles(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/DefaultLead.yml',]);
49
+        $this->loadFixtureFiles(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/DefaultLead.yml', ]);
50 50
         $criteria = ['createdAt' => new \DateTime("2016-08-05 12:12:12")];
51 51
         $lead = $this->manager->findOneBy($criteria);
52 52
         $this->manager->update($lead);
Please login to merge, or discard this patch.
src/Starkerxp/LeadBundle/Tests/Manager/LeadActionManagerTest.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(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadActionManager/LeadActionManager.yml',]);
27
+        $this->loadFixtureFiles(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadActionManager/LeadActionManager.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 testInsertNewLeadAction()
36 36
     {
37
-        $this->loadFixtureFiles(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadActionManager/DefaultLeadAction.yml',]);
37
+        $this->loadFixtureFiles(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadActionManager/DefaultLeadAction.yml', ]);
38 38
         $leadaction = new LeadAction();
39 39
         $this->manager->insert($leadaction);
40 40
         $this->assertCount(2, $this->manager->findAll());
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function testUpdateLeadAction()
48 48
     {
49
-        $this->loadFixtureFiles(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadActionManager/DefaultLeadAction.yml',]);
49
+        $this->loadFixtureFiles(['@StarkerxpLeadBundle/Tests/DataFixtures/LeadActionManager/DefaultLeadAction.yml', ]);
50 50
         $criteria = ['createdAt' => new \DateTime("2016-08-05 12:12:12")];
51 51
         $leadaction = $this->manager->findOneBy($criteria);
52 52
         $this->manager->update($leadaction);
Please login to merge, or discard this patch.
src/Starkerxp/LeadBundle/Tests/Controller/LeadControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $manager = $this->getContainer()->get('starkerxp_lead.manager.leadaction');
71 71
         $listeLeads = $manager->getRepository()->findAll();
72 72
         $this->assertCount(1, $listeLeads);
73
-        $LeadActionDepart = $manager->toArray($listeLeads[0], [/*'nom'*/]);// Exemple
73
+        $LeadActionDepart = $manager->toArray($listeLeads[0], [/*'nom'*/]); // Exemple
74 74
         $data = [
75 75
             //'nom'     => "Mon nom", //exemple
76 76
         ];
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $manager->clear();
88 88
         $LeadActions = $manager->findAll();
89 89
         $this->assertCount(1, $LeadActions);
90
-        $LeadActionFinal = $manager->toArray($LeadActions[0], [/*'nom'*/]);// Exemple
90
+        $LeadActionFinal = $manager->toArray($LeadActions[0], [/*'nom'*/]); // Exemple
91 91
         $this->assertNotEquals($LeadActionDepart, $LeadActionFinal);
92 92
         $this->assertEquals($data, $LeadActionFinal);
93 93
     }
Please login to merge, or discard this patch.