@@ -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 | } |
@@ -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.'); |
@@ -42,7 +42,7 @@ |
||
| 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 | }); |
@@ -20,7 +20,7 @@ |
||
| 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 |
@@ -53,7 +53,7 @@ discard block |
||
| 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 |
||
| 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); |