@@ -7,11 +7,11 @@ |
||
7 | 7 | */ |
8 | 8 | |
9 | 9 | $app = new \Laravel\Lumen\Application( |
10 | - __DIR__ . '/../' |
|
10 | + __DIR__.'/../' |
|
11 | 11 | ); |
12 | 12 | |
13 | -$app->instance('path.config', app()->basePath() . DIRECTORY_SEPARATOR . 'config'); |
|
14 | -$app->instance('path.storage', app()->basePath() . DIRECTORY_SEPARATOR . 'storage'); |
|
13 | +$app->instance('path.config', app()->basePath().DIRECTORY_SEPARATOR.'config'); |
|
14 | +$app->instance('path.storage', app()->basePath().DIRECTORY_SEPARATOR.'storage'); |
|
15 | 15 | |
16 | 16 | $app->singleton( |
17 | 17 | \Illuminate\Contracts\Http\Kernel::class, |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * Time: 4:31 PM |
7 | 7 | */ |
8 | 8 | |
9 | -$file = __DIR__ . '/_output/database.sqlite'; |
|
9 | +$file = __DIR__.'/_output/database.sqlite'; |
|
10 | 10 | if (!file_exists($file)) { |
11 | 11 | file_put_contents($file, ''); |
12 | 12 | } |
13 | 13 | \ No newline at end of file |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $middleware = isset($config['middleware']) ? explode('|', $config['middleware']) : []; |
30 | 30 | $namespace = isset($config['namespace']) ? $config['namespace'] : 'App\Controllers\WAMP'; |
31 | 31 | |
32 | - $this->groups[] = (object)[ |
|
32 | + $this->groups[] = (object) [ |
|
33 | 33 | 'middleware' => $middleware, |
34 | 34 | 'namespace' => $namespace, |
35 | 35 | 'prefix' => isset($config['prefix']) ? $config['prefix'] : '', |
@@ -11,7 +11,7 @@ |
||
11 | 11 | 'connections' => [ |
12 | 12 | 'sqlite' => [ |
13 | 13 | 'driver' => 'sqlite', |
14 | - 'database' => __DIR__ . '/../../_output/database.sqlite', |
|
14 | + 'database' => __DIR__.'/../../_output/database.sqlite', |
|
15 | 15 | 'prefix' => env('DB_PREFIX', ''), |
16 | 16 | ] |
17 | 17 | ] |
@@ -6,14 +6,14 @@ |
||
6 | 6 | * Time: 4:18 PM |
7 | 7 | */ |
8 | 8 | |
9 | -require __DIR__ . '/../../../vendor/autoload.php'; |
|
9 | +require __DIR__.'/../../../vendor/autoload.php'; |
|
10 | 10 | |
11 | 11 | use sonrac\WAMP\WAMPServiceProvider; |
12 | 12 | |
13 | 13 | $isLumen = class_exists('\Laravel\Lumen\Application'); |
14 | 14 | |
15 | 15 | /** @var \Laravel\Lumen\Application|\Illuminate\Foundation\Application $app */ |
16 | -$app = require ($isLumen ? __DIR__ . '/lumen.php' : __DIR__ . '/laravel.php'); |
|
16 | +$app = require ($isLumen ? __DIR__.'/lumen.php' : __DIR__.'/laravel.php'); |
|
17 | 17 | |
18 | 18 | $app->register(WAMPServiceProvider::class); |
19 | 19 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function register() |
30 | 30 | { |
31 | - $config = require __DIR__ . '/../config/wamp.php'; |
|
31 | + $config = require __DIR__.'/../config/wamp.php'; |
|
32 | 32 | $file = base_path('config/wamp.php'); |
33 | 33 | if (class_exists('\Laravel\Lumen\Application')) { |
34 | 34 | // Configure wamp config for lumen |
@@ -158,7 +158,7 @@ |
||
158 | 158 | if (is_string($callback)) { |
159 | 159 | list($class, $method) = explode('&', $callback); |
160 | 160 | |
161 | - $callback = function (ConnectionOpenEvent $event) use ($class, $method) { |
|
161 | + $callback = function(ConnectionOpenEvent $event) use ($class, $method) { |
|
162 | 162 | $class = app()->make($class); |
163 | 163 | |
164 | 164 | return $class->{$method}($event); |