Adopt Laravel coding style

Shift automatically applies the Laravel coding style - which uses the PSR-2 coding style as a base with some minor additions.

You may customize the adopted coding style by adding your own [PHP CS Fixer][1] `.php_cs` config file to your project root. Feel free to use [Shift's Laravel ruleset][2] to help you get started.

[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
This commit is contained in:
Laravel Shift
2021-06-10 20:15:52 +00:00
parent 54cb6c050a
commit 934afa036f
4549 changed files with 35238 additions and 38391 deletions
@@ -46,8 +46,6 @@ class RequestAssetNotification extends Notification
$this->expected_checkin = Helper::getFormattedDateObject($this->item->expected_checkin, 'date',
false);
}
}
/**
@@ -58,10 +56,9 @@ class RequestAssetNotification extends Notification
*/
public function via()
{
$notifyBy = [];
if (Setting::getSettings()->slack_endpoint!='') {
if (Setting::getSettings()->slack_endpoint != '') {
$notifyBy[] = 'slack';
}
@@ -76,7 +73,7 @@ class RequestAssetNotification extends Notification
$qty = $this->item_quantity;
$item = $this->item;
$note = $this->note;
$botname = ($this->settings->slack_botname) ? $this->settings->slack_botname : 'Snipe-Bot' ;
$botname = ($this->settings->slack_botname) ? $this->settings->slack_botname : 'Snipe-Bot';
$fields = [
'QTY' => $qty,
@@ -92,6 +89,7 @@ class RequestAssetNotification extends Notification
->content($note);
});
}
/**
* Get the mail representation of the notification.
*
@@ -99,7 +97,6 @@ class RequestAssetNotification extends Notification
*/
public function toMail()
{
$fields = [];
// Check if the item has custom fields associated with it
@@ -121,8 +118,6 @@ class RequestAssetNotification extends Notification
])
->subject(trans('mail.Item_Requested'));
return $message;
}
}