Passed
Push — master ( b7c60c...771ab2 )
by Aimeos
05:10
created
lib/mwlib/src/MW/Convert/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 			return new \Aimeos\MW\Convert\Compose( $list );
39 39
 		}
40 40
 
41
-		return self::createObject( $keys );;
41
+		return self::createObject( $keys ); ;
42 42
 	}
43 43
 
44 44
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 			throw new \Aimeos\MW\Convert\Exception( sprintf( 'Class "%1$s" not available', $classname ) );
69 69
 		}
70 70
 
71
-		$object =  new $classname();
71
+		$object = new $classname();
72 72
 
73 73
 		if( !( $object instanceof $iface ) ) {
74 74
 			throw new \Aimeos\MW\Convert\Exception( sprintf( 'Class "%1$s" does not implement interface "%2$s"', $classname, $iface ) );
Please login to merge, or discard this patch.
lib/mwlib/src/MW/View/Helper/Content/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 	 */
54 54
 	public function transform( $url )
55 55
 	{
56
-		if( strncmp( $url, 'http', 4 ) !== 0 && strncmp( $url, 'data:', 5 ) !== 0  && strncmp( $url, '/', 1 ) !== 0 ) {
56
+		if( strncmp( $url, 'http', 4 ) !== 0 && strncmp( $url, 'data:', 5 ) !== 0 && strncmp( $url, '/', 1 ) !== 0 ) {
57 57
 			$url = $this->baseurl . '/' . $url;
58 58
 		}
59 59
 
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Media/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 		$mime = explode( '/', $mimetype );
50 50
 
51 51
 		$type = ( $mime[0] === 'image' ? 'Image' : 'Application' );
52
-		$name = ( isset( $options[ $mime[0] ]['name'] ) ? ucfirst( $options[ $mime[0] ]['name'] ) : 'Standard' );
52
+		$name = ( isset( $options[$mime[0]]['name'] ) ? ucfirst( $options[$mime[0]]['name'] ) : 'Standard' );
53 53
 
54 54
 
55 55
 		if( ctype_alnum( $name ) === false )
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Container/FileTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 				$rows[] = $row;
94 94
 			}
95 95
 
96
-			$actual[ $entry->getName() ] = count( $rows );
96
+			$actual[$entry->getName()] = count( $rows );
97 97
 		}
98 98
 
99 99
 		$this->assertEquals( $expected, $actual );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Container/DirectoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 				$rows[] = $row;
94 94
 			}
95 95
 
96
-			$actual[ $entry->getName() ] = count( $rows );
96
+			$actual[$entry->getName()] = count( $rows );
97 97
 		}
98 98
 
99 99
 		$this->assertEquals( $expected, $actual );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Supplier/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -521,7 +521,7 @@
 block discarded – undo
521 521
 
522 522
 					try {
523 523
 						$stmt->execute()->finish();
524
-					} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
524
+					} catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates
525 525
 				}
526 526
 			}
527 527
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -472,9 +472,13 @@
 block discarded – undo
472 472
 					$stmt->bind( 5, $date ); //mtime
473 473
 					$stmt->bind( 6, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
474 474
 
475
-					try {
475
+					try
476
+					{
476 477
 						$stmt->execute()->finish();
477
-					} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
478
+					}
479
+					catch( \Aimeos\MW\DB\Exception $e )
480
+					{
481
+; } // Ignore duplicates
478 482
 				}
479 483
 			}
480 484
 
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Cache/DB.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@
 block discarded – undo
254 254
 			$result = $stmt->execute();
255 255
 
256 256
 			while( ( $row = $result->fetch() ) !== false ) {
257
-				$list[ $row['id'] ] = (string) $row['value'];
257
+				$list[$row['id']] = (string) $row['value'];
258 258
 			}
259 259
 
260 260
 			$this->dbm->release( $conn, $this->dbname );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Criteria/Expression/Compare/SQLTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,10 +85,10 @@  discard block
 block discarded – undo
85 85
 			'bool' => 't.bool',
86 86
 		);
87 87
 
88
-		$expr = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '==', 'list', array('a', 'b', 'c') );
88
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '==', 'list', array( 'a', 'b', 'c' ) );
89 89
 		$this->assertEquals( "t.list IN ('a','b','c')", $expr->toSource( $types, $translations ) );
90 90
 
91
-		$expr = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '!=', 'list', array('a', 'b', 'c') );
91
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '!=', 'list', array( 'a', 'b', 'c' ) );
92 92
 		$this->assertEquals( "t.list NOT IN ('a','b','c')", $expr->toSource( $types, $translations ) );
93 93
 
94 94
 		$expr = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '~=', 'string', 'value' );
@@ -97,13 +97,13 @@  discard block
 block discarded – undo
97 97
 		$expr = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '<', 'float', 0.1 );
98 98
 		$this->assertEquals( "t.float < 0.1", $expr->toSource( $types, $translations ) );
99 99
 
100
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '>', 'int', 10 );
100
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '>', 'int', 10 );
101 101
 		$this->assertEquals( "t.int > 10", $expr->toSource( $types, $translations ) );
102 102
 
103
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '!=', 'undefined', null );
103
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '!=', 'undefined', null );
104 104
 		$this->assertEquals( "t.undefined IS NOT NULL", $expr->toSource( $types, $translations ) );
105 105
 
106
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '==', 'bool', true );
106
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $this->conn, '==', 'bool', true );
107 107
 		$this->assertEquals( "t.bool = 1", $expr->toSource( $types, $translations ) );
108 108
 	}
109 109
 
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Criteria/Expression/Compare/PgSQLTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
 			'bool' => 't.bool',
53 53
 		);
54 54
 
55
-		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'list', array('a', 'b', 'c') );
55
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'list', array( 'a', 'b', 'c' ) );
56 56
 		$this->assertEquals( "t.list IN ('a','b','c')", $expr->toSource( $types, $translations ) );
57 57
 
58
-		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '!=', 'list', array('a', 'b', 'c') );
58
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '!=', 'list', array( 'a', 'b', 'c' ) );
59 59
 		$this->assertEquals( "t.list NOT IN ('a','b','c')", $expr->toSource( $types, $translations ) );
60 60
 
61 61
 		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '~=', 'string', 'value' );
@@ -64,16 +64,16 @@  discard block
 block discarded – undo
64 64
 		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '<', 'float', 0.1 );
65 65
 		$this->assertEquals( "t.float < 0.1", $expr->toSource( $types, $translations ) );
66 66
 
67
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '>', 'int', 10 );
67
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '>', 'int', 10 );
68 68
 		$this->assertEquals( "t.int > 10", $expr->toSource( $types, $translations ) );
69 69
 
70
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '!=', 'undefined', null );
70
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '!=', 'undefined', null );
71 71
 		$this->assertEquals( "t.undefined IS NOT NULL", $expr->toSource( $types, $translations ) );
72 72
 
73
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'bool', true );
73
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'bool', true );
74 74
 		$this->assertEquals( "t.bool = 't'", $expr->toSource( $types, $translations ) );
75 75
 
76
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'bool', false );
76
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PgSQL( $this->conn, '==', 'bool', false );
77 77
 		$this->assertEquals( "t.bool = 'f'", $expr->toSource( $types, $translations ) );
78 78
 	}
79 79
 }
Please login to merge, or discard this patch.