Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public static function callback_not_defined( Route $route ): self { |
||
42 | // Set the namespace if exists. |
||
43 | $namespace = '' !== $route->get_namespace() |
||
44 | ? $route->get_namespace() |
||
45 | : '_MISSING_NAMESPACE_'; |
||
46 | |||
47 | return new self( |
||
48 | sprintf( |
||
49 | 'Callback not defined for [%s] %s%s', |
||
50 | strtoupper( $route->get_method() ), |
||
51 | strtoupper( $namespace ), |
||
52 | strtoupper( $route->get_route() ) |
||
53 | ), |
||
54 | 102 |
||
55 | ); |
||
74 |