Skip to content
Permalink
Browse files

Fix style things

  • Loading branch information
muglug committed Dec 30, 2019
1 parent 366e2d3 commit 44441042f04937337b91093d8a3ecb70018e3cb3
@@ -1398,9 +1398,14 @@ function (PhpParser\Node\Arg $arg) {
$statements_analyzer->node_data->setIfTrueAssertions(
$stmt,
array_map(
function (Assertion $assertion)
use ($class_template_params, $lhs_var_id) : Assertion {
return $assertion->getUntemplatedCopy($class_template_params ?: [], $lhs_var_id);
function (Assertion $assertion) use (
$class_template_params,
$lhs_var_id
) : Assertion {
return $assertion->getUntemplatedCopy(
$class_template_params ?: [],
$lhs_var_id
);
},
$method_storage->if_true_assertions
)
@@ -1411,9 +1416,14 @@ function (Assertion $assertion)
$statements_analyzer->node_data->setIfFalseAssertions(
$stmt,
array_map(
function (Assertion $assertion)
use ($class_template_params, $lhs_var_id) : Assertion {
return $assertion->getUntemplatedCopy($class_template_params ?: [], $lhs_var_id);
function (Assertion $assertion) use (
$class_template_params,
$lhs_var_id
) : Assertion {
return $assertion->getUntemplatedCopy(
$class_template_params ?: [],
$lhs_var_id
);
},
$method_storage->if_false_assertions
)
@@ -33,8 +33,8 @@ public function __construct($var_id, array $rule)
public function getUntemplatedCopy(array $template_type_map, ?string $this_var_id) : self
{
return new Assertion(
is_string($this->var_id) && $this_var_id
? str_replace('$this->', $this_var_id . '->', $this->var_id)
\is_string($this->var_id) && $this_var_id
? \str_replace('$this->', $this_var_id . '->', $this->var_id)
: $this->var_id,
array_map(
/**

0 comments on commit 4444104

Please sign in to comment.
You can’t perform that action at this time.