/** * Dump uploading json file. * * @param Configuration $config Configuration. * @return \Contrib\Bundle\CoverallsV1Bundle\Command\CoverallsV1JobsCommand */ protected function dumpJsonFile(Configuration $config) { $jsonPath = $config->getJsonPath(); $this->logger->info(sprintf('Dump uploading json file: %s', $jsonPath)); $this->api->dumpJsonFile(); $filesize = number_format(filesize($jsonPath) / 1024, 2); // kB $this->logger->info(sprintf('File size: <info>%s</info> kB', $filesize)); return $this; }