Completed
Push — master ( 3a0c6f...c1f25f )
by Aimeos
01:50
created
lib/custom/tests/MW/View/Helper/Request/Laravel5Test.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,42 +17,42 @@
 block discarded – undo
17 17
 
18 18
 	protected function setUp()
19 19
 	{
20
-		if( !class_exists( '\Illuminate\Http\Request' ) ) {
21
-			$this->markTestSkipped( '\Illuminate\Http\Request is not available' );
20
+		if (!class_exists('\Illuminate\Http\Request')) {
21
+			$this->markTestSkipped('\Illuminate\Http\Request is not available');
22 22
 		}
23 23
 
24
-		if( !class_exists( '\Zend\Diactoros\Response' ) ) {
25
-			$this->markTestSkipped( '\Zend\Diactoros\Response is not available' );
24
+		if (!class_exists('\Zend\Diactoros\Response')) {
25
+			$this->markTestSkipped('\Zend\Diactoros\Response is not available');
26 26
 		}
27 27
 
28 28
 		$view = new \Aimeos\MW\View\Standard();
29
-		$param = array( 'HTTP_HOST' => 'localhost', 'REMOTE_ADDR' => '127.0.0.1' );
30
-		$request = new \Illuminate\Http\Request( [], [], [], [], [], $param, 'Content' );
29
+		$param = array('HTTP_HOST' => 'localhost', 'REMOTE_ADDR' => '127.0.0.1');
30
+		$request = new \Illuminate\Http\Request([], [], [], [], [], $param, 'Content');
31 31
 
32
-		$this->object = new \Aimeos\MW\View\Helper\Request\Laravel5( $view, $request );
32
+		$this->object = new \Aimeos\MW\View\Helper\Request\Laravel5($view, $request);
33 33
 	}
34 34
 
35 35
 
36 36
 	protected function tearDown()
37 37
 	{
38
-		unset( $this->object, $this->mock );
38
+		unset($this->object, $this->mock);
39 39
 	}
40 40
 
41 41
 
42 42
 	public function testTransform()
43 43
 	{
44
-		$this->assertInstanceOf( '\Aimeos\MW\View\Helper\Request\Laravel5', $this->object->transform() );
44
+		$this->assertInstanceOf('\Aimeos\MW\View\Helper\Request\Laravel5', $this->object->transform());
45 45
 	}
46 46
 
47 47
 
48 48
 	public function testGetClientAddress()
49 49
 	{
50
-		$this->assertEquals( '127.0.0.1', $this->object->getClientAddress() );
50
+		$this->assertEquals('127.0.0.1', $this->object->getClientAddress());
51 51
 	}
52 52
 
53 53
 
54 54
 	public function testGetTarget()
55 55
 	{
56
-		$this->assertEquals( null, $this->object->getTarget() );
56
+		$this->assertEquals(null, $this->object->getTarget());
57 57
 	}
58 58
 }
Please login to merge, or discard this patch.
lib/custom/src/MW/View/Helper/Url/Laravel5.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 	 * @param \Illuminate\Contracts\Routing\UrlGenerator $builder Laravel URL builder object
33 33
 	 * @param array Associative list of fixed parameters that should be available for all routes
34 34
 	 */
35
-	public function __construct( \Aimeos\MW\View\Iface $view, \Illuminate\Contracts\Routing\UrlGenerator $builder, array $fixed )
35
+	public function __construct(\Aimeos\MW\View\Iface $view, \Illuminate\Contracts\Routing\UrlGenerator $builder, array $fixed)
36 36
 	{
37
-		parent::__construct( $view );
37
+		parent::__construct($view);
38 38
 
39 39
 		$this->builder = $builder;
40 40
 		$this->fixed = $fixed;
@@ -52,13 +52,13 @@  discard block
 block discarded – undo
52 52
 	 * @param array $config Additional configuration parameter per URL
53 53
 	 * @return string Complete URL that can be used in the template
54 54
 	 */
55
-	public function transform( $target = null, $controller = null, $action = null, array $params = [], array $trailing = [], array $config = [] )
55
+	public function transform($target = null, $controller = null, $action = null, array $params = [], array $trailing = [], array $config = [])
56 56
 	{
57
-		$params = $this->sanitize( $params );
58
-		$values = $this->getValues( $config );
59
-		$fragment = ( !empty( $trailing ) ? '#' . implode( '/', $trailing ) : '' );
57
+		$params = $this->sanitize($params);
58
+		$values = $this->getValues($config);
59
+		$fragment = (!empty($trailing) ? '#'.implode('/', $trailing) : '');
60 60
 
61
-		return $this->builder->route( $target, $params + $this->fixed, $values['absoluteUri'] ) . $fragment;
61
+		return $this->builder->route($target, $params + $this->fixed, $values['absoluteUri']).$fragment;
62 62
 	}
63 63
 
64 64
 
@@ -68,13 +68,13 @@  discard block
 block discarded – undo
68 68
 	 * @param array $config Associative list of key/value pairs
69 69
 	 * @return array Associative list of sanitized key/value pairs
70 70
 	 */
71
-	protected function getValues( array $config )
71
+	protected function getValues(array $config)
72 72
 	{
73 73
 		$values = array(
74 74
 			'absoluteUri' => false,
75 75
 		);
76 76
 
77
-		if( isset( $config['absoluteUri'] ) ) {
77
+		if (isset($config['absoluteUri'])) {
78 78
 			$values['absoluteUri'] = (bool) $config['absoluteUri'];
79 79
 		}
80 80
 
Please login to merge, or discard this patch.
lib/custom/tests/MW/View/Helper/Url/Laravel5Test.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -17,37 +17,37 @@
 block discarded – undo
17 17
 
18 18
 	protected function setUp()
19 19
 	{
20
-		if( !interface_exists( '\\Illuminate\\Contracts\\Routing\\UrlGenerator' ) ) {
21
-			$this->markTestSkipped( '\\Illuminate\\Contracts\\Routing\\UrlGenerator is not available' );
20
+		if (!interface_exists('\\Illuminate\\Contracts\\Routing\\UrlGenerator')) {
21
+			$this->markTestSkipped('\\Illuminate\\Contracts\\Routing\\UrlGenerator is not available');
22 22
 		}
23 23
 
24 24
 		$view = new \Aimeos\MW\View\Standard();
25
-		$this->mock = $this->getMockBuilder( '\\Illuminate\\Contracts\\Routing\\UrlGenerator' )->getMock();
26
-		$this->object = new \Aimeos\MW\View\Helper\Url\Laravel5( $view, $this->mock, [] );
25
+		$this->mock = $this->getMockBuilder('\\Illuminate\\Contracts\\Routing\\UrlGenerator')->getMock();
26
+		$this->object = new \Aimeos\MW\View\Helper\Url\Laravel5($view, $this->mock, []);
27 27
 	}
28 28
 
29 29
 
30 30
 	protected function tearDown()
31 31
 	{
32
-		unset( $this->object, $this->mock );
32
+		unset($this->object, $this->mock);
33 33
 	}
34 34
 
35 35
 
36 36
 	public function testTransform()
37 37
 	{
38
-		$this->mock->expects( $this->once() )->method( 'route' )
39
-			->with( $this->equalTo( 'route'), $this->equalTo( array( 'key' => 'value' ) ), $this->equalTo( false ) );
38
+		$this->mock->expects($this->once())->method('route')
39
+			->with($this->equalTo('route'), $this->equalTo(array('key' => 'value')), $this->equalTo(false));
40 40
 
41
-		$this->object->transform( 'route', 'catalog', 'lists', array( 'key' => 'value' ) );
41
+		$this->object->transform('route', 'catalog', 'lists', array('key' => 'value'));
42 42
 	}
43 43
 
44 44
 
45 45
 	public function testTransformAbsolute()
46 46
 	{
47
-		$this->mock->expects( $this->once() )->method( 'route' )
48
-			->with( $this->equalTo( 'route'), $this->equalTo( [] ), $this->equalTo( true ) );
47
+		$this->mock->expects($this->once())->method('route')
48
+			->with($this->equalTo('route'), $this->equalTo([]), $this->equalTo(true));
49 49
 
50
-		$options = array( 'absoluteUri' => true );
51
-		$this->object->transform( 'route', 'catalog', 'lists', [], [], $options );
50
+		$options = array('absoluteUri' => true);
51
+		$this->object->transform('route', 'catalog', 'lists', [], [], $options);
52 52
 	}
53 53
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Session/Laravel5Test.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,32 +17,32 @@
 block discarded – undo
17 17
 
18 18
 	protected function setUp()
19 19
 	{
20
-		if( interface_exists( '\\Illuminate\\Session\\Store' ) === false ) {
21
-			$this->markTestSkipped( 'Class \\Illuminate\\Session\\Store not found' );
20
+		if (interface_exists('\\Illuminate\\Session\\Store') === false) {
21
+			$this->markTestSkipped('Class \\Illuminate\\Session\\Store not found');
22 22
 		}
23 23
 
24
-		$this->mock = $this->getMockBuilder( '\\Illuminate\\Session\\Store' )->getMock();
25
-		$this->object = new \Aimeos\MW\Session\Laravel5( $this->mock );
24
+		$this->mock = $this->getMockBuilder('\\Illuminate\\Session\\Store')->getMock();
25
+		$this->object = new \Aimeos\MW\Session\Laravel5($this->mock);
26 26
 	}
27 27
 
28 28
 
29 29
 	protected function tearDown()
30 30
 	{
31
-		unset( $this->object );
31
+		unset($this->object);
32 32
 	}
33 33
 
34 34
 
35 35
 	public function testGetDefault()
36 36
 	{
37
-		$this->mock->expects( $this->once() )->method( 'get' )->with( $this->equalTo( 'notexist' ) );
38
-		$this->object->get( 'notexist' );
37
+		$this->mock->expects($this->once())->method('get')->with($this->equalTo('notexist'));
38
+		$this->object->get('notexist');
39 39
 	}
40 40
 
41 41
 
42 42
 	public function testSet()
43 43
 	{
44
-		$this->mock->expects( $this->once() )->method( 'put' )
45
-			->with( $this->equalTo( 'key' ), $this->equalTo( 'value' ) );
46
-		$this->object->set( 'key', 'value' );
44
+		$this->mock->expects($this->once())->method('put')
45
+			->with($this->equalTo('key'), $this->equalTo('value'));
46
+		$this->object->set('key', 'value');
47 47
 	}
48 48
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/Logger/Laravel5Test.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -17,53 +17,53 @@
 block discarded – undo
17 17
 
18 18
 	protected function setUp()
19 19
 	{
20
-		if( interface_exists( '\\Illuminate\\Contracts\\Logging\\Log' ) === false ) {
21
-			$this->markTestSkipped( 'Class \\Illuminate\\Contracts\\Logging\\Log not found' );
20
+		if (interface_exists('\\Illuminate\\Contracts\\Logging\\Log') === false) {
21
+			$this->markTestSkipped('Class \\Illuminate\\Contracts\\Logging\\Log not found');
22 22
 		}
23 23
 
24
-		$this->mock = $this->getMockBuilder( '\\Illuminate\\Contracts\\Logging\\Log' )->getMock();
25
-		$this->object = new \Aimeos\MW\Logger\Laravel5( $this->mock );
24
+		$this->mock = $this->getMockBuilder('\\Illuminate\\Contracts\\Logging\\Log')->getMock();
25
+		$this->object = new \Aimeos\MW\Logger\Laravel5($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 testLog()
36 36
 	{
37
-		$this->mock->expects( $this->once() )->method( 'log' )
38
-			->with( $this->equalTo( 'msg' ), $this->equalTo( 'error' ) );
39
-		$this->object->log( 'msg' );
37
+		$this->mock->expects($this->once())->method('log')
38
+			->with($this->equalTo('msg'), $this->equalTo('error'));
39
+		$this->object->log('msg');
40 40
 	}
41 41
 
42 42
 
43 43
 	public function testNonScalarLog()
44 44
 	{
45
-		$this->mock->expects( $this->once() )->method( 'log' )
46
-			->with( $this->equalTo( '["error","error2",2]' ), $this->equalTo( 'error' ) );
47
-		$this->object->log( array( 'error', 'error2', 2 ) );
45
+		$this->mock->expects($this->once())->method('log')
46
+			->with($this->equalTo('["error","error2",2]'), $this->equalTo('error'));
47
+		$this->object->log(array('error', 'error2', 2));
48 48
 	}
49 49
 
50 50
 
51 51
 	public function testLogDebug()
52 52
 	{
53
-		$this->object->log( 'emergency', \Aimeos\MW\Logger\Base::EMERG );
54
-		$this->object->log( 'alert', \Aimeos\MW\Logger\Base::ALERT );
55
-		$this->object->log( 'critical', \Aimeos\MW\Logger\Base::CRIT );
56
-		$this->object->log( 'error', \Aimeos\MW\Logger\Base::ERR );
57
-		$this->object->log( 'warning', \Aimeos\MW\Logger\Base::WARN );
58
-		$this->object->log( 'notice', \Aimeos\MW\Logger\Base::NOTICE );
59
-		$this->object->log( 'info', \Aimeos\MW\Logger\Base::INFO );
60
-		$this->object->log( 'debug', \Aimeos\MW\Logger\Base::DEBUG );
53
+		$this->object->log('emergency', \Aimeos\MW\Logger\Base::EMERG);
54
+		$this->object->log('alert', \Aimeos\MW\Logger\Base::ALERT);
55
+		$this->object->log('critical', \Aimeos\MW\Logger\Base::CRIT);
56
+		$this->object->log('error', \Aimeos\MW\Logger\Base::ERR);
57
+		$this->object->log('warning', \Aimeos\MW\Logger\Base::WARN);
58
+		$this->object->log('notice', \Aimeos\MW\Logger\Base::NOTICE);
59
+		$this->object->log('info', \Aimeos\MW\Logger\Base::INFO);
60
+		$this->object->log('debug', \Aimeos\MW\Logger\Base::DEBUG);
61 61
 	}
62 62
 
63 63
 
64 64
 	public function testBadPriority()
65 65
 	{
66
-		$this->setExpectedException( '\\Aimeos\\MW\\Logger\\Exception' );
67
-		$this->object->log( 'error', -1 );
66
+		$this->setExpectedException('\\Aimeos\\MW\\Logger\\Exception');
67
+		$this->object->log('error', -1);
68 68
 	}
69 69
 }
Please login to merge, or discard this patch.
lib/custom/setup/CustomerChangeAddressRefidParentidLaravel.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	 */
41 41
 	public function getPostDependencies()
42 42
 	{
43
-		return array( 'TablesCreateLaravel' );
43
+		return array('TablesCreateLaravel');
44 44
 	}
45 45
 
46 46
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	 */
50 50
 	public function migrate()
51 51
 	{
52
-		$this->process( $this->mysql );
52
+		$this->process($this->mysql);
53 53
 	}
54 54
 
55 55
 
@@ -58,22 +58,22 @@  discard block
 block discarded – undo
58 58
 	 *
59 59
 	 * array string $stmts List of SQL statements for changing the columns
60 60
 	 */
61
-	protected function process( array $stmts )
61
+	protected function process(array $stmts)
62 62
 	{
63 63
 		$table = 'users_address';
64
-		$this->msg( sprintf( 'Rename "refid" to "parentid" in table "%1$s"', $table ), 0 ); $this->status( '' );
64
+		$this->msg(sprintf('Rename "refid" to "parentid" in table "%1$s"', $table), 0); $this->status('');
65 65
 
66
-		foreach( $stmts as $column => $stmts )
66
+		foreach ($stmts as $column => $stmts)
67 67
 		{
68
-			$this->msg( sprintf( 'Checking column "%1$s"', $column ), 1 );
68
+			$this->msg(sprintf('Checking column "%1$s"', $column), 1);
69 69
 
70
-			if( $this->schema->tableExists( $table )
71
-				&& $this->schema->columnExists( $table, $column ) === true
70
+			if ($this->schema->tableExists($table)
71
+				&& $this->schema->columnExists($table, $column) === true
72 72
 			) {
73
-				$this->executeList( $stmts );
74
-				$this->status( 'done' );
73
+				$this->executeList($stmts);
74
+				$this->status('done');
75 75
 			} else {
76
-				$this->status( 'OK' );
76
+				$this->status('OK');
77 77
 			}
78 78
 		}
79 79
 	}
Please login to merge, or discard this patch.
lib/custom/setup/CustomerRemoveLostUserDataLaravel.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	 */
39 39
 	public function getPostDependencies()
40 40
 	{
41
-		return array( 'TablesCreateMShop' );
41
+		return array('TablesCreateMShop');
42 42
 	}
43 43
 
44 44
 
@@ -47,29 +47,29 @@  discard block
 block discarded – undo
47 47
 	 */
48 48
 	public function migrate()
49 49
 	{
50
-		$this->msg( 'Remove left over Laravel user address records', 0 );
50
+		$this->msg('Remove left over Laravel user address records', 0);
51 51
 
52
-		if( $this->schema->tableExists( 'users' ) && $this->schema->tableExists( 'users_address' ) )
52
+		if ($this->schema->tableExists('users') && $this->schema->tableExists('users_address'))
53 53
 		{
54
-			$this->execute( $this->sql['address'] );
55
-			$this->status( 'done' );
54
+			$this->execute($this->sql['address']);
55
+			$this->status('done');
56 56
 		}
57 57
 		else
58 58
 		{
59
-			$this->status( 'OK' );
59
+			$this->status('OK');
60 60
 		}
61 61
 
62 62
 
63
-		$this->msg( 'Remove left over Laravel user list records', 0 );
63
+		$this->msg('Remove left over Laravel user list records', 0);
64 64
 
65
-		if( $this->schema->tableExists( 'users' ) && $this->schema->tableExists( 'users_list' ) )
65
+		if ($this->schema->tableExists('users') && $this->schema->tableExists('users_list'))
66 66
 		{
67
-			$this->execute( $this->sql['list'] );
68
-			$this->status( 'done' );
67
+			$this->execute($this->sql['list']);
68
+			$this->status('done');
69 69
 		}
70 70
 		else
71 71
 		{
72
-			$this->status( 'OK' );
72
+			$this->status('OK');
73 73
 		}
74 74
 	}
75 75
 }
Please login to merge, or discard this patch.
lib/custom/src/MShop/Customer/Manager/Address/Laravel.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 			'label' => 'Customer address ID',
26 26
 			'code' => 'customer.address.id',
27 27
 			'internalcode' => 'lvuad."id"',
28
-			'internaldeps' => array( 'LEFT JOIN "users_address" AS lvuad ON ( lvu."id" = lvuad."parentid" )' ),
28
+			'internaldeps' => array('LEFT JOIN "users_address" AS lvuad ON ( lvu."id" = lvuad."parentid" )'),
29 29
 			'type' => 'integer',
30 30
 			'internaltype' => \Aimeos\MW\DB\Statement\Base::PARAM_INT,
31 31
 			'public' => false,
@@ -222,14 +222,14 @@  discard block
 block discarded – undo
222 222
 	 *
223 223
 	 * @param array $siteids List of IDs for sites whose entries should be deleted
224 224
 	 */
225
-	public function cleanup( array $siteids )
225
+	public function cleanup(array $siteids)
226 226
 	{
227 227
 		$path = 'mshop/customer/manager/address/submanagers';
228
-		foreach( $this->getContext()->getConfig()->get( $path, [] ) as $domain ) {
229
-			$this->getObject()->getSubManager( $domain )->cleanup( $siteids );
228
+		foreach ($this->getContext()->getConfig()->get($path, []) as $domain) {
229
+			$this->getObject()->getSubManager($domain)->cleanup($siteids);
230 230
 		}
231 231
 
232
-		$this->cleanupBase( $siteids, 'mshop/customer/manager/address/laravel/delete' );
232
+		$this->cleanupBase($siteids, 'mshop/customer/manager/address/laravel/delete');
233 233
 	}
234 234
 
235 235
 
@@ -239,11 +239,11 @@  discard block
 block discarded – undo
239 239
 	 * @param boolean $withsub Return also attributes of sub-managers if true
240 240
 	 * @return array List of attribute items implementing \Aimeos\MW\Criteria\Attribute\Iface
241 241
 	 */
242
-	public function getSearchAttributes( $withsub = true )
242
+	public function getSearchAttributes($withsub = true)
243 243
 	{
244 244
 		$path = 'mshop/customer/manager/address/submanagers';
245 245
 
246
-		return $this->getSearchAttributesBase( $this->searchConfig, $path, [], $withsub );
246
+		return $this->getSearchAttributesBase($this->searchConfig, $path, [], $withsub);
247 247
 	}
248 248
 
249 249
 
@@ -254,9 +254,9 @@  discard block
 block discarded – undo
254 254
 	 * @param string|null $name Name of the implementation, will be from configuration (or Default) if null
255 255
 	 * @return mixed Manager for different extensions, e.g stock, tags, locations, etc.
256 256
 	 */
257
-	public function getSubManager( $manager, $name = null )
257
+	public function getSubManager($manager, $name = null)
258 258
 	{
259
-		return $this->getSubManagerBase( 'customer', 'address/' . $manager, ( $name === null ? 'Laravel' : $name ) );
259
+		return $this->getSubManagerBase('customer', 'address/'.$manager, ($name === null ? 'Laravel' : $name));
260 260
 	}
261 261
 
262 262
 
Please login to merge, or discard this patch.
lib/custom/src/MW/Filesystem/Manager/Laravel.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 	 * @param \Aimeos\MW\Config\Iface $config Configuration object
32 32
 	 * @param string $tempdir Directory for storing temporary files
33 33
 	 */
34
-	public function __construct( \Illuminate\Filesystem\FilesystemManager $fsm, \Aimeos\MW\Config\Iface $config, $tempdir )
34
+	public function __construct(\Illuminate\Filesystem\FilesystemManager $fsm, \Aimeos\MW\Config\Iface $config, $tempdir)
35 35
 	{
36
-		parent::__construct( $config );
36
+		parent::__construct($config);
37 37
 
38 38
 		$this->fsm = $fsm;
39 39
 		$this->tempdir = $tempdir;
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
 	 */
46 46
 	public function __destruct()
47 47
 	{
48
-		foreach( $this->objects as $key => $object ) {
49
-			unset( $this->objects[$key] );
48
+		foreach ($this->objects as $key => $object) {
49
+			unset($this->objects[$key]);
50 50
 		}
51 51
 	}
52 52
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
 		$this->objects = [];
62 62
 
63
-		return get_object_vars( $this );
63
+		return get_object_vars($this);
64 64
 	}
65 65
 
66 66
 
@@ -71,19 +71,19 @@  discard block
 block discarded – undo
71 71
 	 * @return \Aimeos\MW\Filesystem\Iface File system object
72 72
 	 * @throws \Aimeos\MW\Filesystem\Exception If an no configuration for that name is found
73 73
 	 */
74
-	public function get( $name )
74
+	public function get($name)
75 75
 	{
76
-		$key = $this->getConfig( $name );
76
+		$key = $this->getConfig($name);
77 77
 
78
-		if( is_string( $key ) )
78
+		if (is_string($key))
79 79
 		{
80
-			if( !isset( $this->objects[$key] ) ) {
81
-				$this->objects[$key] = new \Aimeos\MW\Filesystem\Laravel( $this->fsm->disk( $key ), $this->tempdir );
80
+			if (!isset($this->objects[$key])) {
81
+				$this->objects[$key] = new \Aimeos\MW\Filesystem\Laravel($this->fsm->disk($key), $this->tempdir);
82 82
 			}
83 83
 
84 84
 			return $this->objects[$key];
85 85
 		}
86 86
 
87
-		return parent::get( $name );
87
+		return parent::get($name);
88 88
 	}
89 89
 }
Please login to merge, or discard this patch.