@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | { |
| 16 | 16 | Schema::table( |
| 17 | 17 | 'users', |
| 18 | - function (Blueprint $table) { |
|
| 18 | + function(Blueprint $table) { |
|
| 19 | 19 | $table->string('formio_password') |
| 20 | 20 | ->after('password') |
| 21 | 21 | ->nullable(); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | { |
| 33 | 33 | Schema::table( |
| 34 | 34 | 'users', |
| 35 | - function (Blueprint $table) { |
|
| 35 | + function(Blueprint $table) { |
|
| 36 | 36 | $table->dropColumn('formio_password'); |
| 37 | 37 | } |
| 38 | 38 | ); |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | if ($this->token->expired()) { |
| 192 | - throw new TokenException('Token expired ' . $this->token->expires_at->diffForHumans()); |
|
| 192 | + throw new TokenException('Token expired '.$this->token->expires_at->diffForHumans()); |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | try { |
@@ -270,6 +270,6 @@ discard block |
||
| 270 | 270 | */ |
| 271 | 271 | public function uri($path = null) |
| 272 | 272 | { |
| 273 | - return rtrim($this->configs['url'], '/') . '/' . ltrim($path, '/'); |
|
| 273 | + return rtrim($this->configs['url'], '/').'/'.ltrim($path, '/'); |
|
| 274 | 274 | } |
| 275 | 275 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function register() |
| 41 | 41 | { |
| 42 | - $this->mergeConfigFrom(__DIR__ . '/../../config/formio.php', 'formio'); |
|
| 42 | + $this->mergeConfigFrom(__DIR__.'/../../config/formio.php', 'formio'); |
|
| 43 | 43 | |
| 44 | 44 | $this->registerClient(); |
| 45 | 45 | |
@@ -67,10 +67,10 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | $this->app->bind( |
| 69 | 69 | Formio::class, |
| 70 | - function (Application $app) { |
|
| 70 | + function(Application $app) { |
|
| 71 | 71 | $formio = new Formio(Config::get('formio'), $app->make(Guzzle::class)); |
| 72 | 72 | |
| 73 | - $resourceIds = function () use ($formio) { |
|
| 73 | + $resourceIds = function() use ($formio) { |
|
| 74 | 74 | $id = $formio->login() |
| 75 | 75 | ->request('form?name=user')[0]['_id']; |
| 76 | 76 | |
@@ -94,8 +94,8 @@ discard block |
||
| 94 | 94 | $formio->setConfigs(Config::get('formio')); |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - $roleIds = function () use ($formio) { |
|
| 98 | - $roles = (array)$formio->login() |
|
| 97 | + $roleIds = function() use ($formio) { |
|
| 98 | + $roles = (array) $formio->login() |
|
| 99 | 99 | ->request('role?title=Authenticated')[0]['_id']; |
| 100 | 100 | |
| 101 | 101 | $formio->logout(); |
@@ -131,18 +131,18 @@ discard block |
||
| 131 | 131 | protected function registerPublishes() |
| 132 | 132 | { |
| 133 | 133 | if ($this->app->runningInConsole()) { |
| 134 | - $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations'); |
|
| 134 | + $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); |
|
| 135 | 135 | |
| 136 | 136 | $this->publishes( |
| 137 | 137 | [ |
| 138 | - __DIR__ . '/../../config/formio.php' => config_path('formio.php'), |
|
| 138 | + __DIR__.'/../../config/formio.php' => config_path('formio.php'), |
|
| 139 | 139 | ], |
| 140 | 140 | 'formio-config' |
| 141 | 141 | ); |
| 142 | 142 | |
| 143 | 143 | $this->publishes( |
| 144 | 144 | [ |
| 145 | - __DIR__ . '/../../database/migrations' => database_path('migrations'), |
|
| 145 | + __DIR__.'/../../database/migrations' => database_path('migrations'), |
|
| 146 | 146 | ], |
| 147 | 147 | 'formio-migrations' |
| 148 | 148 | ); |
@@ -160,8 +160,8 @@ discard block |
||
| 160 | 160 | 'namespace' => 'Spinen\Formio\Http\Controllers', |
| 161 | 161 | 'middleware' => Config::get('formio.route.middleware', ['api', 'auth:api']), |
| 162 | 162 | ], |
| 163 | - function () { |
|
| 164 | - $this->loadRoutesFrom(realpath(__DIR__ . '/../../routes/web.php')); |
|
| 163 | + function() { |
|
| 164 | + $this->loadRoutesFrom(realpath(__DIR__.'/../../routes/web.php')); |
|
| 165 | 165 | } |
| 166 | 166 | ); |
| 167 | 167 | } |