Skip to content

Commit 88aa0c7

Browse files
author
Carlos Garcia
committed
Reorder custom resources in ApiRoot class for improved clarity and consistency.
1 parent 6237ebd commit 88aa0c7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Core/Controller/ApiRoot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
class ApiRoot extends ApiController
2727
{
2828
/** @var array */
29-
private static $custom_resources = ['crearFacturaCliente', 'exportarFacturaCliente', 'uploadFiles', 'crearFacturaRectificativaCliente'];
29+
private static $custom_resources = ['crearFacturaCliente', 'crearFacturaRectificativaCliente', 'exportarFacturaCliente', 'uploadFiles'];
3030

3131
public static function addCustomResource(string $name): void
3232
{

Core/Lib/API/APIModel.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,12 @@ private function getWhereValues($filter, $operation, $defaultOperation = 'AND'):
273273
$field = substr($key, 0, -5);
274274
$operator = 'IS';
275275
$value = null;
276-
}
277-
elseif (substr($key, -8) == '_notnull') {
276+
} elseif (substr($key, -8) == '_notnull') {
278277
$field = substr($key, 0, -8);
279278
$operator = 'IS NOT';
280279
$value = null;
281280
}
282-
281+
283282
if (substr($key, -5) == '_like') {
284283
$field = substr($key, 0, -5);
285284
$operator = 'LIKE';

0 commit comments

Comments
 (0)