Completed
Pull Request — 2.6 (#8015)
by
unknown
06:46
created
tests/Doctrine/Tests/Models/ECommerce/ECommerceProduct.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
     public function addCategory(ECommerceCategory $category)
125 125
     {
126
-        if (!$this->categories->contains($category)) {
126
+        if ( ! $this->categories->contains($category)) {
127 127
             $this->categories[] = $category;
128 128
             $category->addProduct($this);
129 129
         }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
     public function addRelated(ECommerceProduct $related)
156 156
     {
157
-        if (!$this->related->contains($related)) {
157
+        if ( ! $this->related->contains($related)) {
158 158
             $this->related[] = $related;
159 159
             $related->addRelated($this);
160 160
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Navigation/NavPointOfInterest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,16 +30,16 @@
 block discarded – undo
30 30
      */
31 31
     private $country;
32 32
 
33
-     /**
34
-      * @ManyToMany(targetEntity="NavUser", cascade={"persist"})
35
-      * @JoinTable(name="navigation_pois_visitors",
36
-      *      inverseJoinColumns={@JoinColumn(name="user_id", referencedColumnName="id")},
37
-      *      joinColumns={
38
-      *          @JoinColumn(name="poi_long", referencedColumnName="nav_long"),
39
-      *          @JoinColumn(name="poi_lat", referencedColumnName="nav_lat")
40
-      *      }
41
-      * )
42
-      */
33
+        /**
34
+         * @ManyToMany(targetEntity="NavUser", cascade={"persist"})
35
+         * @JoinTable(name="navigation_pois_visitors",
36
+         *      inverseJoinColumns={@JoinColumn(name="user_id", referencedColumnName="id")},
37
+         *      joinColumns={
38
+         *          @JoinColumn(name="poi_long", referencedColumnName="nav_long"),
39
+         *          @JoinColumn(name="poi_lat", referencedColumnName="nav_lat")
40
+         *      }
41
+         * )
42
+         */
43 43
     private $visitors;
44 44
 
45 45
     public function __construct($lat, $long, $name, $country)
Please login to merge, or discard this patch.
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.