Passed
Push — main ( 759879...de5ba5 )
by Thierry
01:57
created
src/DbAdmin/TableSelectAdmin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     {
39 39
         return [
40 40
             'select' => $select,
41
-            'values' => (array)$options["columns"],
41
+            'values' => (array) $options["columns"],
42 42
             'columns' => $columns,
43 43
             'functions' => $this->driver->functions(),
44 44
             'grouping' => $this->driver->grouping(),
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         }
63 63
         return [
64 64
             // 'where' => $where,
65
-            'values' => (array)$options["where"],
65
+            'values' => (array) $options["where"],
66 66
             'columns' => $columns,
67 67
             'indexes' => $indexes,
68 68
             'operators' => $this->driver->operators(),
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
     private function getSortingOptions(array $columns, array $options): array
82 82
     {
83 83
         $values = [];
84
-        $descs = (array)$options["desc"];
85
-        foreach ((array)$options["order"] as $key => $value) {
84
+        $descs = (array) $options["desc"];
85
+        foreach ((array) $options["order"] as $key => $value) {
86 86
             $values[] = [
87 87
                 'col' => $value,
88 88
                 'desc' => $descs[$key] ?? 0,
@@ -607,8 +607,8 @@  discard block
 block discarded – undo
607 607
      */
608 608
     public function execSelect(string $table, array $queryOptions): array
609 609
     {
610
-        list(, $query, $select, $fields, , , $indexes, $where, $group, , $limit, $page,
611
-            $textLength, , $unselected) = $this->prepareSelect($table, $queryOptions);
610
+        list(, $query, $select, $fields,,, $indexes, $where, $group,, $limit, $page,
611
+            $textLength,, $unselected) = $this->prepareSelect($table, $queryOptions);
612 612
 
613 613
         list($rows, $duration) = $this->executeQuery($query, $page);
614 614
         if (!$rows) {
Please login to merge, or discard this patch.