Skip to content

Commit

Permalink
Merge pull request #1445 from samsonasik/use-existing-is-cli
Browse files Browse the repository at this point in the history
using existing is_cli() function in HTTP\IncomingRequest::isCLI()
  • Loading branch information
jim-parry committed Nov 11, 2018
2 parents eaa8487 + e1b4192 commit c434ee7
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 c434ee7

Please sign in to comment.