Skip to content

Commit

Permalink
using existing is_cli() function in HTTP\IncomingRequest::isCLI()
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Nov 9, 2018
1 parent 53f17e8 commit e1b4192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/HTTP/IncomingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function setLocale(string $locale)
*/
public function isCLI(): bool
{
return (PHP_SAPI === 'cli' || defined('STDIN'));
return is_cli();
}

//--------------------------------------------------------------------
Expand Down

0 comments on commit e1b4192

Please sign in to comment.