public function run()
    {
        $force = $this->controller->force;
        $this->stdout("initialize ip database:\n", Console::FG_GREEN);
        foreach ($this->ipv4->getQueries() as $name => $query) {
            $providers = $query->getProviders();
            if (empty($providers)) {
                $this->download($query, $name, $force);
            } else {
                $this->division();
                $this->generate($query, $name, $force);
            }
        }
    }
public function run()
    {
        $force = $this->controller->force;
        $this->stdout("initialize ip database:\n", Console::FG_GREEN);
        foreach ($this->ipv4->getQueries() as $name => $query) {
            $providers = $query->getProviders();
            if (empty($providers)) {
                $this->download($query, $name, $force);
            } else {
                $this->division();
                $this->generate($query, $name, $force);
            }
        }
    }
public function run ( ) { $ force = $ this -> controller -> force ; $ this -> stdout ( "initialize ip database:\n" , Console :: FG_GREEN ) ; foreach ( $ this -> ipv4 -> getQueries ( ) as $ name => $ query ) { $ providers = $ query -> getProviders ( ) ; if ( empty ( $ providers ) ) { $ this -> download ( $ query , $ name , $ force ) ; } else { $ this -> division ( ) ; $ this -> generate ( $ query , $ name , $ force ) ; } } }
initialize ip database
initialize ip database