Completed
Push — master ( df0683...b52746 )
by Karl
06:54
created
database/migrations/2016_12_31_212809_drop-tiers.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::table('users', function (Blueprint $table) {
16
+        Schema::table('users', function(Blueprint $table) {
17 17
             $table->dropColumn('tier');
18 18
         });
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function down()
27 27
     {
28
-        Schema::table('users', function (Blueprint $table) {
28
+        Schema::table('users', function(Blueprint $table) {
29 29
             $table->string('tier')->default(config('app.user_tiers.free'));
30 30
         });
31 31
     }
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
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function via($notifiable)
37 37
     {
38
-        return ['mail'];
38
+        return [ 'mail' ];
39 39
     }
40 40
 
41 41
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $url = config('app.url').'auth/confirm/'.$this->token;
50 50
         $message = new MailMessage;
51
-        $message->viewData['user_id'] = $notifiable->id;
51
+        $message->viewData[ 'user_id' ] = $notifiable->id;
52 52
         return $message
53 53
             ->subject('Your Login Token for JobsToMail')
54 54
             ->line('Just click the button below to log in immediately.')
Please login to merge, or discard this patch.
app/Notifications/ConfirmationTokenGenerated.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function via($notifiable)
37 37
     {
38
-        return ['mail'];
38
+        return [ 'mail' ];
39 39
     }
40 40
 
41 41
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $url = config('app.url').'auth/confirm/'.$this->token;
50 50
         $message = new MailMessage;
51
-        $message->viewData['user_id'] = $notifiable->id;
51
+        $message->viewData[ 'user_id' ] = $notifiable->id;
52 52
         return $message
53 53
             ->subject('Confirm your email address to start receiving jobs')
54 54
             ->greeting('Thank you for joining '.config('app.name'))
Please login to merge, or discard this patch.
app/Notifications/JobsCollected.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function via($notifiable)
45 45
     {
46
-        return ['mail', 'database'];
46
+        return [ 'mail', 'database' ];
47 47
     }
48 48
 
49 49
     /**
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
         $message = new JobMailMessage();
73 73
 
74 74
         // Add user and search ID to view data
75
-        $message->viewData['user_id'] = $notifiable->id;
76
-        $message->viewData['search_id'] = $this->search->id;
75
+        $message->viewData[ 'user_id' ] = $notifiable->id;
76
+        $message->viewData[ 'search_id' ] = $this->search->id;
77 77
 
78 78
         // Update the subject
79 79
         $message->subject(count($this->jobs).' new jobs found especially for you');
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         // Add a link to download the collection
96 96
         $message->action(
97 97
             'View More',
98
-            url('/notifications/' . $this->id)
98
+            url('/notifications/'.$this->id)
99 99
         );
100 100
 
101 101
         return $message;
Please login to merge, or discard this patch.
app/Http/Controllers/NotificationsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         $notification = $this->dispatchNow(new GetNotificationById($id));
20 20
 
21 21
         if ($notification) {
22
-            return view('notifications.single', ['notification' => $notification]);
22
+            return view('notifications.single', [ 'notification' => $notification ]);
23 23
         }
24 24
 
25 25
         $request->session()->flash('alert-danger', 'This job alert has expired.');
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $path = $this->dispatchNow(new GenerateCsv($id));
36 36
 
37
-        return response()->download($path, null, ['Content-Type: text/csv']);
37
+        return response()->download($path, null, [ 'Content-Type: text/csv' ]);
38 38
     }
39 39
 }
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
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         );
26 26
 
27 27
         if (!$results->isEmpty()) {
28
-            return view('searches.index', ['searches' => $results]);
28
+            return view('searches.index', [ 'searches' => $results ]);
29 29
         }
30 30
 
31 31
         $request->session()->flash('alert-danger', 'You currently have no active searches. Try adding one.');
Please login to merge, or discard this patch.
app/Models/Token.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     {
43 43
         parent::boot();
44 44
 
45
-        static::creating(function ($model) {
45
+        static::creating(function($model) {
46 46
             // Generate a secure random token
47 47
             $model->{$model->getKeyName()} = bin2hex(random_bytes(16));
48 48
         });
Please login to merge, or discard this patch.
app/Jobs/Notifications/SearchAndNotifyUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     /**
21 21
      * @var array Jobs collected from providers.
22 22
      */
23
-    protected $jobs = [];
23
+    protected $jobs = [ ];
24 24
 
25 25
     /**
26 26
      * @var Recruiter recruiter model
Please login to merge, or discard this patch.
app/Jobs/Notifications/GenerateCsv.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         return $this->createCsv($csv, $jobs, $this->id.'.csv');
54 54
     }
55 55
 
56
-    private function createCsv(Writer $csv, array $items = [], $filename = null)
56
+    private function createCsv(Writer $csv, array $items = [ ], $filename = null)
57 57
     {
58 58
         // Make sure line endings are detected.
59 59
         if (!ini_get("auto_detect_line_endings")) {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         }
72 72
 
73 73
         // Add header rows
74
-        $csv->insertOne(array_keys($items[0]));
74
+        $csv->insertOne(array_keys($items[ 0 ]));
75 75
 
76 76
         // Add each item as a new line to the CSV
77 77
         $csv->insertAll($items);
Please login to merge, or discard this patch.