Failed Conditions
Pull Request — 2.6 (#7235)
by Aleksey
10:51
created
tests/Doctrine/Tests/ORM/Performance/SecondLevelCacheTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $size         = 500;
131 131
         $startPersist = microtime(true);
132 132
 
133
-        echo PHP_EOL . $label;
133
+        echo PHP_EOL.$label;
134 134
 
135 135
         for ($i = 0; $i < $size; $i++) {
136 136
             $em->persist(new Country("Country $i"));
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $startPersist = microtime(true);
165 165
         $country      = new Country("Country");
166 166
 
167
-        echo PHP_EOL . $label;
167
+        echo PHP_EOL.$label;
168 168
 
169 169
         $em->persist($country);
170 170
         $em->flush();
@@ -194,9 +194,9 @@  discard block
 block discarded – undo
194 194
         $em->flush();
195 195
         $em->clear();
196 196
 
197
-        printf("\n[%s] persist %s states and %s cities", number_format( microtime(true) - $startPersist, 6), count($states), count($cities));
197
+        printf("\n[%s] persist %s states and %s cities", number_format(microtime(true) - $startPersist, 6), count($states), count($cities));
198 198
 
199
-        $startFind  = microtime(true);
199
+        $startFind = microtime(true);
200 200
 
201 201
         for ($i = 0; $i < $times; $i++) {
202 202
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         $countries    = [];
222 222
         $startPersist = microtime(true);
223 223
 
224
-        echo PHP_EOL . $label;
224
+        echo PHP_EOL.$label;
225 225
 
226 226
         for ($i = 0; $i < $size; $i++) {
227 227
             $country = new Country("Country $i");
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 
237 237
         printf("\n[%s] persist %s countries", number_format(microtime(true) - $startPersist, 6), $size);
238 238
 
239
-        $startFind  = microtime(true);
239
+        $startFind = microtime(true);
240 240
 
241 241
         for ($i = 0; $i <= $times; $i++) {
242 242
             foreach ($countries as $country) {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         $startPersist = microtime(true);
257 257
         $rep          = $em->getRepository(Country::class);
258 258
 
259
-        echo PHP_EOL . $label;
259
+        echo PHP_EOL.$label;
260 260
 
261 261
         for ($i = 0; $i < $size; $i++) {
262 262
             $em->persist(new Country("Country $i"));
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
         printf("\n[%s] persist %s countries", number_format(microtime(true) - $startPersist, 6), $size);
269 269
 
270
-        $startFind  = microtime(true);
270
+        $startFind = microtime(true);
271 271
 
272 272
         for ($i = 0; $i <= $times; $i++) {
273 273
             $list = $rep->findAll();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Forum/ForumUser.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,18 +24,18 @@
 block discarded – undo
24 24
     public $avatar;
25 25
 
26 26
     public function getId() {
27
-    	return $this->id;
27
+        return $this->id;
28 28
     }
29 29
 
30 30
     public function getUsername() {
31
-    	return $this->username;
31
+        return $this->username;
32 32
     }
33 33
 
34 34
     public function getAvatar() {
35
-    	return $this->avatar;
35
+        return $this->avatar;
36 36
     }
37 37
 
38 38
     public function setAvatar(ForumAvatar $avatar) {
39
-    	$this->avatar = $avatar;
39
+        $this->avatar = $avatar;
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC3579/DDC3579User.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $metadata->mapField(
85 85
             [
86
-           'id'         => true,
87
-           'fieldName'  => 'id',
88
-           'type'       => 'integer',
89
-           'columnName' => 'user_id',
90
-           'length'     => 150,
86
+            'id'         => true,
87
+            'fieldName'  => 'id',
88
+            'type'       => 'integer',
89
+            'columnName' => 'user_id',
90
+            'length'     => 150,
91 91
             ]
92 92
         );
93 93
 
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
 
105 105
         $metadata->mapManyToMany(
106 106
             [
107
-           'fieldName'      => 'groups',
108
-           'targetEntity'   => 'DDC3579Group'
107
+            'fieldName'      => 'groups',
108
+            'targetEntity'   => 'DDC3579Group'
109 109
             ]
110 110
         );
111 111
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Company/CompanyContract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
     static public function loadMetadata(\Doctrine\ORM\Mapping\ClassMetadataInfo $metadata)
134 134
     {
135 135
         $metadata->setInheritanceType(\Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_JOINED);
136
-        $metadata->setTableName( 'company_contracts');
136
+        $metadata->setTableName('company_contracts');
137 137
         $metadata->setDiscriminatorColumn(
138 138
             [
139 139
             'name' => 'discr',
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Company/CompanyEvent.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @DiscriminatorMap({"auction"="CompanyAuction", "raffle"="CompanyRaffle"})
10 10
  */
11 11
 abstract class CompanyEvent {
12
-   /**
12
+    /**
13 13
      * @Id @Column(type="integer")
14 14
      * @GeneratedValue
15 15
      */
@@ -19,18 +19,18 @@  discard block
 block discarded – undo
19 19
      * @ManyToOne(targetEntity="CompanyOrganization", inversedBy="events", cascade={"persist"})
20 20
      * @JoinColumn(name="org_id", referencedColumnName="id")
21 21
      */
22
-     private $organization;
22
+        private $organization;
23 23
 
24
-     public function getId() {
25
-         return $this->id;
26
-     }
24
+        public function getId() {
25
+            return $this->id;
26
+        }
27 27
 
28
-     public function getOrganization() {
29
-         return $this->organization;
30
-     }
28
+        public function getOrganization() {
29
+            return $this->organization;
30
+        }
31 31
 
32
-     public function setOrganization(CompanyOrganization $org) {
33
-         $this->organization = $org;
34
-     }
32
+        public function setOrganization(CompanyOrganization $org) {
33
+            $this->organization = $org;
34
+        }
35 35
 
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Company/CompanyPerson.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
         $metadata->setPrimaryTable(
124 124
             [
125
-           'name' => 'company_person',
125
+            'name' => 'company_person',
126 126
             ]
127 127
         );
128 128
 
@@ -149,14 +149,14 @@  discard block
 block discarded – undo
149 149
             'entities'  => [
150 150
                 [
151 151
                 'fields' => [
152
-                  [
152
+                    [
153 153
                     'name'      => 'id',
154 154
                     'column'    => 'id',
155
-                  ],
156
-                  [
155
+                    ],
156
+                    [
157 157
                     'name'      => 'name',
158 158
                     'column'    => 'name',
159
-                  ],
159
+                    ],
160 160
                 ],
161 161
                 'entityClass' => CompanyPerson::class,
162 162
                 'discriminatorColumn' => 'discriminator',
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Company/CompanyOrganization.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 
5 5
 /** @Entity @Table(name="company_organizations") */
6 6
 class CompanyOrganization {
7
-   /**
8
-    * @Id @Column(type="integer")
9
-    * @GeneratedValue(strategy="AUTO")
10
-    */
11
-   private $id;
7
+    /**
8
+     * @Id @Column(type="integer")
9
+     * @GeneratedValue(strategy="AUTO")
10
+     */
11
+    private $id;
12 12
 
13 13
     /**
14 14
      * @OneToMany(targetEntity="CompanyEvent", mappedBy="organization", cascade={"persist"}, fetch="EXTRA_LAZY")
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Quote/Group.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public $users;
36 36
 
37
-    public function __construct($name = null, Group $parent =  null)
37
+    public function __construct($name = null, Group $parent = null)
38 38
     {
39 39
         $this->name     = $name;
40 40
         $this->parent   = $parent;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/CMS/CmsUser.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     {
274 274
         $metadata->setPrimaryTable(
275 275
             [
276
-           'name' => 'cms_users',
276
+            'name' => 'cms_users',
277 277
             ]
278 278
         );
279 279
 
@@ -332,34 +332,34 @@  discard block
 block discarded – undo
332 332
             'entities'  => [
333 333
                 [
334 334
                 'fields'=> [
335
-                  [
335
+                    [
336 336
                     'name'      => 'id',
337 337
                     'column'    => 'id',
338
-                  ],
339
-                  [
338
+                    ],
339
+                    [
340 340
                     'name'      => 'name',
341 341
                     'column'    => 'name',
342
-                  ],
343
-                  [
342
+                    ],
343
+                    [
344 344
                     'name'      => 'status',
345 345
                     'column'    => 'status',
346
-                  ],
347
-                  [
346
+                    ],
347
+                    [
348 348
                     'name'      => 'address.zip',
349 349
                     'column'    => 'zip',
350
-                  ],
351
-                  [
350
+                    ],
351
+                    [
352 352
                     'name'      => 'address.city',
353 353
                     'column'    => 'city',
354
-                  ],
355
-                  [
354
+                    ],
355
+                    [
356 356
                     'name'      => 'address.country',
357 357
                     'column'    => 'country',
358
-                  ],
359
-                  [
358
+                    ],
359
+                    [
360 360
                     'name'      => 'address.id',
361 361
                     'column'    => 'a_id',
362
-                  ],
362
+                    ],
363 363
                 ],
364 364
                 'entityClass'           => CmsUser::class,
365 365
                 'discriminatorColumn'   => null
@@ -375,22 +375,22 @@  discard block
 block discarded – undo
375 375
             'entities'  => [
376 376
                 [
377 377
                 'fields'=> [
378
-                  [
378
+                    [
379 379
                     'name'      => 'id',
380 380
                     'column'    => 'id',
381
-                  ],
382
-                  [
381
+                    ],
382
+                    [
383 383
                     'name'      => 'name',
384 384
                     'column'    => 'name',
385
-                  ],
386
-                  [
385
+                    ],
386
+                    [
387 387
                     'name'      => 'status',
388 388
                     'column'    => 'status',
389
-                  ],
390
-                  [
389
+                    ],
390
+                    [
391 391
                     'name'      => 'phonenumbers.phonenumber',
392 392
                     'column'    => 'number',
393
-                  ],
393
+                    ],
394 394
                 ],
395 395
                 'entityClass'   => CmsUser::class,
396 396
                 'discriminatorColumn'   => null
@@ -404,29 +404,29 @@  discard block
 block discarded – undo
404 404
             'name'      => 'mappingUserPhonenumberCount',
405 405
             'columns'   => [],
406 406
             'entities'  => [
407
-              [
407
+                [
408 408
                 'fields' => [
409
-                  [
409
+                    [
410 410
                     'name'      => 'id',
411 411
                     'column'    => 'id',
412
-                  ],
413
-                  [
412
+                    ],
413
+                    [
414 414
                     'name'      => 'name',
415 415
                     'column'    => 'name',
416
-                  ],
417
-                  [
416
+                    ],
417
+                    [
418 418
                     'name'      => 'status',
419 419
                     'column'    => 'status',
420
-                  ]
420
+                    ]
421 421
                 ],
422 422
                 'entityClass'   => CmsUser::class,
423 423
                 'discriminatorColumn'   => null
424
-              ]
424
+                ]
425 425
             ],
426 426
             'columns' => [
427
-                  [
427
+                    [
428 428
                     'name' => 'numphones',
429
-                  ]
429
+                    ]
430 430
             ]
431 431
             ]
432 432
         );
Please login to merge, or discard this patch.