Completed
Push — master ( 52c730...9eba1c )
by Aimeos
08:52
created
lib/mshoplib/tests/MShop/Coupon/Provider/Decorator/ExampleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 		$this->orderBase = new \Aimeos\MShop\Order\Item\Base\Standard( $priceManager->createItem(), $context->getLocale() );
36 36
 
37 37
 		$provider = new \Aimeos\MShop\Coupon\Provider\Example( $context, $item, 'abcd' );
38
-		$this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Example( $provider, $context, $item, 'abcd');
38
+		$this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Example( $provider, $context, $item, 'abcd' );
39 39
 		$this->object->setObject( $this->object );
40 40
 	}
41 41
 
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Coupon/Provider/Decorator/RequiredTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 		$this->couponItem = \Aimeos\MShop\Coupon\Manager\Factory::createManager( $context )->createItem();
34 34
 
35 35
 		$provider = new \Aimeos\MShop\Coupon\Provider\Example( $context, $this->couponItem, 'abcd' );
36
-		$this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Required( $provider, $context, $this->couponItem, 'abcd');
36
+		$this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Required( $provider, $context, $this->couponItem, 'abcd' );
37 37
 		$this->object->setObject( $this->object );
38 38
 
39 39
 		$orderManager = \Aimeos\MShop\Order\Manager\Factory::createManager( $context );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Locale/Item/Site/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 	{
77 77
 		if( $code == $this->getCode() ) { return $this; }
78 78
 
79
-		$this->values['locale.site.code'] = (string) $this->checkCode( $code );;
79
+		$this->values['locale.site.code'] = (string) $this->checkCode( $code ); ;
80 80
 		$this->setModified();
81 81
 
82 82
 		return $this;
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Order/Item/Base/Service/Attribute/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
 	{
192 192
 		if( $code == $this->getCode() ) { return $this; }
193 193
 
194
-		$this->values['order.base.service.attribute.code'] = (string) $this->checkCode( $code );;
194
+		$this->values['order.base.service.attribute.code'] = (string) $this->checkCode( $code ); ;
195 195
 		$this->setModified();
196 196
 
197 197
 		return $this;
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Order/Item/Base/Service/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
 	{
146 146
 		if( $code == $this->getCode() ) { return $this; }
147 147
 
148
-		$this->values['order.base.service.code'] = (string) $this->checkCode( $code );;
148
+		$this->values['order.base.service.code'] = (string) $this->checkCode( $code ); ;
149 149
 		$this->setModified();
150 150
 
151 151
 		return $this;
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Item/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 	{
65 65
 		if( $code == $this->getCode() ) { return $this; }
66 66
 
67
-		$this->values['service.code'] = (string) $this->checkCode( $code );;
67
+		$this->values['service.code'] = (string) $this->checkCode( $code ); ;
68 68
 		$this->setModified();
69 69
 
70 70
 		return $this;
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 	 * Sets a new starting point of time, in which the service is available.
217 217
 	 *
218 218
 	 * @param string|null New ISO date in YYYY-MM-DD hh:mm:ss format
219
-	 * @return \Aimeos\MShop\Product\Item\Iface Product item for chaining method calls
219
+	 * @return Standard Product item for chaining method calls
220 220
 	 */
221 221
 	public function setDateStart( $date )
222 222
 	{
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	 * Sets a new ending point of time, in which the service is available.
249 249
 	 *
250 250
 	 * @param string|null New ISO date in YYYY-MM-DD hh:mm:ss format
251
-	 * @return \Aimeos\MShop\Product\Item\Iface Product item for chaining method calls
251
+	 * @return Standard Product item for chaining method calls
252 252
 	 */
253 253
 	public function setDateEnd( $date )
254 254
 	{
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Supplier/Item/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 	{
97 97
 		if( $value == $this->getCode() ) { return $this; }
98 98
 
99
-		$this->values['supplier.code'] = (string) $this->checkCode( $value );;
99
+		$this->values['supplier.code'] = (string) $this->checkCode( $value ); ;
100 100
 		$this->setModified();
101 101
 
102 102
 		return $this;
Please login to merge, or discard this patch.
lib/mwlib/src/MW/View/Helper/Response/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
 	 * @return self
153 153
 	 * @throws \InvalidArgumentException for invalid header names or values.
154 154
 	 */
155
-	public function withHeader($name, $value )
155
+	public function withHeader( $name, $value )
156 156
 	{
157 157
 		$this->response = $this->response->withHeader( $name, $value );
158 158
 		return $this;
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	 *
104 104
 	 * @param string $version HTTP protocol version
105 105
 	 * @return self
106
-	*/
106
+	 */
107 107
 	public function withProtocolVersion( $version )
108 108
 	{
109 109
 		$this->response = $this->response->withProtocolVersion( $version );
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	 * @return string[][] Returns an associative array of the message's headers.
118 118
 	 *	 Each key MUST be a header name, and each value MUST be an array of
119 119
 	 *	 strings for that header.
120
-	*/
120
+	 */
121 121
 	public function getHeaders()
122 122
 	{
123 123
 		return $this->response->getHeaders();
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Provider/Decorator/Weight.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 			}
106 106
 		}
107 107
 
108
-		if ($this->checkWeightScale( $this->getWeight( $prodMap ) ) === false) {
108
+		if( $this->checkWeightScale( $this->getWeight( $prodMap ) ) === false ) {
109 109
 			return false;
110 110
 		}
111 111
 
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
 		$min = $this->getConfigValue( array( 'weight.min' ) );
125 125
 		$max = $this->getConfigValue( array( 'weight.max' ) );
126 126
 
127
-		if( $min !== null && ( (float) $min) > $basketWeight ) {
127
+		if( $min !== null && ( (float) $min ) > $basketWeight ) {
128 128
 			return false;
129 129
 		}
130 130
 
131
-		if( $max !== null && ( (float) $max) < $basketWeight ) {
131
+		if( $max !== null && ( (float) $max ) < $basketWeight ) {
132 132
 			return false;
133 133
 		}
134 134
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 		$search->setSlice( 0, 0x7fffffff ); // if more than 100 products are in the basket
175 175
 
176 176
 		foreach( $propertyManager->searchItems( $search ) as $property ) {
177
-			$weight += ((float) $property->getValue()) * $prodMap[$prodIds[$property->getParentId()]];
177
+			$weight += ( (float) $property->getValue() ) * $prodMap[$prodIds[$property->getParentId()]];
178 178
 		}
179 179
 
180 180
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,9 +97,11 @@
 block discarded – undo
97 97
 			$code = $basketItem->getProductCode();
98 98
 			$prodMap[$code] = ( isset( $prodMap[$code] ) ? $prodMap[$code] + $qty : $qty );
99 99
 
100
-			foreach( $basketItem->getProducts() as $prodItem ) // calculate bundled products
100
+			foreach( $basketItem->getProducts() as $prodItem ) {
101
+				// calculate bundled products
101 102
 			{
102 103
 				$qty = $prodItem->getQuantity();
104
+			}
103 105
 				$code = $prodItem->getProductCode();
104 106
 				$prodMap[$code] = ( isset( $prodMap[$code] ) ? $prodMap[$code] + $qty : $qty );
105 107
 			}
Please login to merge, or discard this patch.