src/Builder/GrowlNotifyBuilder.php
public function build($options)
    {
        $command = $this->path;

        if (isset($options['title'])) {
            $command .= " -t {$options['title']}";
        }
        if (isset($options['message'])) {
            $command .= " -m {$options['message']}";
        }
        if (isset($options['image'])) {
            $pathInfo = pathinfo($options['image']);
            if (isset($pathInfo['extension'])) {
                $command .= " --image {$options['image']}";
            } else {
                $command .= " -a {$options['image']}";
            }
        }
        if (isset($options['url'])) {
            $command .= " --url {$options['url']}";
        }
        if (isset($options['sticky']) && $options['sticky'] === true) {
            $command .= ' -s';
        }

        return $command;
    }
public function build($options)
    {
        $command = $this->path;

        if (isset($options['title'])) {
            $command .= " -t {$options['title']}";
        }
        if (isset($options['message'])) {
            $command .= " -m {$options['message']}";
        }
        if (isset($options['image'])) {
            $pathInfo = pathinfo($options['image']);
            if (isset($pathInfo['extension'])) {
                $command .= " --image {$options['image']}";
            } else {
                $command .= " -a {$options['image']}";
            }
        }
        if (isset($options['url'])) {
            $command .= " --url {$options['url']}";
        }
        if (isset($options['sticky']) && $options['sticky'] === true) {
            $command .= ' -s';
        }

        return $command;
    }
public function build ( $ options ) { $ command = $ this -> path ; if ( isset ( $ options [ 'title' ] ) ) { $ command .= " -t {$options['title']}" ; } if ( isset ( $ options [ 'message' ] ) ) { $ command .= " -m {$options['message']}" ; } if ( isset ( $ options [ 'image' ] ) ) { $ pathInfo = pathinfo ( $ options [ 'image' ] ) ; if ( isset ( $ pathInfo [ 'extension' ] ) ) { $ command .= " --image {$options['image']}" ; } else { $ command .= " -a {$options['image']}" ; } } if ( isset ( $ options [ 'url' ] ) ) { $ command .= " --url {$options['url']}" ; } if ( isset ( $ options [ 'sticky' ] ) && $ options [ 'sticky' ] === true ) { $ command .= ' -s' ; } return $ command ; }
Builds the growlnotify command to be executed.

@param array $options An array of options to use for building the command.
@return string The fully-built command to execute.
Builds the growlnotify command to be executed .