@@ -123,7 +123,7 @@ discard block |
||
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 |
||
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 | } |
@@ -30,16 +30,16 @@ |
||
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) |
@@ -58,7 +58,7 @@ |
||
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 |
@@ -37,7 +37,7 @@ discard block |
||
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 |
||
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 |
@@ -89,7 +89,7 @@ discard block |
||
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 |
||
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(); |
@@ -25,12 +25,12 @@ |
||
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 | } |
@@ -30,7 +30,7 @@ discard block |
||
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 |
||
38 | 38 | */ |
39 | 39 | public function convertToPHPValueSQL($sqlExpr, $platform) |
40 | 40 | { |
41 | - return 'LOWER(' . $sqlExpr . ')'; |
|
41 | + return 'LOWER('.$sqlExpr.')'; |
|
42 | 42 | } |
43 | 43 | } |
@@ -7,7 +7,7 @@ |
||
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} |
@@ -38,7 +38,7 @@ discard block |
||
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 |
||
46 | 46 | */ |
47 | 47 | public function convertToPHPValueSQL($sqlExpr, $platform) |
48 | 48 | { |
49 | - return '-(' . $sqlExpr . ')'; |
|
49 | + return '-('.$sqlExpr.')'; |
|
50 | 50 | } |
51 | 51 | } |