Static analysis cleanup

This commit is contained in:
David Bomba 2023-05-07 08:17:58 +10:00
parent 3e56aa6ae7
commit 16b48508fb
6 changed files with 5 additions and 21 deletions

View File

@ -21,7 +21,7 @@ class DeleteCompanyDocuments
/**
* Handle the event.
*
* @param CompanyWasDeleted $event
* @param $event
* @return void
*/
public function handle($event)

View File

@ -36,7 +36,7 @@ class MailSentListener implements ShouldQueue
/**
* Handle the event.
*
* @param object $event
* @param MessageSent $event
* @return void
*/
public function handle(MessageSent $event)

View File

@ -32,7 +32,7 @@ class PaymentEmailFailureActivity implements ShouldQueue
* Handle the event.
*
* @param object $event
* @return bool
* @return void
*/
public function handle($event)
{
@ -41,6 +41,6 @@ class PaymentEmailFailureActivity implements ShouldQueue
$payment = $event->payment;
nlog("i failed emailing {$payment->number}");
// nlog(print_r($event->errors,1));
}
}

View File

@ -34,7 +34,7 @@ class PurchaseOrderCreatedListener implements ShouldQueue
/**
* Handle the event.
*
* @param object $event
* @param PurchaseOrderWasCreated $event
* @return void
*/
public function handle(PurchaseOrderWasCreated $event)

View File

@ -415,9 +415,6 @@ class ClientContact extends Authenticatable implements HasLocalePreference
*/
public function getLoginLink()
{
// $domain = isset($this->company->portal_domain) ? $this->company->portal_domain : $this->company->domain();
// return $domain.'/client/key_login/'.$this->contact_key;
if (Ninja::isHosted()) {
$domain = $this->company->domain();
@ -428,18 +425,13 @@ class ClientContact extends Authenticatable implements HasLocalePreference
switch ($this->company->portal_mode) {
case 'subdomain':
return $domain.'/client/key_login/'.$this->contact_key;
break;
case 'iframe':
return $domain.'/client/key_login/'.$this->contact_key;
//return $domain . $entity_type .'/'. $this->contact->client->client_hash .'/'. $this->key;
break;
case 'domain':
return $domain.'/client/key_login/'.$this->contact_key;
break;
default:
return '';
break;
}
}
}

View File

@ -153,17 +153,13 @@ class PurchaseOrderInvitation extends BaseModel
switch ($this->company->portal_mode) {
case 'subdomain':
return $domain.'/vendor/';
break;
case 'iframe':
return $domain.'/vendor/';
break;
case 'domain':
return $domain.'/vendor/';
break;
default:
return '';
break;
}
}
@ -180,17 +176,13 @@ class PurchaseOrderInvitation extends BaseModel
switch ($this->company->portal_mode) {
case 'subdomain':
return $domain.'/vendor/'.$entity_type.'/'.$this->key;
break;
case 'iframe':
return $domain.'/vendor/'.$entity_type.'/'.$this->key;
break;
case 'domain':
return $domain.'/vendor/'.$entity_type.'/'.$this->key;
break;
default:
return '';
break;
}
}