Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3c0afed

Browse files
committed
Merge remote-tracking branch 'origin/issue-95-point-collection-min-items' into issue-95-point-collection-min-items
2 parents 534dddc + 881955c commit 3c0afed

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎src/Types/GeometryCollection.php‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ protected function validateItemCount(array $items)
180180
$entries = $this->minimumCollectionItems === 1 ? 'entry' : 'entries';
181181

182182
throw new InvalidArgumentException(sprintf(
183-
'%s must contain at least %d %s', get_class($this), $this->minimumCollectionItems, $entries
183+
'%s must contain at least %d %s',
184+
get_class($this),
185+
$this->minimumCollectionItems,
186+
$entries
184187
));
185188
}
186189
}
@@ -196,7 +199,9 @@ protected function validateItemType($item)
196199
{
197200
if (!$item instanceof $this->collectionItemType) {
198201
throw new InvalidArgumentException(sprintf(
199-
'%s must be a collection of %s', get_class($this), $this->collectionItemType
202+
'%s must be a collection of %s',
203+
get_class($this),
204+
$this->collectionItemType
200205
));
201206
}
202207
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /