| Conditions | 4 |
| Paths | 8 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4.1755 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 12 | public static function scriptFilter() |
|
| 13 | { |
||
| 14 | 12 | $service = Workflow::serviceEnabled(); |
|
| 15 | |||
| 16 | 12 | if ($service->allowsEmptyProject) { |
|
| 17 | 12 | ScriptFilter::add(self::getNoProject()); |
|
| 18 | } |
||
| 19 | |||
| 20 | 12 | foreach (self::getServiceProjects($service) as $project) { |
|
| 21 | ScriptFilter::add($project); |
||
| 22 | } |
||
| 23 | |||
| 24 | 12 | if (self::userInput()) { |
|
| 25 | ScriptFilter::filterItems(self::userInput()); |
||
| 26 | } |
||
| 27 | |||
| 28 | 12 | ScriptFilter::sortItems('asc', 'match'); |
|
| 29 | 12 | } |
|
| 57 |