Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/publisher/DivinerPublisher.php
| Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | final public function publishAtoms(array $hashes) { | ||||
| } | } | ||||
| $console = PhutilConsole::getConsole(); | $console = PhutilConsole::getConsole(); | ||||
| $console->writeOut( | $console->writeOut( | ||||
| "%s\n", | "%s\n", | ||||
| pht( | pht( | ||||
| 'Deleting %s document(s).', | 'Deleting %s document(s).', | ||||
| new PhutilNumber(count($deleted)))); | phutil_count($deleted))); | ||||
| $this->deleteDocumentsByHash($deleted); | $this->deleteDocumentsByHash($deleted); | ||||
| $console->writeOut( | $console->writeOut( | ||||
| "%s\n", | "%s\n", | ||||
| pht( | pht( | ||||
| 'Creating %s document(s).', | 'Creating %s document(s).', | ||||
| new PhutilNumber(count($created)))); | phutil_count($created))); | ||||
| $this->createDocumentsByHash($created); | $this->createDocumentsByHash($created); | ||||
| } | } | ||||
| final protected function shouldGenerateDocumentForAtom(DivinerAtom $atom) { | final protected function shouldGenerateDocumentForAtom(DivinerAtom $atom) { | ||||
| switch ($atom->getType()) { | switch ($atom->getType()) { | ||||
| case DivinerAtom::TYPE_METHOD: | case DivinerAtom::TYPE_METHOD: | ||||
| case DivinerAtom::TYPE_FILE: | case DivinerAtom::TYPE_FILE: | ||||
| return false; | return false; | ||||
| Show All 18 Lines | |||||