Completed
Push — master ( 52c730...9eba1c )
by Aimeos
08:52
created
lib/mshoplib/src/MShop/Supplier/Manager/Standard.php 3 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
 	 */
164 164
 	public function createItem()
165 165
 	{
166
-		$values = array('supplier.siteid' => $this->getContext()->getLocale()->getSiteId());
167
-		return $this->createItemBase($values);
166
+		$values = array( 'supplier.siteid' => $this->getContext()->getLocale()->getSiteId() );
167
+		return $this->createItemBase( $values );
168 168
 	}
169 169
 
170 170
 
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
 			 * @see mshop/supplier/manager/standard/delete/ansi
543 543
 			 * @see mshop/supplier/manager/standard/search/ansi
544 544
 			 */
545
-			$cfgPathCount =  'mshop/supplier/manager/standard/count';
545
+			$cfgPathCount = 'mshop/supplier/manager/standard/count';
546 546
 
547 547
 			$results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level );
548 548
 			while( ( $row = $results->fetch() ) !== false ) {
@@ -581,10 +581,10 @@  discard block
 block discarded – undo
581 581
 	 * @param boolean $default
582 582
 	 * @return \Aimeos\MW\Criteria\Iface
583 583
 	 */
584
-	public function createSearch($default = false)
584
+	public function createSearch( $default = false )
585 585
 	{
586
-		if ($default) {
587
-			return $this->createSearchBase('supplier');
586
+		if( $default ) {
587
+			return $this->createSearchBase( 'supplier' );
588 588
 		}
589 589
 
590 590
 		return parent::createSearch();
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -303,8 +303,7 @@
 block discarded – undo
303 303
 				 * @see mshop/supplier/manager/standard/count/ansi
304 304
 				 */
305 305
 				$path = 'mshop/supplier/manager/standard/insert';
306
-			}
307
-			else
306
+			} else
308 307
 			{
309 308
 				/** mshop/supplier/manager/standard/update/mysql
310 309
 				 * Updates an existing supplier record in the database
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -417,6 +417,7 @@  discard block
 block discarded – undo
417 417
 	 * @param \Aimeos\MW\Criteria\Iface $search Search criteria object
418 418
 	 * @param string[] $ref List of domains to fetch list items and referenced items for
419 419
 	 * @param integer|null &$total Number of items that are available in total
420
+	 * @param integer $total
420 421
 	 * @return array List of supplier items implementing \Aimeos\MShop\Supplier\Item\Iface
421 422
 	 */
422 423
 	public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null )
@@ -615,7 +616,6 @@  discard block
 block discarded – undo
615 616
 	/**
616 617
 	 * Returns the address items for the given supplier IDs
617 618
 	 *
618
-	 * @param array $prodIds List of supplier IDs
619 619
 	 * @return array Associative list of supplier IDs / address IDs as keys and items implementing
620 620
 	 * 	\Aimeos\MShop\Common\Item\Address\Iface as values
621 621
 	 */
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Customer/Manager/Group/Standard.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -289,8 +289,7 @@
 block discarded – undo
289 289
 				 * @see mshop/customer/manager/group/standard/count/ansi
290 290
 				 */
291 291
 				$path = 'mshop/customer/manager/group/standard/insert';
292
-			}
293
-			else
292
+			} else
294 293
 			{
295 294
 				/** mshop/customer/manager/group/standard/update/mysql
296 295
 				 * Updates an existing customer group record in the database
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -403,6 +403,7 @@
 block discarded – undo
403 403
 	 * @param \Aimeos\MW\Criteria\Iface $search Search criteria object
404 404
 	 * @param string[] $ref List of domains to fetch list items and referenced items for
405 405
 	 * @param integer|null &$total Number of items that are available in total
406
+	 * @param integer $total
406 407
 	 * @return array List of items implementing \Aimeos\MShop\Customer\Item\Group\Iface
407 408
 	 */
408 409
 	public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null )
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Customer/Manager/Standard.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -418,8 +418,7 @@
 block discarded – undo
418 418
 				 * @see mshop/customer/manager/standard/count/ansi
419 419
 				 */
420 420
 				$path = 'mshop/customer/manager/standard/insert';
421
-			}
422
-			else
421
+			} else
423 422
 			{
424 423
 				/** mshop/customer/manager/standard/update/mysql
425 424
 				 * Updates an existing customer record in the database
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -558,6 +558,7 @@
 block discarded – undo
558 558
 	 * @param \Aimeos\MW\Criteria\Iface $search Search criteria object
559 559
 	 * @param string[] $ref List of domains to fetch list items and referenced items for
560 560
 	 * @param integer|null &$total Number of items that are available in total
561
+	 * @param integer $total
561 562
 	 * @return array Associative list of IDs as keys and items implementing \Aimeos\MShop\Customer\Item\Iface as values
562 563
 	 */
563 564
 	public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null )
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Price/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -360,8 +360,7 @@
 block discarded – undo
360 360
 				 * @see mshop/price/manager/standard/count/ansi
361 361
 				 */
362 362
 				$path = 'mshop/price/manager/standard/insert';
363
-			}
364
-			else
363
+			} else
365 364
 			{
366 365
 				/** mshop/price/manager/standard/update/mysql
367 366
 				 * Updates an existing price record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Price/Item/Iface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 	 *
163 163
 	 * @param boolean $flag True if tax is included in the price value, costs and rebate, false if not
164 164
 	 * @return \Aimeos\MShop\Price\Item\Iface Price item for chaining method calls
165
-	*/
165
+	 */
166 166
 	public function setTaxFlag( $flag );
167 167
 
168 168
 	/**
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Price/Item/Standard.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@
 block discarded – undo
379 379
 	 *
380 380
 	 * @param boolean $flag True if tax is included in the price value, costs and rebate, false if not
381 381
 	 * @return \Aimeos\MShop\Price\Item\Iface Price item for chaining method calls
382
-	*/
382
+	 */
383 383
 	public function setTaxFlag( $flag )
384 384
 	{
385 385
 		if( $flag == $this->getTaxFlag() ) { return $this; }
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
@@ -289,8 +289,7 @@
 block discarded – undo
289 289
 				 * @see mshop/attribute/manager/standard/count/ansi
290 290
 				 */
291 291
 				$path = 'mshop/attribute/manager/standard/insert';
292
-			}
293
-			else
292
+			} else
294 293
 			{
295 294
 				/** mshop/attribute/manager/standard/update/mysql
296 295
 				 * Updates an existing attribute record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Order/Manager/Base/Service/Standard.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -320,8 +320,7 @@
 block discarded – undo
320 320
 				 * @see mshop/order/manager/base/service/standard/count/ansi
321 321
 				 */
322 322
 				$path = 'mshop/order/manager/base/service/standard/insert';
323
-			}
324
-			else
323
+			} else
325 324
 			{
326 325
 				/** mshop/order/manager/base/service/standard/update/mysql
327 326
 				 * Updates an existing order record in the database
Please login to merge, or discard this patch.
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -171,6 +171,8 @@
 block discarded – undo
171 171
 	 *
172 172
 	 * @param \Aimeos\MW\Criteria\Iface $search Search criteria
173 173
 	 * @param string $key Search key to aggregate items for
174
+	 * @param string $value
175
+	 * @param string $type
174 176
 	 * @return array List of the search keys as key and the number of counted items as value
175 177
 	 * @todo 2018.01 Add optional parameters to interface
176 178
 	 */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 		 * @see mshop/order/manager/base/service/standard/search/ansi
226 226
 		 * @see mshop/order/manager/base/service/standard/count/ansi
227 227
 		 */
228
-		$cfgkey = 'mshop/order/manager/base/service/standard/aggregate' . $type;
228
+		$cfgkey = 'mshop/order/manager/base/service/standard/aggregate'.$type;
229 229
 		return $this->aggregateBase( $search, $key, $cfgkey, array( 'order.base.service' ), $value );
230 230
 	}
231 231
 
@@ -851,7 +851,7 @@  discard block
 block discarded – undo
851 851
 		 * @see mshop/order/manager/base/service/decorators/global
852 852
 		 */
853 853
 
854
-		return $this->getSubManagerBase( 'order', 'base/service/' . $manager, $name );
854
+		return $this->getSubManagerBase( 'order', 'base/service/'.$manager, $name );
855 855
 	}
856 856
 
857 857
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Order/Manager/Base/Service/Attribute/Standard.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -289,8 +289,7 @@
 block discarded – undo
289 289
 				 * @see mshop/order/manager/base/service/attribute/standard/count/ansi
290 290
 				 */
291 291
 				$path = 'mshop/order/manager/base/service/attribute/standard/insert';
292
-			}
293
-			else
292
+			} else
294 293
 			{
295 294
 				/** mshop/order/manager/base/service/attribute/standard/update/mysql
296 295
 				 * Updates an existing order record in the database
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -493,6 +493,7 @@
 block discarded – undo
493 493
 	 * @param \Aimeos\MW\Criteria\Iface $search Search criteria object
494 494
 	 * @param string[] $ref List of domains to fetch list items and referenced items for
495 495
 	 * @param integer|null &$total Number of items that are available in total
496
+	 * @param integer $total
496 497
 	 * @return array List of items implementing \Aimeos\MShop\Order\Item\Base\Service\Attribute\Iface
497 498
 	 */
498 499
 	public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null )
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 		 * @see mshop/order/manager/base/service/attribute/standard/search/ansi
183 183
 		 * @see mshop/order/manager/base/service/attribute/standard/count/ansi
184 184
 		 */
185
-		$cfgkey = 'mshop/order/manager/base/service/attribute/standard/aggregate' . $type;
185
+		$cfgkey = 'mshop/order/manager/base/service/attribute/standard/aggregate'.$type;
186 186
 		return $this->aggregateBase( $search, $key, $cfgkey, array( 'order.base.service.attribute' ), $value );
187 187
 	}
188 188
 
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
 		 * @see mshop/order/manager/base/service/attribute/decorators/global
782 782
 		 */
783 783
 
784
-		return $this->getSubManagerBase( 'order', 'base/service/attribute/' . $manager, $name );
784
+		return $this->getSubManagerBase( 'order', 'base/service/attribute/'.$manager, $name );
785 785
 	}
786 786
 
787 787
 
Please login to merge, or discard this patch.