File tree 1 file changed +3
-12
lines changed
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -254,10 +254,7 @@ public function getBaseRequest(): BaseRequest
254
254
*/
255
255
public function start (): int
256
256
{
257
- /** @var int $start */
258
- $ start = $ this ->request ->input ('start ' , 0 );
259
-
260
- return $ start ;
257
+ return intval ($ this ->request ->input ('start ' , 0 ));
261
258
}
262
259
263
260
/**
@@ -267,10 +264,7 @@ public function start(): int
267
264
*/
268
265
public function length (): int
269
266
{
270
- /** @var int $length */
271
- $ length = $ this ->request ->input ('length ' , 10 );
272
-
273
- return $ length ;
267
+ return intval ($ this ->request ->input ('length ' , 10 ));
274
268
}
275
269
276
270
/**
@@ -280,9 +274,6 @@ public function length(): int
280
274
*/
281
275
public function draw (): int
282
276
{
283
- /** @var int $draw */
284
- $ draw = $ this ->request ->input ('draw ' , 0 );
285
-
286
- return $ draw ;
277
+ return intval ($ this ->request ->input ('draw ' , 0 ));
287
278
}
288
279
}
You can’t perform that action at this time.
0 commit comments