Passed
Push — master ( a73ad8...3da6f7 )
by Aimeos
03:37
created
src/Aimeos/Shop/Controller/CheckoutController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 			$params['aibody'][$name] = Shop::get( $name )->getBody();
37 37
 		}
38 38
 
39
-		return Response::view('shop::checkout.confirm', $params)->header('Cache-Control', 'no-store');
39
+		return Response::view( 'shop::checkout.confirm', $params )->header( 'Cache-Control', 'no-store' );
40 40
 	}
41 41
 
42 42
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 			$params['aibody'][$name] = Shop::get( $name )->getBody();
54 54
 		}
55 55
 
56
-		return Response::view('shop::checkout.index', $params)->header('Cache-Control', 'no-store');
56
+		return Response::view( 'shop::checkout.index', $params )->header( 'Cache-Control', 'no-store' );
57 57
 	}
58 58
 
59 59
 
@@ -70,6 +70,6 @@  discard block
 block discarded – undo
70 70
 			$params['aibody'][$name] = Shop::get( $name )->getBody();
71 71
 		}
72 72
 
73
-		return Response::view('shop::checkout.update', $params)->header('Cache-Control', 'no-store');
73
+		return Response::view( 'shop::checkout.update', $params )->header( 'Cache-Control', 'no-store' );
74 74
 	}
75 75
 }
76 76
\ No newline at end of file
Please login to merge, or discard this patch.
src/Aimeos/Shop/Controller/JqadmController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,8 +234,8 @@
 block discarded – undo
234 234
 		$paths = $aimeos->getCustomPaths( 'admin/jqadm/templates' );
235 235
 
236 236
 		$context = app( 'aimeos.context' )->get( false, 'backend' );
237
-		$context->setI18n( app('aimeos.i18n')->get( array( $lang, 'en' ) ) );
238
-		$context->setLocale( app('aimeos.locale')->getBackend( $context, $site ) );
237
+		$context->setI18n( app( 'aimeos.i18n' )->get( array( $lang, 'en' ) ) );
238
+		$context->setLocale( app( 'aimeos.locale' )->getBackend( $context, $site ) );
239 239
 
240 240
 		$view = app( 'aimeos.view' )->create( $context, $paths, $lang );
241 241
 
Please login to merge, or discard this patch.
src/Aimeos/Shop/Controller/PageController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public function privacyAction()
31 31
 	{
32
-		return View::make('shop::page.privacy');
32
+		return View::make( 'shop::page.privacy' );
33 33
 	}
34 34
 
35 35
 
@@ -40,6 +40,6 @@  discard block
 block discarded – undo
40 40
 	 */
41 41
 	public function termsAction()
42 42
 	{
43
-		return View::make('shop::page.terms');
43
+		return View::make( 'shop::page.terms' );
44 44
 	}
45 45
 }
46 46
\ No newline at end of file
Please login to merge, or discard this patch.
src/Aimeos/Shop/Base/Context.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,11 +85,11 @@
 block discarded – undo
85 85
 			$this->addMessageQueueManager( $context );
86 86
 			$this->addLogger( $context );
87 87
 			$this->addCache( $context );
88
-			$this->addMailer( $context);
88
+			$this->addMailer( $context );
89 89
 			$this->addProcess( $context );
90 90
 			$this->addSession( $context );
91
-			$this->addUser( $context);
92
-			$this->addGroups( $context);
91
+			$this->addUser( $context );
92
+			$this->addGroups( $context );
93 93
 
94 94
 			$this->context = $context;
95 95
 		}
Please login to merge, or discard this patch.
src/Aimeos/Shop/Base/View.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Aimeos/Shop/Base/Shop.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 	 * @param \Aimeos\Shop\Base\Context $context Context object
42 42
 	 * @param \Aimeos\Shop\Base\View $view View object
43 43
 	 */
44
-	public function __construct(  \Aimeos\Shop\Base\Aimeos $aimeos,
44
+	public function __construct( \Aimeos\Shop\Base\Aimeos $aimeos,
45 45
 		\Aimeos\Shop\Base\Context $context, \Aimeos\Shop\Base\View $view )
46 46
 	{
47 47
 		$this->context = $context->get();
Please login to merge, or discard this patch.
src/Aimeos/Shop/Base/Locale.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
 			if( Route::current() )
62 62
 			{
63
-				$site =  Route::input( 'site', $site );
63
+				$site = Route::input( 'site', $site );
64 64
 				$currency = Route::input( 'currency', $currency );
65 65
 				$lang = Route::input( 'locale', $lang );
66 66
 			}
Please login to merge, or discard this patch.
src/Aimeos/Shop/ShopServiceProvider.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 		$this->loadRoutesFrom( $basedir . 'routes.php' );
43 43
 		$this->loadViewsFrom( $basedir . 'views', 'shop' );
44 44
 
45
-		$this->publishes( [ $basedir . 'config/shop.php' => config_path( 'shop.php' ) ], 'config' );
46
-		$this->publishes( [ dirname( $basedir ) . $ds . 'public' => public_path( 'packages/aimeos/shop' ) ], 'public' );
45
+		$this->publishes( [$basedir . 'config/shop.php' => config_path( 'shop.php' )], 'config' );
46
+		$this->publishes( [dirname( $basedir ) . $ds . 'public' => public_path( 'packages/aimeos/shop' )], 'public' );
47 47
 	}
48 48
 
49 49
 
@@ -54,38 +54,38 @@  discard block
 block discarded – undo
54 54
 	 */
55 55
 	public function register()
56 56
 	{
57
-		$this->mergeConfigFrom( dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR . 'default.php', 'shop');
57
+		$this->mergeConfigFrom( dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR . 'default.php', 'shop' );
58 58
 
59
-		$this->app->singleton('aimeos', function($app) {
60
-			return new \Aimeos\Shop\Base\Aimeos($app['config']);
59
+		$this->app->singleton( 'aimeos', function( $app ) {
60
+			return new \Aimeos\Shop\Base\Aimeos( $app['config'] );
61 61
 		});
62 62
 
63
-		$this->app->singleton('aimeos.config', function($app) {
64
-			return new \Aimeos\Shop\Base\Config($app['config'], $app['aimeos']);
63
+		$this->app->singleton( 'aimeos.config', function( $app ) {
64
+			return new \Aimeos\Shop\Base\Config( $app['config'], $app['aimeos'] );
65 65
 		});
66 66
 
67
-		$this->app->singleton('aimeos.i18n', function($app) {
68
-			return new \Aimeos\Shop\Base\I18n($this->app['config'], $app['aimeos']);
67
+		$this->app->singleton( 'aimeos.i18n', function( $app ) {
68
+			return new \Aimeos\Shop\Base\I18n( $this->app['config'], $app['aimeos'] );
69 69
 		});
70 70
 
71
-		$this->app->singleton('aimeos.locale', function($app) {
72
-			return new \Aimeos\Shop\Base\Locale($app['config']);
71
+		$this->app->singleton( 'aimeos.locale', function( $app ) {
72
+			return new \Aimeos\Shop\Base\Locale( $app['config'] );
73 73
 		});
74 74
 
75
-		$this->app->singleton('aimeos.context', function($app) {
76
-			return new \Aimeos\Shop\Base\Context($app['session.store'], $app['aimeos.config'], $app['aimeos.locale'], $app['aimeos.i18n']);
75
+		$this->app->singleton( 'aimeos.context', function( $app ) {
76
+			return new \Aimeos\Shop\Base\Context( $app['session.store'], $app['aimeos.config'], $app['aimeos.locale'], $app['aimeos.i18n'] );
77 77
 		});
78 78
 
79
-		$this->app->singleton('aimeos.support', function($app) {
80
-			return new \Aimeos\Shop\Base\Support($app['aimeos.context'], $app['aimeos.locale']);
79
+		$this->app->singleton( 'aimeos.support', function( $app ) {
80
+			return new \Aimeos\Shop\Base\Support( $app['aimeos.context'], $app['aimeos.locale'] );
81 81
 		});
82 82
 
83
-		$this->app->singleton('aimeos.view', function($app) {
84
-			return new \Aimeos\Shop\Base\View($app['config'], $app['aimeos.i18n'], $app['aimeos.support']);
83
+		$this->app->singleton( 'aimeos.view', function( $app ) {
84
+			return new \Aimeos\Shop\Base\View( $app['config'], $app['aimeos.i18n'], $app['aimeos.support'] );
85 85
 		});
86 86
 
87
-		$this->app->singleton('aimeos.shop', function($app) {
88
-			return new \Aimeos\Shop\Base\Shop($app['aimeos'], $app['aimeos.context'], $app['aimeos.view']);
87
+		$this->app->singleton( 'aimeos.shop', function( $app ) {
88
+			return new \Aimeos\Shop\Base\Shop( $app['aimeos'], $app['aimeos.context'], $app['aimeos.view'] );
89 89
 		});
90 90
 
91 91
 
Please login to merge, or discard this patch.
src/default.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -4,40 +4,40 @@
 block discarded – undo
4 4
 
5 5
 	'apc_enabled' => false,
6 6
 	'apc_prefix' => 'laravel:',
7
-	'extdir' => base_path('ext'),
7
+	'extdir' => base_path( 'ext' ),
8 8
 	'pcntl_max' => 4,
9 9
 	'pcntl_priority' => 19,
10 10
 	'uploaddir' => '/',
11 11
 
12 12
 	'page' => array(
13
-		'account-index' => array( 'account/profile','account/subscription','account/history','account/favorite','account/watch','basket/mini','catalog/session' ),
14
-		'basket-index' => array( 'basket/standard','basket/related' ),
13
+		'account-index' => array( 'account/profile', 'account/subscription', 'account/history', 'account/favorite', 'account/watch', 'basket/mini', 'catalog/session' ),
14
+		'basket-index' => array( 'basket/standard', 'basket/related' ),
15 15
 		'catalog-count' => array( 'catalog/count' ),
16
-		'catalog-detail' => array( 'basket/mini','catalog/stage','catalog/detail','catalog/session' ),
17
-		'catalog-list' => array( 'basket/mini','catalog/filter','catalog/lists' ),
16
+		'catalog-detail' => array( 'basket/mini', 'catalog/stage', 'catalog/detail', 'catalog/session' ),
17
+		'catalog-list' => array( 'basket/mini', 'catalog/filter', 'catalog/lists' ),
18 18
 		'catalog-stock' => array( 'catalog/stock' ),
19 19
 		'catalog-suggest' => array( 'catalog/suggest' ),
20
-		'catalog-tree' => array( 'basket/mini','catalog/filter','catalog/stage','catalog/lists' ),
20
+		'catalog-tree' => array( 'basket/mini', 'catalog/filter', 'catalog/stage', 'catalog/lists' ),
21 21
 		'checkout-confirm' => array( 'checkout/confirm' ),
22 22
 		'checkout-index' => array( 'checkout/standard' ),
23
-		'checkout-update' => array( 'checkout/update'),
23
+		'checkout-update' => array( 'checkout/update' ),
24 24
 	),
25 25
 
26 26
 	'resource' => array(
27 27
 		'db' => array(
28
-			'adapter' => config('database.connections.mysql.driver', 'mysql'),
29
-			'host' => config('database.connections.mysql.host', '127.0.0.1'),
30
-			'port' => config('database.connections.mysql.port', '3306'),
31
-			'socket' => config('database.connections.mysql.unix_socket', ''),
32
-			'database' => config('database.connections.mysql.database', 'forge'),
33
-			'username' => config('database.connections.mysql.username', 'forge'),
34
-			'password' => config('database.connections.mysql.password', ''),
28
+			'adapter' => config( 'database.connections.mysql.driver', 'mysql' ),
29
+			'host' => config( 'database.connections.mysql.host', '127.0.0.1' ),
30
+			'port' => config( 'database.connections.mysql.port', '3306' ),
31
+			'socket' => config( 'database.connections.mysql.unix_socket', '' ),
32
+			'database' => config( 'database.connections.mysql.database', 'forge' ),
33
+			'username' => config( 'database.connections.mysql.username', 'forge' ),
34
+			'password' => config( 'database.connections.mysql.password', '' ),
35 35
 			'stmt' => ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8mb4'; SET SESSION sql_mode='ANSI'"],
36 36
 			'opt-persistent' => 0,
37 37
 			'limit' => 3,
38 38
 			'defaultTableOptions' => [
39
-				'charset' => config('database.connections.mysql.charset'),
40
-				'collate' => config('database.connections.mysql.collation'),
39
+				'charset' => config( 'database.connections.mysql.charset' ),
40
+				'collate' => config( 'database.connections.mysql.collation' ),
41 41
 			],
42 42
 		),
43 43
 		'fs' => array(
Please login to merge, or discard this patch.