private function findPivotDataTokens($string)
    {
        if (
            !$this->needsDeviceData
            && 1 === preg_match('/{{\s?device\..*\s?}}/', $string)
        ) {
            $this->needsDeviceData = true;
        }
        if (
            !$this->needsUtmData
            && 1 === preg_match('/{{\s?utm\..*\s?}}/', $string)
        ) {
            $this->needsUtmData = true;
        }
        if (
            !$this->needsDncData
            && 1 === preg_match('/{{\s?doNotContact\..*\s?}}/', $string)
        ) {
            $this->needsDncData = true;
        }
    }
private function findPivotDataTokens($string)
    {
        if (
            !$this->needsDeviceData
            && 1 === preg_match('/{{\s?device\..*\s?}}/', $string)
        ) {
            $this->needsDeviceData = true;
        }
        if (
            !$this->needsUtmData
            && 1 === preg_match('/{{\s?utm\..*\s?}}/', $string)
        ) {
            $this->needsUtmData = true;
        }
        if (
            !$this->needsDncData
            && 1 === preg_match('/{{\s?doNotContact\..*\s?}}/', $string)
        ) {
            $this->needsDncData = true;
        }
    }
private function findPivotDataTokens ( $ string ) { if ( ! $ this -> needsDeviceData && 1 === preg_match ( '/{{\s?device\..*\s?}}/' , $ string ) ) { $ this -> needsDeviceData = true ; } if ( ! $ this -> needsUtmData && 1 === preg_match ( '/{{\s?utm\..*\s?}}/' , $ string ) ) { $ this -> needsUtmData = true ; } if ( ! $ this -> needsDncData && 1 === preg_match ( '/{{\s?doNotContact\..*\s?}}/' , $ string ) ) { $ this -> needsDncData = true ; } }
Check for the need for device data to keep queries low later.

@param $string
Check for the need for device data to keep queries low later .