Completed
Push — master ( 52c730...9eba1c )
by Aimeos
08:52
created
lib/mwlib/tests/MW/View/Helper/Access/StandardTest.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,9 @@  discard block
 block discarded – undo
14 14
 	public function testTransformSingleOK()
15 15
 	{
16 16
 		$view = new \Aimeos\MW\View\Standard();
17
-		$fcn = function() { return array( 'editor' ); };
17
+		$fcn = function()
18
+		{
19
+return array( 'editor' ); };
18 20
 
19 21
 		$object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn );
20 22
 		$this->assertTrue( $object->transform( 'editor' ) );
@@ -24,7 +26,9 @@  discard block
 block discarded – undo
24 26
 	public function testTransformSingleFailure()
25 27
 	{
26 28
 		$view = new \Aimeos\MW\View\Standard();
27
-		$fcn = function() { return array( 'editor' ); };
29
+		$fcn = function()
30
+		{
31
+return array( 'editor' ); };
28 32
 
29 33
 		$object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn );
30 34
 		$this->assertFalse( $object->transform( 'admin' ) );
@@ -34,7 +38,9 @@  discard block
 block discarded – undo
34 38
 	public function testTransformMultipleOK()
35 39
 	{
36 40
 		$view = new \Aimeos\MW\View\Standard();
37
-		$fcn = function() { return array( 'admin', 'editor' ); };
41
+		$fcn = function()
42
+		{
43
+return array( 'admin', 'editor' ); };
38 44
 
39 45
 		$object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn );
40 46
 		$this->assertTrue( $object->transform( array( 'editor' ) ) );
@@ -44,7 +50,9 @@  discard block
 block discarded – undo
44 50
 	public function testTransformMultipleFailure()
45 51
 	{
46 52
 		$view = new \Aimeos\MW\View\Standard();
47
-		$fcn = function() { return array( 'admin', 'editor' ); };
53
+		$fcn = function()
54
+		{
55
+return array( 'admin', 'editor' ); };
48 56
 
49 57
 		$object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn );
50 58
 		$this->assertFalse( $object->transform( array( 'test', 'example' ) ) );
Please login to merge, or discard this patch.
lib/mshoplib/setup/OrderAddTimes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
 
162 162
 				$stmt->bind( 1, $date );
163 163
 				$stmt->bind( 2, substr( $date, 0, 7 ) );
164
-				$stmt->bind( 3, date_create_from_format( 'Y-m-d', $date )->format( 'Y-W' )  );
164
+				$stmt->bind( 3, date_create_from_format( 'Y-m-d', $date )->format( 'Y-W' ) );
165 165
 				$stmt->bind( 4, substr( $time, 0, 2 ) );
166 166
 				$stmt->bind( 5, $id, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
167 167
 
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Template/Iface.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	/**
35 35
 	 * Removes the content between the marker.
36 36
 	 *
37
-	 * @param array|string $name Marker name or list thereof
37
+	 * @param string $name Marker name or list thereof
38 38
 	 * @return \Aimeos\MW\Template\Iface Own Instance for method chaining
39 39
 	 */
40 40
 	public function disable( $name );
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
 	/**
62 62
 	 * Replaces a string or a list of strings.
63 63
 	 *
64
-	 * @param string|array $old String or list of strings to remove
65
-	 * @param string|array $new String or list of strings to insert instead
64
+	 * @param string $old String or list of strings to remove
65
+	 * @param string $new String or list of strings to insert instead
66 66
 	 * @return \Aimeos\MW\Template\Iface Own Instance for method chaining
67 67
 	 */
68 68
 	public function replace( $old, $new );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Product/Manager/Property/Standard.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -563,13 +563,13 @@  discard block
 block discarded – undo
563 563
 			 * @see mshop/product/manager/property/standard/delete/ansi
564 564
 			 * @see mshop/product/manager/property/standard/search/ansi
565 565
 			 */
566
-			$cfgPathCount =  'mshop/product/manager/property/standard/count';
566
+			$cfgPathCount = 'mshop/product/manager/property/standard/count';
567 567
 
568 568
 			$results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level );
569 569
 			while( ( $row = $results->fetch() ) !== false )
570 570
 			{
571
-				$map[ $row['product.property.id'] ] = $row;
572
-				$typeIds[ $row['product.property.typeid'] ] = null;
571
+				$map[$row['product.property.id']] = $row;
572
+				$typeIds[$row['product.property.typeid']] = null;
573 573
 			}
574 574
 
575 575
 			$dbm->release( $conn, $dbname );
@@ -590,9 +590,9 @@  discard block
 block discarded – undo
590 590
 
591 591
 			foreach( $map as $id => $row )
592 592
 			{
593
-				if( isset( $typeItems[ $row['product.property.typeid'] ] ) )
593
+				if( isset( $typeItems[$row['product.property.typeid']] ) )
594 594
 				{
595
-					$row['product.property.type'] = $typeItems[ $row['product.property.typeid'] ]->getCode();
595
+					$row['product.property.type'] = $typeItems[$row['product.property.typeid']]->getCode();
596 596
 					$row['product.property.typename'] = $typeItems[$row['product.property.typeid']]->getName();
597 597
 				}
598 598
 
@@ -723,7 +723,7 @@  discard block
 block discarded – undo
723 723
 		 * @see mshop/product/manager/property/decorators/global
724 724
 		 */
725 725
 
726
-		return $this->getSubManagerBase( 'product', 'property/' . $manager, $name );
726
+		return $this->getSubManagerBase( 'product', 'property/'.$manager, $name );
727 727
 	}
728 728
 
729 729
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -222,8 +222,7 @@
 block discarded – undo
222 222
 				 * @see mshop/product/manager/property/standard/count/ansi
223 223
 				 */
224 224
 				$path = 'mshop/product/manager/property/standard/insert';
225
-			}
226
-			else
225
+			} else
227 226
 			{
228 227
 				/** mshop/product/manager/property/standard/update/mysql
229 228
 				 * Updates an existing product property record in the database
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/order.php 2 patches
Braces   +18 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,7 +16,8 @@  discard block
 block discarded – undo
16 16
 
17 17
 	'table' => array(
18 18
 
19
-		'mshop_order_base' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
19
+		'mshop_order_base' => function ( \Doctrine\DBAL\Schema\Schema $schema )
20
+		{
20 21
 
21 22
 			$table = $schema->createTable( 'mshop_order_base' );
22 23
 
@@ -45,7 +46,8 @@  discard block
 block discarded – undo
45 46
 			return $schema;
46 47
 		},
47 48
 
48
-		'mshop_order_base_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
49
+		'mshop_order_base_address' => function ( \Doctrine\DBAL\Schema\Schema $schema )
50
+		{
49 51
 
50 52
 			$table = $schema->createTable( 'mshop_order_base_address' );
51 53
 
@@ -93,7 +95,8 @@  discard block
 block discarded – undo
93 95
 			return $schema;
94 96
 		},
95 97
 
96
-		'mshop_order_base_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
98
+		'mshop_order_base_product' => function ( \Doctrine\DBAL\Schema\Schema $schema )
99
+		{
97 100
 
98 101
 			$table = $schema->createTable( 'mshop_order_base_product' );
99 102
 
@@ -134,7 +137,8 @@  discard block
 block discarded – undo
134 137
 			return $schema;
135 138
 		},
136 139
 
137
-		'mshop_order_base_product_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
140
+		'mshop_order_base_product_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema )
141
+		{
138 142
 
139 143
 			$table = $schema->createTable( 'mshop_order_base_product_attr' );
140 144
 
@@ -160,7 +164,8 @@  discard block
 block discarded – undo
160 164
 			return $schema;
161 165
 		},
162 166
 
163
-		'mshop_order_base_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
167
+		'mshop_order_base_service' => function ( \Doctrine\DBAL\Schema\Schema $schema )
168
+		{
164 169
 
165 170
 			$table = $schema->createTable( 'mshop_order_base_service' );
166 171
 
@@ -194,7 +199,8 @@  discard block
 block discarded – undo
194 199
 			return $schema;
195 200
 		},
196 201
 
197
-		'mshop_order_base_service_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
202
+		'mshop_order_base_service_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema )
203
+		{
198 204
 
199 205
 			$table = $schema->createTable( 'mshop_order_base_service_attr' );
200 206
 
@@ -220,7 +226,8 @@  discard block
 block discarded – undo
220 226
 			return $schema;
221 227
 		},
222 228
 
223
-		'mshop_order_base_coupon' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
229
+		'mshop_order_base_coupon' => function ( \Doctrine\DBAL\Schema\Schema $schema )
230
+		{
224 231
 
225 232
 			$table = $schema->createTable( 'mshop_order_base_coupon' );
226 233
 
@@ -247,7 +254,8 @@  discard block
 block discarded – undo
247 254
 			return $schema;
248 255
 		},
249 256
 
250
-		'mshop_order' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
257
+		'mshop_order' => function ( \Doctrine\DBAL\Schema\Schema $schema )
258
+		{
251 259
 
252 260
 			$table = $schema->createTable( 'mshop_order' );
253 261
 
@@ -289,7 +297,8 @@  discard block
 block discarded – undo
289 297
 			return $schema;
290 298
 		},
291 299
 
292
-		'mshop_order_status' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
300
+		'mshop_order_status' => function ( \Doctrine\DBAL\Schema\Schema $schema )
301
+		{
293 302
 
294 303
 			$table = $schema->createTable( 'mshop_order_status' );
295 304
 
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 	'table' => array(
18 18
 
19
-		'mshop_order_base' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
19
+		'mshop_order_base' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
20 20
 
21 21
 			$table = $schema->createTable( 'mshop_order_base' );
22 22
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 			$table->addColumn( 'status', 'smallint', [] );
36 36
 			$table->addColumn( 'mtime', 'datetime', [] );
37 37
 			$table->addColumn( 'ctime', 'datetime', [] );
38
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
38
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
39 39
 
40 40
 			$table->setPrimaryKey( array( 'id' ), 'pk_msordba_id' );
41 41
 			$table->addIndex( array( 'sitecode', 'customerid' ), 'idx_msordba_scode_custid' );
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 			return $schema;
46 46
 		},
47 47
 
48
-		'mshop_order_base_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
48
+		'mshop_order_base_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
49 49
 
50 50
 			$table = $schema->createTable( 'mshop_order_base_address' );
51 51
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 			$table->addColumn( 'flag', 'integer', [] );
78 78
 			$table->addColumn( 'mtime', 'datetime', [] );
79 79
 			$table->addColumn( 'ctime', 'datetime', [] );
80
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
80
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
81 81
 
82 82
 			$table->setPrimaryKey( array( 'id' ), 'pk_msordbaad_id' );
83 83
 			$table->addUniqueIndex( array( 'baseid', 'type' ), 'unq_msordbaad_bid_type' );
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 			return $schema;
96 96
 		},
97 97
 
98
-		'mshop_order_base_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
98
+		'mshop_order_base_product' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
99 99
 
100 100
 			$table = $schema->createTable( 'mshop_order_base_product' );
101 101
 
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
 			$table->addColumn( 'ordprodid', 'bigint', array( 'notnull' => false ) );
106 106
 			$table->addColumn( 'type', 'string', array( 'length' => 32 ) );
107 107
 			$table->addColumn( 'prodid', 'string', array( 'length' => 32 ) );
108
-			$table->addColumn( 'prodcode', 'string', array( 'length' => 32  ) );
109
-			$table->addColumn( 'suppliercode', 'string', array( 'length' => 32  ) );
108
+			$table->addColumn( 'prodcode', 'string', array( 'length' => 32 ) );
109
+			$table->addColumn( 'suppliercode', 'string', array( 'length' => 32 ) );
110 110
 			$table->addColumn( 'stocktype', 'string', array( 'length' => 32 ) );
111 111
 			$table->addColumn( 'name', 'string', array( 'length' => 255 ) );
112 112
 			$table->addColumn( 'mediaurl', 'string', array( 'length' => 255 ) );
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 			$table->addColumn( 'status', 'smallint', array( 'default' => -1 ) );
123 123
 			$table->addColumn( 'mtime', 'datetime', [] );
124 124
 			$table->addColumn( 'ctime', 'datetime', [] );
125
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
125
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
126 126
 
127 127
 			$table->setPrimaryKey( array( 'id' ), 'pk_msordbapr_id' );
128 128
 			$table->addUniqueIndex( array( 'baseid', 'pos' ), 'unq_msordbapr_bid_pos' );
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			return $schema;
137 137
 		},
138 138
 
139
-		'mshop_order_base_product_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
139
+		'mshop_order_base_product_attr' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
140 140
 
141 141
 			$table = $schema->createTable( 'mshop_order_base_product_attr' );
142 142
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 			$table->addColumn( 'value', 'text', array( 'length' => 0xffff ) );
151 151
 			$table->addColumn( 'mtime', 'datetime', [] );
152 152
 			$table->addColumn( 'ctime', 'datetime', [] );
153
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
153
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
154 154
 
155 155
 			$table->setPrimaryKey( array( 'id' ), 'pk_msordbaprat_id' );
156 156
 			$table->addUniqueIndex( array( 'ordprodid', 'attrid', 'type', 'code' ), 'unq_msordbaprat_oid_aid_ty_cd' );
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 			return $schema;
163 163
 		},
164 164
 
165
-		'mshop_order_base_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
165
+		'mshop_order_base_service' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
166 166
 
167 167
 			$table = $schema->createTable( 'mshop_order_base_service' );
168 168
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 			$table->addColumn( 'taxflag', 'smallint', [] );
183 183
 			$table->addColumn( 'mtime', 'datetime', [] );
184 184
 			$table->addColumn( 'ctime', 'datetime', [] );
185
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
185
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
186 186
 
187 187
 			$table->setPrimaryKey( array( 'id' ), 'pk_msordbase_id' );
188 188
 			$table->addUniqueIndex( array( 'baseid', 'type', 'code' ), 'unq_msordbase_bid_type_code' );
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 			return $schema;
197 197
 		},
198 198
 
199
-		'mshop_order_base_service_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
199
+		'mshop_order_base_service_attr' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
200 200
 
201 201
 			$table = $schema->createTable( 'mshop_order_base_service_attr' );
202 202
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 			$table->addColumn( 'value', 'text', array( 'length' => 0xffff ) );
211 211
 			$table->addColumn( 'mtime', 'datetime', [] );
212 212
 			$table->addColumn( 'ctime', 'datetime', [] );
213
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
213
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
214 214
 
215 215
 			$table->setPrimaryKey( array( 'id' ), 'pk_msordbaseat_id' );
216 216
 			$table->addUniqueIndex( array( 'ordservid', 'attrid', 'type', 'code' ), 'unq_msordbaseat_oid_aid_ty_cd' );
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 			return $schema;
223 223
 		},
224 224
 
225
-		'mshop_order_base_coupon' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
225
+		'mshop_order_base_coupon' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
226 226
 
227 227
 			$table = $schema->createTable( 'mshop_order_base_coupon' );
228 228
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 			$table->addColumn( 'code', 'string', array( 'length' => 32 ) );
234 234
 			$table->addColumn( 'mtime', 'datetime', [] );
235 235
 			$table->addColumn( 'ctime', 'datetime', [] );
236
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
236
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
237 237
 
238 238
 			$table->setPrimaryKey( array( 'id' ), 'pk_msordbaco_id' );
239 239
 			$table->addIndex( array( 'siteid', 'baseid', 'code' ), 'idx_msordbaco_sid_bid_code' );
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 			return $schema;
250 250
 		},
251 251
 
252
-		'mshop_order' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
252
+		'mshop_order' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
253 253
 
254 254
 			$table = $schema->createTable( 'mshop_order' );
255 255
 
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 			$table->addColumn( 'chour', 'string', array( 'fixed' => 2 ) );
269 269
 			$table->addColumn( 'ctime', 'datetime', [] );
270 270
 			$table->addColumn( 'mtime', 'datetime', [] );
271
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
271
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
272 272
 
273 273
 			$table->setPrimaryKey( array( 'id' ), 'pk_msord_id' );
274 274
 			$table->addIndex( array( 'siteid', 'type' ), 'idx_msord_sid_type' );
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 			return $schema;
292 292
 		},
293 293
 
294
-		'mshop_order_status' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
294
+		'mshop_order_status' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
295 295
 
296 296
 			$table = $schema->createTable( 'mshop_order_status' );
297 297
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 			$table->addColumn( 'value', 'string', array( 'length' => 32 ) );
303 303
 			$table->addColumn( 'mtime', 'datetime', [] );
304 304
 			$table->addColumn( 'ctime', 'datetime', [] );
305
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
305
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
306 306
 
307 307
 			$table->setPrimaryKey( array( 'id' ), 'pk_msordst_id' );
308 308
 			$table->addIndex( array( 'siteid', 'parentid', 'type', 'value' ), 'idx_msordstatus_val_sid' );
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Service/Provider/Payment/PayPalExpressTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
 		$what = array( 'TOKEN' => 'UT-99999999' );
160 160
 
161 161
 		$error = '&ACK=Error&VERSION=87.0&BUILD=3136725&CORRELATIONID=1234567890&L_ERRORCODE0=0000&L_SHORTMESSAGE0=updatesync method error';
162
-		$success = '&TOKEN=UT-99999999&CORRELATIONID=1234567890&ACK=Success&VERSION=87.0&BUILD=3136725&PAYERID=PaypalUnitTestBuyer&TRANSACTIONID=111111110&PAYMENTSTATUS=Pending&PENDINGREASON=authorization&INVNUM=' . $this->order->getId();
162
+		$success = '&TOKEN=UT-99999999&CORRELATIONID=1234567890&ACK=Success&VERSION=87.0&BUILD=3136725&PAYERID=PaypalUnitTestBuyer&TRANSACTIONID=111111110&PAYMENTSTATUS=Pending&PENDINGREASON=authorization&INVNUM='.$this->order->getId();
163 163
 
164 164
 		$com = new TestPayPalExpress();
165 165
 		$com->addRule( $what, $error, $success );
Please login to merge, or discard this patch.
lib/mshoplib/setup/unitperf/ProductAddBasePerfData.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
 			for( $j = 0; $j < $size; $j++ )
93 93
 			{
94
-				$code = 'perf-' . str_pad( $i * 1000 + $j, 5, '0', STR_PAD_LEFT );
94
+				$code = 'perf-'.str_pad( $i * 1000 + $j, 5, '0', STR_PAD_LEFT );
95 95
 
96 96
 				$productItem->setId( null );
97 97
 				$productItem->setCode( $code );
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
 
167 167
 		$search = $manager->createSearch();
168 168
 		$expr = array(
169
-			$search->compare( '==', $prefix . '.domain', $domain ),
170
-			$search->compare( '==', $prefix . '.code', $code ),
169
+			$search->compare( '==', $prefix.'.domain', $domain ),
170
+			$search->compare( '==', $prefix.'.code', $code ),
171 171
 		);
172 172
 		$search->setConditions( $search->combine( '&&', $expr ) );
173 173
 		$result = $manager->searchItems( $search );
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
 		{
79 79
 			$count = (int) $this->count / 1000;
80 80
 			$size = 1000;
81
-		}
82
-		else
81
+		} else
83 82
 		{
84 83
 			$count = 1;
85 84
 			$size = $this->count;
Please login to merge, or discard this patch.
lib/mshoplib/setup/unitperf/ProductAddSelectPerfData.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -281,8 +281,8 @@  discard block
 block discarded – undo
281 281
 				$cnt = $i * 1000 + $j;
282 282
 
283 283
 				$productItem->setId( null );
284
-				$productItem->setCode( 'perf-select-' . str_pad( $cnt, 5, '0', STR_PAD_LEFT ) );
285
-				$productItem->setLabel( 'Selection product ' . ( $cnt + 1 ) );
284
+				$productItem->setCode( 'perf-select-'.str_pad( $cnt, 5, '0', STR_PAD_LEFT ) );
285
+				$productItem->setLabel( 'Selection product '.( $cnt + 1 ) );
286 286
 				$productManager->saveItem( $productItem );
287 287
 
288 288
 				$selProducts[] = $productItem->getId();
@@ -290,8 +290,8 @@  discard block
 block discarded – undo
290 290
 
291 291
 				$textItem->setId( null );
292 292
 				$textItem->setTypeId( $textTypeItems['short']->getId() );
293
-				$textItem->setLabel( 'Short description for ' . ( $cnt + 1 ) . '. selection product' );
294
-				$textItem->setContent( 'Short description for ' . ( $cnt + 1 ) . '. selection product' );
293
+				$textItem->setLabel( 'Short description for '.( $cnt + 1 ).'. selection product' );
294
+				$textItem->setContent( 'Short description for '.( $cnt + 1 ).'. selection product' );
295 295
 				$textManager->saveItem( $textItem );
296 296
 
297 297
 				$productListItem->setId( null );
@@ -302,8 +302,8 @@  discard block
 block discarded – undo
302 302
 
303 303
 				$textItem->setId( null );
304 304
 				$textItem->setTypeId( $textTypeItems['long']->getId() );
305
-				$textItem->setLabel( 'Long description for ' . ( $cnt + 1 ) . '. selection product' );
306
-				$textItem->setContent( 'Long description for ' . ( $cnt + 1 ) . '. selection product. This may contain some "Lorem ipsum" text' );
305
+				$textItem->setLabel( 'Long description for '.( $cnt + 1 ).'. selection product' );
306
+				$textItem->setContent( 'Long description for '.( $cnt + 1 ).'. selection product. This may contain some "Lorem ipsum" text' );
307 307
 				$textManager->saveItem( $textItem );
308 308
 
309 309
 				$productListItem->setId( null );
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
 		{
79 79
 			$count = (int) $this->count / 1000;
80 80
 			$size = 1000;
81
-		}
82
-		else
81
+		} else
83 82
 		{
84 83
 			$count = 1;
85 84
 			$size = $this->count;
Please login to merge, or discard this patch.
controller/common/tests/Controller/Common/Order/StandardTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -595,6 +595,9 @@
 block discarded – undo
595 595
 	}
596 596
 
597 597
 
598
+	/**
599
+	 * @param string $datepayment
600
+	 */
598 601
 	protected function getOrderItem( $datepayment )
599 602
 	{
600 603
 		$manager = \Aimeos\MShop\Factory::createManager( \TestHelperCntl::getContext(), 'order' );
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -526,7 +526,8 @@  discard block
 block discarded – undo
526 526
 			->setMethods( array( 'saveItem' ) )
527 527
 			->getMock();
528 528
 
529
-		$stockStub->expects( $this->once() )->method( 'saveItem' )->with( $this->callback( function( $item ) {
529
+		$stockStub->expects( $this->once() )->method( 'saveItem' )->with( $this->callback( function( $item )
530
+		{
530 531
 			return $item->getStocklevel() === 10;
531 532
 		} ) );
532 533
 
@@ -579,7 +580,8 @@  discard block
 block discarded – undo
579 580
 			->setMethods( array( 'saveItem' ) )
580 581
 			->getMock();
581 582
 
582
-		$stockStub->expects( $this->once() )->method( 'saveItem' )->with( $this->callback( function( $item ) {
583
+		$stockStub->expects( $this->once() )->method( 'saveItem' )->with( $this->callback( function( $item )
584
+		{
583 585
 			return $item->getStocklevel() === 300;
584 586
 		} ) );
585 587
 
Please login to merge, or discard this patch.