@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | if (strstr($type, '/')) { |
16 | 16 | $pos = strrpos($type, '/'); |
17 | - $instanceId = substr($type, $pos+1); |
|
17 | + $instanceId = substr($type, $pos + 1); |
|
18 | 18 | $type = substr($type, 0, $pos); |
19 | 19 | } else { |
20 | 20 | $instanceId = null; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | protected function execute($input) |
27 | 27 | { |
28 | 28 | if (is_array($input) === true) { |
29 | - return array_map(function ($item) { |
|
29 | + return array_map(function($item) { |
|
30 | 30 | return $this->execute($item); |
31 | 31 | }, $input); |
32 | 32 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | public function register() |
59 | 59 | { |
60 | - $this->app->bind('xe.captcha', function ($app) { |
|
60 | + $this->app->bind('xe.captcha', function($app) { |
|
61 | 61 | $proxyClass = $app['xe.interception']->proxy(CaptchaManager::class, 'Captcha'); |
62 | 62 | $captchaManager = new $proxyClass($app); |
63 | 63 | return $captchaManager; |
@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | public function register() |
56 | 56 | { |
57 | - $this->app->bind('xe.category', function ($app) { |
|
57 | + $this->app->bind('xe.category', function($app) { |
|
58 | 58 | $proxyClass = $app['xe.interception']->proxy(CategoryHandler::class, 'Category'); |
59 | 59 | $categoryHandler = new $proxyClass( |
60 | 60 | new CategoryRepository($app['xe.db']->connection()), |
@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | public function register() |
58 | 58 | { |
59 | - $this->app->bind('xe.config', function ($app) { |
|
59 | + $this->app->bind('xe.config', function($app) { |
|
60 | 60 | $repo = new DatabaseRepository($app['xe.db']->connection()); |
61 | 61 | |
62 | 62 | if (env('APP_DEBUG') != true) { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | */ |
56 | 56 | public function register() |
57 | 57 | { |
58 | - $this->app->singleton('xe.counter', function ($app) { |
|
58 | + $this->app->singleton('xe.counter', function($app) { |
|
59 | 59 | $connection = $app['xe.db']->connection(); |
60 | 60 | |
61 | 61 | $sessionCounter = new SessionCounter(app('session.store')); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function register() |
70 | 70 | { |
71 | - $this->app->singleton('xe.dynamicField', function ($app) { |
|
71 | + $this->app->singleton('xe.dynamicField', function($app) { |
|
72 | 72 | |
73 | 73 | /** @var \Xpressengine\Database\VirtualConnectionInterface $connection */ |
74 | 74 | $connection = $app['xe.db']->connection(); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | ); |
81 | 81 | }); |
82 | 82 | |
83 | - $this->app->singleton('xe.dynamicField.revision', function ($app) { |
|
83 | + $this->app->singleton('xe.dynamicField.revision', function($app) { |
|
84 | 84 | return new RevisionManager($app['xe.dynamicField']); |
85 | 85 | }); |
86 | 86 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function register() |
44 | 44 | { |
45 | - $this->app->singleton('xe.keygen', function ($app) { |
|
45 | + $this->app->singleton('xe.keygen', function($app) { |
|
46 | 46 | $proxyClass = $app['xe.interception']->proxy(Keygen::class, 'Keygen'); |
47 | 47 | return new $proxyClass($app['config']['xe.uid']); |
48 | 48 | }); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $this->app->singleton( |
38 | 38 | 'xe.pluginRegister', |
39 | - function ($app) { |
|
39 | + function($app) { |
|
40 | 40 | |
41 | 41 | /** @var \Xpressengine\Interception\InterceptionHandler $interception */ |
42 | 42 | $interception = $app['xe.interception']; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | { |
56 | 56 | $this->app->singleton( |
57 | 57 | 'xe.plugin', |
58 | - function ($app) { |
|
58 | + function($app) { |
|
59 | 59 | |
60 | 60 | $pluginDir = base_path('plugins'); |
61 | 61 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | if ($app['config']->get('app.debug') === true) { |
67 | 67 | $cache = new ArrayPluginCache(); |
68 | 68 | $app->terminating( |
69 | - function () { |
|
69 | + function() { |
|
70 | 70 | app('cache')->driver('plugins')->forget('list'); |
71 | 71 | } |
72 | 72 | ); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | { |
104 | 104 | // boot plugins |
105 | 105 | $this->app->booted( |
106 | - function () { |
|
106 | + function() { |
|
107 | 107 | /** @var PluginHandler $pluginHandler */ |
108 | 108 | $pluginHandler = $this->app['xe.plugin']; |
109 | 109 | $pluginHandler->bootPlugins(); |