Skip to content

Commit ce1d086

Browse files
grimzyStyleCIBot
authored andcommitted
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 6508a7f commit ce1d086

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/Types/GeometryCollection.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ public function jsonSerialize()
154154
*
155155
* @param array $items
156156
*/
157-
protected function validateItems(array $items) {
157+
protected function validateItems(array $items)
158+
{
158159
$this->validateItemCount($items);
159160

160161
foreach ($items as $item) {
@@ -169,9 +170,11 @@ protected function validateItems(array $items) {
169170
*
170171
* @see $minimumCollectionItems
171172
*/
172-
protected function validateItemCount(array $items) {
173+
protected function validateItemCount(array $items)
174+
{
173175
if (count($items) < $this->minimumCollectionItems) {
174176
$entries = $this->minimumCollectionItems === 1 ? 'entry' : 'entries';
177+
175178
throw new InvalidArgumentException(sprintf(
176179
'%s must contain at least %d %s', get_class($this), $this->minimumCollectionItems, $entries
177180
));
@@ -185,7 +188,8 @@ protected function validateItemCount(array $items) {
185188
*
186189
* @see $collectionItemType
187190
*/
188-
protected function validateItemType($item) {
191+
protected function validateItemType($item)
192+
{
189193
if (!$item instanceof $this->collectionItemType) {
190194
throw new InvalidArgumentException(sprintf(
191195
'%s must be a collection of %s', get_class($this), $this->collectionItemType

src/Types/MultiPolygon.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use GeoJson\GeoJson;
66
use GeoJson\Geometry\MultiPolygon as GeoJsonMultiPolygon;
77
use Grimzy\LaravelMysqlSpatial\Exceptions\InvalidGeoJsonException;
8-
use InvalidArgumentException;
98

109
class MultiPolygon extends GeometryCollection
1110
{

0 commit comments

Comments
 (0)