Completed
Pull Request — master (#7046)
by Gabriel
12:30
created
tests/Doctrine/Tests/Mocks/ConcurrentRegionMock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\Mocks;
6 6
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
         $this->throwException(__FUNCTION__);
204 204
 
205
-        if (! isset($this->locks[$key->hash])) {
205
+        if ( ! isset($this->locks[$key->hash])) {
206 206
             return;
207 207
         }
208 208
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/HydratorMockStatement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\Mocks;
6 6
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function fetchColumn($columnNumber = 0)
48 48
     {
49 49
         $row = current($this->resultSet);
50
-        if (! is_array($row)) {
50
+        if ( ! is_array($row)) {
51 51
             return false;
52 52
         }
53 53
         $val = array_shift($row);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/DriverMock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\Mocks;
6 6
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function getDatabasePlatform()
39 39
     {
40
-        if (! $this->platformMock) {
40
+        if ( ! $this->platformMock) {
41 41
             $this->platformMock = new DatabasePlatformMock;
42 42
         }
43 43
         return $this->platformMock;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/TestInit.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,27 +2,27 @@
 block discarded – undo
2 2
 /*
3 3
  * This file bootstraps the test environment.
4 4
  */
5
-declare(strict_types=1);
5
+declare(strict_types = 1);
6 6
 
7 7
 namespace Doctrine\Tests;
8 8
 
9 9
 error_reporting(E_ALL | E_STRICT);
10 10
 date_default_timezone_set('UTC');
11 11
 
12
-if (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
12
+if (file_exists(__DIR__.'/../../../vendor/autoload.php')) {
13 13
     // dependencies were installed via composer - this is the main project
14
-    require __DIR__ . '/../../../vendor/autoload.php';
15
-} elseif (file_exists(__DIR__ . '/../../../../../autoload.php')) {
14
+    require __DIR__.'/../../../vendor/autoload.php';
15
+} elseif (file_exists(__DIR__.'/../../../../../autoload.php')) {
16 16
     // installed as a dependency in `vendor`
17
-    require __DIR__ . '/../../../../../autoload.php';
17
+    require __DIR__.'/../../../../../autoload.php';
18 18
 } else {
19 19
     throw new \Exception('Can\'t find autoload.php. Did you install dependencies via composer?');
20 20
 }
21 21
 
22
-if (! file_exists(__DIR__ . '/Proxies') && ! mkdir(__DIR__ . '/Proxies')) {
23
-    throw new \Exception('Could not create ' . __DIR__ . '/Proxies Folder.');
22
+if ( ! file_exists(__DIR__.'/Proxies') && ! mkdir(__DIR__.'/Proxies')) {
23
+    throw new \Exception('Could not create '.__DIR__.'/Proxies Folder.');
24 24
 }
25 25
 
26
-if (! file_exists(__DIR__ . '/ORM/Proxy/generated') &&  ! mkdir(__DIR__ . '/ORM/Proxy/generated')) {
27
-    throw new \Exception('Could not create ' . __DIR__ . '/ORM/Proxy/generated Folder.');
26
+if ( ! file_exists(__DIR__.'/ORM/Proxy/generated') && ! mkdir(__DIR__.'/ORM/Proxy/generated')) {
27
+    throw new \Exception('Could not create '.__DIR__.'/ORM/Proxy/generated Folder.');
28 28
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC3597/DDC3597Root.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\Models\DDC3597;
6 6
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function getId()
66 66
     {
67
-        return (int)$this->id;
67
+        return (int) $this->id;
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/ECommerce/ECommerceCategory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\Models\ECommerce;
6 6
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function addProduct(ECommerceProduct $product)
72 72
     {
73
-        if (! $this->products->contains($product)) {
73
+        if ( ! $this->products->contains($product)) {
74 74
             $this->products[] = $product;
75 75
             $product->addCategory($this);
76 76
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/ECommerce/ECommerceProduct.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\Models\ECommerce;
6 6
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
     public function addCategory(ECommerceCategory $category)
135 135
     {
136
-        if (! $this->categories->contains($category)) {
136
+        if ( ! $this->categories->contains($category)) {
137 137
             $this->categories[] = $category;
138 138
             $category->addProduct($this);
139 139
         }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
     public function addRelated(ECommerceProduct $related)
166 166
     {
167
-        if (! $this->related->contains($related)) {
167
+        if ( ! $this->related->contains($related)) {
168 168
             $this->related[] = $related;
169 169
             $related->addRelated($this);
170 170
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Company/CompanyPerson.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\Models\Company;
6 6
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
     public function addFriend(CompanyPerson $friend)
117 117
     {
118
-        if (! $this->friends->contains($friend)) {
118
+        if ( ! $this->friends->contains($friend)) {
119 119
             $this->friends->add($friend);
120 120
             $friend->addFriend($this);
121 121
         }
Please login to merge, or discard this patch.
Doctrine/Tests/Models/CompositeKeyInheritance/JoinedDerivedRootClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\Models\CompositeKeyInheritance;
6 6
 
Please login to merge, or discard this patch.