refactor: code style changes

Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
2023-01-15 00:04:00 +00:00
parent 25155bff2e
commit 3727c84f3e
146 changed files with 1013 additions and 1341 deletions

View File

@@ -2,17 +2,26 @@
namespace App\View\Components;
use App\User;
use Illuminate\View\Component;
class AccountStatus extends Component
{
public bool
$isVerified,
$isSuspended,
$isLocked,
$has2FA,
$hasDiscord,
$isVerified;
public bool
$isSuspended;
public bool
$isLocked;
public bool
$has2FA;
public bool
$hasDiscord;
public bool
$hasPassword;
/**

View File

@@ -25,19 +25,21 @@ use Illuminate\View\Component;
class Alert extends Component
{
public
$alertType,
$extraStyling,
$title,
$icon;
public $alertType;
public $extraStyling;
public $title;
public $icon;
/**
* Create a new component instance.
*
* @param string $alertType The color the alert should have.
* @param string $title The alert's title
* @param string $icon The alert's icon, placed before the title
* @param string $extraStyling Any extra CSS classes to add
* @param string $alertType The color the alert should have.
* @param string $title The alert's title
* @param string $icon The alert's icon, placed before the title
* @param string $extraStyling Any extra CSS classes to add
*/
public function __construct(string $alertType, string $title = '', string $icon = '', string $extraStyling = '')
{

View File

@@ -7,13 +7,27 @@ use Illuminate\View\Component;
class Button extends Component
{
public string
$type,
$icon,
$link,
$target,
$size,
$color,
$disabled,
$type;
public string
$icon;
public string
$link;
public string
$target;
public string
$size;
public string
$color;
public string
$disabled;
public string
$id;
public function __construct($id, $color, $type = 'button', $disabled = false, $size = '', $target = '', $link = '', $icon = '')