-
-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodeQuality][Up_TO_PHP_81] Handle crash indentation on combination L…
…evelSetList::UP_TO_PHP_81 with SetList::CODE_QUALITY - take 2 (#2763)
- Loading branch information
1 parent
1f6cea3
commit 03ed036
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
tests/Issues/IndentationCrash/Fixture/crash_indentation2.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Rector\Core\Tests\Issues\IndentationCrash\Fixture; | ||
|
||
$s = new Sessions(); | ||
|
||
$psychiatry = $s->getPtNextSession($patient_id, 3, Util::ROLE_PRESCRIBER); | ||
|
||
for ($i = 0; $i < sizeof($psychiatry); $i++) { | ||
$psychiatry[$i]["sufficient_cancellation_notice"] = $s->isSufficientNoticeToCancel($psychiatry[$i]) ? 1 : 0; | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Core\Tests\Issues\IndentationCrash\Fixture; | ||
|
||
$s = new Sessions(); | ||
|
||
$psychiatry = $s->getPtNextSession($patient_id, 3, Util::ROLE_PRESCRIBER); | ||
$psychiatryCount = count($psychiatry); | ||
|
||
for ($i = 0; $i < $psychiatryCount; $i++) { | ||
$psychiatry[$i]["sufficient_cancellation_notice"] = $s->isSufficientNoticeToCancel($psychiatry[$i]) ? 1 : 0; | ||
} | ||
|
||
?> |