Skip to content

Commit

Permalink
Updates to user stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher committed Feb 20, 2023
1 parent 9d972c4 commit c470b4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions stubs/app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class User extends Authenticatable
*/
public function profilePhotoUrl(): Attribute
{
return Attribute::get(fn () => filter_var($this->profile_photo_path, FILTER_VALIDATE_URL)
? $this->profile_photo_path
: ($this->getPhotoUrl()->get)());
return filter_var($this->profile_photo_path, FILTER_VALIDATE_URL)
? Attribute::get(fn () => $this->profile_photo_path)
: ($this->getPhotoUrl()->get)();
}
}
6 changes: 3 additions & 3 deletions stubs/app/Models/UserWithTeams.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ class User extends Authenticatable
*/
public function profilePhotoUrl(): Attribute
{
return Attribute::get(fn () => filter_var($this->profile_photo_path, FILTER_VALIDATE_URL)
? $this->profile_photo_path
: ($this->getPhotoUrl()->get)());
return filter_var($this->profile_photo_path, FILTER_VALIDATE_URL)
? Attribute::get(fn () => $this->profile_photo_path)
: ($this->getPhotoUrl()->get)();
}
}

0 comments on commit c470b4f

Please sign in to comment.