Passed
Push — master ( 50e989...69e622 )
by Aimeos
05:21
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
@@ -110,9 +110,12 @@  discard block
 block discarded – undo
110 110
 	 */
111 111
 	public function createItem( $type = null, $domain = null, array $values = [] )
112 112
 	{
113
-		try {
113
+		try
114
+		{
114 115
 			$values['locale.currency.siteid'] = $this->getContext()->getLocale()->getSiteId();
115
-		} catch( \Exception $e ) {
116
+		}
117
+		catch( \Exception $e )
118
+		{
116 119
 			$values['locale.currency.siteid'] = null;
117 120
 		}
118 121
 
@@ -182,8 +185,7 @@  discard block
 block discarded – undo
182 185
 				 * @see mshop/locale/manager/currency/standard/count/ansi
183 186
 				 */
184 187
 				$path = 'mshop/locale/manager/currency/standard/insert';
185
-			}
186
-			else
188
+			} else
187 189
 			{
188 190
 				/** mshop/locale/manager/currency/standard/update/mysql
189 191
 				 * 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
@@ -110,9 +110,12 @@  discard block
 block discarded – undo
110 110
 	 */
111 111
 	public function createItem( $type = null, $domain = null, array $values = [] )
112 112
 	{
113
-		try {
113
+		try
114
+		{
114 115
 			$values['locale.language.siteid'] = $this->getContext()->getLocale()->getSiteId();
115
-		} catch( \Exception $ex ) {
116
+		}
117
+		catch( \Exception $ex )
118
+		{
116 119
 			$values['locale.language.siteid'] = null;
117 120
 		}
118 121
 
@@ -179,8 +182,7 @@  discard block
 block discarded – undo
179 182
 				 * @see mshop/locale/manager/language/standard/count/ansi
180 183
 				 */
181 184
 				$path = 'mshop/locale/manager/language/standard/insert';
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/Locale/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -317,8 +317,7 @@
 block discarded – undo
317 317
 				 * @see mshop/locale/manager/standard/count/ansi
318 318
 				 */
319 319
 				$path = 'mshop/locale/manager/standard/insert';
320
-			}
321
-			else
320
+			} else
322 321
 			{
323 322
 				/** mshop/locale/manager/standard/update/mysql
324 323
 				 * Updates an existing locale record in the database
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/data/media-property.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-return array (
8
+return array(
9 9
 	'media/property/type' => array(
10 10
 		'media/property/type/size' => array( 'domain' => 'media', 'code' => 'size', 'label' => 'Size', 'status' => 1 ),
11 11
 		'media/property/type/mtime' => array( 'domain' => 'media', 'code' => 'mtime', 'label' => 'Modification time', 'status' => 1 ),
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/data/attribute-property.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-return array (
8
+return array(
9 9
 	'attribute/property/type' => array(
10 10
 		'attribute/property/type/size' => array( 'domain' => 'attribute', 'code' => 'size', 'label' => 'Size', 'position' => 0, 'status' => 1 ),
11 11
 		'attribute/property/type/mtime' => array( 'domain' => 'attribute', 'code' => 'mtime', 'label' => 'Modification time', 'position' => 1, 'status' => 1 ),
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/data/supplier-list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,15 +5,15 @@
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2015-2018
6 6
  */
7 7
 
8
-return array (
9
-	'supplier/lists/type' => array (
8
+return array(
9
+	'supplier/lists/type' => array(
10 10
 		'attribute/default' => array( 'domain' => 'attribute', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ),
11 11
 		'media/default' => array( 'domain' => 'media', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ),
12 12
 		'product/default' => array( 'domain' => 'product', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ),
13 13
 		'text/default' => array( 'domain' => 'text', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ),
14 14
 	),
15 15
 
16
-	'supplier/lists' => array (
16
+	'supplier/lists' => array(
17 17
 		array( 'parentid' => 'supplier/unitCode001', 'typeid' => 'product/default', 'domain' => 'product', 'refid' => 'product/CNC', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 1, 'status' => 1 ),
18 18
 		array( 'parentid' => 'supplier/unitCode001', 'typeid' => 'product/default', 'domain' => 'product', 'refid' => 'product/CNE', 'start' => '2010-01-01 00:00:00', 'end' => null, 'config' => [], 'pos' => 2, 'status' => 1 ),
19 19
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/data/text.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
  * @copyright Aimeos (aimeos.org), 2015-2018
7 7
  */
8 8
 
9
-return array (
10
-	'text/type' => array (
9
+return array(
10
+	'text/type' => array(
11 11
 		'attribute/name' => array( 'domain' => 'attribute', 'code' => 'name', 'label' => 'Name', 'status' => 1 ),
12 12
 		'attribute/short' => array( 'domain' => 'attribute', 'code' => 'short', 'label' => 'Short description', 'status' => 1 ),
13 13
 		'attribute/long' => array( 'domain' => 'attribute', 'code' => 'long', 'label' => 'Long description', 'status' => 1 ),
@@ -48,13 +48,13 @@  discard block
 block discarded – undo
48 48
 		'supplier/long' => array( 'domain' => 'supplier', 'code' => 'long', 'label' => 'Long description', 'status' => 1 ),
49 49
 	),
50 50
 
51
-	'text' => array (
51
+	'text' => array(
52 52
 
53
-		'text/customer/information' => array( 'langid' => null, 'typeid' => 'customer/information', 'domain' => 'customer', 'label' => 'customer/information', 'content' => 'Customer information', 'status' => 1),
54
-		'text/customer/notify' => array( 'langid' => null, 'typeid' => 'customer/notify', 'domain' => 'customer', 'label' => 'customer/notify', 'content' => 'Customer notify', 'status' => 1),
55
-		'text/customer/newsletter' => array( 'langid' => null, 'typeid' => 'customer/newsletter', 'domain' => 'customer', 'label' => 'customer/newsletter', 'content' => 'Customer newsletter', 'status' => 1),
53
+		'text/customer/information' => array( 'langid' => null, 'typeid' => 'customer/information', 'domain' => 'customer', 'label' => 'customer/information', 'content' => 'Customer information', 'status' => 1 ),
54
+		'text/customer/notify' => array( 'langid' => null, 'typeid' => 'customer/notify', 'domain' => 'customer', 'label' => 'customer/notify', 'content' => 'Customer notify', 'status' => 1 ),
55
+		'text/customer/newsletter' => array( 'langid' => null, 'typeid' => 'customer/newsletter', 'domain' => 'customer', 'label' => 'customer/newsletter', 'content' => 'Customer newsletter', 'status' => 1 ),
56 56
 //supplier
57
-		'text/supplier/description' => array( 'langid' => null, 'typeid' => 'supplier/description', 'domain' => 'supplier', 'label' => 'supplier/description', 'content' => 'Supplier description', 'status' => 1),
57
+		'text/supplier/description' => array( 'langid' => null, 'typeid' => 'supplier/description', 'domain' => 'supplier', 'label' => 'supplier/description', 'content' => 'Supplier description', 'status' => 1 ),
58 58
 //ATTR
59 59
 //size
60 60
 		'text/size/XS' => array( 'langid' => null, 'typeid' => 'attribute/name', 'domain' => 'attribute', 'label' => 'size/XS', 'content' => 'XS', 'status' => 1 ),
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Plugin/Provider/ExceptionTest.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,8 @@  discard block
 block discarded – undo
27 27
 
28 28
 	public function test()
29 29
 	{
30
-		try {
30
+		try
31
+		{
31 32
 			throw new \Aimeos\MShop\Plugin\Provider\Exception( 'msg', 13, null, $this->codes );
32 33
 		}
33 34
 		catch( \Aimeos\MShop\Plugin\Provider\Exception $mppe )
@@ -38,7 +39,8 @@  discard block
 block discarded – undo
38 39
 
39 40
 		}
40 41
 
41
-		try {
42
+		try
43
+		{
42 44
 			throw new \Aimeos\MShop\Plugin\Provider\Exception( 'msg2', 11 );
43 45
 		}
44 46
 		catch( \Aimeos\MShop\Plugin\Provider\Exception $e )
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Stock/Manager/Nolimit.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,8 +137,7 @@
 block discarded – undo
137 137
 			foreach( $cond->getExpressions() as $expr ) {
138 138
 				$list = array_merge( $list, $this->getProductCodes( $expr ) );
139 139
 			}
140
-		}
141
-		elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface )
140
+		} elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface )
142 141
 		{
143 142
 			if( $cond->getName() === 'stock.productcode' && $cond->getOperator() === '==' ) {
144 143
 				$list = array_merge( $list, (array) $cond->getValue() );
Please login to merge, or discard this patch.