Send the counter total to the console.
@param  bool $force
@return void
544281
protected function outputCounters($force)
    {
        $this->info(sprintf('Imported %d file(s).', $this->counters['created']));
        if ($this->counters['updated'] > 0) {
            $this->info(sprintf('Updated %d record(s).', $this->counters['updated']));
        }
        if ($this->counters['skipped'] > 0) {
            $this->info(sprintf('Skipped %d file(s).', $this->counters['skipped']));
        }
    }
1108671
public function drop($force = false)
    {
        $this->clearCache();
        
        $this->force = $force;

        return 'DROP TABLE ' . ($this->isForce() ? 'IF EXISTS ' : '') . '`' . $this->getCurrentTable()->getFullTableName() . '`;';
    }
561064
public static function update($force = false)
    {
        if (!defined('SEMALT_UNIT_TESTING') && !self::isWritable()) {
            return;
        }

        if (!$force && !self::isOutdated()) {
            return;
        }

        self::doUpdate();
    }
669126
function Counter() {
  this.total = 0;
  this.executed = 0;
  this.passed = 0;
  this.error = 0;
  this.failed = 0;
  this.timeout = 0;
  this.aborted = 0;
  this.inconclusive = 0;
  this.passedButRunAborted = 0;
  this.notRunnable = 0;
  this.notExecuted = 0;
  this.disconnected = 0;
  this.warning = 0;
  this.completed = 0;
  this.inProgress = 0;
  this.pending = 0;
}
688466
public function synchronize($className, $force)
    {
        $this->logger->notice(
            'Start of ' . ($force ? 'forced ' : '') . 'synchronization for {className}.',
            array('className' => $className)
        );

        $this->className = $className;
        $this->mapper->setForce($force);

        $this->sourceQueue = $this->source->getObjectsOrderedById();
        $this->sourceQueue->rewind();

        $this->destinationQueue = $this->destination->getObjectsOrderedById($className);
        $this->destinationQueue->rewind();

        while ($this->sourceQueue->valid() && $this->destinationQueue->valid()) {
            $this->compareQueuesAndReactAccordingly();
        }

        $this->insertRemainingSourceObjects();
        $this->deleteRemainingDestinationObjects();

        $this->destination->commit();
        $this->logger->notice('End of synchronization for {className}.', array('className' => $className));
    }
25239
public function delete($force = false)
    {
        $this->getParent()->channelDelete($this->getId(), $force);

        unset($this);
    }
996831
public function isOver32(bool $force = false): bool
    {
        // value 0xFFFFFFFF already needs a Zip64 header
        return $force ||
            max(array_slice($this->bytes, 4, 4)) > 0 ||
            min(array_slice($this->bytes, 0, 4)) === 0xFF;
    }
713855
public function increment($increment = 1) {
		$this->_current = min($this->_total, $this->_current + $increment);
	}
553875
public function pulse(string $command, bool $force = false)
    {
        return $this->run('php pulse ' . $command . ($force ? ' --force' : ''));
    }
759217
public function update(bool $force, OutputInterface $output)
    {
        $newSchema = new Schema();
        $this->schemaDefinition->define($newSchema);
        $currentSchema = $this->db->getSchemaManager()->createSchema();

        $migrationQueries = $currentSchema->getMigrateToSql($newSchema, $this->db->getDatabasePlatform());

        $this->db->transactional(function () use ($migrationQueries, $force, $output) {
            foreach ($migrationQueries as $query) {
                $output->writeln(sprintf('Running <info>%s</info>', $query));
                if ($force) {
                    $this->db->exec($query);
                }
            }
            if (empty($migrationQueries)) {
                $output->writeln('<info>The database is up to date</info>');
            }
        });

        if (!$force) {
            $output->writeln('<comment>No query was run, use the --force option to run the queries</comment>');
        } else {
            $output->writeln('<comment>Queries were successfully run against the database</comment>');
        }
    }
122187
public function findAllToRefreshToken(bool $force = false)
    {
        $query = $this->newQuery();

        return $force ? $query->get() : $query->whereNull('token')->get();
    }
367886
public function send($exit = true)
    {
        $response = $this->getResponse();

        $this->sendHeaders($response);
        $this->sendBody($response->getBody());

        if (true === $exit) {
            exit;
        }
    }
462028
public function pointingCommand(): void
    {
        $total = 100;

        while ($total--) {
            Show::pointing();
            usleep(10000);
        }

        Show::pointing('Done', true);
    }
1241255
public function ensurePropertiesIds($force = false)
    {
        if ($this->propertiesIds === null || $force === true) {
            $this->ensurePropertyGroupIds();
            $this->propertiesIds = [];

            foreach ($this->propertyGroupIds as $propertyGroupId) {
                $propertyIds = PropertyGroup::propertyIdsForGroup($propertyGroupId);
                foreach ($propertyIds as $propertyId) {
                    $this->propertiesIds[] = $propertyId;
                }
            }
            $this->propertiesIds = array_unique($this->propertiesIds);
        }
    }
477005
public function append($resource)
    {
        parent::append($resource);
        if ($this->totalCount !== null) {
            $this->setTotalCount($this->totalCount);
        }
    }
1356708
private function index($force = false)
    {
        if ($force || !$this->index)
        {
            $items = Eresus_CMS::getLegacyKernel()->db->
                select($this->table, '', '`position`', '`id`,`owner`');
            if ($items)
            {
                $this->index = array();
                foreach ($items as $item)
                {
                    $this->index[$item['owner']] []= $item['id'];
                }
            }
        }
    }
774781
public function counterCommand(): int
    {
        $total = 120;
        $ctt   = Show::counterTxt('handling ...', 'handled.');
        $this->write('Counter:');

        while ($total - 1) {
            $ctt->send(1);
            usleep(30000);
            $total--;
        }

        // end of the counter.
        $ctt->send(-1);

        // $this->output->aList($data, 'runtime profile');

        return 0;
    }