@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @return void |
28 | 28 | */ |
29 | 29 | public function addProperty(string $model, string $key): void { |
30 | - if(!$this->hasProperties($model)) { |
|
30 | + if (!$this->hasProperties($model)) { |
|
31 | 31 | $this->properties[$model] = []; |
32 | 32 | } |
33 | 33 | $this->properties[$model][] = $key; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function getProperties(string $model): array |
54 | 54 | { |
55 | - if($this->hasProperties($model)) { |
|
55 | + if ($this->hasProperties($model)) { |
|
56 | 56 | return $this->properties[$model]; |
57 | 57 | } |
58 | 58 | return []; |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | public function boot() |
103 | 103 | { |
104 | - $this->app->make(Factory::class)->load(__DIR__ . '/../database/factories'); |
|
104 | + $this->app->make(Factory::class)->load(__DIR__.'/../database/factories'); |
|
105 | 105 | $this->setupRouteModelBinding(); |
106 | 106 | $this->setupRoutes(); |
107 | 107 | } |
@@ -111,10 +111,10 @@ discard block |
||
111 | 111 | */ |
112 | 112 | protected function registerConfig() |
113 | 113 | { |
114 | - $this->publishes([__DIR__ .'/../config/config.php' => config_path('control.php'), |
|
114 | + $this->publishes([__DIR__.'/../config/config.php' => config_path('control.php'), |
|
115 | 115 | ], 'config'); |
116 | 116 | $this->mergeConfigFrom( |
117 | - __DIR__ .'/../config/control.php', 'control' |
|
117 | + __DIR__.'/../config/control.php', 'control' |
|
118 | 118 | ); |
119 | 119 | } |
120 | 120 | |
@@ -126,13 +126,13 @@ discard block |
||
126 | 126 | public function registerFactories() |
127 | 127 | { |
128 | 128 | if (!app()->environment('production')) { |
129 | - $this->app->make(Factory::class)->load(__DIR__ .'/../database/factories'); |
|
129 | + $this->app->make(Factory::class)->load(__DIR__.'/../database/factories'); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 | |
133 | 133 | public function registerMigrations() |
134 | 134 | { |
135 | - $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); |
|
135 | + $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | public function bindContracts() |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | Route::prefix(config('control.api_prefix')) |
257 | 257 | ->middleware(config('control.api_middleware')) |
258 | 258 | ->namespace('BristolSU\ControlDB\Http\Controllers') |
259 | - ->group(__DIR__ . '/../routes/api.php'); |
|
259 | + ->group(__DIR__.'/../routes/api.php'); |
|
260 | 260 | } |
261 | 261 | |
262 | 262 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('control_data_user', function (Blueprint $table) { |
|
16 | + Schema::create('control_data_user', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->string('first_name')->nullable(); |
19 | 19 | $table->string('last_name')->nullable(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('control_groups', function (Blueprint $table) { |
|
16 | + Schema::create('control_groups', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->unsignedInteger('data_provider_id')->unique(); |
19 | 19 | $table->timestamps(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('control_users', function (Blueprint $table) { |
|
16 | + Schema::create('control_users', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->unsignedBigInteger('data_provider_id')->unique(); |
19 | 19 | $table->timestamps(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('control_tags', function (Blueprint $table) { |
|
16 | + Schema::create('control_tags', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->text('description'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('control_taggables', function (Blueprint $table) { |
|
16 | + Schema::create('control_taggables', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->unsignedBigInteger('tag_id'); |
19 | 19 | $table->unsignedBigInteger('taggable_id'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('control_roles', function (Blueprint $table) { |
|
16 | + Schema::create('control_roles', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->unsignedBigInteger('data_provider_id')->unique(); |
19 | 19 | $table->unsignedInteger('position_id'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('control_group_user', function (Blueprint $table) { |
|
16 | + Schema::create('control_group_user', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->unsignedBigInteger('user_id'); |
19 | 19 | $table->unsignedBigInteger('group_id'); |