Skip to content

Commit

Permalink
Updated tag all.
Browse files Browse the repository at this point in the history
Signed-off-by: Jibran Ijaz <jibran.ijaz@gmail.com>
  • Loading branch information
jibran committed Sep 22, 2019
1 parent 4c89932 commit 6f1f501
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion box.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"files": [
"LICENSE",
"Readme.md",
"README.md",
"services.yml",
"manifest.json",
"vendor/herrera-io/phar-update/res/schema.json"
Expand Down
5 changes: 3 additions & 2 deletions src/Commands/TagAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ protected function configure() {
protected function execute(InputInterface $input, OutputInterface $output) {
$entries = $this->repository->review(Review::ALL, TRUE);
$connector_ids = array_unique(array_map(function ($entry) {
return $entry->connector_id;
/** @var \Larowlan\Tl\Slot $entry */
return $entry->getConnectorId();
}, $entries));
$helper = $this->getHelper('question');
$categories = $this->connector->fetchCategories();
$tags = [];
foreach ($connector_ids as $connector_id) {
if (count($categories[$connector_id]) === 1) {
$tag = reset($categories);
$tag = reset($categories[$connector_id]);
list(, $tag) = explode(':', $tag);
$tags[$connector_id] = $tag;
continue;
Expand Down
Binary file modified tl.phar
Binary file not shown.

0 comments on commit 6f1f501

Please sign in to comment.