Passed
Push — master ( 47e37b...2360ce )
by Aimeos
05:11
created
lib/mwlib/tests/MW/Tree/Node/DBNestedSetTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,14 +52,14 @@
 block discarded – undo
52 52
 
53 53
 	public function testSetId()
54 54
 	{
55
-		$this->object->setId(null);
55
+		$this->object->setId( null );
56 56
 		$this->assertEquals( true, $this->object->isModified() );
57 57
 	}
58 58
 
59 59
 	public function testGetChild()
60 60
 	{
61 61
 		$this->setExpectedException( \Aimeos\MW\Tree\Exception::class );
62
-		$this->object->getChild(null);
62
+		$this->object->getChild( null );
63 63
 	}
64 64
 
65 65
 	public function testMagicGet()
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Criteria/SQLTest.php 1 patch
Spacing   +3 added lines, -3 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->getConditionSource( $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->getConditionSource( $types ) );
126 126
 	}
@@ -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->getSortationSource( $types ) );
191
+		$this->assertEquals( 'asc_column ASC', $this->object->getSortationSource( $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->getSortationSource( $types, $translations ));
194
+		$this->assertEquals( 'asc_int_col ASC', $this->object->getSortationSource( $types, $translations ) );
195 195
 	}
196 196
 
197 197
 
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Criteria/Expression/Combine/SQLTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 		);
59 59
 
60 60
 		$expr1 = [];
61
-		$expr1[] = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $conn, '==', 'list', array('a', 'b', 'c') );
61
+		$expr1[] = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $conn, '==', 'list', array( 'a', 'b', 'c' ) );
62 62
 		$expr1[] = new \Aimeos\MW\Criteria\Expression\Compare\SQL( $conn, '~=', 'string', 'value' );
63 63
 
64 64
 		$expr2 = [];
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
 		$expected = " NOT ( ( list IN ('a','b','c') AND string LIKE '%value%' ESCAPE '#' ) OR ( float < 0.1 AND int > 10 ) )";
76 76
 		$this->assertEquals( $expected, $test->toSource( $types ) );
77 77
 
78
-		$obj = new \Aimeos\MW\Criteria\Expression\Combine\SQL('&&', []);
79
-		$this->assertEquals('', $obj->toSource($types));
78
+		$obj = new \Aimeos\MW\Criteria\Expression\Combine\SQL( '&&', [] );
79
+		$this->assertEquals( '', $obj->toSource( $types ) );
80 80
 
81 81
 		$this->setExpectedException( \Aimeos\MW\Common\Exception::class );
82
-		new \Aimeos\MW\Criteria\Expression\Combine\SQL('', []);
82
+		new \Aimeos\MW\Criteria\Expression\Combine\SQL( '', [] );
83 83
 
84 84
 	}
85 85
 }
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Criteria/PHPTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
196 196
 		$translations = array( 'asc_array' => '$ascIntList', 'desc_array' => '$descStrList' );
197 197
 
198 198
 		$result = $this->object->getSortationSource( $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/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.