@@ -26,7 +26,7 @@ public function count(TagCriteria $criteria): int
2626 {
2727 try {
2828 [$ columns , $ values , $ options ] = $ this ->parseCriteria ($ criteria );
29- } catch (NoTagsException $ e ) {
29+ } catch (NoTagsException ) {
3030 return 0 ;
3131 }
3232
@@ -44,7 +44,7 @@ public function findSingle(TagCriteria $criteria): Tag|null
4444 {
4545 try {
4646 [$ columns , $ values , $ options ] = $ this ->parseCriteria ($ criteria );
47- } catch (NoTagsException $ e ) {
47+ } catch (NoTagsException ) {
4848 return null ;
4949 }
5050
@@ -62,7 +62,7 @@ public function findMultiple(TagCriteria $criteria): array
6262 {
6363 try {
6464 [$ columns , $ values , $ options ] = $ this ->parseCriteria ($ criteria );
65- } catch (NoTagsException $ e ) {
65+ } catch (NoTagsException ) {
6666 return [];
6767 }
6868
@@ -115,7 +115,7 @@ public function getTopTagIds(TagCriteria $criteria, int|null $limit = null, bool
115115 {
116116 // No array_unique() here!
117117 $ tagIds = DcaRelationsModel::getRelatedValues ($ criteria ->getSourceTable (), $ criteria ->getSourceField (), $ criteria ->getSourceIds ());
118- $ tagIds = array_map (' intval ' , $ tagIds );
118+ $ tagIds = array_map (intval (...) , $ tagIds );
119119
120120 if (0 === \count ($ tagIds )) {
121121 return [];
@@ -168,7 +168,7 @@ protected function parseCriteria(TagCriteria $criteria): array
168168 $ columns [] = 'id=? ' ;
169169 $ values [] = (int ) $ ids [0 ];
170170 } else {
171- $ columns [] = 'id IN ( ' .implode (', ' , array_map (' intval ' , $ ids )).') ' ;
171+ $ columns [] = 'id IN ( ' .implode (', ' , array_map (intval (...) , $ ids )).') ' ;
172172 }
173173 }
174174
@@ -186,7 +186,7 @@ protected function parseCriteria(TagCriteria $criteria): array
186186 if (\count ($ sourceIds = $ criteria ->getSourceIds ()) > 0 ) {
187187 $ ids = DcaRelationsModel::getRelatedValues ($ criteria ->getSourceTable (), $ criteria ->getSourceField (), $ sourceIds );
188188 $ ids = array_values (array_unique ($ ids ));
189- $ ids = array_map (' intval ' , $ ids );
189+ $ ids = array_map (intval (...) , $ ids );
190190
191191 if (0 === \count ($ ids )) {
192192 throw new NoTagsException ();
@@ -202,7 +202,7 @@ protected function parseCriteria(TagCriteria $criteria): array
202202 if ($ criteria ->isUsedOnly ()) {
203203 $ ids = DcaRelationsModel::getRelatedValues ($ criteria ->getSourceTable (), $ criteria ->getSourceField ());
204204 $ ids = array_values (array_unique ($ ids ));
205- $ ids = array_map (' intval ' , $ ids );
205+ $ ids = array_map (intval (...) , $ ids );
206206
207207 if (0 === \count ($ ids )) {
208208 throw new NoTagsException ();
0 commit comments