for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nip\Utility;
use Closure;
/**
* Class Util
* @package Nip\Utility
*/
class Util
{
* Return the default value of the given value.
*
* @param mixed $value
* @return mixed
public static function value($value)
return $value instanceof Closure ? $value() : $value;
}