| Conditions | 5 |
| Paths | 5 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function acquireTermIds( array $termsArray ): array { |
||
| 11 | $ids = []; |
||
| 12 | |||
| 13 | foreach ( $termsArray as $type => $termsOfType ) { |
||
| 14 | foreach ( $termsOfType as $lang => $terms ) { |
||
| 15 | $terms = (array)$terms; |
||
| 16 | |||
| 17 | foreach ( $terms as $term ) { |
||
| 18 | if ( !isset( $this->terms[$type][$lang][$term] ) ) { |
||
| 19 | $this->terms[$type][$lang][$term] = ++$this->lastId; |
||
| 20 | } |
||
| 21 | |||
| 22 | $ids[] = $this->terms[$type][$lang][$term]; |
||
| 23 | } |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | return $ids; |
||
| 28 | } |
||
| 29 | |||
| 65 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.