| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | trait BlockStringTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Found many strings inside multiples arrays |
||
| 12 | * |
||
| 13 | * @param string $blocks |
||
| 14 | * @return bool |
||
| 15 | */ |
||
| 16 | public static function foundInMultiplesArrays($blocks) |
||
| 17 | { |
||
| 18 | foreach ($blocks as $block) { |
||
|
|
|||
| 19 | if (static::foundInArray($block[0], $block[1])) { |
||
| 20 | return true; |
||
| 21 | } |
||
| 22 | } |
||
| 23 | return false; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Found string inside array |
||
| 28 | * |
||
| 29 | * @param string $field |
||
| 30 | * @param array $array |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | public static function foundInArray($field, $array) |
||
| 41 | } |
||
| 42 | } |