@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function createBreadcrumb(Place $startPlace, Place $endPlace = null) |
52 | 52 | { |
53 | - if ( is_callable( $this->onPreCreateBreadcumb ) ) { |
|
53 | + if (is_callable($this->onPreCreateBreadcumb)) { |
|
54 | 54 | call_user_func($this->onPreCreateBreadcumb, $startPlace, $this->placeCollector->getPlacesType()); |
55 | 55 | } |
56 | 56 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | /** @var Place $current */ |
62 | 62 | $current = array_shift($frontier); |
63 | 63 | |
64 | - if ( is_callable( $this->onWalk ) ) { |
|
64 | + if (is_callable($this->onWalk)) { |
|
65 | 65 | call_user_func($this->onWalk, $current); |
66 | 66 | } |
67 | 67 |