Passed
Push — master ( 0a4aac...7f04e0 )
by Aimeos
05:24
created
lib/mwlib/src/MW/Media/Image/Imagick.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,9 +112,12 @@
 block discarded – undo
112 112
 			}
113 113
 		}
114 114
 
115
-		try {
115
+		try
116
+		{
116 117
 			$this->image->resizeImage( $width, $height, \Imagick::FILTER_CUBIC, 0.8 );
117
-		} catch( \Exception $e ) {
118
+		}
119
+		catch( \Exception $e )
120
+		{
118 121
 			throw new \Aimeos\MW\Media\Exception( $e->getMessage() );
119 122
 		}
120 123
 
Please login to merge, or discard this patch.
lib/mwlib/src/MW/View/Helper/Response/Standard.php 1 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/mwlib/src/MW/Filesystem/Standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,9 +104,12 @@
 block discarded – undo
104 104
 	 */
105 105
 	public function scan( $path = null )
106 106
 	{
107
-		try {
107
+		try
108
+		{
108 109
 			return new \DirectoryIterator( $this->resolve( $path ) );
109
-		} catch( \Exception $e ) {
110
+		}
111
+		catch( \Exception $e )
112
+		{
110 113
 			throw new Exception( $e->getMessage(), 0, $e );
111 114
 		}
112 115
 	}
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Criteria/Expression/Sort/SQL.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -189,12 +189,10 @@
 block discarded – undo
189 189
 			}
190 190
 
191 191
 			return \Aimeos\MW\DB\Statement\Base::PARAM_STR;
192
-		}
193
-		else if( strpos( $item, '.' ) !== false )
192
+		} else if( strpos( $item, '.' ) !== false )
194 193
 		{
195 194
 			return \Aimeos\MW\DB\Statement\Base::PARAM_FLOAT;
196
-		}
197
-		else if( ctype_digit( $item ) !== false )
195
+		} else if( ctype_digit( $item ) !== false )
198 196
 		{
199 197
 			return \Aimeos\MW\DB\Statement\Base::PARAM_INT;
200 198
 		}
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/src/MAdmin/Job/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -218,8 +218,7 @@
 block discarded – undo
218 218
 				 * @see madmin/job/manager/standard/count/ansi
219 219
 				 */
220 220
 				$path = 'madmin/job/manager/standard/insert';
221
-			}
222
-			else
221
+			} else
223 222
 			{
224 223
 				/** madmin/job/manager/standard/update/mysql
225 224
 				 * Updates an existing job record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Manager/Standard.php 1 patch
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.
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.