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

Appearance settings

Commit 3c0afed

Browse filesBrowse 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
Copy full SHA for 3c0afed

File tree

Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed

‎src/Types/GeometryCollection.php

Copy file name to clipboardExpand all lines: src/Types/GeometryCollection.php
+7-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.