Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Finds whether a variable is null
is_null(mixed $value): bool
        }



        if (
in_array($key$this->intervals) &&

            ! 
is_null($interval $this->getInterval($key))) {

            return 
$interval['resolver']();

        }

    }
    public function interval($keyClosure $resolver$seconds)

    {

        if (! 
is_null($this->getInterval($key))) {

            
$this->intervals[] = $key;



            return;
    protected function intervalShouldBeRefreshed(array $interval)

    {

        return 
is_null($interval['lastRefreshedAt']) ||

               (
Carbon::now()->getTimestamp() - $interval['lastRefreshedAt']) >= $interval['refreshInterval'];

    }
    protected function ensureRoadRunnerBinaryIsInstalled(): string

    
{

        if (! 
is_null($roadRunnerBinary $this->findRoadRunnerBinary())) {

            return 
$roadRunnerBinary;

        }
    {

        
$port $event->request->getPort();



        if (
is_null($port) || $port === '') {

            
$event->request->server->set(

                
'SERVER_PORT',

                
$event->request->getScheme() === 'https' 443 80
            return base_path('rr');

        }



        if (! 
is_null($roadRunnerBinary = (new ExecutableFinder)->find('rr'null, [base_path()]))) {

            if (! 
Str::contains($roadRunnerBinary'vendor/bin/rr')) {

                return 
$roadRunnerBinary;

            }
    {

        
$lastInvokedAt $this->cache->get('tick-'.$this->key);



        if (! 
is_null($lastInvokedAt) &&

            (
Carbon::now()->getTimestamp() - $lastInvokedAt) < $this->seconds) {

            return;

        }
        $this->cache->forever('tick-'.$this->keyCarbon::now()->getTimestamp());



        if (
is_null($lastInvokedAt) && ! $this->immediate) {

            return;

        }
            }

        }



        if (! 
is_null($reason $this->getReasonFromStatusCode($response->getStatusCode()))) {

            
$swooleResponse->status($response->getStatusCode(), $reason);

        } else {

            
$swooleResponse->status($response->getStatusCode());