Skip to content

Commit

Permalink
Typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaspare Sganga committed May 22, 2020
1 parent 010313f commit 2710dca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Shapefile/Geometry/Geometry.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ protected function setFlagM($value)


/**
* Checks if the Geometry has been initialized (it is not empty) and if YES throws and exception.
* Checks if the Geometry has been initialized (it is not empty) and if YES throws an exception.
*
* @return self Returns $this to provide a fluent interface.
*/
Expand Down
14 changes: 7 additions & 7 deletions src/Shapefile/Geometry/Linestring.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*
* - GeoJSON:
* {
* "type": "Linestring" / "LinestringM"
* "type": "LineString" / "LineStringM"
* "coordinates": [
* [x, y, z] / [x, y, m] / [x, y, z, m]
* ]
Expand Down Expand Up @@ -83,10 +83,10 @@ public function forceClosedRing()
/**
* Checks whether a ring is clockwise or not (it works with open rings too).
*
* Throws and exception if ring area is too small and cannot determine its orientation.
* Returns Shapefile::UNDEFINED or throw and exception if there are not enough points.
* Throws an exception if ring area is too small and cannot determine its orientation.
* Returns Shapefile::UNDEFINED or throw an exception if there are not enough points.
*
* @param bool $flag_throw_exception Optional flag to throw and exception if there are not enough points.
* @param bool $flag_throw_exception Optional flag to throw an exception if there are not enough points.
*
* @return bool|Shapefile::UNDEFINED
*/
Expand Down Expand Up @@ -114,7 +114,7 @@ public function isClockwise($flag_throw_exception = false)

/**
* Forces the ring to be in clockwise direction (it works with open rings too).
* Throws and exception if direction is undefined.
* Throws an exception if direction is undefined.
*
* @return self Returns $this to provide a fluent interface.
*/
Expand All @@ -127,8 +127,8 @@ public function forceClockwise()
}

/**
* Forces the ring to be in clockwise direction (it works with open rings too).
* Throws and exception if direction is undefined.
* Forces the ring to be in counterclockwise direction (it works with open rings too).
* Throws an exception if direction is undefined.
*
* @return self Returns $this to provide a fluent interface.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/Geometry/MultiLinestring.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
*
* - GeoJSON:
* {
* "type": "MultiLinestring" / "MultiLinestringM"
* "type": "MultiLineString" / "MultiLineStringM"
* "coordinates": [
* [
* [x, y, z] / [x, y, m] / [x, y, z, m]
Expand Down

0 comments on commit 2710dca

Please sign in to comment.