Test Setup Failed
Branch master (2cef12)
by Curtis
15:04
created
app/Models/ForumTopic.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,20 +16,20 @@
 block discarded – undo
16 16
     protected static function boot() {
17 17
         parent::boot();
18 18
 
19
-        static::creating(function ($topic) {
19
+        static::creating(function($topic) {
20 20
             $topic->slug = Str::slug($topic->title);
21 21
         });
22 22
     }
23 23
     
24
-    public function category(){
24
+    public function category() {
25 25
         return $this->belongsTo(ForumCategory::class, 'category_id');
26 26
     }
27 27
     
28
-    public function author(){
28
+    public function author() {
29 29
         return $this->belongsTo(User::class, 'created_by');
30 30
     }
31 31
     
32
-    public function posts(){
32
+    public function posts() {
33 33
         return $this->hasMany(ForumPost::class, 'topic_id')->with('author');
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
app/Models/CalendarEvent.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,5 +9,5 @@
 block discarded – undo
9 9
 {
10 10
     use HasFactory;
11 11
 	
12
-	protected $fillable = ['title'];
12
+    protected $fillable = ['title'];
13 13
 }
Please login to merge, or discard this patch.
app/Notifications/VerifyNotification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@
 block discarded – undo
40 40
      */
41 41
     public function toMail($notifiable)
42 42
     {
43
-        $param =[
43
+        $param = [
44 44
             'id' => $notifiable->getKey(),
45 45
             'hash' => sha1($notifiable->getEmailForVerification())
46 46
         ];
47 47
 
48
-        $url = env('FRONTEND_URL') .'/verify-email?';
48
+        $url = env('FRONTEND_URL') . '/verify-email?';
49 49
 
50 50
         foreach ($param as $key => $params) {
51 51
             $url .= "{$key}={$params}&";
Please login to merge, or discard this patch.
app/Notifications/SubscribeSuccessfully.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
     public function __construct($plan_id)
22 22
     {
23 23
         $stripe = new \Stripe\StripeClient(\Config::get('services.stripe.secret'));
24
-        if(is_array($plan_id)) {
24
+        if (is_array($plan_id)) {
25 25
             $this->plan = $stripe->plans->retrieve($plan_id['planId']);
26
-        } else{
26
+        } else {
27 27
             $this->plan = $stripe->plans->retrieve($plan_id);
28 28
         }
29 29
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         return (new MailMessage)
51 51
                     ->subject('subscribed Successfully!')
52 52
                     ->line('You have subscribed successfully!')
53
-                    ->line('Subscription Plan:'.$this->plan->nickname)
53
+                    ->line('Subscription Plan:' . $this->plan->nickname)
54 54
                     ->line('Thank you for using Genealogia!');
55 55
     }
56 56
 
Please login to merge, or discard this patch.
app/Notifications/ResetPassword.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         return (new MailMessage)
25 25
             ->subject('Your Reset Password Subject Here')
26 26
             ->line('You are receiving this email because we received a password reset request for your account.')
27
-            ->action('Reset Password', env('FRONTEND_URL', 'http://localhost:3000') . '/password/reset/'.$this->token)
27
+            ->action('Reset Password', env('FRONTEND_URL', 'http://localhost:3000') . '/password/reset/' . $this->token)
28 28
             ->line('If you did not request a password reset, no further action is required.');
29 29
     }
30 30
 }
31 31
\ No newline at end of file
Please login to merge, or discard this patch.
app/Notifications/UnsubscribeSuccessfully.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         return (new MailMessage)
47 47
                     ->subject('Unsubscribed Successfully!')
48 48
                     ->line('You have unsubscribed successfully!')
49
-                    ->line('Subscription Plan:'.$this->plan->nickname)
49
+                    ->line('Subscription Plan:' . $this->plan->nickname)
50 50
                     ->line('Thank you for using Genealogia!');
51 51
     }
52 52
 
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function register()
35 35
     {
36
-        $this->reportable(function (Throwable $e) {
36
+        $this->reportable(function(Throwable $e) {
37 37
             //
38 38
         });
39 39
     }
Please login to merge, or discard this patch.
app/Http/Middleware/SetTenant.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
         // $tree = Tree::where('company_id', $company->company_id)->first();
27 27
         // $tenant = Tenant::where('tree_id', $tree->id)->first();
28 28
         // $tenant->makeCurrent();
29
-        if(Tenant::checkCurrent()) {
29
+        if (Tenant::checkCurrent()) {
30 30
             Tenant::forgetCurrent();
31 31
             $user = auth()->user();
32
-            $company = $user->Company()->where('current_tenant','=',1)->first();
33
-            $tree = Tree::where('current_tenant','=',1)->where('company_id', $company->id)->first();
32
+            $company = $user->Company()->where('current_tenant', '=', 1)->first();
33
+            $tree = Tree::where('current_tenant', '=', 1)->where('company_id', $company->id)->first();
34 34
             $tenant = Tenant::where('tree_id', $tree->id)->first();
35 35
             $tenant->makeCurrent();
36 36
         }
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     protected function redirectTo($request)
16 16
     {
17
-        if (! $request->expectsJson()) {
17
+        if (!$request->expectsJson()) {
18 18
             return route('login');
19 19
         }
20 20
     }
Please login to merge, or discard this patch.