Skip to content

Commit

Permalink
Change PHP keywords to comply with PSR2
Browse files Browse the repository at this point in the history
Signed-off-by: CodeLingoBot <[email protected]>
  • Loading branch information
CodeLingoBot committed Apr 5, 2019
1 parent dd868f5 commit 085b647
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ function id($val)
return $val;
}

function before(\Closure $function = NULL)
function before(\Closure $function = null)
{
static $val;
if (!func_num_args()) {
return ($val ? $val() : NULL);
return ($val ? $val() : null);
}
$val = $function;
}
Expand All @@ -50,11 +50,11 @@ function mock()
return call_user_func_array('Mockery::mock', func_get_args());
}

function run($path, $name = NULL)
function run($path, $name = null)
{
$name = $name
? $name
: (isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : NULL);
: (isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : null);

$code = file_get_contents($path);
$tokens = token_get_all($code);
Expand Down

0 comments on commit 085b647

Please sign in to comment.