Failed Conditions
Pull Request — develop (#6947)
by Filippo
10:01
created
tests/Doctrine/Tests/Mocks/DriverConnectionMock.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
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * {@inheritdoc}
53 53
      */
54
-    public function quote($input, $type=\PDO::PARAM_STR)
54
+    public function quote($input, $type = \PDO::PARAM_STR)
55 55
     {
56 56
     }
57 57
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/TestUtil.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;
6 6
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     {
93 93
         $realDbParams = self::getParamsForMainConnection();
94 94
 
95
-        if (! self::$initialized) {
95
+        if ( ! self::$initialized) {
96 96
             $tmpDbParams = self::getParamsForTemporaryConnection();
97 97
 
98 98
             $realConn = DriverManager::getConnection($realDbParams);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             // Connect to tmpdb in order to drop and create the real test db.
101 101
             $tmpConn = DriverManager::getConnection($tmpDbParams);
102 102
 
103
-            $platform  = $tmpConn->getDatabasePlatform();
103
+            $platform = $tmpConn->getDatabasePlatform();
104 104
 
105 105
             if ($platform->supportsCreateDropDatabase()) {
106 106
                 $dbname = $realConn->getDatabase();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/EventListener/CacheMetadataListener.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\EventListener;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalTypes/CustomIdObjectType.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\DbalTypes;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalTypes/UpperCaseStringType.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\DbalTypes;
6 6
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
34 34
     {
35
-        return 'UPPER(' . $sqlExpr . ')';
35
+        return 'UPPER('.$sqlExpr.')';
36 36
     }
37 37
 
38 38
     /**
@@ -40,6 +40,6 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function convertToPHPValueSQL($sqlExpr, $platform)
42 42
     {
43
-        return 'LOWER(' . $sqlExpr . ')';
43
+        return 'LOWER('.$sqlExpr.')';
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalTypes/NegativeToPositiveType.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\DbalTypes;
6 6
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
42 42
     {
43
-        return 'ABS(' . $sqlExpr . ')';
43
+        return 'ABS('.$sqlExpr.')';
44 44
     }
45 45
 
46 46
     /**
@@ -48,6 +48,6 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function convertToPHPValueSQL($sqlExpr, $platform)
50 50
     {
51
-        return '-(' . $sqlExpr . ')';
51
+        return '-('.$sqlExpr.')';
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalFunctionalTestCase.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;
6 6
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             return;
40 40
         }
41 41
         
42
-        if (! isset(self::$sharedConn)) {
42
+        if ( ! isset(self::$sharedConn)) {
43 43
             self::$sharedConn = TestUtil::getConnection();
44 44
         }
45 45
 
Please login to merge, or discard this patch.
tests/Doctrine/Performance/EntityManagerFactory.php 1 patch
Spacing   +4 added lines, -4 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\Performance;
6 6
 
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
17 17
     {
18 18
         $config = new Configuration();
19 19
 
20
-        $config->setProxyDir(__DIR__ . '/../Tests/Proxies');
20
+        $config->setProxyDir(__DIR__.'/../Tests/Proxies');
21 21
         $config->setProxyNamespace('Doctrine\Tests\Proxies');
22 22
         $config->setAutoGenerateProxyClasses(StaticProxyFactory::AUTOGENERATE_EVAL);
23 23
         $config->setMetadataDriverImpl(
24 24
             $config->newDefaultAnnotationDriver([
25
-                realpath(__DIR__ . '/Models/Cache'),
26
-                realpath(__DIR__ . '/Models/GeoNames')
25
+                realpath(__DIR__.'/Models/Cache'),
26
+                realpath(__DIR__.'/Models/GeoNames')
27 27
             ])
28 28
         );
29 29
 
Please login to merge, or discard this patch.
tests/Doctrine/Performance/Mock/NonProxyLoadingEntityManager.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\Performance\Mock;
6 6
 
Please login to merge, or discard this patch.