Passed
Push — master ( f7bbd3...17cd43 )
by Aimeos
04:27
created
lib/mwlib/tests/MW/Logger/DBTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
 
103 103
 		$this->setExpectedException( \Aimeos\MW\Logger\Exception::class );
104
-		$this->object->log( 'wrong log level', -1);
104
+		$this->object->log( 'wrong log level', -1 );
105 105
 	}
106 106
 
107 107
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 		$conn = self::$dbm->acquire();
111 111
 		$conn->create( 'DELETE FROM "mw_log_test"' )->execute()->finish();
112 112
 
113
-		$this->object->log( array ( 'scalar', 'errortest' ) );
113
+		$this->object->log( array( 'scalar', 'errortest' ) );
114 114
 
115 115
 		$result = $conn->create( 'SELECT * FROM "mw_log_test"' )->execute();
116 116
 
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Logger/FileTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,13 +54,13 @@
 block discarded – undo
54 54
 
55 55
 
56 56
 		$this->setExpectedException( \Aimeos\MW\Logger\Exception::class );
57
-		$this->object->log( 'wrong log level', -1);
57
+		$this->object->log( 'wrong log level', -1 );
58 58
 	}
59 59
 
60 60
 
61 61
 	public function testScalarLog()
62 62
 	{
63
-		$this->object->log( array ( 'scalar', 'errortest' ) );
63
+		$this->object->log( array( 'scalar', 'errortest' ) );
64 64
 
65 65
 		if( !file_exists( $this->filename ) ) {
66 66
 			throw new \RuntimeException( 'No test file found' );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Template/SQLTest.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
 
36 36
 	public function testToString()
37 37
 	{
38
-		$template = $this->object->get('FROM');
38
+		$template = $this->object->get( 'FROM' );
39 39
 		$this->assertInstanceOf( \Aimeos\MW\Template\Iface::class, $template );
40 40
 
41 41
 		$this->assertEquals( 'table', $template->str() );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Template/T3Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
 	public function testToString()
44 44
 	{
45
-		$template = $this->object->get('NAME');
45
+		$template = $this->object->get( 'NAME' );
46 46
 		$this->assertInstanceOf( \Aimeos\MW\Template\Iface::class, $template );
47 47
 
48 48
 		$this->assertEquals( 'Name', $template->str() );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Template/BaseTest.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -55,28 +55,28 @@  discard block
 block discarded – undo
55 55
 
56 56
 	public function testDisable()
57 57
 	{
58
-		$this->assertEquals('
58
+		$this->assertEquals( '
59 59
 <div> text</div>
60 60
 ',
61
-		$this->object->get('ITEM')->disable( 'NUM' )->substitute( array( 'TEXT' => 'text' ) )->str() );
61
+		$this->object->get( 'ITEM' )->disable( 'NUM' )->substitute( array( 'TEXT' => 'text' ) )->str() );
62 62
 	}
63 63
 
64 64
 
65 65
 	public function testEnable()
66 66
 	{
67
-		$this->assertEquals('
67
+		$this->assertEquals( '
68 68
 <div>1 text</div>
69 69
 ',
70
-		$this->object->get('ITEM')->enable( 'NUM' )->substitute( array( 'TEXT' => 'text' ) )->str() );
70
+		$this->object->get( 'ITEM' )->enable( 'NUM' )->substitute( array( 'TEXT' => 'text' ) )->str() );
71 71
 	}
72 72
 
73 73
 
74 74
 	public function testGet()
75 75
 	{
76
-		$template = $this->object->get('TEMPLATE');
76
+		$template = $this->object->get( 'TEMPLATE' );
77 77
 		$this->assertInstanceOf( \Aimeos\MW\Template\Iface::class, $template );
78 78
 
79
-		$this->assertEquals('
79
+		$this->assertEquals( '
80 80
 test template
81 81
 <!--###LIST-->
82 82
 <!--###ITEM-->
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	public function testGetBeginIsNotDefined()
91 91
 	{
92 92
 		$this->setExpectedException( \Aimeos\MW\Template\Exception::class );
93
-		$this->object->get('NOTDEFINED');
93
+		$this->object->get( 'NOTDEFINED' );
94 94
 	}
95 95
 
96 96
 	public function testGetEndIsNotDefined()
@@ -114,23 +114,23 @@  discard block
 block discarded – undo
114 114
 		$object = new \Aimeos\MW\Template\Base( $template, '<!--###$-->', '<!--$###-->' );
115 115
 
116 116
 		$this->setExpectedException( \Aimeos\MW\Template\Exception::class );
117
-		$object->get('ITEM');
117
+		$object->get( 'ITEM' );
118 118
 	}
119 119
 
120 120
 
121 121
 
122 122
 	public function testGetMarkerNames()
123 123
 	{
124
-		$this->assertEquals( array('TEMPLATE', 'LIST', 'ITEM', 'NUM', 'TEXT'), $this->object->getMarkerNames() );
124
+		$this->assertEquals( array( 'TEMPLATE', 'LIST', 'ITEM', 'NUM', 'TEXT' ), $this->object->getMarkerNames() );
125 125
 	}
126 126
 
127 127
 
128 128
 	public function testReplace()
129 129
 	{
130
-		$this->assertEquals('
130
+		$this->assertEquals( '
131 131
 <div><!--###NUM-->1<!--NUM###--> <!--###TEXT-->example test<!--TEXT###--></div>
132 132
 ',
133
-		$this->object->get('ITEM')->replace( 'text', 'test' )->str( false ) );
133
+		$this->object->get( 'ITEM' )->replace( 'text', 'test' )->str( false ) );
134 134
 	}
135 135
 
136 136
 
@@ -141,10 +141,10 @@  discard block
 block discarded – undo
141 141
 			'TEXT' => 'test'
142 142
 		);
143 143
 
144
-		$this->assertEquals('
144
+		$this->assertEquals( '
145 145
 <div>123 test</div>
146 146
 ',
147
-			$this->object->get('ITEM')->substitute( $marker )->str()
147
+			$this->object->get( 'ITEM' )->substitute( $marker )->str()
148 148
 		);
149 149
 	}
150 150
 
@@ -169,15 +169,15 @@  discard block
 block discarded – undo
169 169
 		$object = new \Aimeos\MW\Template\Base( $template, '<!--###$-->', '<!--$###-->' );
170 170
 
171 171
 		$this->setExpectedException( \Aimeos\MW\Template\Exception::class );
172
-		$object->substitute( array('ITEM'=>'Title' ) );
172
+		$object->substitute( array( 'ITEM'=>'Title' ) );
173 173
 	}
174 174
 
175 175
 	public function testStr()
176 176
 	{
177
-		$template = $this->object->get('TEMPLATE');
177
+		$template = $this->object->get( 'TEMPLATE' );
178 178
 		$this->assertInstanceOf( \Aimeos\MW\Template\Iface::class, $template );
179 179
 
180
-		$this->assertEquals('
180
+		$this->assertEquals( '
181 181
 test template
182 182
 
183 183
 ',
Please login to merge, or discard this patch.
lib/mshoplib/setup/IndexRemoveCtimeEditor.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
 			{
79 79
 				$this->executeList( $stmtList );
80 80
 				$this->status( 'done' );
81
-			}
82
-			else
81
+			} else
83 82
 			{
84 83
 				$this->status( 'OK' );
85 84
 			}
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 	'table' => array(
17 17
 
18
-		'mshop_index_attribute' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
18
+		'mshop_index_attribute' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
19 19
 
20 20
 			$table = $schema->createTable( 'mshop_index_attribute' );
21 21
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 			return $schema;
35 35
 		},
36 36
 
37
-		'mshop_index_catalog' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
37
+		'mshop_index_catalog' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
38 38
 
39 39
 			$table = $schema->createTable( 'mshop_index_catalog' );
40 40
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 			return $schema;
52 52
 		},
53 53
 
54
-		'mshop_index_price' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
54
+		'mshop_index_price' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
55 55
 
56 56
 			$table = $schema->createTable( 'mshop_index_price' );
57 57
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 			return $schema;
76 76
 		},
77 77
 
78
-		'mshop_index_supplier' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
78
+		'mshop_index_supplier' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
79 79
 
80 80
 			$table = $schema->createTable( 'mshop_index_supplier' );
81 81
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 			return $schema;
93 93
 		},
94 94
 
95
-		'mshop_index_text' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
95
+		'mshop_index_text' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
96 96
 
97 97
 			$table = $schema->createTable( 'mshop_index_text' );
98 98
 			$table->addOption( 'engine', 'MyISAM' );
Please login to merge, or discard this patch.
lib/mshoplib/setup/IndexRemovePriceMeta.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,8 +71,7 @@  discard block
 block discarded – undo
71 71
 				$this->execute( $this->clear );
72 72
 				$this->execute( $stmt );
73 73
 				$this->status( 'done' );
74
-			}
75
-			else
74
+			} else
76 75
 			{
77 76
 				$this->status( 'OK' );
78 77
 			}
@@ -87,8 +86,7 @@  discard block
 block discarded – undo
87 86
 			{
88 87
 				$this->execute( $stmt );
89 88
 				$this->status( 'done' );
90
-			}
91
-			else
89
+			} else
92 90
 			{
93 91
 				$this->status( 'OK' );
94 92
 			}
Please login to merge, or discard this patch.
lib/mshoplib/setup/IndexRemoveTextMeta.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,8 +71,7 @@  discard block
 block discarded – undo
71 71
 				$this->execute( $this->clear );
72 72
 				$this->execute( $stmt );
73 73
 				$this->status( 'done' );
74
-			}
75
-			else
74
+			} else
76 75
 			{
77 76
 				$this->status( 'OK' );
78 77
 			}
@@ -87,8 +86,7 @@  discard block
 block discarded – undo
87 86
 			{
88 87
 				$this->execute( $stmt );
89 88
 				$this->status( 'done' );
90
-			}
91
-			else
89
+			} else
92 90
 			{
93 91
 				$this->status( 'OK' );
94 92
 			}
Please login to merge, or discard this patch.