Failed Conditions
Pull Request — master (#6575)
by Luís
11:31
created
tests/Doctrine/Performance/Mock/NonProxyLoadingEntityManager.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\ORM\EntityManagerInterface;
6 6
 use Doctrine\ORM\Proxy\ProxyFactory;
7
-use Doctrine\ORM\Query;
8 7
 use Doctrine\ORM\Query\ResultSetMapping;
9
-use Doctrine\Tests\ORM\Performance\MockUnitOfWork;
10 8
 
11 9
 /**
12 10
  * An entity manager mock that prevents lazy-loading of proxies
Please login to merge, or discard this patch.
tests/Doctrine/Performance/Mock/NonProxyLoadingUnitOfWork.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\Performance\Mock;
4 4
 
5
-use Doctrine\ORM\Query;
6 5
 use Doctrine\ORM\UnitOfWork;
7 6
 use Doctrine\Tests\ORM\Performance\PersisterMock;
8 7
 
Please login to merge, or discard this patch.
tests/Doctrine/Performance/Hydration/SimpleInsertPerformanceBench.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
         for ($i = 1; $i <= 10000; ++$i) {
41 41
             $user           = new CMS\CmsUser;
42 42
             $user->status   = 'user';
43
-            $user->username = 'user' . $i;
44
-            $user->name     = 'Mr.Smith-' . $i;
43
+            $user->username = 'user'.$i;
44
+            $user->name     = 'Mr.Smith-'.$i;
45 45
 
46 46
             $this->users[$i] = $user;
47 47
         }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         foreach ($this->users as $key => $user) {
53 53
             $this->entityManager->persist($user);
54 54
 
55
-            if (! ($key % 20)) {
55
+            if ( ! ($key % 20)) {
56 56
                 $this->entityManager->flush();
57 57
                 $this->entityManager->clear();
58 58
             }
Please login to merge, or discard this patch.
Hydration/MixedQueryFetchJoinPartialObjectHydrationPerformanceBench.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
                 'u__status'      => 'developer',
67 67
                 'u__username'    => 'jwage',
68 68
                 'u__name'        => 'Jonathan',
69
-                'sclr0'          => 'JWAGE' . $i,
69
+                'sclr0'          => 'JWAGE'.$i,
70 70
                 'p__phonenumber' => '91'
71 71
             ];
72 72
         }
Please login to merge, or discard this patch.
Hydration/MixedQueryFetchJoinFullObjectHydrationPerformanceBench.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
                 'u__status'      => 'developer',
52 52
                 'u__username'    => 'jwage',
53 53
                 'u__name'        => 'Jonathan',
54
-                'sclr0'          => 'JWAGE' . $i,
54
+                'sclr0'          => 'JWAGE'.$i,
55 55
                 'p__phonenumber' => '91',
56 56
                 'a__id'          => $i
57 57
             ];
Please login to merge, or discard this patch.
tests/Doctrine/Performance/Hydration/SimpleHydrationBench.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             $user = new CMS\CmsUser();
40 40
 
41 41
             $user->status   = 'developer';
42
-            $user->username = 'jwage' . $i;
42
+            $user->username = 'jwage'.$i;
43 43
             $user->name     = 'Jonathan';
44 44
 
45 45
             $this->entityManager->persist($user);
Please login to merge, or discard this patch.
tests/Doctrine/Performance/ChangeSet/UnitOfWorkComputeChangesBench.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
             $user           = new CmsUser;
33 33
             $user->id       = $i;
34 34
             $user->status   = 'user';
35
-            $user->username = 'user' . $i;
36
-            $user->name     = 'Mr.Smith-' . $i;
35
+            $user->username = 'user'.$i;
36
+            $user->name     = 'Mr.Smith-'.$i;
37 37
             $this->users[]  = $user;
38 38
 
39 39
             $this->unitOfWork->registerManaged(
Please login to merge, or discard this patch.
tests/Doctrine/Performance/EntityManagerFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
     {
16 16
         $config = new Configuration();
17 17
 
18
-        $config->setProxyDir(__DIR__ . '/../Tests/Proxies');
18
+        $config->setProxyDir(__DIR__.'/../Tests/Proxies');
19 19
         $config->setProxyNamespace('Doctrine\Tests\Proxies');
20 20
         $config->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_EVAL);
21 21
         $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver([
22
-            realpath(__DIR__ . '/Models/Cache'),
23
-            realpath(__DIR__ . '/Models/GeoNames')
22
+            realpath(__DIR__.'/Models/Cache'),
23
+            realpath(__DIR__.'/Models/GeoNames')
24 24
         ], true));
25 25
 
26 26
         $entityManager = EntityManager::create(
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Performance/DDC2602Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,10 +149,10 @@
 block discarded – undo
149 149
         foreach ($content as $selection) {
150 150
             $field      = $result[$selection->field];
151 151
             $choiceList = $selection->choiceList;
152
-            $fieldSelection     = new DDC2602FieldSelection();
152
+            $fieldSelection = new DDC2602FieldSelection();
153 153
 
154 154
             $fieldSelection->field      = $field;
155
-            $fieldSelection->choiceList = $field->choiceList->filter(function ($choice) use ($choiceList) {
155
+            $fieldSelection->choiceList = $field->choiceList->filter(function($choice) use ($choiceList) {
156 156
                 return in_array($choice->id, $choiceList);
157 157
             });
158 158
 
Please login to merge, or discard this patch.