Model/Sync/Catalog.php
public function sync()
    {
        $response    = ['success' => true, 'message' => 'Done.'];
        $this->start = microtime(true);

        $countProducts = $this->syncCatalog();

        if ($countProducts) {
            $message = '----------- Catalog sync ----------- : ' .
                gmdate('H:i:s', microtime(true) - $this->start) .
                ', Total synced = ' . $countProducts;
            $this->helper->log($message);
            $response['message'] = $message;
        }

        return $response;
    }
public function sync()
    {
        $response    = ['success' => true, 'message' => 'Done.'];
        $this->start = microtime(true);

        $countProducts = $this->syncCatalog();

        if ($countProducts) {
            $message = '----------- Catalog sync ----------- : ' .
                gmdate('H:i:s', microtime(true) - $this->start) .
                ', Total synced = ' . $countProducts;
            $this->helper->log($message);
            $response['message'] = $message;
        }

        return $response;
    }
public function sync ( ) { $ response = [ 'success' => true , 'message' => 'Done.' ] ; $ this -> start = microtime ( true ) ; $ countProducts = $ this -> syncCatalog ( ) ; if ( $ countProducts ) { $ message = '----------- Catalog sync ----------- : ' . gmdate ( 'H:i:s' , microtime ( true ) - $ this -> start ) . ', Total synced = ' . $ countProducts ; $ this -> helper -> log ( $ message ) ; $ response [ 'message' ] = $ message ; } return $ response ; }
Catalog sync.

@return array
Catalog sync .