change helpers to follow psr4
This commit is contained in:
@@ -70,7 +70,7 @@ if (! function_exists('process_datatable')) {
|
||||
$value = $attributes['value'];
|
||||
|
||||
if ($attributes['type'] == 'text') {
|
||||
$data = $data->where($field, 'LIKE', "%${value}%");
|
||||
$data = $data->where($field, 'LIKE', "%{$value}%");
|
||||
} elseif ($attributes['type'] == 'between') {
|
||||
$date_values = explode('&', $value);
|
||||
$date_values[0] .= " 00:00:00";
|
||||
@@ -89,7 +89,7 @@ if (! function_exists('process_datatable')) {
|
||||
}
|
||||
});
|
||||
} elseif ($attributes['type'] == 'select') {
|
||||
$data = $data->where($field, "${value}");
|
||||
$data = $data->where($field, "{$value}");
|
||||
}
|
||||
|
||||
// following types have been added for making finance table serverside.
|
||||
|
||||
@@ -17,6 +17,6 @@ class NominatimTest extends TestCase
|
||||
{
|
||||
$wayId = (new NominatimService())->get_way_id_from_nominatim();
|
||||
|
||||
$this->assertEquals($wayId, 0);
|
||||
$this->assertEquals(0, $wayId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user