Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | 18 | private static function startTimer() |
|
47 | { |
||
48 | 18 | if (! empty(Workflow::serviceEnabled())) { |
|
49 | 18 | return Item::create() |
|
50 | 18 | ->uid('start_timer') |
|
51 | 18 | ->title('Start "' . self::userInput() . '"') |
|
52 | 18 | ->mod( |
|
53 | 18 | Cmd::create() |
|
54 | 18 | ->subtitle('Continue a timer') |
|
55 | 18 | ->arg('choose_timer') |
|
56 | ) |
||
57 | 18 | ->arg('choose_project') |
|
58 | 18 | ->variable('timer_description', self::userInput()); |
|
59 | } |
||
73 |