Passed
Branch master (c8dac2)
by Jimmy
07:53
created
migrations/2019_09_23_194855_add_formio_password_to_users_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Providers/ServiceProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.