Fix Model Policies from matching user_id's and account_id's, and other minor cosmetic fixes

This commit is contained in:
Deon George
2021-09-29 16:20:22 +10:00
parent f7439172b6
commit 4243da9c32
14 changed files with 173 additions and 172 deletions

View File

@@ -13,8 +13,8 @@ class OrderRequestApprove extends Mailable
{
use Queueable, SerializesModels;
public $service;
public $notes;
public Service $service;
public string $notes;
/**
* Create a new message instance.
@@ -22,7 +22,7 @@ class OrderRequestApprove extends Mailable
* @param Service $o
* @param string $notes
*/
public function __construct(Service $o,$notes='')
public function __construct(Service $o,string $notes='')
{
$this->service = $o;
$this->notes = $notes;
@@ -35,8 +35,7 @@ class OrderRequestApprove extends Mailable
*/
public function build()
{
switch ($this->service->category)
{
switch ($this->service->category) {
case 'ADSL': $subject = sprintf('%s: %s',$this->service->category,$this->service->service_adsl->service_address);
break;