Conditions | 5 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function getDefaultCodeBucket(): string |
||
39 | { |
||
40 | if ($this->isAcpDevOn()) { |
||
41 | return APPLICATION_STORE; |
||
42 | } |
||
43 | |||
44 | $codeBuckets = $this->getCodeBuckets(); |
||
45 | |||
46 | $parts = explode('/', $this->getPathInfo()); |
||
47 | if (isset($parts[1]) && in_array($parts[1], $codeBuckets, true)) { |
||
48 | return $parts[1]; |
||
49 | } |
||
50 | |||
51 | return defined('APPLICATION_REGION') ? APPLICATION_REGION : reset($codeBuckets); |
||
52 | } |
||
72 |