@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | if ($this->job->tenant_id) { |
| 14 | 14 | $tenant = Tenant::findOrFail($this->job->tenant_id); |
| 15 | - Config::set('database.connections.tenant.database', 'tenant_'.$this->job->tenant_id); |
|
| 15 | + Config::set('database.connections.tenant.database', 'tenant_' . $this->job->tenant_id); |
|
| 16 | 16 | DB::purge('tenant'); |
| 17 | 17 | } |
| 18 | 18 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $prefix = 'pojutrze, tj. '; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - return $prefix.$carbonDate->isoFormat('dddd, D MMMM'); |
|
| 41 | + return $prefix . $carbonDate->isoFormat('dddd, D MMMM'); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | protected static function formattedDate($date) |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | $phoneNumber = preg_replace('/[^0-9]/', '', $phoneNumber); |
| 10 | 10 | $len = strlen($phoneNumber); |
| 11 | 11 | |
| 12 | - return substr($phoneNumber, 0, $len - 6).' '.substr($phoneNumber, $len - 6, 3).' '.substr($phoneNumber, $len - 3); |
|
| 12 | + return substr($phoneNumber, 0, $len - 6) . ' ' . substr($phoneNumber, $len - 6, 3) . ' ' . substr($phoneNumber, $len - 3); |
|
| 13 | 13 | } |
| 14 | 14 | // |
| 15 | 15 | // public function created_at() |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $recruitment = Recruitment::with(static::$relationships)->findOrFail($recruitmentId); |
| 20 | 20 | |
| 21 | 21 | $newRecruitment = $recruitment->replicate()->setRelations([]); |
| 22 | - $newRecruitment->name = $newRecruitment->name.' '.date('d.m.Y'); |
|
| 22 | + $newRecruitment->name = $newRecruitment->name . ' ' . date('d.m.Y'); |
|
| 23 | 23 | $newRecruitment->is_draft = true; |
| 24 | 24 | $newRecruitment->push(); |
| 25 | 25 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | public function saveImage(string $pathToImage): bool |
| 119 | 119 | { |
| 120 | 120 | if (is_dir($pathToImage)) { |
| 121 | - $pathToImage = rtrim($pathToImage, '\/').DIRECTORY_SEPARATOR.$this->page.'.'.$this->outputFormat; |
|
| 121 | + $pathToImage = rtrim($pathToImage, '\/') . DIRECTORY_SEPARATOR . $this->page . '.' . $this->outputFormat; |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | $imageData = $this->getImageData($pathToImage); |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | return []; |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | - return array_map(function ($pageNumber) use ($directory, $prefix) { |
|
| 137 | + return array_map(function($pageNumber) use ($directory, $prefix) { |
|
| 138 | 138 | $this->setPage($pageNumber); |
| 139 | 139 | |
| 140 | 140 | $destination = "{$directory}/{$prefix}{$pageNumber}.{$this->outputFormat}"; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $notificationEmailAddress = $candidate->email; |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | - Storage::delete(storage_path('app/'.$candidate->path_to_cv)); |
|
| 21 | + Storage::delete(storage_path('app/' . $candidate->path_to_cv)); |
|
| 22 | 22 | $candidate->path_to_cv = ''; |
| 23 | 23 | self::hashData($candidate); |
| 24 | 24 | $candidate->save(); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | if ($request->file) { |
| 34 | - $path_to_cv = $request->file->store($tenantManager->getTenant()->subdomain.'/'.$recruitment->id, 's3'); |
|
| 34 | + $path_to_cv = $request->file->store($tenantManager->getTenant()->subdomain . '/' . $recruitment->id, 's3'); |
|
| 35 | 35 | } else { |
| 36 | 36 | $path_to_cv = ''; |
| 37 | 37 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $candidate->name = $request->get('name'); |
| 41 | 41 | $candidate->email = $request->get('email'); |
| 42 | 42 | $candidate->phone_number = $request->get('phone_number'); |
| 43 | - $candidate->future_agreement = (bool) data_get($request->validated(), 'future_agreement'); |
|
| 43 | + $candidate->future_agreement = (bool)data_get($request->validated(), 'future_agreement'); |
|
| 44 | 44 | $candidate->source_recruitment_id = $request->get('source_recruitment_id'); |
| 45 | 45 | $candidate->stage_id = StageHelper::getFirstStage($recruitment->id)->id; |
| 46 | 46 | $candidate->path_to_cv = $path_to_cv; |
@@ -6,6 +6,6 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public static function hashSuffix($seed) |
| 8 | 8 | { |
| 9 | - return '['.substr(hash('md5', $seed), 0, 5).']'; |
|
| 9 | + return '[' . substr(hash('md5', $seed), 0, 5) . ']'; |
|
| 10 | 10 | } |
| 11 | 11 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $message->candidate_id = $candidate->id; |
| 28 | 28 | $message->to = $candidate->email; |
| 29 | 29 | //$message->from = ''; |
| 30 | - $message->subject = ContentParser::parse($predefinedMessage->subject, $candidate).' '.UtilsService::hashSuffix($candidate->id); |
|
| 30 | + $message->subject = ContentParser::parse($predefinedMessage->subject, $candidate) . ' ' . UtilsService::hashSuffix($candidate->id); |
|
| 31 | 31 | $message->body = ContentParser::parse($predefinedMessage->body, $candidate); |
| 32 | 32 | $message->save(); |
| 33 | 33 | |