@@ -100,8 +100,7 @@ discard block |
||
100 | 100 | || ( ( $user = \Illuminate\Support\Facades\Auth::user() ) !== null && $user->superuser ) |
101 | 101 | ) { |
102 | 102 | $helper = new \Aimeos\MW\View\Helper\Access\All( $view ); |
103 | - } |
|
104 | - else |
|
103 | + } else |
|
105 | 104 | { |
106 | 105 | $support = $this->support; |
107 | 106 | |
@@ -245,8 +244,7 @@ discard block |
||
245 | 244 | { |
246 | 245 | $i18n = $this->i18n->get( array( $locale ) ); |
247 | 246 | $translation = $i18n[$locale]; |
248 | - } |
|
249 | - else |
|
247 | + } else |
|
250 | 248 | { |
251 | 249 | $translation = new \Aimeos\MW\Translation\None( 'en' ); |
252 | 250 | } |
@@ -283,7 +283,7 @@ |
||
283 | 283 | } |
284 | 284 | } |
285 | 285 | |
286 | - $helper = new \Aimeos\MW\View\Helper\Url\Laravel5( $view, app('url'), $fixed ); |
|
286 | + $helper = new \Aimeos\MW\View\Helper\Url\Laravel5( $view, app( 'url' ), $fixed ); |
|
287 | 287 | $view->addHelper( 'url', $helper ); |
288 | 288 | |
289 | 289 | return $view; |
@@ -4,7 +4,7 @@ |
||
4 | 4 | { |
5 | 5 | public function testIndexAction() |
6 | 6 | { |
7 | - $response = $this->action('GET', '\Aimeos\Shop\Controller\AdminController@indexAction'); |
|
7 | + $response = $this->action( 'GET', '\Aimeos\Shop\Controller\AdminController@indexAction' ); |
|
8 | 8 | |
9 | 9 | $this->assertEquals( '302', $response->getStatusCode() ); |
10 | 10 | } |
@@ -4,15 +4,15 @@ |
||
4 | 4 | { |
5 | 5 | public function testGet() |
6 | 6 | { |
7 | - $aimeos = $this->app->make('\Aimeos\Shop\Base\Aimeos'); |
|
7 | + $aimeos = $this->app->make( '\Aimeos\Shop\Base\Aimeos' ); |
|
8 | 8 | |
9 | - $configMock = $this->getMockBuilder('\Illuminate\Config\Repository') |
|
10 | - ->setMethods( array('get') )->getMock(); |
|
9 | + $configMock = $this->getMockBuilder( '\Illuminate\Config\Repository' ) |
|
10 | + ->setMethods( array( 'get' ) )->getMock(); |
|
11 | 11 | |
12 | - $configMock->expects( $this->exactly(4) )->method('get') |
|
12 | + $configMock->expects( $this->exactly( 4 ) )->method( 'get' ) |
|
13 | 13 | ->will( $this->onConsecutiveCalls( true, 'laravel:', array(), array() ) ); |
14 | 14 | |
15 | - $object = new \Aimeos\Shop\Base\Config($configMock, $aimeos); |
|
15 | + $object = new \Aimeos\Shop\Base\Config( $configMock, $aimeos ); |
|
16 | 16 | |
17 | 17 | $this->assertInstanceOf( '\Aimeos\MW\Config\Iface', $object->get() ); |
18 | 18 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | { |
6 | 6 | public function testCreateNoLocale() |
7 | 7 | { |
8 | - $config = $this->getMockBuilder('\Illuminate\Config\Repository')->getMock(); |
|
8 | + $config = $this->getMockBuilder( '\Illuminate\Config\Repository' )->getMock(); |
|
9 | 9 | |
10 | 10 | $i18n = $this->getMockBuilder( '\Aimeos\Shop\Base\I18n' ) |
11 | 11 | ->disableOriginalConstructor() |
@@ -4,7 +4,7 @@ |
||
4 | 4 | { |
5 | 5 | public function testGetNoLocale() |
6 | 6 | { |
7 | - $session = $this->getMockBuilder('\Illuminate\Session\Store')->disableOriginalConstructor()->getMock(); |
|
7 | + $session = $this->getMockBuilder( '\Illuminate\Session\Store' )->disableOriginalConstructor()->getMock(); |
|
8 | 8 | $config = $this->app->make( '\Aimeos\Shop\Base\Config' ); |
9 | 9 | $locale = $this->app->make( '\Aimeos\Shop\Base\Locale' ); |
10 | 10 | $i18n = $this->app->make( '\Aimeos\Shop\Base\I18n' ); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | { |
5 | 5 | public function testGetBackend() |
6 | 6 | { |
7 | - $mock = $this->getMockBuilder('\Illuminate\Config\Repository')->getMock(); |
|
7 | + $mock = $this->getMockBuilder( '\Illuminate\Config\Repository' )->getMock(); |
|
8 | 8 | $context = $this->app->make( '\Aimeos\Shop\Base\Context' )->get( false, 'backend' ); |
9 | 9 | |
10 | 10 | $object = new \Aimeos\Shop\Base\Locale( $mock ); |
@@ -4,19 +4,19 @@ |
||
4 | 4 | { |
5 | 5 | public function testGet() |
6 | 6 | { |
7 | - $aimeos = $this->app->make('\Aimeos\Shop\Base\Aimeos'); |
|
7 | + $aimeos = $this->app->make( '\Aimeos\Shop\Base\Aimeos' ); |
|
8 | 8 | |
9 | - $configMock = $this->getMockBuilder('\Illuminate\Config\Repository') |
|
10 | - ->setMethods( array('get', 'has') )->getMock(); |
|
9 | + $configMock = $this->getMockBuilder( '\Illuminate\Config\Repository' ) |
|
10 | + ->setMethods( array( 'get', 'has' ) )->getMock(); |
|
11 | 11 | |
12 | - $configMock->expects( $this->once() )->method('has') |
|
13 | - ->will( $this->returnValue(true) ); |
|
12 | + $configMock->expects( $this->once() )->method( 'has' ) |
|
13 | + ->will( $this->returnValue( true ) ); |
|
14 | 14 | |
15 | - $configMock->expects( $this->exactly(3) )->method('get') |
|
15 | + $configMock->expects( $this->exactly( 3 ) )->method( 'get' ) |
|
16 | 16 | ->will( $this->onConsecutiveCalls( true, 'laravel:', array() ) ); |
17 | 17 | |
18 | - $object = new \Aimeos\Shop\Base\I18n($configMock, $aimeos); |
|
19 | - $list = $object->get( array('en') ); |
|
18 | + $object = new \Aimeos\Shop\Base\I18n( $configMock, $aimeos ); |
|
19 | + $list = $object->get( array( 'en' ) ); |
|
20 | 20 | |
21 | 21 | $this->assertInstanceOf( '\Aimeos\MW\Translation\Iface', $list['en'] ); |
22 | 22 | } |
@@ -4,14 +4,14 @@ |
||
4 | 4 | { |
5 | 5 | public function testGet() |
6 | 6 | { |
7 | - $object = $this->app->make('\Aimeos\Shop\Base\Aimeos')->get(); |
|
7 | + $object = $this->app->make( '\Aimeos\Shop\Base\Aimeos' )->get(); |
|
8 | 8 | $this->assertInstanceOf( '\Aimeos\Bootstrap', $object ); |
9 | 9 | } |
10 | 10 | |
11 | 11 | |
12 | 12 | public function testGetVersion() |
13 | 13 | { |
14 | - $object = $this->app->make('\Aimeos\Shop\Base\Aimeos'); |
|
14 | + $object = $this->app->make( '\Aimeos\Shop\Base\Aimeos' ); |
|
15 | 15 | $this->assertInternalType( 'string', $object->getVersion() ); |
16 | 16 | } |
17 | 17 | } |
@@ -4,6 +4,6 @@ |
||
4 | 4 | { |
5 | 5 | public function testSetupCommand() |
6 | 6 | { |
7 | - $this->assertEquals(0, $this->artisan('aimeos:cache', array('site' => 'unittest'))); |
|
7 | + $this->assertEquals( 0, $this->artisan( 'aimeos:cache', array( 'site' => 'unittest' ) ) ); |
|
8 | 8 | } |
9 | 9 | } |