change helpers to follow psr4

This commit is contained in:
2024-03-02 11:37:21 +03:30
parent 908c6c8024
commit 077732095a
2 changed files with 3 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ if (! function_exists('process_datatable')) {
$value = $attributes['value']; $value = $attributes['value'];
if ($attributes['type'] == 'text') { if ($attributes['type'] == 'text') {
$data = $data->where($field, 'LIKE', "%${value}%"); $data = $data->where($field, 'LIKE', "%{$value}%");
} elseif ($attributes['type'] == 'between') { } elseif ($attributes['type'] == 'between') {
$date_values = explode('&', $value); $date_values = explode('&', $value);
$date_values[0] .= " 00:00:00"; $date_values[0] .= " 00:00:00";
@@ -89,7 +89,7 @@ if (! function_exists('process_datatable')) {
} }
}); });
} elseif ($attributes['type'] == 'select') { } elseif ($attributes['type'] == 'select') {
$data = $data->where($field, "${value}"); $data = $data->where($field, "{$value}");
} }
// following types have been added for making finance table serverside. // following types have been added for making finance table serverside.

View File

@@ -17,6 +17,6 @@ class NominatimTest extends TestCase
{ {
$wayId = (new NominatimService())->get_way_id_from_nominatim(); $wayId = (new NominatimService())->get_way_id_from_nominatim();
$this->assertEquals($wayId, 0); $this->assertEquals(0, $wayId);
} }
} }