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



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

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

            return $interval['resolver']();

        }

    }
<?php     public function interval($key, Closure $resolver, $seconds)

    {

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

            $this->intervals[] = $key;



            return;
<?php     protected function intervalShouldBeRefreshed(array $interval)

    {

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

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

    }
<?php     protected function ensureRoadRunnerBinaryIsInstalled(): string

    {

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

            return $roadRunnerBinary;

        }
<?php     {

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



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

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

                'SERVER_PORT',

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

        }



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

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

                return $roadRunnerBinary;

            }
<?php     {

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



        if (! is_null($lastInvokedAt) &&

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

            return;

        }
<?php         $this->cache->forever('tick-'.$this->key, Carbon::now()->getTimestamp());



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

            return;

        }
<?php             }

        }



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

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

        } else {

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