@@ -74,16 +74,16 @@ public function report(array $resources, array &$report): mixed
7474 : [Query::limit ($ pageLimit )]
7575 )['collections ' ]; /* ['tables'] */
7676
77- $ tables = array_merge ($ tables , $ currentTables );
77+ $ tables = \ array_merge ($ tables , $ currentTables );
7878 $ lastTable = $ tables [count ($ tables ) - 1 ]['$id ' ] ?? null ;
7979
80- if (count ($ currentTables ) < $ pageLimit ) {
80+ if (\ count ($ currentTables ) < $ pageLimit ) {
8181 break ;
8282 }
8383 }
8484
8585 if (Resource::isSupported (Resource::TYPE_TABLE , $ resources )) {
86- $ report [Resource::TYPE_TABLE ] += count ($ tables );
86+ $ report [Resource::TYPE_TABLE ] += \ count ($ tables );
8787 }
8888
8989 if (Resource::isSupported ([Resource::TYPE_ROW , Resource::TYPE_COLUMN , Resource::TYPE_INDEX ], $ resources )) {
@@ -95,12 +95,11 @@ public function report(array $resources, array &$report): mixed
9595 $ report [Resource::TYPE_COLUMN ] += count ($ table ['columns ' ] ?? $ table ['attributes ' ] ?? []);
9696 }
9797
98- if (in_array (Resource::TYPE_INDEX , $ resources )) {
99- // a table already returns a list of indexes
100- $ report [Resource::TYPE_INDEX ] += count ($ table ['indexes ' ] ?? []);
98+ if (\ in_array (Resource::TYPE_INDEX , $ resources )) {
99+ // A table already returns a list of indexes
100+ $ report [Resource::TYPE_INDEX ] += \ count ($ table ['indexes ' ] ?? []);
101101 }
102102
103- // this one's a bit heavy if the number of tables are high!
104103 if (Resource::isSupported (Resource::TYPE_ROW , $ resources )) {
105104 /* $rowsResponse = $this->tables->listRows(...) */
106105 $ rowsResponse = $ this ->database ->listDocuments (
0 commit comments