Completed
Push — master ( 94434d...92e1c0 )
by Şəhriyar
116:27 queued 99:47
created
database/migrations/2015_08_26_142147_cartalyst_sentinel.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function up()
31 31
     {
32
-        Schema::table('users', function (Blueprint $table) {
32
+        Schema::table('users', function(Blueprint $table) {
33 33
             $table->engine = 'InnoDB';
34 34
             $table->text('permissions')->nullable()->after('password');
35 35
             $table->timestamp('last_login')->nullable()->after('remember_token');
36 36
             $table->dropColumn('remember_token');
37 37
         });
38 38
 
39
-        Schema::create('activations', function (Blueprint $table) {
39
+        Schema::create('activations', function(Blueprint $table) {
40 40
             $table->engine = 'InnoDB';
41 41
             $table->increments('id');
42 42
             $table->unsignedInteger('user_id');
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             $table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade');
49 49
         });
50 50
 
51
-        Schema::create('persistences', function (Blueprint $table) {
51
+        Schema::create('persistences', function(Blueprint $table) {
52 52
             $table->engine = 'InnoDB';
53 53
             $table->increments('id');
54 54
             $table->unsignedInteger('user_id');
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             $table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade');
59 59
         });
60 60
 
61
-        Schema::create('reminders', function (Blueprint $table) {
61
+        Schema::create('reminders', function(Blueprint $table) {
62 62
             $table->increments('id');
63 63
             $table->unsignedInteger('user_id');
64 64
             $table->string('code');
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade');
70 70
         });
71 71
 
72
-        Schema::create('roles', function (Blueprint $table) {
72
+        Schema::create('roles', function(Blueprint $table) {
73 73
             $table->engine = 'InnoDB';
74 74
             $table->increments('id');
75 75
             $table->string('slug')->unique();
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $table->timestamps();
79 79
         });
80 80
 
81
-        Schema::create('role_users', function (Blueprint $table) {
81
+        Schema::create('role_users', function(Blueprint $table) {
82 82
             $table->engine = 'InnoDB';
83 83
             $table->unsignedInteger('user_id');
84 84
             $table->unsignedInteger('role_id');
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $table->foreign('role_id')->references('id')->on('roles')->onUpdate('cascade')->onDelete('cascade');
90 90
         });
91 91
 
92
-        Schema::create('throttle', function (Blueprint $table) {
92
+        Schema::create('throttle', function(Blueprint $table) {
93 93
             $table->engine = 'InnoDB';
94 94
             $table->increments('id');
95 95
             $table->unsignedInteger('user_id')->nullable();
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function down()
110 110
     {
111
-        Schema::table('users', function (Blueprint $table) {
111
+        Schema::table('users', function(Blueprint $table) {
112 112
             $table->dropColumn(['permissions', 'last_login']);
113 113
             $table->rememberToken();
114 114
         });
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__.'/../bootstrap/autoload.php';
3
+require __DIR__ . '/../bootstrap/autoload.php';
4 4
 
5
-$app = require_once __DIR__.'/../bootstrap/app.php';
5
+$app = require_once __DIR__ . '/../bootstrap/app.php';
6 6
 
7 7
 $kernel = $app->make(\Illuminate\Contracts\Http\Kernel::class);
8 8
 $response = $kernel->handle(
Please login to merge, or discard this patch.
app/Listeners/Users/SendActivationLinkViaEmail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
         $reminder = app('sentinel.reminders')->create($event->user);
13 13
         $token = $reminder->code;
14 14
         $view = config('auth.password.email');
15
-        app('mailer')->send($view, compact('user', 'token'), function (Message $m) use ($user, $token) {
15
+        app('mailer')->send($view, compact('user', 'token'), function(Message $m) use ($user, $token) {
16 16
             $m->to($user->email)->subject($this->getPasswordResetEmailSubject());
17 17
         });
18 18
     }
Please login to merge, or discard this patch.
database/migrations/2015_12_06_115712_create_files_users_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('files_users', function (Blueprint $table) {
15
+        Schema::create('files_users', function(Blueprint $table) {
16 16
             $table->engine = 'InnoDb';
17 17
             $table->string('file_hash', 64);
18 18
             $table->unsignedInteger('user_id');
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function down()
35 35
     {
36
-        Schema::table('files_users', function (Blueprint $table) {
36
+        Schema::table('files_users', function(Blueprint $table) {
37 37
             $table->dropForeign('files_users_file_hash_foreign');
38 38
             $table->dropForeign('files_users_user_id_foreign');
39 39
         });
Please login to merge, or discard this patch.
database/migrations/2015_05_13_125906_create_users_oauth_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('users_oauth', function (Blueprint $table) {
15
+        Schema::create('users_oauth', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->unsignedInteger('user_id');
18 18
             $table->string('remote_provider', 32);
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function down()
36 36
     {
37
-        Schema::table('users_oauth', function (Blueprint $table) {
37
+        Schema::table('users_oauth', function(Blueprint $table) {
38 38
             $table->dropForeign('users_oauth_user_id_foreign');
39 39
         });
40 40
         Schema::drop('users_oauth');
Please login to merge, or discard this patch.
database/migrations/2015_11_17_140922_create_files_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('files', function (Blueprint $table) {
15
+        Schema::create('files', function(Blueprint $table) {
16 16
             $table->engine = 'InnoDb';
17 17
 
18 18
             $table->integer('id', true, true);
Please login to merge, or discard this patch.
app/Http/Controllers/FilesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         /** @var \App\Models\User $me */
77 77
         $me = app('sentinel')->getUser();
78 78
 
79
-        $file = $me->with(['files' => function (BelongsToMany $query) use ($hash) {
79
+        $file = $me->with(['files' => function(BelongsToMany $query) use ($hash) {
80 80
             $query->where('hash', '=', $hash);
81 81
         }])->first()->files->first();
82 82
 
Please login to merge, or discard this patch.
app/Listeners/Files/PersistUploadedFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $tagLimit = config('filesystems.allowed_tags_and_limits.' . $tag);
50 50
         if ($tagLimit > 0) {
51 51
             $allFilesWithSameTagBelongingToUser = $me->load([
52
-                'files' => function (BelongsToMany $query) use ($tag) {
52
+                'files' => function(BelongsToMany $query) use ($tag) {
53 53
                     $query->wherePivot('tag', '=', $tag);
54 54
                 }
55 55
             ])->files;
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         // Non-localized, generic routes (such as those for admin panel etc).
43 43
         //-----------------------------------------------------------------------
44 44
 
45
-        $router->group(['namespace' => $this->namespace], function (Router $router) {
45
+        $router->group(['namespace' => $this->namespace], function(Router $router) {
46 46
             $router->get('/oauth/{provider}', 'Users\AuthController@getOAuth');
47 47
 
48 48
             $router->controllers([
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             }
67 67
 
68 68
             // Set localized routers.
69
-            $router->group(compact('namespace', 'middleware', 'prefix'), function (Router $router) use ($prefix) {
69
+            $router->group(compact('namespace', 'middleware', 'prefix'), function(Router $router) use ($prefix) {
70 70
                 $this->localizedRoutes($router, $prefix);
71 71
             });
72 72
         }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         //------------------------------------------------
77 77
 
78 78
         app('translator')->setLocale($defaultLocale);
79
-        $router->group(compact('namespace'), function (Router $router) use ($defaultLocale) {
79
+        $router->group(compact('namespace'), function(Router $router) use ($defaultLocale) {
80 80
             $this->localizedRoutes($router, $defaultLocale);
81 81
         });
82 82
     }
Please login to merge, or discard this patch.