public function version($version = null)
    {
        if (!$version) {
            $versionParts = explode('.', \Peridot\Console\Version::NUMBER);
            $versionParts[count($versionParts)-1]++;
            $version = implode('.', $versionParts);
        }
        $versionFile = __DIR__ . '/src/Console/Version.php';
        $this->taskReplaceInFile($versionFile)
            ->from('NUMBER = "' . \Peridot\Console\Version::NUMBER . '"')
            ->to('NUMBER = "' . $version . '"')
            ->run();

        return $version;
    }
public function version($version = null)
    {
        if (!$version) {
            $versionParts = explode('.', \Peridot\Console\Version::NUMBER);
            $versionParts[count($versionParts)-1]++;
            $version = implode('.', $versionParts);
        }
        $versionFile = __DIR__ . '/src/Console/Version.php';
        $this->taskReplaceInFile($versionFile)
            ->from('NUMBER = "' . \Peridot\Console\Version::NUMBER . '"')
            ->to('NUMBER = "' . $version . '"')
            ->run();

        return $version;
    }
public function version ( $ version = null ) { if ( ! $ version ) { $ versionParts = explode ( '.' , \ Peridot \ Console \ Version :: NUMBER ) ; $ versionParts [ count ( $ versionParts ) - 1 ] ++ ; $ version = implode ( '.' , $ versionParts ) ; } $ versionFile = __DIR__ . '/src/Console/Version.php' ; $ this -> taskReplaceInFile ( $ versionFile ) -> from ( 'NUMBER = "' . \ Peridot \ Console \ Version :: NUMBER . '"' ) -> to ( 'NUMBER = "' . $ version . '"' ) -> run ( ) ; return $ version ; }
Bump the version of Peridot. Defaults to a minor release.

@param null $version
@return null|string
Bump the version of Peridot . Defaults to a minor release .