Completed
Push — master ( 69c8cb...bf18be )
by Karl
05:54
created
database/factories/UserFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,18 +6,18 @@
 block discarded – undo
6 6
 |--------------------------------------------------------------------------
7 7
 */
8 8
 
9
-$factory->define(\JobApis\JobsToMail\Models\User::class, function (Faker\Generator $faker) {
9
+$factory->define(\JobApis\JobsToMail\Models\User::class, function(Faker\Generator $faker) {
10 10
     return [
11 11
         'email' => $faker->safeEmail(),
12 12
         'confirmed_at' => null,
13 13
     ];
14 14
 });
15
-$factory->state(\JobApis\JobsToMail\Models\User::class, 'active', function (Faker\Generator $faker) {
15
+$factory->state(\JobApis\JobsToMail\Models\User::class, 'active', function(Faker\Generator $faker) {
16 16
     return [
17 17
         'confirmed_at' => $faker->dateTimeThisYear(),
18 18
     ];
19 19
 });
20
-$factory->state(\JobApis\JobsToMail\Models\User::class, 'deleted', function (Faker\Generator $faker) {
20
+$factory->state(\JobApis\JobsToMail\Models\User::class, 'deleted', function(Faker\Generator $faker) {
21 21
     return [
22 22
         'deleted_at' => $faker->dateTimeThisYear(),
23 23
     ];
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/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.
app/Repositories/Contracts/SearchRepositoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 interface SearchRepositoryInterface
4 4
 {
5
-    public function create($userId = null, $data = []);
5
+    public function create($userId = null, $data = [ ]);
6 6
 
7 7
     public function delete($id = null);
8 8
 
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // Homepage
4
-Route::get('/', function () {
4
+Route::get('/', function() {
5 5
     return view('users.index');
6 6
 });
7 7
 
8 8
 // Terms page
9
-Route::get('/terms', function () {
9
+Route::get('/terms', function() {
10 10
     return view('static.terms');
11 11
 });
12 12
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 // Current User Account page
23 23
 Route::get('/searches', 'SearchesController@index')->middleware('auth');
24 24
 
25
-Route::group(['prefix' => 'auth'], function () {
25
+Route::group([ 'prefix' => 'auth' ], function() {
26 26
     // Submit login form (part 1 of login)
27 27
     Route::post('/login', 'AuthController@login');
28 28
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     Route::get('/confirm/{token}', 'AuthController@confirm');
34 34
 });
35 35
 
36
-Route::group(['prefix' => 'users'], function () {
36
+Route::group([ 'prefix' => 'users' ], function() {
37 37
     // Create new user
38 38
     Route::post('/', 'UsersController@create');
39 39
 
@@ -44,12 +44,12 @@  discard block
 block discarded – undo
44 44
     Route::get('/{userId}/searches', 'SearchesController@index');
45 45
 });
46 46
 
47
-Route::group(['prefix' => 'searches'], function () {
47
+Route::group([ 'prefix' => 'searches' ], function() {
48 48
     // Unsubscribe by ID
49 49
     Route::get('/{searchId}/unsubscribe', 'SearchesController@unsubscribe');
50 50
 });
51 51
 
52
-Route::group(['prefix' => 'notifications'], function () {
52
+Route::group([ 'prefix' => 'notifications' ], function() {
53 53
     // Get a single notification with jobs
54 54
     Route::get('/{id}', 'NotificationsController@single');
55 55
 
Please login to merge, or discard this patch.
app/Filters/RecruiterFilter.php 2 patches
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\Filters;
2 2
 
3
-use JobApis\Jobs\Client\Job;
4 3
 use JobApis\JobsToMail\Models\Recruiter;
5 4
 use JobApis\JobsToMail\Models\Search;
5
+use JobApis\Jobs\Client\Job;
6 6
 
7 7
 class RecruiterFilter
8 8
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function filter(array $jobs, Search $search)
23 23
     {
24
-        return array_filter($jobs, function (Job $job) use ($search) {
24
+        return array_filter($jobs, function(Job $job) use ($search) {
25 25
             // Make sure this job has a company
26 26
             if (isset($job->company) && $job->company) {
27 27
                 // See if this company is not a recruiter
Please login to merge, or discard this patch.
app/Notifications/Messages/JobMailMessage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 class JobMailMessage extends MailMessage
7 7
 {
8
-    public $jobListings = [];
8
+    public $jobListings = [ ];
9 9
     public $advertisement = null;
10 10
 
11 11
     /**
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function listing(Job $job)
19 19
     {
20
-        $this->jobListings[] = [
20
+        $this->jobListings[ ] = [
21 21
             'link' => $job->getUrl(),
22 22
             'title' => $this->getTitle($job->getTitle()),
23 23
             'company' => $this->getCompany($job->getCompanyName(), $job->getIndustry()),
Please login to merge, or discard this patch.
database/seeds/RecruiterDatabaseSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
     public function run()
9 9
     {
10 10
         $csv = League\Csv\Reader::createFromPath(__DIR__.'/recruiters.csv');
11
-        foreach($csv->fetchAll() as $recruiter) {
11
+        foreach ($csv->fetchAll() as $recruiter) {
12 12
             Recruiter::create([
13
-                'name' => $recruiter[0],
13
+                'name' => $recruiter[ 0 ],
14 14
             ]);
15 15
         }
16 16
     }
Please login to merge, or discard this patch.