Skip to content

Commit 849079e

Browse files
committed
Rename helper method
1 parent 629a345 commit 849079e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/framework/src/Console/Commands/MakePublicationCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected function captureImageFieldInput(PublicationField $field): string|null
140140

141141
$mediaFiles = PublicationService::getMediaForPubType($this->publicationType);
142142
if ($mediaFiles->isEmpty()) {
143-
return $this->handleEmptyCollection('media file', "No media files found in directory _media/{$this->publicationType->getIdentifier()}/");
143+
return $this->handleEmptyOptionsCollection('media file', "No media files found in directory _media/{$this->publicationType->getIdentifier()}/");
144144
}
145145

146146
$filesArray = $mediaFiles->toArray();
@@ -155,7 +155,7 @@ protected function captureTagFieldInput(PublicationField $field): array|string|n
155155

156156
$options = PublicationService::getValuesForTagName($this->publicationType->getIdentifier());
157157
if ($options->isEmpty()) {
158-
return $this->handleEmptyCollection('tag', 'No tags for this publication type found in tags.json');
158+
return $this->handleEmptyOptionsCollection('tag', 'No tags for this publication type found in tags.json');
159159
}
160160

161161
$this->tip('You can enter multiple tags separated by commas');
@@ -174,7 +174,7 @@ protected function captureTagFieldInput(PublicationField $field): array|string|n
174174
}
175175

176176
/** @return null */
177-
protected function handleEmptyCollection(string $type, string $message)
177+
protected function handleEmptyOptionsCollection(string $type, string $message)
178178
{
179179
$this->newLine();
180180
$this->warn("Warning: $message");

0 commit comments

Comments
 (0)