Passed
Push — develop ( 6754ff...91ef61 )
by Adam
11:35 queued 05:49
created
app/Providers/TenantServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@
 block discarded – undo
17 17
         $manager = new TenantManager();
18 18
 
19 19
         $this->app->instance(TenantManager::class, $manager);
20
-        $this->app->bind(Tenant::class, function () use ($manager) {
20
+        $this->app->bind(Tenant::class, function() use ($manager) {
21 21
             return $manager->getTenant();
22 22
         });
23 23
 
24
-        $this->app['db']->extend('tenant', function ($config, $name) use ($manager) {
24
+        $this->app['db']->extend('tenant', function($config, $name) use ($manager) {
25 25
             $tenant = $manager->getTenant();
26 26
 
27 27
             if ($tenant) {
28
-                $config['database'] = 'tenant_'.$tenant->id;
28
+                $config['database'] = 'tenant_' . $tenant->id;
29 29
             }
30 30
 
31 31
             return $this->app['db.factory']->make($config, $name);
Please login to merge, or discard this patch.
app/Mail/NewCandidateNotification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,6 +50,6 @@
 block discarded – undo
50 50
 
51 51
     protected function getCvPath()
52 52
     {
53
-        return storage_path('app/'.$this->candidate->path_to_cv);
53
+        return storage_path('app/' . $this->candidate->path_to_cv);
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
app/Jobs/TenantDatabase.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,16 +27,16 @@
 block discarded – undo
27 27
 
28 28
     public function handle()
29 29
     {
30
-        $database = 'tenant_'.$this->tenant->id;
30
+        $database = 'tenant_' . $this->tenant->id;
31 31
         $connection = \DB::connection('tenant');
32
-        $createMysql = $connection->statement('CREATE DATABASE '.$database);
32
+        $createMysql = $connection->statement('CREATE DATABASE ' . $database);
33 33
 
34 34
         if ($createMysql) {
35 35
             $this->tenantManager->setTenant($this->tenant);
36 36
             \DB::connection('tenant')->purge();
37 37
             $this->migrate();
38 38
         } else {
39
-            $connection->statement('DROP DATABASE '.$database);
39
+            $connection->statement('DROP DATABASE ' . $database);
40 40
         }
41 41
     }
42 42
 
Please login to merge, or discard this patch.
app/Queue/Jobs/DatabaseJob.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Utils/ContentParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
app/Utils/PhoneFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
app/Utils/Recruitments/RecruitmentReplicator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Utils/PdfToImageToImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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}";
Please login to merge, or discard this patch.
app/Utils/Candidates/CandidateDeleter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.