Completed
Push — master ( c5d644...a435b5 )
by Guillaume
02:45
created
src/Starkerxp/StructureBundle/Command/GenererDataTestCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 {
13 13
 
14 14
     /**
15
-     * @return bool
15
+     * @return false|null
16 16
      */
17 17
     public function treatment()
18 18
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
                 }
94 94
                 $export[strtolower($data['tableName']).'_'.$row['id']] = $dataExport;
95 95
             }
96
-            $contenu .= Yaml::dump([$namespace => $export,], 2, 4)."\n";
96
+            $contenu .= Yaml::dump([$namespace => $export, ], 2, 4)."\n";
97 97
         }
98 98
         echo $contenu;
99 99
     }
Please login to merge, or discard this patch.
src/Starkerxp/StructureBundle/Command/LockCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     /**
80 80
      * @return string
81 81
      */
82
-    protected function getEnvironment(){
82
+    protected function getEnvironment() {
83 83
         return $this->getContainer()->get("kernel")->getEnvironment();
84 84
     }
85 85
 
Please login to merge, or discard this patch.
src/Starkerxp/LeadBundle/Entity/Lead.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
      */
268 268
     public function getSerialisation()
269 269
     {
270
-        if(empty($this->serialisation)){
270
+        if (empty($this->serialisation)) {
271 271
             return [];
272 272
         }
273 273
         return $this->serialisation->getSerialisation();
Please login to merge, or discard this patch.
src/Starkerxp/LeadBundle/Tests/Controller/LeadControllerTest.php 2 patches
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $data = [
22 22
             //'nom'     => "Mon nom", //exemple
23 23
         ];
24
-		$url = $this->generateUrl(
24
+        $url = $this->generateUrl(
25 25
             'starkerxp_lead.lead.post',
26 26
             []
27 27
         );
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $this->loadFixtureFiles([
45 45
             '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
46 46
         ]);
47
-		$url = $this->generateUrl(
47
+        $url = $this->generateUrl(
48 48
             'starkerxp_lead.lead.post',
49 49
             []
50 50
         );
@@ -64,10 +64,10 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function testPutValide()
66 66
     {
67
-		$this->loadFixtureFiles([
67
+        $this->loadFixtureFiles([
68 68
             '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
69
-			'@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/DefaultLead.yml',
70
-		]);
69
+            '@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/DefaultLead.yml',
70
+        ]);
71 71
         $manager = $this->getContainer()->get('starkerxp_lead.manager.lead');
72 72
         $listeLeads = $manager->getRepository()->findAll();
73 73
         $this->assertCount(1, $listeLeads);
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
         $data = [
76 76
             //'nom'     => "Mon nom", //exemple
77 77
         ];
78
-		$url = $this->generateUrl(
78
+        $url = $this->generateUrl(
79 79
             'starkerxp_lead.lead.put',
80 80
             [
81
-				"lead_id"    => $listeLeads[0]->getId(),
82
-			]
81
+                "lead_id"    => $listeLeads[0]->getId(),
82
+            ]
83 83
         );
84 84
         $client = $this->getAuthClient();
85 85
         $client->request('PUT', $url, $data);
@@ -100,18 +100,18 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function testPutInvalide()
102 102
     {
103
-		$this->loadFixtureFiles([
103
+        $this->loadFixtureFiles([
104 104
             '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
105
-			'@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/DefaultLead.yml',
106
-		]);
105
+            '@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/DefaultLead.yml',
106
+        ]);
107 107
         $manager = $this->getContainer()->get('starkerxp_lead.manager.lead');
108 108
         $listeLeads = $manager->getRepository()->findAll();
109 109
         $this->assertCount(1, $listeLeads);
110
-		$url = $this->generateUrl(
110
+        $url = $this->generateUrl(
111 111
             'starkerxp_lead.lead.put',
112 112
             [
113
-				"lead_id"    => $listeLeads[0]->getId(),
114
-			]
113
+                "lead_id"    => $listeLeads[0]->getId(),
114
+            ]
115 115
         );
116 116
         $client = $this->getAuthClient();
117 117
         $client->request('PUT', $url, []);
@@ -129,17 +129,17 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function testPutSansResultat()
131 131
     {
132
-		$this->loadFixtureFiles([
132
+        $this->loadFixtureFiles([
133 133
             '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
134
-		]);
134
+        ]);
135 135
         $data = [
136 136
             //'nom'     => "Mon nom", //exemple
137 137
         ];
138
-		$url = $this->generateUrl(
138
+        $url = $this->generateUrl(
139 139
             'starkerxp_lead.lead.put',
140 140
             [
141
-				"lead_id"    => 404,
142
-			]
141
+                "lead_id"    => 404,
142
+            ]
143 143
         );
144 144
         $client = $this->getAuthClient();
145 145
         $client->request('PUT', $url, $data);
@@ -157,15 +157,15 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public function testCGetValideAvecResultats()
159 159
     {
160
-		$this->loadFixtureFiles([
160
+        $this->loadFixtureFiles([
161 161
             '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
162
-			'@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/LeadManager.yml',
163
-		]);
164
-		$url = $this->generateUrl(
162
+            '@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/LeadManager.yml',
163
+        ]);
164
+        $url = $this->generateUrl(
165 165
             'starkerxp_lead.lead.cget',
166 166
             [
167 167
 				
168
-			]
168
+            ]
169 169
         );
170 170
         $client = $this->getAuthClient();
171 171
         $client->request('GET', $url, []);
@@ -185,14 +185,14 @@  discard block
 block discarded – undo
185 185
      */
186 186
     public function testCGetValideSansResultat()
187 187
     {
188
-		$this->loadFixtureFiles([
188
+        $this->loadFixtureFiles([
189 189
             '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
190
-		]);
191
-		$url = $this->generateUrl(
190
+        ]);
191
+        $url = $this->generateUrl(
192 192
             'starkerxp_lead.lead.cget',
193 193
             [
194 194
 				
195
-			]
195
+            ]
196 196
         );
197 197
         $client = $this->getAuthClient();
198 198
         $client->request('GET', $url, []);
@@ -209,14 +209,14 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function testCGetInvalide()
211 211
     {
212
-		$this->loadFixtureFiles([
212
+        $this->loadFixtureFiles([
213 213
             '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
214
-		]);
215
-		$url = $this->generateUrl(
214
+        ]);
215
+        $url = $this->generateUrl(
216 216
             'starkerxp_lead.lead.cget',
217 217
             [
218 218
 				
219
-			]
219
+            ]
220 220
         );
221 221
         $client = $this->getAuthClient();
222 222
         $client->request('GET', $url, ["filter_erreur" => "+h"]);
@@ -231,19 +231,19 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function testGetValideAvecResultats()
233 233
     {
234
-		$this->loadFixtureFiles([
234
+        $this->loadFixtureFiles([
235 235
             '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
236
-			'@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/LeadManager.yml',
237
-		]);
236
+            '@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/LeadManager.yml',
237
+        ]);
238 238
         $manager = $this->getContainer()->get('starkerxp_lead.manager.lead');
239 239
         /** @var Lead[] $listeLeads */
240 240
         $listeLeads = $manager->getRepository()->findAll();
241 241
         $this->assertCount(10, $listeLeads);
242
-		$url = $this->generateUrl(
242
+        $url = $this->generateUrl(
243 243
             'starkerxp_lead.lead.get',
244 244
             [
245
-				"lead_id" => $listeLeads[0]->getId(),
246
-			]
245
+                "lead_id" => $listeLeads[0]->getId(),
246
+            ]
247 247
         );
248 248
         $client = $this->getAuthClient();
249 249
         $client->request('GET', $url, []);
@@ -261,14 +261,14 @@  discard block
 block discarded – undo
261 261
      */
262 262
     public function testGetValideSansResultat()
263 263
     {
264
-		$this->loadFixtureFiles([
264
+        $this->loadFixtureFiles([
265 265
             '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
266
-		]);
267
-		$url = $this->generateUrl(
266
+        ]);
267
+        $url = $this->generateUrl(
268 268
             'starkerxp_lead.lead.get',
269 269
             [
270
-				"lead_id" => 404,
271
-			]
270
+                "lead_id" => 404,
271
+            ]
272 272
         );
273 273
         $client = $this->getAuthClient();
274 274
         $client->request('GET', $url, []);
@@ -285,14 +285,14 @@  discard block
 block discarded – undo
285 285
      */
286 286
     public function testGetInvalide()
287 287
     {
288
-		$this->loadFixtureFiles([
288
+        $this->loadFixtureFiles([
289 289
             '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
290
-		]);
291
-		$url = $this->generateUrl(
290
+        ]);
291
+        $url = $this->generateUrl(
292 292
             'starkerxp_lead.lead.get',
293 293
             [
294
-				"lead_id" => 500,
295
-			]
294
+                "lead_id" => 500,
295
+            ]
296 296
         );
297 297
         $client = $this->getAuthClient();
298 298
         $client->request('GET', $url, ["filter_erreur" => "+h"]);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $manager = $this->getContainer()->get('starkerxp_lead.manager.lead');
72 72
         $listeLeads = $manager->getRepository()->findAll();
73 73
         $this->assertCount(1, $listeLeads);
74
-        $LeadActionDepart = $manager->toArray($listeLeads[0], [/*'nom'*/]);// Exemple
74
+        $LeadActionDepart = $manager->toArray($listeLeads[0], [/*'nom'*/]); // Exemple
75 75
         $data = [
76 76
             //'nom'     => "Mon nom", //exemple
77 77
         ];
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $manager->clear();
89 89
         $LeadActions = $manager->findAll();
90 90
         $this->assertCount(1, $LeadActions);
91
-        $LeadActionFinal = $manager->toArray($LeadActions[0], [/*'nom'*/]);// Exemple
91
+        $LeadActionFinal = $manager->toArray($LeadActions[0], [/*'nom'*/]); // Exemple
92 92
         $this->assertNotEquals($LeadActionDepart, $LeadActionFinal);
93 93
         $this->assertEquals($data, $LeadActionFinal);
94 94
     }
Please login to merge, or discard this patch.