src/Event.php
public function every($unit = null, $value = null): self
    {
        if (null === $unit || !isset($this->fieldsPosition[$unit])) {
            return $this;
        }

        $value = (1 === (int) $value) ? '*' : '*/' . $value;

        return $this->spliceIntoPosition($this->fieldsPosition[$unit], $value)
                    ->applyMask($unit);
    }
public function every($unit = null, $value = null): self
    {
        if (null === $unit || !isset($this->fieldsPosition[$unit])) {
            return $this;
        }

        $value = (1 === (int) $value) ? '*' : '*/' . $value;

        return $this->spliceIntoPosition($this->fieldsPosition[$unit], $value)
                    ->applyMask($unit);
    }
public function every ( $ unit = null , $ value = null ) : self { if ( null === $ unit || ! isset ( $ this -> fieldsPosition [ $ unit ] ) ) { return $ this ; } $ value = ( 1 === ( int ) $ value ) ? '*' : '*/' . $ value ; return $ this -> spliceIntoPosition ( $ this -> fieldsPosition [ $ unit ] , $ value ) -> applyMask ( $ unit ) ; }
Another way to the frequency of the cron job.
Another way to the frequency of the cron job .