Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
66 | 6 | public static function getACLApp(string $name): Apps |
|
67 | { |
||
68 | 6 | if (trim($name) == self::GEWAER_DEFAULT_APP_NAME) { |
|
69 | $app = self::findFirst(0); |
||
70 | } else { |
||
71 | 6 | $app = self::findFirst(\Phalcon\DI::getDefault()->getConfig()->app->id); |
|
72 | } |
||
73 | |||
74 | 6 | return $app; |
|
1 ignored issue
–
show
|
|||
75 | } |
||
87 |