Passed
Push — master ( 2fe762...c88405 )
by Johnny
03:39
created
database/migrations/2017_03_17_080125_create_role_user_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('role_user', function (Blueprint $table) {
16
+        Schema::create('role_user', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->integer('user_id')->unsigned()->index();
19 19
             $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function down()
32 32
     {
33
-        Schema::table('role_user', function (Blueprint $table) {
33
+        Schema::table('role_user', function(Blueprint $table) {
34 34
             Schema::drop('role_user');
35 35
         });
36 36
     }
Please login to merge, or discard this patch.
database/migrations/2017_03_17_080010_create_roles_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('roles', function (Blueprint $table) {
16
+        Schema::create('roles', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->text('name');
19 19
             $table->timestamps();
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function down()
29 29
     {
30
-        Schema::table('roles', function (Blueprint $table) {
30
+        Schema::table('roles', function(Blueprint $table) {
31 31
             Schema::drop('roles');
32 32
         });
33 33
     }
Please login to merge, or discard this patch.
database/migrations/2017_03_14_184704_create_hits_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('hits', function (Blueprint $table) {
16
+        Schema::create('hits', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->integer('link_id')->unsigned()->nullable();
19 19
             $table->string('ip')->nullable();
Please login to merge, or discard this patch.
database/migrations/2017_03_20_230022_add_activation_flag_to_user_table.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::table('users', function (Blueprint $table) {
16
+        Schema::table('users', function(Blueprint $table) {
17 17
             $table->integer('activated')->default(0);
18 18
         });
19 19
 
20
-        Schema::table('users', function (Blueprint $table) {
20
+        Schema::table('users', function(Blueprint $table) {
21 21
             $table->string('email_token')->nullable();
22 22
         });
23 23
     }
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function down()
31 31
     {
32
-        Schema::table('users', function (Blueprint $table) {
32
+        Schema::table('users', function(Blueprint $table) {
33 33
             $table->dropColumn('activated');
34 34
         });
35 35
 
36
-        Schema::table('users', function (Blueprint $table) {
36
+        Schema::table('users', function(Blueprint $table) {
37 37
             $table->dropColumn('email_token');
38 38
         });
39 39
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function boot()
27 27
     {
28 28
         //
29
-        Route::bind('linkHash', function ($hash) {
29
+        Route::bind('linkHash', function($hash) {
30 30
             try {
31 31
                 return Link::where('hash', $hash)->firstOrFail();
32 32
             } catch (ModelNotFoundException $e) {
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 Route::get('/logout', ['as' => 'user.logout', 'uses' => 'Auth\LoginController@logout']);
21 21
 
22
-Route::get('/home', function () {
22
+Route::get('/home', function() {
23 23
     return redirect()->route('url_create');
24 24
 })->middleware('auth')->name('home');
25 25
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 Route::group([
30 30
     'prefix'     => '/admin',
31 31
     'middleware' => ['auth'],
32
-], function () {
32
+], function() {
33 33
     Route::resource('links', 'Admin\LinksController');
34 34
     Route::resource('users', 'Admin\UsersController');
35 35
     Route::resource('settings', 'Admin\SettingsController');
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 Route::group([
42 42
     'prefix'     => '/dashboard',
43 43
     'middleware' => ['auth'],
44
-], function () {
44
+], function() {
45 45
     Route::resource('links', 'UserDashboardController');
46 46
 });
47 47
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/LinksController.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers\Admin;
4 4
 
5
-use App\Http\Requests\Admin\LinksRequest;
6
-use Illuminate\Http\Request;
7 5
 use App\Http\Controllers\Controller;
6
+use App\Http\Requests\Admin\LinksRequest;
8 7
 use App\Link;
8
+use Illuminate\Http\Request;
9 9
 
10 10
 class LinksController extends Controller
11 11
 {
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/SettingsController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers\Admin;
4 4
 
5
-use Illuminate\Http\Request;
6 5
 use App\Http\Controllers\Controller;
6
+use Illuminate\Http\Request;
7 7
 
8 8
 class SettingsController extends Controller
9 9
 {
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/UsersController.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers\Admin;
4 4
 
5
-use App\Http\Requests\Admin\UserRequest;
6
-use Illuminate\Http\Request;
7 5
 use App\Http\Controllers\Controller;
6
+use App\Http\Requests\Admin\UserRequest;
8 7
 use App\User;
8
+use Illuminate\Http\Request;
9 9
 
10 10
 class UsersController extends Controller
11 11
 {
Please login to merge, or discard this patch.