@@ -91,7 +91,7 @@ public static function assocArrayFlip(array $array) {
9191 /**
9292 * @param string $operation
9393 * @return string
94- * @return InvalidArgumentException
94+ * @throws InvalidArgumentException
9595 */
9696 public static function bitOperation ($ operation ) {
9797 $ operation = strtoupper ((string )$ operation );
@@ -134,7 +134,7 @@ public static function enum($param, array $enum) {
134134 * @return float
135135 */
136136 public static function float ($ float ) {
137- return (float ) $ float ;
137+ return (float )$ float ;
138138 }
139139
140140 /**
@@ -145,7 +145,8 @@ public static function float($float) {
145145
146146 /**
147147 * @param string $unit
148- * @return string mixed
148+ * @return string
149+ * @throws InvalidArgumentException
149150 */
150151 public static function geoUnit ($ unit ) {
151152 if (!in_array ($ unit , static ::$ geoUnits )) {
@@ -193,14 +194,15 @@ public static function keys($keys) {
193194 /**
194195 * @param int|string|int[]|string[] $limit
195196 * @return int[]
197+ * @throws InvalidArgumentException
196198 */
197199 public static function limit ($ limit ) {
198200 if (is_numeric ($ limit )) {
199201 return [0 , (int )$ limit ];
200202 }
201203 if (is_array ($ limit ) && isset ($ limit ['count ' ])) {
202204 return [
203- empty ($ limit ['offset ' ]) ? 0 : (int ) $ limit ['offset ' ],
205+ empty ($ limit ['offset ' ]) ? 0 : (int )$ limit ['offset ' ],
204206 (int )$ limit ['count ' ],
205207 ];
206208 }
@@ -223,6 +225,7 @@ public static function limit($limit) {
223225 /**
224226 * @param int|string $param
225227 * @return int|string
228+ * @throws InvalidArgumentException
226229 */
227230 public static function minMax ($ param ) {
228231 $ param = trim ($ param );
@@ -235,6 +238,7 @@ public static function minMax($param) {
235238 /**
236239 * @param string $param
237240 * @return string
241+ * @throws InvalidArgumentException
238242 */
239243 public static function nxXx ($ param ) {
240244 if ($ param === 'NX ' || $ param === 'XX ' ) {
@@ -253,6 +257,7 @@ public static function nxXx($param) {
253257 /**
254258 * @param int|float|string $int
255259 * @return int
260+ * @throws InvalidArgumentException
256261 */
257262 public static function port ($ int ) {
258263 $ int = (int )$ int ;
@@ -267,6 +272,7 @@ public static function port($int) {
267272 /**
268273 * @param string|int $param
269274 * @return string
275+ * @throws InvalidArgumentException
270276 */
271277 public static function specifyInterval ($ param ) {
272278 $ param = trim ($ param );
0 commit comments