Passed
Push — master ( e9258b...cf1ea6 )
by Aimeos
06:03
created
lib/mshoplib/setup/CatalogIndexRenameDomainTables.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,7 @@
 block discarded – undo
71 71
 			{
72 72
 				$this->execute( $stmt );
73 73
 				$this->status( 'done' );
74
-			}
75
-			else
74
+			} else
76 75
 			{
77 76
 				$this->status( 'OK' );
78 77
 			}
Please login to merge, or discard this patch.
lib/mshoplib/setup/CouponMigrateConfigKeys.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,7 @@
 block discarded – undo
90 90
 		{
91 91
 			$this->executeList( $stmts, 'db-coupon' );
92 92
 			$this->status( 'done' );
93
-		}
94
-		else
93
+		} else
95 94
 		{
96 95
 			$this->status( 'OK' );
97 96
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/MShopAddPluginData.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,10 +115,14 @@
 block discarded – undo
115 115
 				$item->setPosition( $dataset['position'] );
116 116
 			}
117 117
 
118
-			try {
118
+			try
119
+			{
119 120
 				$pluginManager->saveItem( $item );
120 121
 				$num++;
121
-			} catch( \Exception $e ) {; } // if plugin configuration was already available
122
+			}
123
+			catch( \Exception $e )
124
+			{
125
+; } // if plugin configuration was already available
122 126
 		}
123 127
 
124 128
 		$this->status( $num > 0 ? $num . '/' . $total : 'OK' );
Please login to merge, or discard this patch.
lib/mshoplib/setup/TagMoveProductTag.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,8 +80,7 @@
 block discarded – undo
80 80
 			{
81 81
 				$this->executeList( $stmts );
82 82
 				$this->status( 'done' );
83
-			}
84
-			else
83
+			} else
85 84
 			{
86 85
 				$this->status( 'OK' );
87 86
 			}
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/DemoAddCouponData.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@
 block discarded – undo
89 89
 			}
90 90
 
91 91
 			$this->status( 'added' );
92
-		}
93
-		else
92
+		} else
94 93
 		{
95 94
 			$this->status( 'removed' );
96 95
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/DemoAddCustomerData.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@
 block discarded – undo
75 75
 			$this->saveCustomerItems( $data );
76 76
 
77 77
 			$this->status( 'added' );
78
-		}
79
-		else
78
+		} else
80 79
 		{
81 80
 			$this->status( 'removed' );
82 81
 		}
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Criteria/Expression/Base.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -226,8 +226,7 @@
 block discarded – undo
226 226
 
227 227
 					$params[] = implode( ',', $list );
228 228
 				}
229
-			}
230
-			else
229
+			} else
231 230
 			{
232 231
 				$params[] = $this->escape( '==', $this->getParamType( $string ), $string );
233 232
 			}
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 	protected function isFunction( &$name, array &$params )
103 103
 	{
104 104
 		$len = strlen( $name );
105
-		if( $len === 0 || $name[$len-1] !== ')' ) {
105
+		if( $len === 0 || $name[$len - 1] !== ')' ) {
106 106
 			return false;
107 107
 		}
108 108
 
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Criteria/Expression/Compare/PHP.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -185,12 +185,10 @@
 block discarded – undo
185 185
 			}
186 186
 
187 187
 			return 'string';
188
-		}
189
-		else if( strpos( $item, '.' ) !== false )
188
+		} else if( strpos( $item, '.' ) !== false )
190 189
 		{
191 190
 			return 'float';
192
-		}
193
-		else if( ctype_digit( $item ) !== false )
191
+		} else if( ctype_digit( $item ) !== false )
194 192
 		{
195 193
 			return 'int';
196 194
 		}
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Criteria/Expression/Compare/SQL.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
 			$values[$key] = $this->escape( $operator, $type, $value );
135 135
 		}
136 136
 
137
-		return '(' . implode(',', $values) . ')';
137
+		return '(' . implode( ',', $values ) . ')';
138 138
 	}
139 139
 
140 140
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -200,16 +200,13 @@
 block discarded – undo
200 200
 			}
201 201
 
202 202
 			return \Aimeos\MW\DB\Statement\Base::PARAM_STR;
203
-		}
204
-		elseif( strpos( $item, '.' ) !== false )
203
+		} elseif( strpos( $item, '.' ) !== false )
205 204
 		{
206 205
 			return \Aimeos\MW\DB\Statement\Base::PARAM_FLOAT;
207
-		}
208
-		elseif( ctype_digit( $item ) !== false )
206
+		} elseif( ctype_digit( $item ) !== false )
209 207
 		{
210 208
 			return \Aimeos\MW\DB\Statement\Base::PARAM_INT;
211
-		}
212
-		elseif( $item === 'null' )
209
+		} elseif( $item === 'null' )
213 210
 		{
214 211
 			return \Aimeos\MW\DB\Statement\Base::PARAM_NULL;
215 212
 		}
Please login to merge, or discard this patch.