Skip to content

Commit

Permalink
[CLEANUP] Reformat the code a bit (#816)
Browse files Browse the repository at this point in the history
With the latest version of PHP_CodeSniffer, we can have boolean operators
in the middle of a line as well. This allows us more liberties with code
formatting in order to make to the code more readable.
  • Loading branch information
oliverklee authored and JakeQZ committed Oct 27, 2019
1 parent 76acbbd commit 7d7513a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/Unit/CssInlinerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1621,17 +1621,13 @@ public function orderedRulesAndSurroundingCssDataProvider(): array
// every combination would be a ridiculous c.1000 datasets - choose a select few
// test all possible CSS before once
if (
($cssBetween === ''
&& $cssAfter === '')
($cssBetween === '' && $cssAfter === '')
// test all possible CSS between once
|| ($cssBefore === ''
&& $cssAfter === '')
|| ($cssBefore === '' && $cssAfter === '')
// test all possible CSS after once
|| ($cssBefore === ''
&& $cssBetween === '')
|| ($cssBefore === '' && $cssBetween === '')
// test with each possible CSS in all three positions
|| ($cssBefore === $cssBetween
&& $cssBetween === $cssAfter)
|| ($cssBefore === $cssBetween && $cssBetween === $cssAfter)
) {
$description = ' with ' . $descriptionBefore . ' before, '
. $descriptionBetween . ' between, '
Expand Down

0 comments on commit 7d7513a

Please sign in to comment.