Passed
Pull Request — 2.7 (#8055)
by Matthias
06:49
created
tests/Doctrine/Tests/Models/DDC3597/DDC3597Root.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * @return int
59 59
      */
60 60
     public function getId() {
61
-        return (int)$this->id;
61
+        return (int) $this->id;
62 62
     }
63 63
 
64 64
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC3597/Embeddable/DDC3597Dimension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param int $width
38 38
      */
39 39
     public function setWidth($width) {
40
-        $this->width = (int)$width;
40
+        $this->width = (int) $width;
41 41
     }
42 42
 
43 43
     /**
@@ -51,6 +51,6 @@  discard block
 block discarded – undo
51 51
      * @param int $height
52 52
      */
53 53
     public function setHeight($height) {
54
-        $this->height = (int)$height;
54
+        $this->height = (int) $height;
55 55
     }
56 56
 }
57 57
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Doctrine/Tests/TestUtil.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $realDbParams = self::getParamsForMainConnection();
91 91
 
92
-        if (! self::$initialized) {
92
+        if ( ! self::$initialized) {
93 93
             $tmpDbParams = self::getParamsForTemporaryConnection();
94 94
 
95 95
             $realConn = DriverManager::getConnection($realDbParams);
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             // Connect to tmpdb in order to drop and create the real test db.
98 98
             $tmpConn = DriverManager::getConnection($tmpDbParams);
99 99
 
100
-            $platform  = $tmpConn->getDatabasePlatform();
100
+            $platform = $tmpConn->getDatabasePlatform();
101 101
 
102 102
             if ($platform->supportsCreateDropDatabase()) {
103 103
                 $dbname = $realConn->getDatabase();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/OrmPerformanceTestCase.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
25 25
 
26 26
         if ($this->maxRunningTime != 0 && $time > $this->maxRunningTime) {
27 27
             $this->fail(
28
-              sprintf(
28
+                sprintf(
29 29
                 'expected running time: <= %s but was: %s',
30 30
 
31 31
                 $this->maxRunningTime,
32 32
                 $time
33
-              )
33
+                )
34 34
             );
35 35
         }
36 36
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalTypes/UpperCaseStringType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
32 32
     {
33
-        return 'UPPER(' . $sqlExpr . ')';
33
+        return 'UPPER('.$sqlExpr.')';
34 34
     }
35 35
 
36 36
     /**
@@ -38,6 +38,6 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function convertToPHPValueSQL($sqlExpr, $platform)
40 40
     {
41
-        return 'LOWER(' . $sqlExpr . ')';
41
+        return 'LOWER('.$sqlExpr.')';
42 42
     }
43 43
 }
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
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 class CustomIdObjectType extends Type
9 9
 {
10
-    const NAME      = 'CustomIdObject';
10
+    const NAME = 'CustomIdObject';
11 11
 
12 12
     /**
13 13
      * {@inheritdoc}
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalTypes/NegativeToPositiveType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
40 40
     {
41
-        return 'ABS(' . $sqlExpr . ')';
41
+        return 'ABS('.$sqlExpr.')';
42 42
     }
43 43
 
44 44
     /**
@@ -46,6 +46,6 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function convertToPHPValueSQL($sqlExpr, $platform)
48 48
     {
49
-        return '-(' . $sqlExpr . ')';
49
+        return '-('.$sqlExpr.')';
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC258Test.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     /**
103 103
      * @Id @Column(name="id", type="integer")
104 104
      * @GeneratedValue(strategy="AUTO")
105
-    */
105
+     */
106 106
     public $id;
107 107
 }
108 108
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Id/SequenceGeneratorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@
 block discarded – undo
45 45
 
46 46
         for ($i = 0; $i < 42; ++$i) {
47 47
             if ($i % 10 == 0) {
48
-                $this->connection->setQueryResult(new StatementArrayMock([[(int)($i / 10) * 10]]));
48
+                $this->connection->setQueryResult(new StatementArrayMock([[(int) ($i / 10) * 10]]));
49 49
             }
50 50
 
51 51
             $id = $this->sequenceGenerator->generate($this->entityManager, null);
52 52
 
53 53
             self::assertSame($i, $id);
54
-            self::assertSame((int)($i / 10) * 10 + 10, $this->sequenceGenerator->getCurrentMaxValue());
54
+            self::assertSame((int) ($i / 10) * 10 + 10, $this->sequenceGenerator->getCurrentMaxValue());
55 55
             self::assertSame($i + 1, $this->sequenceGenerator->getNextValue());
56 56
         }
57 57
     }
Please login to merge, or discard this patch.