Changeset View
Changeset View
Standalone View
Standalone View
src/moduleutils/PhutilLibraryMapBuilder.php
| Show First 20 Lines • Show All 458 Lines • ▼ Show 20 Lines | foreach ($source_map as $file => $hash) { | ||||
| $futures[$file] = $this->buildSymbolAnalysisFuture($file); | $futures[$file] = $this->buildSymbolAnalysisFuture($file); | ||||
| } | } | ||||
| $this->log( | $this->log( | ||||
| pht('Found %s files in cache.', new PhutilNumber(count($symbol_map)))); | pht('Found %s files in cache.', new PhutilNumber(count($symbol_map)))); | ||||
| // Run the analyzer on any files which need analysis. | // Run the analyzer on any files which need analysis. | ||||
| if ($futures) { | if ($futures) { | ||||
| $limit = $this->subprocessLimit; | $limit = $this->subprocessLimit; | ||||
| $count = number_format(count($futures)); | |||||
| $this->log( | $this->log( | ||||
| pht('Analyzing %d files with %d subprocesses...', $count, $limit)); | pht( | ||||
| 'Analyzing %s file(s) with %s subprocess(es)...', | |||||
| phutil_count($futures), | |||||
epriestley: Does `phutil_count()` actually exist? I can't find it defined anywhere. Maybe I'm reviewing… | |||||
| new PhutilNumber($limit))); | |||||
| $progress = new PhutilConsoleProgressBar(); | $progress = new PhutilConsoleProgressBar(); | ||||
| if ($this->quiet) { | if ($this->quiet) { | ||||
| $progress->setQuiet(true); | $progress->setQuiet(true); | ||||
| } | } | ||||
| $progress->setTotal(count($futures)); | $progress->setTotal(count($futures)); | ||||
| $futures = id(new FutureIterator($futures)) | $futures = id(new FutureIterator($futures)) | ||||
| Show All 31 Lines | |||||
Does phutil_count() actually exist? I can't find it defined anywhere. Maybe I'm reviewing these out of order...
Probably should be file(s).