Passed
Push — master ( f14386...c1a5c3 )
by Aimeos
02:55
created
lib/custom/tests/MShop/Customer/Manager/Property/Type/LaravelTest.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
 	protected function tearDown()
29 29
 	{
30
-		unset($this->object);
30
+		unset( $this->object );
31 31
 	}
32 32
 
33 33
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
 		$results = $this->object->searchItems( $search );
72 72
 
73
-		if( ($expected = reset($results) ) === false )
73
+		if( ( $expected = reset( $results ) ) === false )
74 74
 		{
75 75
 			throw new \RuntimeException( 'No property type item found.' );
76 76
 		}
@@ -92,13 +92,13 @@  discard block
 block discarded – undo
92 92
 	{
93 93
 		$search = $this->object->createSearch();
94 94
 		$search->setConditions( $search->compare( '==', 'customer.property.type.editor', $this->editor ) );
95
-		$results = $this->object->searchItems($search);
95
+		$results = $this->object->searchItems( $search );
96 96
 
97
-		if( ( $item = reset($results) ) === false ) {
97
+		if( ( $item = reset( $results ) ) === false ) {
98 98
 			throw new \RuntimeException( 'No type item found' );
99 99
 		}
100 100
 
101
-		$item->setId(null);
101
+		$item->setId( null );
102 102
 		$item->setCode( 'unitTestSave' );
103 103
 		$resultSaved = $this->object->saveItem( $item );
104 104
 		$itemSaved = $this->object->getItem( $item->getId() );
@@ -159,24 +159,24 @@  discard block
 block discarded – undo
159 159
 		$expr[] = $search->compare( '>=', 'customer.property.type.ctime', '1970-01-01 00:00:00' );
160 160
 		$expr[] = $search->compare( '==', 'customer.property.type.editor', $this->editor );
161 161
 
162
-		$search->setConditions( $search->combine('&&', $expr) );
162
+		$search->setConditions( $search->combine( '&&', $expr ) );
163 163
 		$results = $this->object->searchItems( $search, [], $total );
164 164
 		$this->assertEquals( 1, count( $results ) );
165 165
 
166 166
 
167 167
 		$search = $this->object->createSearch();
168 168
 		$conditions = array(
169
-			$search->compare( '=~', 'customer.property.type.code', 'newsletter'),
169
+			$search->compare( '=~', 'customer.property.type.code', 'newsletter' ),
170 170
 			$search->compare( '==', 'customer.property.type.editor', $this->editor )
171 171
 		);
172
-		$search->setConditions( $search->combine('&&', $conditions ) );
173
-		$search->setSlice(0, 1);
174
-		$items = $this->object->searchItems( $search, [], $total);
172
+		$search->setConditions( $search->combine( '&&', $conditions ) );
173
+		$search->setSlice( 0, 1 );
174
+		$items = $this->object->searchItems( $search, [], $total );
175 175
 
176 176
 		$this->assertEquals( 1, count( $items ) );
177 177
 		$this->assertEquals( 1, $total );
178 178
 
179
-		foreach($items as $itemId => $item) {
179
+		foreach( $items as $itemId => $item ) {
180 180
 			$this->assertEquals( $itemId, $item->getId() );
181 181
 		}
182 182
 	}
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
 	public function testGetSubManager()
186 186
 	{
187
-		$this->setExpectedException('\\Aimeos\\MShop\\Exception');
188
-		$this->object->getSubManager('unknown');
187
+		$this->setExpectedException( '\\Aimeos\\MShop\\Exception' );
188
+		$this->object->getSubManager( 'unknown' );
189 189
 	}
190 190
 }
Please login to merge, or discard this patch.
lib/custom/tests/MShop/Customer/Manager/LaravelTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@
 block discarded – undo
257 257
 		$this->assertEquals( 2, count( $results ) );
258 258
 		$this->assertEquals( 3, $total );
259 259
 
260
-		foreach($results as $itemId => $item) {
260
+		foreach( $results as $itemId => $item ) {
261 261
 			$this->assertEquals( $itemId, $item->getId() );
262 262
 		}
263 263
 	}
Please login to merge, or discard this patch.
lib/custom/tests/MW/View/Helper/Url/Laravel5Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	public function testTransform()
37 37
 	{
38 38
 		$this->mock->expects( $this->once() )->method( 'route' )
39
-			->with( $this->equalTo( 'route'), $this->equalTo( array( 'key' => 'value' ) ), $this->equalTo( false ) );
39
+			->with( $this->equalTo( 'route' ), $this->equalTo( array( 'key' => 'value' ) ), $this->equalTo( false ) );
40 40
 
41 41
 		$this->object->transform( 'route', 'catalog', 'lists', array( 'key' => 'value' ) );
42 42
 	}
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	public function testTransformAbsolute()
46 46
 	{
47 47
 		$this->mock->expects( $this->once() )->method( 'route' )
48
-			->with( $this->equalTo( 'route'), $this->equalTo( [] ), $this->equalTo( true ) );
48
+			->with( $this->equalTo( 'route' ), $this->equalTo( [] ), $this->equalTo( true ) );
49 49
 
50 50
 		$options = array( 'absoluteUri' => true );
51 51
 		$this->object->transform( 'route', 'catalog', 'lists', [], [], $options );
Please login to merge, or discard this patch.
lib/custom/tests/MW/View/Engine/BladeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 			->will( $this->returnValue( 'test' ) );
49 49
 
50 50
 		$this->mock->expects( $this->once() )->method( 'file' )
51
-			->will( $this->returnValue( $view) );
51
+			->will( $this->returnValue( $view ) );
52 52
 
53 53
 		$result = $this->object->render( $v, 'filepath', array( 'key' => 'value' ) );
54 54
 		$this->assertEquals( 'test', $result );
Please login to merge, or discard this patch.
lib/custom/tests/bootstrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,16 +10,16 @@
 block discarded – undo
10 10
  * Set error reporting to maximum
11 11
  */
12 12
 error_reporting( -1 );
13
-ini_set('display_errors', '1');
13
+ini_set( 'display_errors', '1' );
14 14
 
15 15
 
16 16
 /*
17 17
  * Set locale settings to reasonable defaults
18 18
  */
19
-setlocale(LC_ALL, 'en_US.UTF-8');
20
-setlocale(LC_NUMERIC, 'POSIX');
21
-setlocale(LC_CTYPE, 'en_US.UTF-8');
22
-setlocale(LC_TIME, 'POSIX');
19
+setlocale( LC_ALL, 'en_US.UTF-8' );
20
+setlocale( LC_NUMERIC, 'POSIX' );
21
+setlocale( LC_CTYPE, 'en_US.UTF-8' );
22
+setlocale( LC_TIME, 'POSIX' );
23 23
 
24 24
 
25 25
 require_once 'TestHelper.php';
Please login to merge, or discard this patch.
lib/custom/src/MShop/Customer/Manager/Laravel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -489,14 +489,14 @@
 block discarded – undo
489 489
 
490 490
 			$results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level );
491 491
 			while( ( $row = $results->fetch() ) !== false ) {
492
-				$map[ $row['customer.id'] ] = $row;
492
+				$map[$row['customer.id']] = $row;
493 493
 			}
494 494
 
495 495
 			$dbm->release( $conn, $dbname );
496 496
 		}
497 497
 		catch( \Exception $e )
498 498
 		{
499
-			$dbm->release( $conn, $dbname  );
499
+			$dbm->release( $conn, $dbname );
500 500
 			throw $e;
501 501
 		}
502 502
 
Please login to merge, or discard this patch.
lib/custom/src/MW/Logger/Laravel5.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
 			$this->logger->log( $message, $this->translatePriority( $priority ) );
56 56
 		}
57
-		catch( \Exception $e )	{
57
+		catch( \Exception $e ) {
58 58
 			throw new \Aimeos\MW\Logger\Exception( $e->getMessage(), $e->getCode(), $e );
59 59
 		}
60 60
 	}
Please login to merge, or discard this patch.