Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
56 | protected function getAliasesToLocale($locale) |
||
57 | { |
||
58 | $aliases = array_keys($this->languages, $locale); |
||
59 | |||
60 | $parts = $this->getSegments(); |
||
61 | |||
62 | if ($this->isPartsValid($parts)) { |
||
63 | $segment = $parts[$this->getDefaultSegment()]; |
||
64 | |||
65 | return array_filter( |
||
66 | $aliases, |
||
67 | function ($item) use ($segment) { |
||
68 | return $segment == $item; |
||
69 | } |
||
70 | ); |
||
71 | } |
||
72 | |||
73 | return []; |
||
74 | } |
||
75 | } |
||
76 |