mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
code quality + param-name fixes
This commit is contained in:
parent
cccf7a3cc2
commit
ae5b9c0dd4
@ -26,7 +26,7 @@ class BankIntegrationFilters extends QueryFilters
|
||||
*/
|
||||
public function name(string $name = ''): Builder
|
||||
{
|
||||
if (strlen($filter) == 0) {
|
||||
if (strlen($name) == 0) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,7 @@ class BankTransactionFilters extends QueryFilters
|
||||
*/
|
||||
public function name(string $name = ''): Builder
|
||||
{
|
||||
if (strlen($filter) == 0) {
|
||||
if (strlen($name) == 0) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ class BankTransactionRuleFilters extends QueryFilters
|
||||
*/
|
||||
public function name(string $name = ''): Builder
|
||||
{
|
||||
if (strlen($filter) == 0) {
|
||||
if (strlen($name) == 0) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ class ClientFilters extends QueryFilters
|
||||
*/
|
||||
public function name(string $name = ''): Builder
|
||||
{
|
||||
if (strlen($filter) == 0) {
|
||||
if (strlen($name) == 0) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
|
@ -62,6 +62,15 @@ class PaymentFilters extends QueryFilters
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
public function number(string $number = ''): Builder
|
||||
{
|
||||
if (strlen($number) == 0) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the list based on $sort.
|
||||
*
|
||||
@ -79,15 +88,6 @@ class PaymentFilters extends QueryFilters
|
||||
return $this->builder->orderBy($sort_col[0], $sort_col[1]);
|
||||
}
|
||||
|
||||
public function number(string $number = ''): Builder
|
||||
{
|
||||
if (strlen($number) == 0) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the query by the users company ID.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user