@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | public function up() |
13 | 13 | { |
14 | 14 | // Create table for storing roles |
15 | - Schema::create('roles', function (Blueprint $table) { |
|
15 | + Schema::create('roles', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('name')->unique(); |
18 | 18 | $table->string('display_name')->nullable(); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | }); |
22 | 22 | |
23 | 23 | // Create table for associating roles to users (Many-to-Many) |
24 | - Schema::create('role_user', function (Blueprint $table) { |
|
24 | + Schema::create('role_user', function(Blueprint $table) { |
|
25 | 25 | $table->integer('user_id')->unsigned(); |
26 | 26 | $table->integer('role_id')->unsigned(); |
27 | 27 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | }); |
35 | 35 | |
36 | 36 | // Create table for storing permissions |
37 | - Schema::create('permissions', function (Blueprint $table) { |
|
37 | + Schema::create('permissions', function(Blueprint $table) { |
|
38 | 38 | $table->increments('id'); |
39 | 39 | $table->string('name')->unique(); |
40 | 40 | $table->string('display_name')->nullable(); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | }); |
44 | 44 | |
45 | 45 | // Create table for associating permissions to roles (Many-to-Many) |
46 | - Schema::create('permission_role', function (Blueprint $table) { |
|
46 | + Schema::create('permission_role', function(Blueprint $table) { |
|
47 | 47 | $table->integer('permission_id')->unsigned(); |
48 | 48 | $table->integer('role_id')->unsigned(); |
49 | 49 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function debugDatabaseQueries($log = true, $terminal = false) |
29 | 29 | { |
30 | 30 | if (Config::get('database.query_debugging')) { |
31 | - DB::listen(function ($event) use ($terminal, $log) { |
|
31 | + DB::listen(function($event) use ($terminal, $log) { |
|
32 | 32 | $fullQuery = vsprintf(str_replace(['%', '?'], ['%%', '%s'], $event->sql), $event->bindings); |
33 | 33 | |
34 | 34 | $text = $event->connectionName . ' (' . $event->time . '): ' . $fullQuery; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function changeTheDefaultDatabaseModelsFactoriesPath($customPath) |
53 | 53 | { |
54 | - App::singleton(\Illuminate\Database\Eloquent\Factory::class, function ($app) use ($customPath) { |
|
54 | + App::singleton(\Illuminate\Database\Eloquent\Factory::class, function($app) use ($customPath) { |
|
55 | 55 | $faker = $app->make(\Faker\Generator::class); |
56 | 56 | |
57 | 57 | return \Illuminate\Database\Eloquent\Factory::construct($faker, base_path() . $customPath); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $allServiceProviders[] = PortButler::buildMainServiceProvider($containersNamespace, $containerName); |
73 | 73 | } |
74 | 74 | |
75 | - return array_unique($allServiceProviders) ? : []; |
|
75 | + return array_unique($allServiceProviders) ?: []; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | if (File::isDirectory($containerMigrationDirectory)) { |
103 | 103 | |
104 | - App::afterResolving('migrator', function ($migrator) use ($containerMigrationDirectory) { |
|
104 | + App::afterResolving('migrator', function($migrator) use ($containerMigrationDirectory) { |
|
105 | 105 | foreach ((array)$containerMigrationDirectory as $path) { |
106 | 106 | $migrator->path($path); |
107 | 107 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | // if DataArray `\League\Fractal\Serializer\DataArraySerializer` do noting since it's set by default by the Dingo API |
130 | 130 | if ($serializerName !== 'DataArray') { |
131 | - app('Dingo\Api\Transformer\Factory')->setAdapter(function () use ($serializerName) { |
|
131 | + app('Dingo\Api\Transformer\Factory')->setAdapter(function() use ($serializerName) { |
|
132 | 132 | switch ($serializerName) { |
133 | 133 | case 'JsonApi': |
134 | 134 | $serializer = new \League\Fractal\Serializer\JsonApiSerializer(Config::get('api.domain')); |