@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * Create a new job instance. |
| 17 | 17 | */ |
| 18 | - public function __construct($data = []) |
|
| 18 | + public function __construct($data = [ ]) |
|
| 19 | 19 | { |
| 20 | 20 | $this->data = $data; |
| 21 | 21 | } |
@@ -34,11 +34,11 @@ |
||
| 34 | 34 | \JobApis\JobsToMail\Repositories\UserRepository::class |
| 35 | 35 | ); |
| 36 | 36 | // Job board API client |
| 37 | - $this->app->bind(JobsMulti::class, function () { |
|
| 37 | + $this->app->bind(JobsMulti::class, function() { |
|
| 38 | 38 | return new JobsMulti(config('jobboards')); |
| 39 | 39 | }); |
| 40 | 40 | // CSV Writer |
| 41 | - $this->app->bind('League\Csv\Writer', function () { |
|
| 41 | + $this->app->bind('League\Csv\Writer', function() { |
|
| 42 | 42 | return Writer::createFromString(''); |
| 43 | 43 | }); |
| 44 | 44 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -6,18 +6,18 @@ |
||
| 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 | ]; |
@@ -35,7 +35,7 @@ discard block |
||
| 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 |
||
| 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.') |
@@ -35,7 +35,7 @@ discard block |
||
| 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 |
||
| 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')) |
@@ -43,7 +43,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -19,7 +19,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -25,7 +25,7 @@ |
||
| 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.'); |