core/Helper.php
public static function tap($value, $callback = null)
	{
		if(is_null($callback))
		{
			return new HigherOrderTapProxy($value);
		}
		$callback($value);
		return $value;
	}
public static function tap($value, $callback = null)
	{
		if(is_null($callback))
		{
			return new HigherOrderTapProxy($value);
		}
		$callback($value);
		return $value;
	}
public static function tap ( $ value , $ callback = null ) { if ( is_null ( $ callback ) ) { return new HigherOrderTapProxy ( $ value ) ; } $ callback ( $ value ) ; return $ value ; }
Call the given Closure with the given value then return the value.

@param  mixed  $value
@param  callable|null  $callback
@return mixed
Call the given Closure with the given value then return the value .