| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 1 | public function newNearbyParserFunctionDefinition() { |
|
| 19 | |||
| 20 | 1 | $nearbyParserFunctionDefinition = function( $parser ) { |
|
| 21 | |||
| 22 | 1 | $nearbyParserFunction = new NearbyParserFunction( |
|
| 23 | $parser |
||
| 24 | 1 | ); |
|
| 25 | |||
| 26 | 1 | return $nearbyParserFunction->parse( func_get_args() ); |
|
| 27 | 1 | }; |
|
| 28 | |||
| 29 | 1 | return array( 'nearby', $nearbyParserFunctionDefinition, 0 ); |
|
| 30 | } |
||
| 31 | |||
| 33 |