Skip to content

Commit 2b6d04a

Browse files
rmpelMike van den Hoek
authored andcommitted
Fix typing
1 parent c8642ba commit 2b6d04a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Base/RestAPI/Controllers/BaseController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
namespace OWC\PDC\Base\RestAPI\Controllers;
88

9+
use OWC\PDC\Base\Foundation\Plugin;
910
use WP_Query;
1011
use WP_REST_Request;
11-
use OWC\PDC\Base\Foundation\Plugin;
1212

1313
/**
1414
* Controller which handels general quering, such as pagination.
@@ -119,14 +119,14 @@ protected function defaultTaxonomyParamIsValid(WP_REST_Request $request, string
119119
return true;
120120
}
121121

122-
protected function getOrderClause(mixed $orderBy, mixed $order)
122+
protected function getOrderClause(string $orderBy, string $order): array
123123
{
124124
$orderArray = [];
125125
$orderByParts = explode(',', $orderBy);
126126
$orderParts = explode(',', $order);
127127

128128
// Empty string results in array with one empty value, we ignore that.
129-
if (!array_filter($orderByParts)) {
129+
if (! array_filter($orderByParts)) {
130130
return [];
131131
}
132132

0 commit comments

Comments
 (0)