Passed
Push — master ( 270ec8...6c3449 )
by Aimeos
02:04
created
lib/custom/tests/MAdmin/Cache/Manager/RedisTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,14 +43,14 @@
 block discarded – undo
43 43
 	public function testGetSearchAttributes()
44 44
 	{
45 45
 		foreach( $this->object->getSearchAttributes() as $attr ) {
46
-			$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Attribute\\Iface', $attr );
46
+			$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Attribute\\Iface', $attr );
47 47
 		}
48 48
 	}
49 49
 
50 50
 
51 51
 	public function testGetSubManager()
52 52
 	{
53
-		$this->setExpectedException('\\Aimeos\\MAdmin\\Exception');
53
+		$this->setExpectedException( '\\Aimeos\\MAdmin\\Exception' );
54 54
 		$this->object->getSubManager( 'unknown' );
55 55
 	}
56 56
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,9 +158,12 @@
 block discarded – undo
158 158
 
159 159
 	public function testGetCache()
160 160
 	{
161
-		try {
161
+		try
162
+		{
162 163
 			$this->assertInstanceOf( '\\Aimeos\\MW\\Cache\\Iface', $this->object->getCache() );
163
-		} catch( \Aimeos\MAdmin\Cache\Exception $e ) {
164
+		}
165
+		catch( \Aimeos\MAdmin\Cache\Exception $e )
166
+		{
164 167
 			$this->markTestSkipped( 'Please install Predis client first' );
165 168
 		}
166 169
 	}
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
@@ -4,16 +4,16 @@
 block discarded – undo
4 4
  * Set error reporting to maximum
5 5
  */
6 6
 error_reporting( -1 );
7
-ini_set('display_errors', '1');
7
+ini_set( 'display_errors', '1' );
8 8
 
9 9
 
10 10
 /*
11 11
  * Set locale settings to reasonable defaults
12 12
  */
13
-setlocale(LC_ALL, 'en_US.UTF-8');
14
-setlocale(LC_NUMERIC, 'POSIX');
15
-setlocale(LC_CTYPE, 'en_US.UTF-8');
16
-setlocale(LC_TIME, 'POSIX');
13
+setlocale( LC_ALL, 'en_US.UTF-8' );
14
+setlocale( LC_NUMERIC, 'POSIX' );
15
+setlocale( LC_CTYPE, 'en_US.UTF-8' );
16
+setlocale( LC_TIME, 'POSIX' );
17 17
 
18 18
 
19 19
 require_once 'TestHelper.php';
Please login to merge, or discard this patch.
lib/custom/src/MW/Cache/Redis.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 		foreach( $this->client->mget( $actkeys ) as $idx => $value )
154 154
 		{
155 155
 			if( $value !== null && isset( $keys[$idx] ) ) {
156
-				$result[ $keys[$idx] ] = $value;
156
+				$result[$keys[$idx]] = $value;
157 157
 			}
158 158
 		}
159 159
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 		$pipe = $this->client->pipeline();
221 221
 
222 222
 		foreach( $pairs as $key => $value ) {
223
-			$actpairs[ $this->siteid . $key ] = $value;
223
+			$actpairs[$this->siteid . $key] = $value;
224 224
 		}
225 225
 
226 226
 		$pipe->mset( $actpairs );
Please login to merge, or discard this patch.