Completed
Push — master ( 52c730...9eba1c )
by Aimeos
08:52
created
lib/mwlib/src/MW/DB/Connection/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	 * @param string $data Value to escape
38 38
 	 * @return string Escaped string
39 39
 	 */
40
-	public function escape($data)
40
+	public function escape( $data )
41 41
 	{
42 42
 		$quoted = $this->getRawObject()->quote( $data );
43 43
 
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Criteria/Expression/Combine/PHP.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 		}
93 93
 
94 94
 		if( $this->operator == '!' ) {
95
-			return ' ' . self::$operators[$this->operator] . ' ' . $item->toString( $types, $translations, $plugins );
95
+			return ' '.self::$operators[$this->operator].' '.$item->toString( $types, $translations, $plugins );
96 96
 		}
97 97
 
98 98
 		$string = $item->toString( $types, $translations, $plugins );
@@ -100,11 +100,11 @@  discard block
 block discarded – undo
100 100
 		while( ( $item = next( $this->expressions ) ) !== false )
101 101
 		{
102 102
 			if( ( $itemstr = $item->toString( $types, $translations, $plugins ) ) !== '' ) {
103
-				$string .= ' ' . self::$operators[$this->operator] . ' ' . $itemstr;
103
+				$string .= ' '.self::$operators[$this->operator].' '.$itemstr;
104 104
 			}
105 105
 		}
106 106
 
107
-		return '( ' . $string . ' )';
107
+		return '( '.$string.' )';
108 108
 	}
109 109
 
110 110
 
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Criteria/Expression/Combine/SQL.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 		$string = $item->toString( $types, $translations, $plugins );
95 95
 
96 96
 		if( $this->operator == '!' && $string !== '' ) {
97
-			return ' ' . self::$operators[$this->operator] . ' ' . $string;
97
+			return ' '.self::$operators[$this->operator].' '.$string;
98 98
 		}
99 99
 
100 100
 		while( ( $item = next( $this->expressions ) ) !== false )
@@ -102,14 +102,14 @@  discard block
 block discarded – undo
102 102
 			if( ( $itemstr = $item->toString( $types, $translations, $plugins ) ) !== '' )
103 103
 			{
104 104
 				if( $string !== '' ) {
105
-					$string .= ' ' . self::$operators[$this->operator] . ' ' . $itemstr;
105
+					$string .= ' '.self::$operators[$this->operator].' '.$itemstr;
106 106
 				} else {
107 107
 					$string = $itemstr;
108 108
 				}
109 109
 			}
110 110
 		}
111 111
 
112
-		return '( ' . $string . ' )';
112
+		return '( '.$string.' )';
113 113
 	}
114 114
 
115 115
 
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Config/Iface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	 * @param mixed $default Value returned if requested key isn't found
28 28
 	 * @return mixed Value associated to the requested key
29 29
 	 */
30
-	public function get($name, $default = null);
30
+	public function get( $name, $default = null );
31 31
 
32 32
 	/**
33 33
 	 * Sets the value for the specified key.
@@ -36,5 +36,5 @@  discard block
 block discarded – undo
36 36
 	 * @param mixed $value Value that should be associated with the given path
37 37
 	 * @return null
38 38
 	 */
39
-	public function set($name, $value);
39
+	public function set( $name, $value );
40 40
 }
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Config/Decorator/Memory.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 	{
53 53
 		$name = trim( $name, '/' );
54 54
 
55
-		if( isset( $this->negCache[ $name ] ) ) {
55
+		if( isset( $this->negCache[$name] ) ) {
56 56
 			return $default;
57 57
 		}
58 58
 
59 59
 		if( array_key_exists( $name, $this->cache ) ) {
60
-			return $this->cache[ $name ];
60
+			return $this->cache[$name];
61 61
 		}
62 62
 
63 63
 		if( ( $value = $this->getValueFromArray( $this->config, explode( '/', $name ) ) ) === null ) {
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
 
67 67
 		if( $value === null )
68 68
 		{
69
-			$this->negCache[ $name ] = true;
69
+			$this->negCache[$name] = true;
70 70
 			return $default;
71 71
 		}
72 72
 
73
-		$this->cache[ $name ] = $value;
73
+		$this->cache[$name] = $value;
74 74
 		return $value;
75 75
 	}
76 76
 
@@ -87,15 +87,15 @@  discard block
 block discarded – undo
87 87
 
88 88
 		if( $value !== null )
89 89
 		{
90
-			$this->cache[ $name ] = $value;
90
+			$this->cache[$name] = $value;
91 91
 
92
-			if( isset( $this->negCache[ $name ] ) ) {
93
-				unset( $this->negCache[ $name ] );
92
+			if( isset( $this->negCache[$name] ) ) {
93
+				unset( $this->negCache[$name] );
94 94
 			}
95 95
 		}
96 96
 		else
97 97
 		{
98
-			$this->negCache[ $name ] = true;
98
+			$this->negCache[$name] = true;
99 99
 		}
100 100
 
101 101
 		// don't store local configuration
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@
 block discarded – undo
92 92
 			if( isset( $this->negCache[ $name ] ) ) {
93 93
 				unset( $this->negCache[ $name ] );
94 94
 			}
95
-		}
96
-		else
95
+		} else
97 96
 		{
98 97
 			$this->negCache[ $name ] = true;
99 98
 		}
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Service/Provider/Payment/BaseTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
 
20 20
 		$servManager = \Aimeos\MShop\Service\Manager\Factory::createManager( $this->context );
21 21
 		$search = $servManager->createSearch();
22
-		$search->setConditions($search->compare('==', 'service.provider', 'Standard'));
23
-		$result = $servManager->searchItems($search, array('price'));
22
+		$search->setConditions( $search->compare( '==', 'service.provider', 'Standard' ) );
23
+		$result = $servManager->searchItems( $search, array( 'price' ) );
24 24
 
25 25
 		if( ( $item = reset( $result ) ) === false ) {
26 26
 			throw new \RuntimeException( 'No order base item found' );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Manager/Standard.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -337,8 +337,7 @@
 block discarded – undo
337 337
 				 * @see mshop/service/manager/standard/count/ansi
338 338
 				 */
339 339
 				$path = 'mshop/service/manager/standard/insert';
340
-			}
341
-			else
340
+			} else
342 341
 			{
343 342
 				/** mshop/service/manager/standard/update/mysql
344 343
 				 * Updates an existing service record in the database
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -455,6 +455,7 @@
 block discarded – undo
455 455
 	 * @param \Aimeos\MW\Criteria\Iface $search Search criteria object
456 456
 	 * @param string[] $ref List of domains to fetch list items and referenced items for
457 457
 	 * @param integer|null &$total Number of items that are available in total
458
+	 * @param integer $total
458 459
 	 * @return array List of service items implementing \Aimeos\MShop\Service\Item\Iface
459 460
 	 */
460 461
 	public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null )
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Media/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -324,8 +324,7 @@
 block discarded – undo
324 324
 				 * @see mshop/media/manager/standard/count/ansi
325 325
 				 */
326 326
 				$path = 'mshop/media/manager/standard/insert';
327
-			}
328
-			else
327
+			} else
329 328
 			{
330 329
 				/** mshop/media/manager/standard/update/mysql
331 330
 				 * Updates an existing media record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Text/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,8 +210,7 @@
 block discarded – undo
210 210
 				 * @see mshop/text/manager/standard/count/ansi
211 211
 				 */
212 212
 				$path = 'mshop/text/manager/standard/insert';
213
-			}
214
-			else
213
+			} else
215 214
 			{
216 215
 				/** mshop/text/manager/standard/update/mysql
217 216
 				 * Updates an existing text record in the database
Please login to merge, or discard this patch.