concrete/src/Updater/ApplicationUpdate.php
public static function get($dir)
    {
        $version_file = DIR_CORE_UPDATES . "/{$dir}/" . DIRNAME_CORE . '/config/concrete.php';

        $concrete = @include $version_file;
        if ($concrete['version'] != false) {
            $obj = new self();
            $obj->version = $concrete['version'];
            $obj->identifier = $dir;

            return $obj;
        }
    }
public static function get($dir)
    {
        $version_file = DIR_CORE_UPDATES . "/{$dir}/" . DIRNAME_CORE . '/config/concrete.php';

        $concrete = @include $version_file;
        if ($concrete['version'] != false) {
            $obj = new self();
            $obj->version = $concrete['version'];
            $obj->identifier = $dir;

            return $obj;
        }
    }
public static function get ( $ dir ) { $ version_file = DIR_CORE_UPDATES . "/{$dir}/" . DIRNAME_CORE . '/config/concrete.php' ; $ concrete = @ include $ version_file ; if ( $ concrete [ 'version' ] != false ) { $ obj = new self ( ) ; $ obj -> version = $ concrete [ 'version' ] ; $ obj -> identifier = $ dir ; return $ obj ; } }
Parse an update dir and returns an ApplicationUpdate instance.

@param string $dir The base name of the directory under the updates directory

@return ApplicationUpdate|null Returns null if there's no update in the $dir directory, or an ApplicationUpdate instance if $dir is ok
Parse an update dir and returns an ApplicationUpdate instance .