Passed
Push — develop ( 3e0bc3...bee39f )
by Adam
34:18 queued 26:59
created
app/Notifications/PasswordResetRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     public function toMail($notifiable)
45 45
     {
46
-        $url = url(config('app.b_url').'/password-reset/'.$this->token);
46
+        $url = url(config('app.b_url') . '/password-reset/' . $this->token);
47 47
 
48 48
         return (new MailMessage())
49 49
             ->line('You are receiving this email because we received a password reset request for your account.')
Please login to merge, or discard this patch.
app/Repositories/CandidatesRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     public static function getOtherApplications(Candidate $candidate)
12 12
     {
13 13
         return Candidate::where('id', '!=', $candidate->id)
14
-            ->where(function ($query) use ($candidate) {
14
+            ->where(function($query) use ($candidate) {
15 15
                 $query->where('email', '=', $candidate->email)
16 16
                     ->orWhere('email', '=', sha1($candidate->email))
17 17
                     ->orWhere('phone_number', '=', $candidate->phone_number)
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     {
26 26
         return Candidate::query()
27 27
             ->get(['name'])
28
-            ->map(function ($candidate) {
28
+            ->map(function($candidate) {
29 29
                 return trim(
30 30
                     join(' ', [
31 31
                         htmlspecialchars(data_get($candidate, 'name')),
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
 
48 48
             if (count($array) === 2) {
49 49
                 $query = $query
50
-                    ->where('name', 'like', '%'.$array[0].'%');
50
+                    ->where('name', 'like', '%' . $array[0] . '%');
51 51
             } else {
52 52
                 $query = $query
53
-                    ->where(function (Builder $query) use ($array) {
53
+                    ->where(function(Builder $query) use ($array) {
54 54
                         $query
55
-                            ->where(function (Builder $query) use ($array) {
55
+                            ->where(function(Builder $query) use ($array) {
56 56
                                 foreach ($array as $item) {
57 57
                                     $query->orWhere('name', 'like', "%{$item}%");
58 58
                                 }
Please login to merge, or discard this patch.
app/Http/Controllers/NotesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
 
25 25
         $note = Note::with('user')->find($note->id);
26 26
 
27
-        return response()->json($note, 201, ['Location'=>'/notes/'.$note->id]);
27
+        return response()->json($note, 201, ['Location'=>'/notes/' . $note->id]);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
app/Http/Middleware/AddHeaderAccessToken.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
     public function handle($request, Closure $next)
21 21
     {
22 22
         if ($request->has('access_token')) {
23
-            $request->headers->set('Authorization', 'Bearer '.$request->get('access_token'));
23
+            $request->headers->set('Authorization', 'Bearer ' . $request->get('access_token'));
24 24
         }
25 25
 
26 26
         return $next($request);
Please login to merge, or discard this patch.
app/Http/Resources/SourceResource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     public function toArray($request)
28 28
     {
29 29
         $array = parent::toArray($request);
30
-        $array['url'] = config('app.apply_url').'/'.static::$tenantManager->getTenant()->subdomain.'/'.$array['key']
31
-            .'-'.preg_replace("/[^A-Za-z0-9\-]/", '', str_replace(' ', '-', $this->recruitment->job_title));
30
+        $array['url'] = config('app.apply_url') . '/' . static::$tenantManager->getTenant()->subdomain . '/' . $array['key']
31
+            .'-' . preg_replace("/[^A-Za-z0-9\-]/", '', str_replace(' ', '-', $this->recruitment->job_title));
32 32
 
33 33
         return $array;
34 34
     }
Please login to merge, or discard this patch.
app/Http/Resources/TruncatedCandidateResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             'name'           => $this->name,
27 27
             'email'          => $this->email,
28 28
             'phone_number'   => PhoneFormatter::format($this->phone_number),
29
-            'photo_path'     => $this->photo_path ? env('AVATARS_URL').'/'.$this->photo_path : null,
29
+            'photo_path'     => $this->photo_path ? env('AVATARS_URL') . '/' . $this->photo_path : null,
30 30
             'recruitment_id' => $this->recruitment_id,
31 31
             'stage_id'       => $this->stage_id,
32 32
             'seen_at'        => $this->seen_at,
Please login to merge, or discard this patch.
app/Http/Resources/RecruitmentResource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
             unset($array['sources'][$key]['url_path']);
52 52
 
53 53
             //TODO: zduplikowany kod z SourceResource
54
-            $array['sources'][$key]['url'] = config('app.apply_url').'/'.static::$tenantManager->getTenant()->subdomain.'/'.$source['key']
55
-                .'-'.preg_replace("/[^A-Za-z0-9\-]/", '', str_replace(' ', '-', $array['job_title']));
54
+            $array['sources'][$key]['url'] = config('app.apply_url') . '/' . static::$tenantManager->getTenant()->subdomain . '/' . $source['key']
55
+                .'-' . preg_replace("/[^A-Za-z0-9\-]/", '', str_replace(' ', '-', $array['job_title']));
56 56
         }
57 57
 
58 58
         return $array;
Please login to merge, or discard this patch.
app/Http/Requests/RecruitmentUserCreateRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             'user_id' => [
29 29
                 'required',
30 30
                 'exists:tenant.users,id',
31
-                Rule::unique('tenant.recruitment_user')->where(function ($query) {
31
+                Rule::unique('tenant.recruitment_user')->where(function($query) {
32 32
                     return $query->where('recruitment_id', $this->recruitment->id);
33 33
                 }),
34 34
             ],
Please login to merge, or discard this patch.
app/Console/Commands/TenantMigrate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         if ($tenantId) {
33 33
             $tenant = Tenant::find($tenantId);
34 34
             if (!$tenant) {
35
-                throw new RuntimeException('Tenant with ID = '.$tenantId.' does not exist.');
35
+                throw new RuntimeException('Tenant with ID = ' . $tenantId . ' does not exist.');
36 36
             }
37 37
 
38 38
             $this->tenantManager->setTenant($tenant);
Please login to merge, or discard this patch.