Differential D11612 Diff 27974 src/infrastructure/internationalization/management/PhabricatorInternationalizationManagementExtractWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/internationalization/management/PhabricatorInternationalizationManagementExtractWorkflow.php
| Show All 25 Lines | foreach ($paths as $path) { | ||||
| $path_files = id(new FileFinder($root)) | $path_files = id(new FileFinder($root)) | ||||
| ->withType('f') | ->withType('f') | ||||
| ->withSuffix('php') | ->withSuffix('php') | ||||
| ->find(); | ->find(); | ||||
| foreach ($path_files as $file) { | foreach ($path_files as $file) { | ||||
| $full_path = $root.DIRECTORY_SEPARATOR.$file; | $full_path = $root.DIRECTORY_SEPARATOR.$file; | ||||
| $data = Filesystem::readFile($full_path); | $data = Filesystem::readFile($full_path); | ||||
| $futures[$full_path] = xhpast_get_parser_future($data); | $futures[$full_path] = PhutilXHPASTBinary::getParserFuture($data); | ||||
| } | } | ||||
| } | } | ||||
| $console->writeOut( | $console->writeOut( | ||||
| "%s\n", | "%s\n", | ||||
| pht('Found %s file(s)...', new PhutilNumber(count($futures)))); | pht('Found %s file(s)...', new PhutilNumber(count($futures)))); | ||||
| $results = array(); | $results = array(); | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||