Commit 849079e 1 parent 629a345 commit 849079e Copy full SHA for 849079e
File tree 1 file changed +3
-3
lines changed
packages/framework/src/Console/Commands
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ protected function captureImageFieldInput(PublicationField $field): string|null
140
140
141
141
$ mediaFiles = PublicationService::getMediaForPubType ($ this ->publicationType );
142
142
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 ()}/ " );
144
144
}
145
145
146
146
$ filesArray = $ mediaFiles ->toArray ();
@@ -155,7 +155,7 @@ protected function captureTagFieldInput(PublicationField $field): array|string|n
155
155
156
156
$ options = PublicationService::getValuesForTagName ($ this ->publicationType ->getIdentifier ());
157
157
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 ' );
159
159
}
160
160
161
161
$ this ->tip ('You can enter multiple tags separated by commas ' );
@@ -174,7 +174,7 @@ protected function captureTagFieldInput(PublicationField $field): array|string|n
174
174
}
175
175
176
176
/** @return null */
177
- protected function handleEmptyCollection (string $ type , string $ message )
177
+ protected function handleEmptyOptionsCollection (string $ type , string $ message )
178
178
{
179
179
$ this ->newLine ();
180
180
$ this ->warn ("Warning: $ message " );
You can’t perform that action at this time.
0 commit comments