Completed
Push — master ( 7ac949...d0dda4 )
by Aimeos
11:16
created
lib/mshoplib/setup/default/schema/index.php 2 patches
Braces   +8 added lines, -4 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_index_attribute' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
19
+		'mshop_index_attribute' => function ( \Doctrine\DBAL\Schema\Schema $schema )
20
+		{
20 21
 
21 22
 			$table = $schema->createTable( 'mshop_index_attribute' );
22 23
 
@@ -37,7 +38,8 @@  discard block
 block discarded – undo
37 38
 			return $schema;
38 39
 		},
39 40
 
40
-		'mshop_index_catalog' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
41
+		'mshop_index_catalog' => function ( \Doctrine\DBAL\Schema\Schema $schema )
42
+		{
41 43
 
42 44
 			$table = $schema->createTable( 'mshop_index_catalog' );
43 45
 
@@ -56,7 +58,8 @@  discard block
 block discarded – undo
56 58
 			return $schema;
57 59
 		},
58 60
 
59
-		'mshop_index_price' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
61
+		'mshop_index_price' => function ( \Doctrine\DBAL\Schema\Schema $schema )
62
+		{
60 63
 
61 64
 			$table = $schema->createTable( 'mshop_index_price' );
62 65
 
@@ -82,7 +85,8 @@  discard block
 block discarded – undo
82 85
 			return $schema;
83 86
 		},
84 87
 
85
-		'mshop_index_text' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
88
+		'mshop_index_text' => function ( \Doctrine\DBAL\Schema\Schema $schema )
89
+		{
86 90
 
87 91
 			$table = $schema->createTable( 'mshop_index_text' );
88 92
 			$table->addOption( 'engine', 'MyISAM' );
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 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_index_attribute' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
19
+		'mshop_index_attribute' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
20 20
 
21 21
 			$table = $schema->createTable( 'mshop_index_attribute' );
22 22
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 			return $schema;
38 38
 		},
39 39
 
40
-		'mshop_index_catalog' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
40
+		'mshop_index_catalog' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
41 41
 
42 42
 			$table = $schema->createTable( 'mshop_index_catalog' );
43 43
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 			return $schema;
57 57
 		},
58 58
 
59
-		'mshop_index_price' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
59
+		'mshop_index_price' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
60 60
 
61 61
 			$table = $schema->createTable( 'mshop_index_price' );
62 62
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 			return $schema;
83 83
 		},
84 84
 
85
-		'mshop_index_text' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
85
+		'mshop_index_text' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
86 86
 
87 87
 			$table = $schema->createTable( 'mshop_index_text' );
88 88
 			$table->addOption( 'engine', 'MyISAM' );
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 			$table->addColumn( 'listtype', 'string', array( 'length' => 32 ) );
94 94
 			$table->addColumn( 'domain', 'string', array( 'length' => 32 ) );
95 95
 			$table->addColumn( 'type', 'string', array( 'length' => 32 ) );
96
-			$table->addColumn( 'langid', 'string', array( 'length' => 5, 'notnull' => false  ) );
96
+			$table->addColumn( 'langid', 'string', array( 'length' => 5, 'notnull' => false ) );
97 97
 			$table->addColumn( 'value', 'text', array( 'length' => 0xffff ) );
98 98
 			$table->addColumn( 'mtime', 'datetime', [] );
99 99
 			$table->addColumn( 'ctime', 'datetime', [] );
Please login to merge, or discard this patch.
lib/mshoplib/setup/unitperf/ProductAddColorPerfData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
227 227
 			throw new \RuntimeException( 'Unable to destroy image' );
228 228
 		}
229 229
 
230
-		return 'data:' . $mime . ';base64,' . base64_encode( $image );
230
+		return 'data:'.$mime.';base64,'.base64_encode( $image );
231 231
 	}
232 232
 
233 233
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/OrderRenameTables.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,7 @@
 block discarded – undo
76 76
 			{
77 77
 				$this->executeList( $stmtList );
78 78
 				$this->status( 'renamed' );
79
-			}
80
-			else
79
+			} else
81 80
 			{
82 81
 				$this->status( 'OK' );
83 82
 			}
Please login to merge, or discard this patch.
controller/common/src/Controller/Common/Order/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
 		foreach( $bundleItems as $bundleItem )
166 166
 		{
167 167
 			foreach( $bundleItem->getRefItems( 'product', null, 'default' ) as $item ) {
168
-				$bundleMap[ $item->getCode() ][] = $bundleItem->getCode();
168
+				$bundleMap[$item->getCode()][] = $bundleItem->getCode();
169 169
 			}
170 170
 		}
171 171
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -333,7 +333,8 @@
 block discarded – undo
333 333
 				{
334 334
 					$stockManager->increase( $item->getProductCode(), $item->getStockType(), $how * $item->getQuantity() );
335 335
 
336
-					switch( $item->getType() ) {
336
+					switch( $item->getType() )
337
+					{
337 338
 						case 'default':
338 339
 							$this->updateStockBundle( $item->getProductId(), $item->getStockType() ); break;
339 340
 						case 'select':
Please login to merge, or discard this patch.
Bootstrap.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 			$basedir = __DIR__;
37 37
 		}
38 38
 
39
-		if( $defaultdir === true && is_dir( $basedir . DIRECTORY_SEPARATOR . 'ext' ) === true ) {
40
-			$extdirs[] = realpath( $basedir . DIRECTORY_SEPARATOR . 'ext' );
39
+		if( $defaultdir === true && is_dir( $basedir.DIRECTORY_SEPARATOR.'ext' ) === true ) {
40
+			$extdirs[] = realpath( $basedir.DIRECTORY_SEPARATOR.'ext' );
41 41
 		}
42 42
 
43 43
 		$this->manifests[$basedir] = $this->getManifestFile( $basedir );
@@ -58,15 +58,15 @@  discard block
 block discarded – undo
58 58
 	 */
59 59
 	public static function autoload( $className )
60 60
 	{
61
-		$fileName = strtr( ltrim( $className, '\\' ), '\\_', DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR ) . '.php';
61
+		$fileName = strtr( ltrim( $className, '\\' ), '\\_', DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR ).'.php';
62 62
 
63
-		if( strncmp( $fileName, 'Aimeos' . DIRECTORY_SEPARATOR, 7 ) === 0 ) {
63
+		if( strncmp( $fileName, 'Aimeos'.DIRECTORY_SEPARATOR, 7 ) === 0 ) {
64 64
 			$fileName = substr( $fileName, 7 );
65 65
 		}
66 66
 
67 67
 		foreach( self::$includePaths as $path )
68 68
 		{
69
-			$file = $path . DIRECTORY_SEPARATOR . $fileName;
69
+			$file = $path.DIRECTORY_SEPARATOR.$fileName;
70 70
 
71 71
 			if( file_exists( $file ) === true && ( include_once $file ) !== false ) {
72 72
 				return true;
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
 		foreach( explode( PATH_SEPARATOR, get_include_path() ) as $path )
77 77
 		{
78
-			$file = $path . DIRECTORY_SEPARATOR . $fileName;
78
+			$file = $path.DIRECTORY_SEPARATOR.$fileName;
79 79
 
80 80
 			if( file_exists( $file ) === true && ( include_once $file ) !== false ) {
81 81
 				return true;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 			}
103 103
 
104 104
 			foreach( $manifest['i18n'] as $domain => $location ) {
105
-				$paths[$domain][] = $basePath . DIRECTORY_SEPARATOR . $location;
105
+				$paths[$domain][] = $basePath.DIRECTORY_SEPARATOR.$location;
106 106
 			}
107 107
 		}
108 108
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 			}
127 127
 
128 128
 			foreach( $manifest['include'] as $paths ) {
129
-				$includes[] = $path . DIRECTORY_SEPARATOR . $paths;
129
+				$includes[] = $path.DIRECTORY_SEPARATOR.$paths;
130 130
 			}
131 131
 		}
132 132
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 			}
151 151
 
152 152
 			foreach( (array) $manifest['config'] as $relpath ) {
153
-				$confpaths[] = $path . DIRECTORY_SEPARATOR . $relpath;
153
+				$confpaths[] = $path.DIRECTORY_SEPARATOR.$relpath;
154 154
 			}
155 155
 		}
156 156
 
@@ -197,9 +197,9 @@  discard block
 block discarded – undo
197 197
 
198 198
 			foreach( $manifest['setup'] as $relpath )
199 199
 			{
200
-				$setupPaths[] = $path . DIRECTORY_SEPARATOR . $relpath;
200
+				$setupPaths[] = $path.DIRECTORY_SEPARATOR.$relpath;
201 201
 
202
-				$sitePath = $path . DIRECTORY_SEPARATOR . $relpath . DIRECTORY_SEPARATOR . $site;
202
+				$sitePath = $path.DIRECTORY_SEPARATOR.$relpath.DIRECTORY_SEPARATOR.$site;
203 203
 
204 204
 				if( is_dir( realpath( $sitePath ) ) ) {
205 205
 					$setupPaths[] = $sitePath;
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 			{
232 232
 				$name = $file->getFilename();
233 233
 
234
-				if( $file->isFile() && preg_match('/^[a-z]{2,3}(_[A-Z]{2})?$/', $name ) ) {
234
+				if( $file->isFile() && preg_match( '/^[a-z]{2,3}(_[A-Z]{2})?$/', $name ) ) {
235 235
 					$list[$name] = null;
236 236
 				}
237 237
 			}
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 	 */
292 292
 	protected function getManifestFile( $dir )
293 293
 	{
294
-		$manifestFile = $dir . DIRECTORY_SEPARATOR . 'manifest.php';
294
+		$manifestFile = $dir.DIRECTORY_SEPARATOR.'manifest.php';
295 295
 
296 296
 		if( is_dir( $dir ) && file_exists( $manifestFile ) ) {
297 297
 			return include $manifestFile;
@@ -314,8 +314,8 @@  discard block
 block discarded – undo
314 314
 
315 315
 		$ds = DIRECTORY_SEPARATOR;
316 316
 
317
-		if( is_file( __DIR__ . $ds . 'vendor' . $ds . 'autoload.php' ) ) {
318
-			require __DIR__ . $ds . 'vendor' . $ds . 'autoload.php';
317
+		if( is_file( __DIR__.$ds.'vendor'.$ds.'autoload.php' ) ) {
318
+			require __DIR__.$ds.'vendor'.$ds.'autoload.php';
319 319
 		}
320 320
 	}
321 321
 
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Criteria/SQLTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 		$this->object->setConditions( $this->object->combine( '&&', $expr ) );
121 121
 		$this->assertEquals( "( int_col = 1 AND ( str_col = 'test' ) )", $this->object->getConditionString( $types, $translations ) );
122 122
 
123
-		$types = array( 'column' => \Aimeos\MW\DB\Statement\Base::PARAM_BOOL);
123
+		$types = array( 'column' => \Aimeos\MW\DB\Statement\Base::PARAM_BOOL );
124 124
 		$this->object->setConditions( $this->object->compare( '==', 'column', 1 ) );
125 125
 		$this->assertEquals( "column = 1", $this->object->getConditionString( $types ) );
126 126
 	}
@@ -131,14 +131,14 @@  discard block
 block discarded – undo
131 131
 		$types = array( 'int_column' => \Aimeos\MW\DB\Statement\Base::PARAM_INT );
132 132
 
133 133
 		$this->object->setConditions( $this->object->compare( '==', 'icol', 10 ) );
134
-		$this->setExpectedException('\\Aimeos\\MW\\Common\\Exception');
134
+		$this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' );
135 135
 		$this->object->getConditionString( $types );
136 136
 	}
137 137
 
138 138
 
139 139
 	public function testGetConditionStringInvalidOperator()
140 140
 	{
141
-		$this->setExpectedException('\\Aimeos\\MW\\Common\\Exception');
141
+		$this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' );
142 142
 		$this->object->setConditions( $this->object->compare( '?', 'int_column', 10 ) );
143 143
 	}
144 144
 
@@ -172,14 +172,14 @@  discard block
 block discarded – undo
172 172
 		$translations = array( 'asc_column' => 'asc_int_col' );
173 173
 
174 174
 		$this->object->setSortations( array( $this->object->sort( '+', 'asc_col' ) ) );
175
-		$this->setExpectedException('\\Aimeos\\MW\\Common\\Exception');
175
+		$this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' );
176 176
 		$this->object->getSortationString( $types, $translations );
177 177
 	}
178 178
 
179 179
 
180 180
 	public function testGetSortationStringInvalidDirection()
181 181
 	{
182
-		$this->setExpectedException('\\Aimeos\\MW\\Common\\Exception');
182
+		$this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' );
183 183
 		$this->object->setSortations( array( $this->object->sort( '/', 'asc_column' ) ) );
184 184
 	}
185 185
 
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
 	{
189 189
 		$types = array( 'asc_column' => \Aimeos\MW\DB\Statement\Base::PARAM_INT, 'desc_column' => \Aimeos\MW\DB\Statement\Base::PARAM_STR );
190 190
 
191
-		$this->assertEquals('asc_column ASC', $this->object->getSortationString( $types ) );
191
+		$this->assertEquals( 'asc_column ASC', $this->object->getSortationString( $types ) );
192 192
 
193 193
 		$translations = array( 'asc_column' => 'asc_int_col', 'desc_column' => 'desc_str_col' );
194
-		$this->assertEquals('asc_int_col ASC', $this->object->getSortationString( $types, $translations ));
194
+		$this->assertEquals( 'asc_int_col ASC', $this->object->getSortationString( $types, $translations ) );
195 195
 	}
196 196
 
197 197
 
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Criteria/PHPTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -78,44 +78,44 @@  discard block
 block discarded – undo
78 78
 
79 79
 		$result = $this->object->getConditionString( $types, $translations );
80 80
 		$this->assertEquals( "1 == 1", $result );
81
-		$this->assertEquals( true, eval( 'return ' . $result . ';' ) );
81
+		$this->assertEquals( true, eval( 'return '.$result.';' ) );
82 82
 
83 83
 		$expr = array( $this->object->compare( '==', 'int_value', 'a' ), $this->object->compare( '==', 'str_value', 'test' ) );
84 84
 		$this->object->setConditions( $this->object->combine( '&&', $expr ) );
85 85
 		$result = $this->object->getConditionString( $types, $translations, $plugins );
86 86
 		$this->assertEquals( "( \$intval == 10 && \$strval == 'test' )", $result );
87
-		$this->assertEquals( false, eval( 'return ' . $result . ';' ) );
87
+		$this->assertEquals( false, eval( 'return '.$result.';' ) );
88 88
 
89 89
 		$expr = array( $this->object->compare( '==', 'int_value', array( 1, 2, 4, 8 ) ), $this->object->compare( '==', 'str_value', 'test' ) );
90 90
 		$this->object->setConditions( $this->object->combine( '&&', $expr ) );
91 91
 		$result = $this->object->getConditionString( $types, $translations );
92 92
 		$this->assertEquals( "( ( \$intval == 1 || \$intval == 2 || \$intval == 4 || \$intval == 8 ) && \$strval == 'test' )", $result );
93
-		$this->assertEquals( true, eval( 'return ' . $result . ';' ) );
93
+		$this->assertEquals( true, eval( 'return '.$result.';' ) );
94 94
 
95 95
 		$expr = array( $this->object->compare( '==', 'int_value', 1 ), $this->object->compare( '!=', 'int_value', 2 ) );
96 96
 		$this->object->setConditions( $this->object->combine( '!', array( $this->object->combine( '&&', $expr ) ) ) );
97 97
 		$result = $this->object->getConditionString( $types, $translations );
98 98
 		$this->assertEquals( " ! ( \$intval == 1 && \$intval != 2 )", $result );
99
-		$this->assertEquals( false, eval( 'return ' . $result . ';' ) );
99
+		$this->assertEquals( false, eval( 'return '.$result.';' ) );
100 100
 
101 101
 		$expr = array( $this->object->compare( '==', 'int_value', null ), $this->object->compare( '!=', 'str_value', null ) );
102 102
 		$this->object->setConditions( $this->object->combine( '&&', $expr ) );
103 103
 		$result = $this->object->getConditionString( $types, $translations );
104 104
 		$this->assertEquals( "( \$intval === null && \$strval !== null )", $result );
105
-		$this->assertEquals( false, eval( 'return ' . $result . ';' ) );
105
+		$this->assertEquals( false, eval( 'return '.$result.';' ) );
106 106
 
107 107
 		$expr = array( $this->object->compare( '==', 'int_value', 1 ) );
108 108
 		$this->object->setConditions( $this->object->combine( '&&', $expr ) );
109 109
 		$result = $this->object->getConditionString( $types, $translations );
110 110
 		$this->assertEquals( "( \$intval == 1 )", $result );
111
-		$this->assertEquals( true, eval( 'return ' . $result . ';' ) );
111
+		$this->assertEquals( true, eval( 'return '.$result.';' ) );
112 112
 
113 113
 		$expr = array( $this->object->compare( '==', 'str_value', 'test' ) );
114 114
 		$expr = array( $this->object->compare( '==', 'int_value', 1 ), $this->object->combine( '&&', $expr ) );
115 115
 		$this->object->setConditions( $this->object->combine( '&&', $expr ) );
116 116
 		$result = $this->object->getConditionString( $types, $translations );
117 117
 		$this->assertEquals( "( \$intval == 1 && ( \$strval == 'test' ) )", $result );
118
-		$this->assertEquals( true, eval( 'return ' . $result . ';' ) );
118
+		$this->assertEquals( true, eval( 'return '.$result.';' ) );
119 119
 
120 120
 		$types = array( 'column' => 'bool' );
121 121
 		$this->object->setConditions( $this->object->compare( '==', 'column', 1 ) );
@@ -128,14 +128,14 @@  discard block
 block discarded – undo
128 128
 		$types = array( 'int_value' => \Aimeos\MW\DB\Statement\Base::PARAM_INT );
129 129
 
130 130
 		$this->object->setConditions( $this->object->compare( '==', 'ival', 10 ) );
131
-		$this->setExpectedException('\\Aimeos\\MW\\Common\\Exception');
131
+		$this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' );
132 132
 		$this->object->getConditionString( $types );
133 133
 	}
134 134
 
135 135
 
136 136
 	public function testGetConditionStringInvalidOperator()
137 137
 	{
138
-		$this->setExpectedException('\\Aimeos\\MW\\Common\\Exception');
138
+		$this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' );
139 139
 		$this->object->setConditions( $this->object->compare( '?', 'int_value', 10 ) );
140 140
 	}
141 141
 
@@ -176,14 +176,14 @@  discard block
 block discarded – undo
176 176
 		$translations = array( 'asc_array' => 'asc_int_list' );
177 177
 
178 178
 		$this->object->setSortations( array( $this->object->sort( '+', 'asc_col' ) ) );
179
-		$this->setExpectedException('\\Aimeos\\MW\\Common\\Exception');
179
+		$this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' );
180 180
 		$this->object->getSortationString( $types, $translations );
181 181
 	}
182 182
 
183 183
 
184 184
 	public function testGetSortationStringInvalidDirection()
185 185
 	{
186
-		$this->setExpectedException('\\Aimeos\\MW\\Common\\Exception');
186
+		$this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' );
187 187
 		$this->object->setSortations( array( $this->object->sort( '/', 'asc_array' ) ) );
188 188
 	}
189 189
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 		$translations = array( 'asc_array' => '$ascIntList', 'desc_array' => '$descStrList' );
197 197
 
198 198
 		$result = $this->object->getSortationString( $types, $translations );
199
-		$this->assertEquals('asort($ascIntList);', $result);
199
+		$this->assertEquals( 'asort($ascIntList);', $result );
200 200
 		$this->assertEquals( array( 0 => 1, 2 => 5, 1 => 9 ), $ascIntList );
201 201
 	}
202 202
 
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Criteria/Expression/Compare/PHPTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
 			'undefined' => '$undefined',
78 78
 		);
79 79
 
80
-		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'listitem', array('a', 'b', 'c') );
80
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'listitem', array( 'a', 'b', 'c' ) );
81 81
 		$this->assertEquals( "( \$listitem == 'a' || \$listitem == 'b' || \$listitem == 'c' )", $expr->toString( $types, $translations ) );
82 82
 
83
-		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '!=', 'listitem', array('a', 'b') );
83
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '!=', 'listitem', array( 'a', 'b' ) );
84 84
 		$this->assertEquals( "( \$listitem != 'a' && \$listitem != 'b' )", $expr->toString( $types, $translations ) );
85 85
 
86 86
 		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'stringvar', 'value' );
@@ -89,16 +89,16 @@  discard block
 block discarded – undo
89 89
 		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '<', 'floatvar', 0.1 );
90 90
 		$this->assertEquals( '$floatvar < 0.1', $expr->toString( $types, $translations ) );
91 91
 
92
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PHP( '>', 'intvar', 10 );
92
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '>', 'intvar', 10 );
93 93
 		$this->assertEquals( '$intvar > 10', $expr->toString( $types, $translations ) );
94 94
 
95
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'boolvar', true );
95
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'boolvar', true );
96 96
 		$this->assertEquals( '$boolvar == 1', $expr->toString( $types, $translations ) );
97 97
 
98
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PHP( '!=', 'undefined', null );
98
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '!=', 'undefined', null );
99 99
 		$this->assertEquals( '$undefined !== null', $expr->toString( $types, $translations ) );
100 100
 
101
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'undefined', null );
101
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'undefined', null );
102 102
 		$this->assertEquals( '$undefined === null', $expr->toString( $types, $translations ) );
103 103
 
104 104
 
@@ -124,15 +124,15 @@  discard block
 block discarded – undo
124 124
 			'undefined' => '$undefined',
125 125
 		);
126 126
 
127
-		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '>=', 'listitem', array('a', 'b') );
128
-		$this->setExpectedException('\\Aimeos\\MW\\Common\\Exception');
127
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '>=', 'listitem', array( 'a', 'b' ) );
128
+		$this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' );
129 129
 		$expr->toString( $types, $translations );
130 130
 	}
131 131
 
132 132
 	public function testToStringExcept2()
133 133
 	{
134
-		$this->setExpectedException('\\Aimeos\\MW\\Common\\Exception');
135
-		new \Aimeos\MW\Criteria\Expression\Compare\PHP('=', 'undefined', null);
134
+		$this->setExpectedException( '\\Aimeos\\MW\\Common\\Exception' );
135
+		new \Aimeos\MW\Criteria\Expression\Compare\PHP( '=', 'undefined', null );
136 136
 	}
137 137
 
138 138
 	public function testToStringFunction()
Please login to merge, or discard this patch.
lib/mshoplib/setup/OrderMigrateFlag.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@  discard block
 block discarded – undo
78 78
 			{
79 79
 				$this->execute( $stmts['index'] );
80 80
 				$this->status( 'dropped' );
81
-			}
82
-			else
81
+			} else
83 82
 			{
84 83
 				$this->status( 'OK' );
85 84
 			}
@@ -125,8 +124,7 @@  discard block
 block discarded – undo
125 124
 				} else {
126 125
 					$this->status( 'OK' );
127 126
 				}
128
-			}
129
-			else
127
+			} else
130 128
 			{
131 129
 				$this->status( 'OK' );
132 130
 			}
Please login to merge, or discard this patch.