private function getCallbackFromRecipes($key, array $recipes = null)
    {
        $recipe = null;
        if (isset($recipes[$key]) && is_callable($recipes[$key])) {
            $recipe = $recipes[$key];
        }

        return $recipe;
    }
private function getCallbackFromRecipes($key, array $recipes = null)
    {
        $recipe = null;
        if (isset($recipes[$key]) && is_callable($recipes[$key])) {
            $recipe = $recipes[$key];
        }

        return $recipe;
    }
private function getCallbackFromRecipes ( $ key , array $ recipes = null ) { $ recipe = null ; if ( isset ( $ recipes [ $ key ] ) && is_callable ( $ recipes [ $ key ] ) ) { $ recipe = $ recipes [ $ key ] ; } return $ recipe ; }
Extracts and returns callback from recipes if there is one which matchs with provided key.

@param string $key
@param array  $recipes

@return null|callable
Extracts and returns callback from recipes if there is one which matchs with provided key .