Completed
Push — master ( 54c889...492a61 )
by Karl
10s
created
database/migrations/2016_10_16_214801_create_notifications_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('notifications', function (Blueprint $table) {
15
+        Schema::create('notifications', function(Blueprint $table) {
16 16
             $table->uuid('id')->primary();
17 17
             $table->string('type');
18 18
             $table->uuid('notifiable_id');
Please login to merge, or discard this patch.
app/Models/Search.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         parent::boot();
35 35
 
36
-        static::creating(function ($model) {
36
+        static::creating(function($model) {
37 37
             $model->{$model->getKeyName()} = Uuid::uuid4();
38 38
         });
39 39
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function scopeActive($query)
57 57
     {
58
-        return $query->whereHas('user', function ($query) {
58
+        return $query->whereHas('user', function($query) {
59 59
             return $query->confirmed();
60 60
         });
61 61
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function scopeWhereUserEmail($query, $email = null)
69 69
     {
70
-        return $query->whereHas('user', function ($query) use ($email) {
70
+        return $query->whereHas('user', function($query) use ($email) {
71 71
             return $query->where('email', $email);
72 72
         });
73 73
     }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function scopeWhereUserId($query, $id = null)
81 81
     {
82
-        return $query->whereHas('user', function ($query) use ($id) {
82
+        return $query->whereHas('user', function($query) use ($id) {
83 83
             return $query->where('id', $id);
84 84
         });
85 85
     }
Please login to merge, or discard this patch.
database/migrations/2016_10_22_134445_recruiters.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('recruiters', function (Blueprint $table) {
16
+        Schema::create('recruiters', function(Blueprint $table) {
17 17
             $table->uuid('id')->primary();
18 18
             $table->string('name')->unique();
19 19
             $table->string('url')->nullable();
20 20
             $table->timestamps();
21 21
         });
22 22
 
23
-        Schema::table('searches', function (Blueprint $table) {
23
+        Schema::table('searches', function(Blueprint $table) {
24 24
             $table->boolean('no_recruiters')->default(false);
25 25
         });
26 26
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function down()
34 34
     {
35
-        Schema::table('searches', function (Blueprint $table) {
35
+        Schema::table('searches', function(Blueprint $table) {
36 36
             $table->dropColumn('no_recruiters');
37 37
         });
38 38
 
Please login to merge, or discard this patch.
app/Filters/RecruiterFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         // Make sure this search wants to filter recruiters
24 24
         if ($search->no_recruiters === true) {
25
-            return array_filter($jobs, function ($job) {
25
+            return array_filter($jobs, function($job) {
26 26
                 // Make sure this job has a company
27 27
                 if (isset($job->company)) {
28 28
                     // Make sure this company is not a recruiter
Please login to merge, or discard this patch.
resources/views/vendor/notifications/email-plain.blade.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! empty($greeting)) {
3
+if (!empty($greeting)) {
4 4
     echo $greeting, "\n\n";
5 5
 } else {
6 6
     echo $level == 'error' ? 'Whoops!' : 'Hello!', "\n\n";
7 7
 }
8 8
 
9
-if (! empty($introLines)) {
9
+if (!empty($introLines)) {
10 10
     echo implode("\n", $introLines), "\n\n";
11 11
 }
12 12
 
13 13
 if (isset($jobListings)) {
14 14
     foreach ($jobListings as $listing) {
15
-        echo $listing['title'].$listing['company'].$listing['location'].": ".$listing['link'], "\n";
16
-        if ($listing['date']) {
17
-            echo "Posted on {$listing['date']}", "\n\n";
15
+        echo $listing[ 'title' ].$listing[ 'company' ].$listing[ 'location' ].": ".$listing[ 'link' ], "\n";
16
+        if ($listing[ 'date' ]) {
17
+            echo "Posted on {$listing[ 'date' ]}", "\n\n";
18 18
         }
19 19
     }
20 20
 }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     echo "{$actionText}: {$actionUrl}", "\n\n";
24 24
 }
25 25
 
26
-if (! empty($outroLines)) {
26
+if (!empty($outroLines)) {
27 27
     echo implode("\n", $outroLines), "\n\n";
28 28
 }
29 29
 
Please login to merge, or discard this patch.
app/Http/Controllers/SearchesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         $results = $this->dispatchNow(new GetUserSearches($userId));
69 69
 
70 70
         if (!$results->isEmpty()) {
71
-            return view('searches.index', ['searches' => $results]);
71
+            return view('searches.index', [ 'searches' => $results ]);
72 72
         }
73 73
 
74 74
         return redirect('/');
Please login to merge, or discard this patch.
app/Http/Controllers/AuthController.php 1 patch
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 login(LoginUser $request)
35 35
     {
36
-        $email = $request->only('email')['email'];
36
+        $email = $request->only('email')[ 'email' ];
37 37
 
38 38
         $message = $this->dispatchNow(new SendLoginMessage($email));
39 39
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function postConfirm(Request $request)
61 61
     {
62
-        return $this->confirm($request, $request->only('token')['token']);
62
+        return $this->confirm($request, $request->only('token')[ 'token' ]);
63 63
     }
64 64
 
65 65
     /**
Please login to merge, or discard this patch.
app/Notifications/LoginTokenGenerated.php 1 patch
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.
app/Repositories/Contracts/UserRepositoryInterface.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,19 +6,19 @@
 block discarded – undo
6 6
 {
7 7
     public function confirm(User $user);
8 8
 
9
-    public function create($data = []);
9
+    public function create($data = [ ]);
10 10
 
11 11
     public function delete($id = null);
12 12
 
13
-    public function firstOrCreate($data = []);
13
+    public function firstOrCreate($data = [ ]);
14 14
 
15 15
     public function generateToken($user_id = null, $type = 'confirm');
16 16
 
17
-    public function getById($id = null, $options = []);
17
+    public function getById($id = null, $options = [ ]);
18 18
 
19 19
     public function getToken($token = null, $daysToExpire = 30);
20 20
 
21
-    public function getByEmail($email = null, $options = []);
21
+    public function getByEmail($email = null, $options = [ ]);
22 22
 
23
-    public function update($id = null, $data = []);
23
+    public function update($id = null, $data = [ ]);
24 24
 }
Please login to merge, or discard this patch.