| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public static function create(): Dispatcher |
||
| 16 | { |
||
| 17 | return cachedDispatcher(function (RouteCollector $r) |
||
| 18 | { |
||
| 19 | $r->get( '/tasks', ListTasks::class ); |
||
| 20 | $r->post( '/tasks', AddTask::class ); |
||
| 21 | $r->get( '/task/{identifier}', ShowTask::class ); |
||
| 22 | |||
| 23 | }, [ |
||
| 24 | 'cacheFile' => self::getRoutingCachePath(), |
||
| 25 | 'cacheDisabled' => 'prod' === getenv('JOBQUEUE_ENV') ? false : true, |
||
| 26 | ]); |
||
| 43 |