src/Invoice/Creator.php
protected function addTokenDefault(array &$array, $key, $token)
    {
        if (empty($array[$key]) && !empty($token)) {
            $value = $this->getTokenizedValue($token);
            if (!empty($value)) {
                $array[$key] = $value;
                return true;
            }
        }
        return false;
    }
protected function addTokenDefault(array &$array, $key, $token)
    {
        if (empty($array[$key]) && !empty($token)) {
            $value = $this->getTokenizedValue($token);
            if (!empty($value)) {
                $array[$key] = $value;
                return true;
            }
        }
        return false;
    }
protected function addTokenDefault ( array & $ array , $ key , $ token ) { if ( empty ( $ array [ $ key ] ) && ! empty ( $ token ) ) { $ value = $ this -> getTokenizedValue ( $ token ) ; if ( ! empty ( $ value ) ) { $ array [ $ key ] = $ value ; return true ; } } return false ; }
Helper method to add a non-empty possibly tokenized value to an array.

This method will not overwrite existing values.

@param array $array
@param string $key
@param string $token
String value that may contain token definitions.

@return bool
Whether the default was added.
Helper method to add a non - empty possibly tokenized value to an array .