Completed
Push — master ( 858caa...00feaa )
by Aimeos
07:24
created
lib/custom/tests/bootstrap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@
 block discarded – undo
9 9
  * Set error reporting to maximum
10 10
  */
11 11
 error_reporting( -1 );
12
-ini_set( 'display_errors', '1' );
12
+ini_set('display_errors', '1');
13 13
 
14 14
 
15 15
 /*
16 16
  * Set locale settings to reasonable defaults
17 17
  */
18
-setlocale( LC_ALL, 'en_US.UTF-8' );
19
-setlocale( LC_CTYPE, 'en_US.UTF-8' );
20
-setlocale( LC_NUMERIC, 'POSIX' );
21
-setlocale( LC_TIME, 'POSIX' );
22
-date_default_timezone_set( 'UTC' );
18
+setlocale(LC_ALL, 'en_US.UTF-8');
19
+setlocale(LC_CTYPE, 'en_US.UTF-8');
20
+setlocale(LC_NUMERIC, 'POSIX');
21
+setlocale(LC_TIME, 'POSIX');
22
+date_default_timezone_set('UTC');
23 23
 
24 24
 require_once 'TestHelper.php';
25 25
 TestHelper::bootstrap();
Please login to merge, or discard this patch.
lib/custom/src/MW/View/Helper/Response/Flow.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
 	 *
27 27
 	 * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers
28 28
 	 */
29
-	public function __construct( \Aimeos\MW\View\Iface $view )
29
+	public function __construct(\Aimeos\MW\View\Iface $view)
30 30
 	{
31
-		parent::__construct( $view, new \Zend\Diactoros\Response() );
31
+		parent::__construct($view, new \Zend\Diactoros\Response());
32 32
 	}
33 33
 }
Please login to merge, or discard this patch.
lib/custom/src/MW/View/Helper/Request/Flow.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 	/**
32 32
 	 * Initializes the request view helper.
33 33
 	 *
34
-	 * @param \\Aimeos\MW\View\Iface $view View instance with registered view helpers
34
+	 * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers
35 35
 	 * @param \Neos\Flow\Http\Request $request Flow request object
36 36
 	 * @param array $files List of uploaded files like in $_FILES
37 37
 	 * @param array $query List of uploaded files like in $_GET
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
 	 * @param array $cookies List of uploaded files like in $_COOKIES
40 40
 	 * @param array $server List of uploaded files like in $_SERVER
41 41
 	 */
42
-	public function __construct( \Aimeos\MW\View\Iface $view, \Neos\Flow\Http\Request $request, array $files = [],
43
-		array $query = [], array $post = [], array $cookies = [], array $server = [] )
42
+	public function __construct(\Aimeos\MW\View\Iface $view, \Neos\Flow\Http\Request $request, array $files = [],
43
+		array $query = [], array $post = [], array $cookies = [], array $server = [])
44 44
 	{
45 45
 		$this->request = $request;
46
-		$psr7request = $this->createRequest( $request, $files, $query, $post, $cookies, $server );
46
+		$psr7request = $this->createRequest($request, $files, $query, $post, $cookies, $server);
47 47
 
48
-		parent::__construct( $view, $psr7request );
48
+		parent::__construct($view, $psr7request);
49 49
 	}
50 50
 
51 51
 
@@ -82,18 +82,18 @@  discard block
 block discarded – undo
82 82
 	 * @param array $server List of uploaded files like in $_SERVER
83 83
 	 * @return \Psr\Http\Message\ServerRequestInterface PSR-7 request object
84 84
 	 */
85
-	protected function createRequest( \Neos\Flow\Http\Request $nativeRequest, array $files,
86
-		array $query, array $post, array $cookies, array $server )
85
+	protected function createRequest(\Neos\Flow\Http\Request $nativeRequest, array $files,
86
+		array $query, array $post, array $cookies, array $server)
87 87
 	{
88
-		$server = ServerRequestFactory::normalizeServer( $server );
89
-		$files = ServerRequestFactory::normalizeFiles( $files );
88
+		$server = ServerRequestFactory::normalizeServer($server);
89
+		$files = ServerRequestFactory::normalizeFiles($files);
90 90
 		$headers = $nativeRequest->getHeaders()->getAll();
91 91
 		$uri = (string) $nativeRequest->getUri();
92 92
 		$method = $nativeRequest->getMethod();
93 93
 
94 94
 		$body = new Stream('php://temp', 'wb+');
95
-		$body->write( $nativeRequest->getContent() );
95
+		$body->write($nativeRequest->getContent());
96 96
 
97
-		return new ServerRequest( $server, $files, $uri, $method, $body, $headers, $cookies, $query, $post );
97
+		return new ServerRequest($server, $files, $uri, $method, $body, $headers, $cookies, $query, $post);
98 98
 	}
99 99
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Session/FlowTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@  discard block
 block discarded – undo
25 25
 	 */
26 26
 	protected function setUp()
27 27
 	{
28
-		if( class_exists( '\\Neos\\Flow\\Session\\Session' ) === false ) {
29
-			$this->markTestSkipped( 'Class \\Neos\\Flow\\Session\\Session not found' );
28
+		if (class_exists('\\Neos\\Flow\\Session\\Session') === false) {
29
+			$this->markTestSkipped('Class \\Neos\\Flow\\Session\\Session not found');
30 30
 		}
31 31
 
32 32
 		$session = new \Neos\Flow\Session\TransientSession();
33 33
 		$session->start();
34 34
 
35
-		$this->object = new \Aimeos\MW\Session\Flow( $session );
35
+		$this->object = new \Aimeos\MW\Session\Flow($session);
36 36
 	}
37 37
 
38 38
 
@@ -44,26 +44,26 @@  discard block
 block discarded – undo
44 44
 	 */
45 45
 	protected function tearDown()
46 46
 	{
47
-		unset( $this->object );
47
+		unset($this->object);
48 48
 	}
49 49
 
50 50
 
51 51
 	public function testGetDefault()
52 52
 	{
53
-		$this->assertEquals( null, $this->object->get( 'notexist' ) );
53
+		$this->assertEquals(null, $this->object->get('notexist'));
54 54
 	}
55 55
 
56 56
 
57 57
 	public function testGetSet()
58 58
 	{
59
-		$this->object->set( 'key', 'value' );
60
-		$this->assertEquals( 'value', $this->object->get( 'key' ) );
59
+		$this->object->set('key', 'value');
60
+		$this->assertEquals('value', $this->object->get('key'));
61 61
 	}
62 62
 
63 63
 
64 64
 	public function testGetSetArray()
65 65
 	{
66
-		$this->object->set( 'key', array( 'value' ) );
67
-		$this->assertEquals( array( 'value' ), $this->object->get( 'key' ) );
66
+		$this->object->set('key', array('value'));
67
+		$this->assertEquals(array('value'), $this->object->get('key'));
68 68
 	}
69 69
 }
Please login to merge, or discard this patch.
lib/custom/src/MW/Session/Flow.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 *
29 29
 	 * @param \Neos\Flow\Session\SessionInterface $object Flow session object
30 30
 	 */
31
-	public function __construct( \Neos\Flow\Session\SessionInterface $object )
31
+	public function __construct(\Neos\Flow\Session\SessionInterface $object)
32 32
 	{
33 33
 		$this->object = $object;
34 34
 	}
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
 	 * @param mixed $default Value returned if requested key isn't found
44 44
 	 * @return mixed Value associated to the requested key
45 45
 	 */
46
-	public function get( $name, $default = null )
46
+	public function get($name, $default = null)
47 47
 	{
48
-		if( $this->object->hasKey( $name ) !== true ) {
48
+		if ($this->object->hasKey($name) !== true) {
49 49
 			return $default;
50 50
 		}
51 51
 
52
-		return $this->object->getData( $name );
52
+		return $this->object->getData($name);
53 53
 	}
54 54
 
55 55
 
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
 	 * @param mixed $value Value that should be associated with the given key
63 63
 	 * @return void
64 64
 	 */
65
-	public function set( $name, $value )
65
+	public function set($name, $value)
66 66
 	{
67
-		$this->object->putData( $name, $value );
67
+		$this->object->putData($name, $value);
68 68
 	}
69 69
 }
Please login to merge, or discard this patch.
lib/custom/src/MAdmin/Cache/Proxy/Flow.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	 * @param \Aimeos\MShop\Context\Item\Iface $context MShop context object
33 33
 	 * @param \Neos\Cache\Frontend\StringFrontend $cache Flow cache object
34 34
 	 */
35
-	public function __construct( \Aimeos\MShop\Context\Item\Iface $context, \Neos\Cache\Frontend\StringFrontend $cache )
35
+	public function __construct(\Aimeos\MShop\Context\Item\Iface $context, \Neos\Cache\Frontend\StringFrontend $cache)
36 36
 	{
37 37
 		$this->context = $context;
38 38
 		$this->cache = $cache;
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 	 */
47 47
 	protected function getObject()
48 48
 	{
49
-		if( !isset( $this->object ) )
49
+		if (!isset($this->object))
50 50
 		{
51 51
 			$siteid = $this->context->getLocale()->getSiteId();
52
-			$conf = array( 'siteid' => $this->context->getConfig()->get( 'madmin/cache/prefix' ) . $siteid );
53
-			$this->object = \Aimeos\MW\Cache\Factory::createManager( 'Flow', $conf, $this->cache );
52
+			$conf = array('siteid' => $this->context->getConfig()->get('madmin/cache/prefix').$siteid);
53
+			$this->object = \Aimeos\MW\Cache\Factory::createManager('Flow', $conf, $this->cache);
54 54
 		}
55 55
 
56 56
 		return $this->object;
Please login to merge, or discard this patch.
lib/custom/src/MW/View/Engine/Flow.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	 *
28 28
 	 * @param \Neos\FluidAdaptor\View\StandaloneView $view Flow template view object
29 29
 	 */
30
-	public function __construct( \Neos\FluidAdaptor\View\StandaloneView $view )
30
+	public function __construct(\Neos\FluidAdaptor\View\StandaloneView $view)
31 31
 	{
32 32
 		$this->view = $view;
33 33
 	}
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 	 * @return string Output generated by the template
43 43
 	 * @throws \Aimeos\MW\View\Exception If the template isn't found
44 44
 	 */
45
-	public function render( \Aimeos\MW\View\Iface $view, $filename, array $values )
45
+	public function render(\Aimeos\MW\View\Iface $view, $filename, array $values)
46 46
 	{
47 47
 		$fluid = clone $this->view;
48 48
 
49
-		$fluid->setTemplatePathAndFilename( $filename );
50
-		$fluid->assign( '_aimeos_view', $view );
51
-		$fluid->assignMultiple( $values );
49
+		$fluid->setTemplatePathAndFilename($filename);
50
+		$fluid->assign('_aimeos_view', $view);
51
+		$fluid->assignMultiple($values);
52 52
 
53 53
 		return $fluid->render();
54 54
 	}
Please login to merge, or discard this patch.
lib/custom/tests/TestHelper.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@  discard block
 block discarded – undo
17 17
 
18 18
 		$includepaths = $mshop->getIncludePaths();
19 19
 		$includepaths[] = get_include_path();
20
-		set_include_path( implode( PATH_SEPARATOR, $includepaths ) );
20
+		set_include_path(implode(PATH_SEPARATOR, $includepaths));
21 21
 	}
22 22
 
23 23
 
24
-	public static function getContext( $site = 'unittest' )
24
+	public static function getContext($site = 'unittest')
25 25
 	{
26
-		if( !isset( self::$context[$site] ) ) {
27
-			self::$context[$site] = self::createContext( $site );
26
+		if (!isset(self::$context[$site])) {
27
+			self::$context[$site] = self::createContext($site);
28 28
 		}
29 29
 
30 30
 		return clone self::$context[$site];
@@ -33,13 +33,13 @@  discard block
 block discarded – undo
33 33
 
34 34
 	private static function getAimeos()
35 35
 	{
36
-		if( !isset( self::$aimeos ) )
36
+		if (!isset(self::$aimeos))
37 37
 		{
38 38
 			require_once 'Bootstrap.php';
39
-			spl_autoload_register( 'Aimeos\\Bootstrap::autoload' );
39
+			spl_autoload_register('Aimeos\\Bootstrap::autoload');
40 40
 
41
-			$extdir = dirname( dirname( dirname( dirname( __FILE__ ) ) ) );
42
-			self::$aimeos = new \Aimeos\Bootstrap( array( $extdir ), false );
41
+			$extdir = dirname(dirname(dirname(dirname(__FILE__))));
42
+			self::$aimeos = new \Aimeos\Bootstrap(array($extdir), false);
43 43
 		}
44 44
 
45 45
 		return self::$aimeos;
@@ -52,31 +52,31 @@  discard block
 block discarded – undo
52 52
 	 * @param string $site Unique site code
53 53
 	 * @return \\Aimeos\MShop\Context\Item\Iface Context object
54 54
 	 */
55
-		private static function createContext( $site )
55
+		private static function createContext($site)
56 56
 	{
57 57
 		$ctx = new \Aimeos\MShop\Context\Item\Standard();
58 58
 		$mshop = self::getAimeos();
59 59
 
60 60
 
61
-		$paths = $mshop->getConfigPaths( 'mysql' );
62
-		$paths[] = __DIR__ . DIRECTORY_SEPARATOR . 'config';
61
+		$paths = $mshop->getConfigPaths('mysql');
62
+		$paths[] = __DIR__.DIRECTORY_SEPARATOR.'config';
63 63
 
64
-		$conf = new \Aimeos\MW\Config\PHPArray( [], $paths );
65
-		$ctx->setConfig( $conf );
64
+		$conf = new \Aimeos\MW\Config\PHPArray([], $paths);
65
+		$ctx->setConfig($conf);
66 66
 
67 67
 
68
-		$dbm = new \Aimeos\MW\DB\Manager\PDO( $conf );
69
-		$ctx->setDatabaseManager( $dbm );
68
+		$dbm = new \Aimeos\MW\DB\Manager\PDO($conf);
69
+		$ctx->setDatabaseManager($dbm);
70 70
 
71 71
 
72
-		$logger = new \Aimeos\MW\Logger\File( $site . '.log', \Aimeos\MW\Logger\Base::DEBUG );
73
-		$ctx->setLogger( $logger );
72
+		$logger = new \Aimeos\MW\Logger\File($site.'.log', \Aimeos\MW\Logger\Base::DEBUG);
73
+		$ctx->setLogger($logger);
74 74
 
75 75
 
76 76
 		$session = new \Aimeos\MW\Session\None();
77
-		$ctx->setSession( $session );
77
+		$ctx->setSession($session);
78 78
 
79
-		$ctx->setEditor( 'ai-flow:unittest' );
79
+		$ctx->setEditor('ai-flow:unittest');
80 80
 
81 81
 		return $ctx;
82 82
 	}
Please login to merge, or discard this patch.
lib/custom/tests/MW/Cache/FlowTest.php 1 patch
Spacing   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -17,201 +17,201 @@
 block discarded – undo
17 17
 
18 18
 	protected function setUp()
19 19
 	{
20
-		if( interface_exists( 'Neos\Cache\Frontend\FrontendInterface' ) === false ) {
21
-			$this->markTestSkipped( 'Class \\Neos\\Cache\\Frontend\\FrontendInterface not found' );
20
+		if (interface_exists('Neos\Cache\Frontend\FrontendInterface') === false) {
21
+			$this->markTestSkipped('Class \\Neos\\Cache\\Frontend\\FrontendInterface not found');
22 22
 		}
23 23
 
24
-		$this->mock = $this->getMockBuilder( 'Neos\Cache\Frontend\FrontendInterface' )->getMock();
25
-		$this->object = new \Aimeos\MW\Cache\Flow( [], $this->mock );
24
+		$this->mock = $this->getMockBuilder('Neos\Cache\Frontend\FrontendInterface')->getMock();
25
+		$this->object = new \Aimeos\MW\Cache\Flow([], $this->mock);
26 26
 	}
27 27
 
28 28
 
29 29
 	protected function tearDown()
30 30
 	{
31
-		unset( $this->mock, $this->object );
31
+		unset($this->mock, $this->object);
32 32
 	}
33 33
 
34 34
 
35 35
 	public function testDelete()
36 36
 	{
37
-		$this->mock->expects( $this->once() )->method( 'remove' )->with( $this->equalTo( 'key' ) );
38
-		$this->object->delete( 'key' );
37
+		$this->mock->expects($this->once())->method('remove')->with($this->equalTo('key'));
38
+		$this->object->delete('key');
39 39
 	}
40 40
 
41 41
 
42 42
 	public function testDeleteWithSiteId()
43 43
 	{
44
-		$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock );
44
+		$object = new \Aimeos\MW\Cache\Flow(array('siteid' => 1), $this->mock);
45 45
 
46
-		$this->mock->expects( $this->once() )->method( 'remove' )->with( $this->equalTo( '1-key' ) );
47
-		$object->delete( 'key' );
46
+		$this->mock->expects($this->once())->method('remove')->with($this->equalTo('1-key'));
47
+		$object->delete('key');
48 48
 	}
49 49
 
50 50
 
51 51
 	public function testDeleteMultiple()
52 52
 	{
53
-		$this->mock->expects( $this->exactly( 2 ) )->method( 'remove' )->with( $this->equalTo( 'key' ) );
54
-		$this->object->deleteMultiple( array( 'key', 'key' ) );
53
+		$this->mock->expects($this->exactly(2))->method('remove')->with($this->equalTo('key'));
54
+		$this->object->deleteMultiple(array('key', 'key'));
55 55
 	}
56 56
 
57 57
 
58 58
 	public function testDeleteMultipleWithSiteId()
59 59
 	{
60
-		$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock );
60
+		$object = new \Aimeos\MW\Cache\Flow(array('siteid' => 1), $this->mock);
61 61
 
62
-		$this->mock->expects( $this->once() )->method( 'remove' )->with( $this->equalTo( '1-key' ) );
63
-		$object->deleteMultiple( array( 'key' ) );
62
+		$this->mock->expects($this->once())->method('remove')->with($this->equalTo('1-key'));
63
+		$object->deleteMultiple(array('key'));
64 64
 	}
65 65
 
66 66
 
67 67
 	public function testDeleteByTags()
68 68
 	{
69
-		$this->mock->expects( $this->exactly( 2 ) )->method( 'flushByTag' )->with( $this->equalTo( 'tag' ) );
70
-		$this->object->deleteByTags( array( 'tag', 'tag' ) );
69
+		$this->mock->expects($this->exactly(2))->method('flushByTag')->with($this->equalTo('tag'));
70
+		$this->object->deleteByTags(array('tag', 'tag'));
71 71
 	}
72 72
 
73 73
 
74 74
 	public function testDeleteByTagsWithSiteId()
75 75
 	{
76
-		$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock );
76
+		$object = new \Aimeos\MW\Cache\Flow(array('siteid' => 1), $this->mock);
77 77
 
78
-		$this->mock->expects( $this->once() )->method( 'flushByTag' )->with( $this->equalTo( '1-tag' ) );
79
-		$object->deleteByTags( array( 'tag' ) );
78
+		$this->mock->expects($this->once())->method('flushByTag')->with($this->equalTo('1-tag'));
79
+		$object->deleteByTags(array('tag'));
80 80
 	}
81 81
 
82 82
 
83 83
 	public function testClear()
84 84
 	{
85
-		$this->mock->expects( $this->once() )->method( 'flush' );
85
+		$this->mock->expects($this->once())->method('flush');
86 86
 		$this->object->clear();
87 87
 	}
88 88
 
89 89
 
90 90
 	public function testClearWithSiteId()
91 91
 	{
92
-		$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock );
92
+		$object = new \Aimeos\MW\Cache\Flow(array('siteid' => 1), $this->mock);
93 93
 
94
-		$this->mock->expects( $this->once() )->method( 'flushByTag' )->with( $this->equalTo( '1-siteid' ) );
94
+		$this->mock->expects($this->once())->method('flushByTag')->with($this->equalTo('1-siteid'));
95 95
 		$object->clear();
96 96
 	}
97 97
 
98 98
 
99 99
 	public function testGet()
100 100
 	{
101
-		$this->mock->expects( $this->once() )->method( 'get' )
102
-			->with( $this->equalTo( 'key' ) )->will( $this->returnValue( 'value' ) );
101
+		$this->mock->expects($this->once())->method('get')
102
+			->with($this->equalTo('key'))->will($this->returnValue('value'));
103 103
 
104
-		$this->assertEquals( 'value', $this->object->get( 'key', 'default' ) );
104
+		$this->assertEquals('value', $this->object->get('key', 'default'));
105 105
 	}
106 106
 
107 107
 
108 108
 	public function testGetDefault()
109 109
 	{
110
-		$this->mock->expects( $this->once() )->method( 'get' )
111
-		->with( $this->equalTo( 'key' ) )->will( $this->returnValue( false ) );
110
+		$this->mock->expects($this->once())->method('get')
111
+		->with($this->equalTo('key'))->will($this->returnValue(false));
112 112
 
113
-		$this->assertEquals( 'default', $this->object->get( 'key', 'default' ) );
113
+		$this->assertEquals('default', $this->object->get('key', 'default'));
114 114
 	}
115 115
 
116 116
 
117 117
 	public function testGetWithSiteId()
118 118
 	{
119
-		$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock );
119
+		$object = new \Aimeos\MW\Cache\Flow(array('siteid' => 1), $this->mock);
120 120
 
121
-		$this->mock->expects( $this->once() )->method( 'get' )->with( $this->equalTo( '1-key' ) );
122
-		$object->get( 'key', 'default' );
121
+		$this->mock->expects($this->once())->method('get')->with($this->equalTo('1-key'));
122
+		$object->get('key', 'default');
123 123
 	}
124 124
 
125 125
 
126 126
 	public function testGetMultiple()
127 127
 	{
128
-		$this->mock->expects( $this->exactly( 2 ) )->method( 'get' )
129
-			->will( $this->returnValue( 'value' ) );
128
+		$this->mock->expects($this->exactly(2))->method('get')
129
+			->will($this->returnValue('value'));
130 130
 
131
-		$expected = array( 'key1' => 'value', 'key2' => 'value' );
132
-		$this->assertEquals( $expected, $this->object->getMultiple( array( 'key1', 'key2' ) ) );
131
+		$expected = array('key1' => 'value', 'key2' => 'value');
132
+		$this->assertEquals($expected, $this->object->getMultiple(array('key1', 'key2')));
133 133
 	}
134 134
 
135 135
 
136 136
 	public function testGetMultipleWithSiteId()
137 137
 	{
138
-		$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock );
138
+		$object = new \Aimeos\MW\Cache\Flow(array('siteid' => 1), $this->mock);
139 139
 
140
-		$this->mock->expects( $this->once() )->method( 'get' )->with( $this->equalTo( '1-key' ) );
141
-		$object->getMultiple( array( 'key' ) );
140
+		$this->mock->expects($this->once())->method('get')->with($this->equalTo('1-key'));
141
+		$object->getMultiple(array('key'));
142 142
 	}
143 143
 
144 144
 
145 145
 	public function testGetMultipleByTags()
146 146
 	{
147
-		$this->mock->expects( $this->exactly( 2 ) )->method( 'getByTag' )
148
-			->with( $this->equalTo( 'key' ) )->will( $this->returnValue( array( 'key' => 'value' ) ) );
147
+		$this->mock->expects($this->exactly(2))->method('getByTag')
148
+			->with($this->equalTo('key'))->will($this->returnValue(array('key' => 'value')));
149 149
 
150
-		$this->assertEquals( array( 'key' => 'value' ), $this->object->getMultipleByTags( array( 'key', 'key' ) ) );
150
+		$this->assertEquals(array('key' => 'value'), $this->object->getMultipleByTags(array('key', 'key')));
151 151
 	}
152 152
 
153 153
 
154 154
 	public function testGetMultipleByTagsWithSiteId()
155 155
 	{
156
-		$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock );
156
+		$object = new \Aimeos\MW\Cache\Flow(array('siteid' => 1), $this->mock);
157 157
 
158
-		$this->mock->expects( $this->once() )->method( 'getByTag' )
159
-			->with( $this->equalTo( '1-key' ) )->will( $this->returnValue( array( '1-key' => 'value' ) ) );
158
+		$this->mock->expects($this->once())->method('getByTag')
159
+			->with($this->equalTo('1-key'))->will($this->returnValue(array('1-key' => 'value')));
160 160
 
161
-		$this->assertEquals( array( 'key' => 'value' ), $object->getMultipleByTags( array( 'key' ) ) );
161
+		$this->assertEquals(array('key' => 'value'), $object->getMultipleByTags(array('key')));
162 162
 	}
163 163
 
164 164
 
165 165
 	public function testSet()
166 166
 	{
167
-		$this->mock->expects( $this->once() )->method( 'set' )
167
+		$this->mock->expects($this->once())->method('set')
168 168
 			->with(
169
-				$this->equalTo( 'key' ), $this->equalTo( 'value' ),
170
-				$this->equalTo( array( 'tag' ) ), $this->greaterThan( 0 )
169
+				$this->equalTo('key'), $this->equalTo('value'),
170
+				$this->equalTo(array('tag')), $this->greaterThan(0)
171 171
 			);
172 172
 
173
-		$this->object->set( 'key', 'value', '2100-01-01 00:00:00', array( 'tag' ) );
173
+		$this->object->set('key', 'value', '2100-01-01 00:00:00', array('tag'));
174 174
 	}
175 175
 
176 176
 
177 177
 	public function testSetWithSiteId()
178 178
 	{
179
-		$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock );
179
+		$object = new \Aimeos\MW\Cache\Flow(array('siteid' => 1), $this->mock);
180 180
 
181
-		$this->mock->expects( $this->once() )->method( 'set' )
181
+		$this->mock->expects($this->once())->method('set')
182 182
 			->with(
183
-				$this->equalTo( '1-key' ), $this->equalTo( 'value' ),
184
-				$this->equalTo( array( '1-siteid', '1-tag' ) ), $this->equalTo( null )
183
+				$this->equalTo('1-key'), $this->equalTo('value'),
184
+				$this->equalTo(array('1-siteid', '1-tag')), $this->equalTo(null)
185 185
 			);
186 186
 
187
-		$object->set( 'key', 'value', null, array( 'tag' ) );
187
+		$object->set('key', 'value', null, array('tag'));
188 188
 	}
189 189
 
190 190
 
191 191
 	public function testSetMultiple()
192 192
 	{
193
-		$this->mock->expects( $this->once() )->method( 'set' )
193
+		$this->mock->expects($this->once())->method('set')
194 194
 			->with(
195
-				$this->equalTo( 'key' ), $this->equalTo( 'value' ),
196
-				$this->equalTo( array( 'tag' ) ), $this->greaterThan( 0 )
195
+				$this->equalTo('key'), $this->equalTo('value'),
196
+				$this->equalTo(array('tag')), $this->greaterThan(0)
197 197
 			);
198 198
 
199
-		$expires = array( 'key' => '2100-01-01 00:00:00' );
200
-		$this->object->setMultiple( array( 'key' => 'value' ), $expires, array( 'key' => array( 'tag' ) ) );
199
+		$expires = array('key' => '2100-01-01 00:00:00');
200
+		$this->object->setMultiple(array('key' => 'value'), $expires, array('key' => array('tag')));
201 201
 	}
202 202
 
203 203
 
204 204
 	public function testSetMultipleWithSiteId()
205 205
 	{
206
-		$object = new \Aimeos\MW\Cache\Flow( array( 'siteid' => 1 ), $this->mock );
206
+		$object = new \Aimeos\MW\Cache\Flow(array('siteid' => 1), $this->mock);
207 207
 
208
-		$this->mock->expects( $this->once() )->method( 'set' )
208
+		$this->mock->expects($this->once())->method('set')
209 209
 			->with(
210
-				$this->equalTo( '1-key' ), $this->equalTo( 'value' ),
211
-				$this->equalTo( array( '1-siteid', '1-tag' ) ), $this->equalTo( null )
210
+				$this->equalTo('1-key'), $this->equalTo('value'),
211
+				$this->equalTo(array('1-siteid', '1-tag')), $this->equalTo(null)
212 212
 			);
213 213
 
214
-		$object->setMultiple( array( 'key' => 'value' ), null, array( 'key' => array( 'tag' ) ) );
214
+		$object->setMultiple(array('key' => 'value'), null, array('key' => array('tag')));
215 215
 	}
216 216
 
217 217
 }
Please login to merge, or discard this patch.