Passed
Pull Request — master (#181)
by Simon
04:48
created
lib/mshoplib/src/MShop/Locale/Manager/Currency/Standard.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,9 +108,12 @@  discard block
 block discarded – undo
108 108
 	 */
109 109
 	public function createItem( array $values = [] )
110 110
 	{
111
-		try {
111
+		try
112
+		{
112 113
 			$values['locale.currency.siteid'] = $this->getContext()->getLocale()->getSiteId();
113
-		} catch( \Exception $e ) {
114
+		}
115
+		catch( \Exception $e )
116
+		{
114 117
 			$values['locale.currency.siteid'] = null;
115 118
 		}
116 119
 
@@ -179,8 +182,7 @@  discard block
 block discarded – undo
179 182
 				 */
180 183
 				$path = 'mshop/locale/manager/currency/standard/insert';
181 184
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
182
-			}
183
-			else
185
+			} else
184 186
 			{
185 187
 				/** mshop/locale/manager/currency/standard/update/mysql
186 188
 				 * Updates an existing currency record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Locale/Manager/Language/Standard.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,9 +108,12 @@  discard block
 block discarded – undo
108 108
 	 */
109 109
 	public function createItem( array $values = [] )
110 110
 	{
111
-		try {
111
+		try
112
+		{
112 113
 			$values['locale.language.siteid'] = $this->getContext()->getLocale()->getSiteId();
113
-		} catch( \Exception $ex ) {
114
+		}
115
+		catch( \Exception $ex )
116
+		{
114 117
 			$values['locale.language.siteid'] = null;
115 118
 		}
116 119
 
@@ -179,8 +182,7 @@  discard block
 block discarded – undo
179 182
 				 */
180 183
 				$path = 'mshop/locale/manager/language/standard/insert';
181 184
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
182
-			}
183
-			else
185
+			} else
184 186
 			{
185 187
 				/** mshop/locale/manager/language/standard/update/mysql
186 188
 				 * Updates an existing language record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Attribute/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -383,8 +383,7 @@
 block discarded – undo
383 383
 				 */
384 384
 				$path = 'mshop/attribute/manager/standard/insert';
385 385
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
386
-			}
387
-			else
386
+			} else
388 387
 			{
389 388
 				/** mshop/attribute/manager/standard/update/mysql
390 389
 				 * Updates an existing attribute record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Coupon/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -281,8 +281,7 @@
 block discarded – undo
281 281
 				 */
282 282
 				$path = 'mshop/coupon/manager/standard/insert';
283 283
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
284
-			}
285
-			else
284
+			} else
286 285
 			{
287 286
 				/** mshop/coupon/manager/standard/update/mysql
288 287
 				 * Updates an existing coupon record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Coupon/Manager/Code/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -422,8 +422,7 @@
 block discarded – undo
422 422
 				 */
423 423
 				$path = 'mshop/coupon/manager/code/standard/insert';
424 424
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
425
-			}
426
-			else
425
+			} else
427 426
 			{
428 427
 				/** mshop/coupon/manager/code/standard/update/mysql
429 428
 				 * Updates an existing coupon code record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MAdmin/Job/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,8 +221,7 @@
 block discarded – undo
221 221
 				 */
222 222
 				$path = 'madmin/job/manager/standard/insert';
223 223
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
224
-			}
225
-			else
224
+			} else
226 225
 			{
227 226
 				/** madmin/job/manager/standard/update/mysql
228 227
 				 * Updates an existing job record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MAdmin/Log/Manager/Standard.php 1 patch
Braces   +11 added lines, -6 removed lines patch added patch discarded remove patch
@@ -156,9 +156,12 @@  discard block
 block discarded – undo
156 156
 	 */
157 157
 	public function createItem( array $values = [] )
158 158
 	{
159
-		try {
159
+		try
160
+		{
160 161
 			$values['log.siteid'] = $this->getContext()->getLocale()->getSiteId();
161
-		} catch( \Exception $e ) {
162
+		}
163
+		catch( \Exception $e )
164
+		{
162 165
 			$values['log.siteid'] = null;
163 166
 		}
164 167
 
@@ -183,9 +186,12 @@  discard block
 block discarded – undo
183 186
 
184 187
 		$context = $this->getContext();
185 188
 
186
-		try {
189
+		try
190
+		{
187 191
 			$siteid = $context->getLocale()->getSiteId();
188
-		} catch( \Exception $e ) {
192
+		}
193
+		catch( \Exception $e )
194
+		{
189 195
 			$siteid = null;
190 196
 		}
191 197
 
@@ -237,8 +243,7 @@  discard block
 block discarded – undo
237 243
 				 */
238 244
 				$path = 'madmin/log/manager/standard/insert';
239 245
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
240
-			}
241
-			else
246
+			} else
242 247
 			{
243 248
 				/** madmin/log/manager/standard/update/mysql
244 249
 				 * Updates an existing log record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Provider/Delivery/Xml.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,8 +155,7 @@
 block discarded – undo
155 155
 					$files[] = $entry->getPathname();
156 156
 				}
157 157
 			}
158
-		}
159
-		else
158
+		} else
160 159
 		{
161 160
 			$files[] = $location;
162 161
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/TablesMigrateListsKey.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
 				$dbm->release( $conn, $rname );
81 81
 
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.