public static function loadData(): void
    {
        if (Search::$loaded === false) {
            $filePath = Search::$DATA_DIR."merged-ultraslim.json";
            $contents = @file_get_contents($filePath);
            if ($contents === false) {
                throw new KBException("$filePath does not exist !");
            }
            Search::$data   = json_decode($contents);
            Search::$loaded = true;
        }
    }
public static function loadData(): void
    {
        if (Search::$loaded === false) {
            $filePath = Search::$DATA_DIR."merged-ultraslim.json";
            $contents = @file_get_contents($filePath);
            if ($contents === false) {
                throw new KBException("$filePath does not exist !");
            }
            Search::$data   = json_decode($contents);
            Search::$loaded = true;
        }
    }
public static function loadData ( ) : void { if ( Search :: $ loaded === false ) { $ filePath = Search :: $ DATA_DIR . "merged-ultraslim.json" ; $ contents = @ file_get_contents ( $ filePath ) ; if ( $ contents === false ) { throw new KBException ( "$filePath does not exist !" ) ; } Search :: $ data = json_decode ( $ contents ) ; Search :: $ loaded = true ; } }
Load data from disk

@return void
@throws KBException
Load data from disk