Skip to content

Commit

Permalink
Simplified some code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Bettles committed Jan 21, 2023
1 parent 956acb5 commit 9062070
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ No unreleased changes.

- Added `AbstractTestCase::getFixtureContents()`, which returns the contents of a fixture file.

### Changed

- Simplified some code.

### Fixed

- Got `AbstractTestCaseTest` working 🤦‍♂️
Expand Down
3 changes: 2 additions & 1 deletion src/CssMinifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ private function replace(
public function removeSuperfluousWhitespaceFilter(string $css): string
{
// Normalize newlines.
$css = str_replace(["\r\n", "\r", "\n"], "\n", $css);
/** @var string */
$css = preg_replace('~\R~', "\n", $css);

// Normalize horizontal whitespace.
$css = str_replace("\t", ' ', $css);
Expand Down

0 comments on commit 9062070

Please sign in to comment.