mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Static analysis cleanup
This commit is contained in:
parent
3e56aa6ae7
commit
16b48508fb
@ -21,7 +21,7 @@ class DeleteCompanyDocuments
|
|||||||
/**
|
/**
|
||||||
* Handle the event.
|
* Handle the event.
|
||||||
*
|
*
|
||||||
* @param CompanyWasDeleted $event
|
* @param $event
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle($event)
|
public function handle($event)
|
||||||
|
@ -36,7 +36,7 @@ class MailSentListener implements ShouldQueue
|
|||||||
/**
|
/**
|
||||||
* Handle the event.
|
* Handle the event.
|
||||||
*
|
*
|
||||||
* @param object $event
|
* @param MessageSent $event
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle(MessageSent $event)
|
public function handle(MessageSent $event)
|
||||||
|
@ -32,7 +32,7 @@ class PaymentEmailFailureActivity implements ShouldQueue
|
|||||||
* Handle the event.
|
* Handle the event.
|
||||||
*
|
*
|
||||||
* @param object $event
|
* @param object $event
|
||||||
* @return bool
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle($event)
|
public function handle($event)
|
||||||
{
|
{
|
||||||
@ -41,6 +41,6 @@ class PaymentEmailFailureActivity implements ShouldQueue
|
|||||||
$payment = $event->payment;
|
$payment = $event->payment;
|
||||||
|
|
||||||
nlog("i failed emailing {$payment->number}");
|
nlog("i failed emailing {$payment->number}");
|
||||||
// nlog(print_r($event->errors,1));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ class PurchaseOrderCreatedListener implements ShouldQueue
|
|||||||
/**
|
/**
|
||||||
* Handle the event.
|
* Handle the event.
|
||||||
*
|
*
|
||||||
* @param object $event
|
* @param PurchaseOrderWasCreated $event
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle(PurchaseOrderWasCreated $event)
|
public function handle(PurchaseOrderWasCreated $event)
|
||||||
|
@ -415,9 +415,6 @@ class ClientContact extends Authenticatable implements HasLocalePreference
|
|||||||
*/
|
*/
|
||||||
public function getLoginLink()
|
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()) {
|
if (Ninja::isHosted()) {
|
||||||
$domain = $this->company->domain();
|
$domain = $this->company->domain();
|
||||||
@ -428,18 +425,13 @@ class ClientContact extends Authenticatable implements HasLocalePreference
|
|||||||
switch ($this->company->portal_mode) {
|
switch ($this->company->portal_mode) {
|
||||||
case 'subdomain':
|
case 'subdomain':
|
||||||
return $domain.'/client/key_login/'.$this->contact_key;
|
return $domain.'/client/key_login/'.$this->contact_key;
|
||||||
break;
|
|
||||||
case 'iframe':
|
case 'iframe':
|
||||||
return $domain.'/client/key_login/'.$this->contact_key;
|
return $domain.'/client/key_login/'.$this->contact_key;
|
||||||
//return $domain . $entity_type .'/'. $this->contact->client->client_hash .'/'. $this->key;
|
|
||||||
break;
|
|
||||||
case 'domain':
|
case 'domain':
|
||||||
return $domain.'/client/key_login/'.$this->contact_key;
|
return $domain.'/client/key_login/'.$this->contact_key;
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return '';
|
return '';
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -153,17 +153,13 @@ class PurchaseOrderInvitation extends BaseModel
|
|||||||
switch ($this->company->portal_mode) {
|
switch ($this->company->portal_mode) {
|
||||||
case 'subdomain':
|
case 'subdomain':
|
||||||
return $domain.'/vendor/';
|
return $domain.'/vendor/';
|
||||||
break;
|
|
||||||
case 'iframe':
|
case 'iframe':
|
||||||
return $domain.'/vendor/';
|
return $domain.'/vendor/';
|
||||||
break;
|
|
||||||
case 'domain':
|
case 'domain':
|
||||||
return $domain.'/vendor/';
|
return $domain.'/vendor/';
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return '';
|
return '';
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,17 +176,13 @@ class PurchaseOrderInvitation extends BaseModel
|
|||||||
switch ($this->company->portal_mode) {
|
switch ($this->company->portal_mode) {
|
||||||
case 'subdomain':
|
case 'subdomain':
|
||||||
return $domain.'/vendor/'.$entity_type.'/'.$this->key;
|
return $domain.'/vendor/'.$entity_type.'/'.$this->key;
|
||||||
break;
|
|
||||||
case 'iframe':
|
case 'iframe':
|
||||||
return $domain.'/vendor/'.$entity_type.'/'.$this->key;
|
return $domain.'/vendor/'.$entity_type.'/'.$this->key;
|
||||||
break;
|
|
||||||
case 'domain':
|
case 'domain':
|
||||||
return $domain.'/vendor/'.$entity_type.'/'.$this->key;
|
return $domain.'/vendor/'.$entity_type.'/'.$this->key;
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return '';
|
return '';
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user