Completed
Pull Request — master (#11)
by Karl
02:49
created
app/Models/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     {
35 35
         parent::boot();
36 36
 
37
-        static::creating(function ($model) {
37
+        static::creating(function($model) {
38 38
             $model->{$model->getKeyName()} = Uuid::uuid4();
39 39
         });
40 40
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         Route::group([
53 53
             'middleware' => 'web',
54 54
             'namespace' => $this->namespace,
55
-        ], function ($router) {
55
+        ], function($router) {
56 56
             require base_path('routes/web.php');
57 57
         });
58 58
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             'middleware' => 'api',
71 71
             'namespace' => $this->namespace,
72 72
             'prefix' => 'api',
73
-        ], function ($router) {
73
+        ], function($router) {
74 74
             require base_path('routes/api.php');
75 75
         });
76 76
     }
Please login to merge, or discard this patch.
app/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         /*
18 18
          * Authenticate the user's personal channel...
19 19
          */
20
-        Broadcast::channel('App.User.*', function ($user, $userId) {
20
+        Broadcast::channel('App.User.*', function($user, $userId) {
21 21
             return (int) $user->id === (int) $userId;
22 22
         });
23 23
     }
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             \JobApis\JobsToMail\Repositories\UserRepository::class
29 29
         );
30 30
         // Job board API client
31
-        $this->app->bind(JobsMulti::class, function () {
31
+        $this->app->bind(JobsMulti::class, function() {
32 32
             return new JobsMulti(config('jobboards'));
33 33
         });
34 34
     }
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     protected function unauthenticated($request, AuthenticationException $exception)
58 58
     {
59 59
         if ($request->expectsJson()) {
60
-            return response()->json(['error' => 'Unauthenticated.'], 401);
60
+            return response()->json([ 'error' => 'Unauthenticated.' ], 401);
61 61
         }
62 62
 
63 63
         return redirect()->guest('login');
Please login to merge, or discard this patch.
app/Notifications/TokenGenerated.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function via($notifiable)
35 35
     {
36
-        return ['mail'];
36
+        return [ 'mail' ];
37 37
     }
38 38
 
39 39
     /**
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $url = config('app.url').'users/confirm/'.$this->token;
48 48
         $message = new MailMessage;
49
-        $message->viewData['user_id'] = $notifiable->id;
49
+        $message->viewData[ 'user_id' ] = $notifiable->id;
50 50
         return $message
51 51
             ->subject('Confirm your email address to start receiving jobs')
52 52
             ->greeting('Thank you for joining JobsToMail.com.')
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php namespace JobApis\JobsToMail\Notifications;
2 2
 
3 3
 use Illuminate\Bus\Queueable;
4
-use Illuminate\Notifications\Notification;
5 4
 use Illuminate\Contracts\Queue\ShouldQueue;
6 5
 use Illuminate\Notifications\Messages\MailMessage;
6
+use Illuminate\Notifications\Notification;
7 7
 use JobApis\JobsToMail\Models\Token;
8 8
 
9 9
 class TokenGenerated extends Notification implements ShouldQueue
Please login to merge, or discard this patch.
app/Notifications/Messages/JobMailMessage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 class JobMailMessage extends MailMessage
9 9
 {
10
-    public $jobListings = [];
10
+    public $jobListings = [ ];
11 11
 
12 12
     /**
13 13
      * Add a Job listing to the notification
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             $line .= " in {$job->getLocation()}";
27 27
         }
28 28
         $line .= ".";
29
-        $this->jobListings[] = [
29
+        $this->jobListings[ ] = [
30 30
             'link' => $job->getUrl(),
31 31
             'text' => $line,
32 32
         ];
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         return array_merge(
44 44
             $this->toArray(),
45 45
             $this->viewData,
46
-            ['jobListings' => $this->jobListings]
46
+            [ 'jobListings' => $this->jobListings ]
47 47
         );
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
app/Http/Controllers/UsersController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php namespace JobApis\JobsToMail\Http\Controllers;
2 2
 
3
+use Illuminate\Foundation\Validation\ValidatesRequests;
3 4
 use Illuminate\Http\Request;
4 5
 use Illuminate\Routing\Controller as BaseController;
5
-use Illuminate\Foundation\Validation\ValidatesRequests;
6 6
 use JobApis\JobsToMail\Http\Requests\CreateUser;
7 7
 use JobApis\JobsToMail\Repositories\Contracts\UserRepositoryInterface;
8 8
 
Please login to merge, or discard this patch.
database/migrations/2014_10_12_100000_create_tokens_table.php 2 patches
Unused Use Statements   +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
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6 6
 
7 7
 class CreateTokensTable extends Migration
8 8
 {
Please login to merge, or discard this 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('tokens', function (Blueprint $table) {
16
+        Schema::create('tokens', function(Blueprint $table) {
17 17
             $table->string('token');
18 18
             $table->primary('token');
19 19
             $table->string('type');
Please login to merge, or discard this patch.