Passed
Pull Request — master (#7448)
by Ilya
14:31
created
tests/Doctrine/Performance/ChangeSet/UnitOfWorkComputeChangesBench.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
             $user           = new CmsUser();
30 30
             $user->id       = $i;
31 31
             $user->status   = 'user';
32
-            $user->username = 'user' . $i;
33
-            $user->name     = 'Mr.Smith-' . $i;
32
+            $user->username = 'user'.$i;
33
+            $user->name     = 'Mr.Smith-'.$i;
34 34
             $this->users[]  = $user;
35 35
 
36 36
             $this->unitOfWork->registerManaged(
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
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                 'u__status'      => 'developer',
49 49
                 'u__username'    => 'jwage',
50 50
                 'u__name'        => 'Jonathan',
51
-                'sclr0'          => 'JWAGE' . $i,
51
+                'sclr0'          => 'JWAGE'.$i,
52 52
                 'p__phonenumber' => '91',
53 53
                 'a__id'          => $i,
54 54
             ];
Please login to merge, or discard this patch.
tests/Doctrine/Performance/Hydration/SimpleInsertPerformanceBench.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
         for ($i = 1; $i <= 10000; ++$i) {
40 40
             $user           = new CMS\CmsUser();
41 41
             $user->status   = 'user';
42
-            $user->username = 'user' . $i;
43
-            $user->name     = 'Mr.Smith-' . $i;
42
+            $user->username = 'user'.$i;
43
+            $user->name     = 'Mr.Smith-'.$i;
44 44
 
45 45
             $this->users[$i] = $user;
46 46
         }
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
53 53
         // Yes, this is a lot of overhead, but I have no better solution other than
54 54
         // completely mocking out the DB, which would be silly (query impact is
55 55
         // necessarily part of our benchmarks)
56
-        $this->entityManager->getConnection()->executeQuery('DELETE FROM ' . $this->tableName)->execute();
56
+        $this->entityManager->getConnection()->executeQuery('DELETE FROM '.$this->tableName)->execute();
57 57
 
58 58
         foreach ($this->users as $key => $user) {
59 59
             $this->entityManager->persist($user);
60 60
 
61
-            if (! ($key % 20)) {
61
+            if ( ! ($key % 20)) {
62 62
                 $this->entityManager->flush();
63 63
                 $this->entityManager->clear();
64 64
             }
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
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
                 'u__status'      => 'developer',
64 64
                 'u__username'    => 'jwage',
65 65
                 'u__name'        => 'Jonathan',
66
-                'sclr0'          => 'JWAGE' . $i,
66
+                'sclr0'          => 'JWAGE'.$i,
67 67
                 'p__phonenumber' => '91',
68 68
             ];
69 69
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/HydratorMockStatement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     public function fetchColumn($columnNumber = 0)
44 44
     {
45 45
         $row = current($this->resultSet);
46
-        if (! is_array($row)) {
46
+        if ( ! is_array($row)) {
47 47
             return false;
48 48
         }
49 49
         $val = array_shift($row);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/DriverMock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function getDatabasePlatform()
35 35
     {
36
-        if (! $this->platformMock) {
36
+        if ( ! $this->platformMock) {
37 37
             $this->platformMock = new DatabasePlatformMock();
38 38
         }
39 39
         return $this->platformMock;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/EntityManagerMock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         if ($config === null) {
77 77
             $config = new Configuration();
78 78
 
79
-            $config->setProxyDir(__DIR__ . '/../Proxies');
79
+            $config->setProxyDir(__DIR__.'/../Proxies');
80 80
             $config->setProxyNamespace('Doctrine\Tests\Proxies');
81 81
             $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver());
82 82
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/ConcurrentRegionMock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
 
193 193
         $this->throwException(__FUNCTION__);
194 194
 
195
-        if (! isset($this->locks[$key->hash])) {
195
+        if ( ! isset($this->locks[$key->hash])) {
196 196
             return;
197 197
         }
198 198
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/TestUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
     {
91 91
         $realDbParams = self::getParamsForMainConnection();
92 92
 
93
-        if (! self::$initialized) {
93
+        if ( ! self::$initialized) {
94 94
             $tmpDbParams = self::getParamsForTemporaryConnection();
95 95
 
96 96
             $realConn = DriverManager::getConnection($realDbParams);
Please login to merge, or discard this patch.