Skip to content

Commit

Permalink
Fix CodingStandard
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Mar 6, 2021
1 parent 4ad73cb commit f27a379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private function findGlobalData(string $route): array
*/
private function findDataBySelectors(array $selectors): array
{
$selectors = array_map(fn (string $item): string => trim($item, ':'), $selectors);
$selectors = array_map(fn(string $item): string => trim($item, ':'), $selectors);
$return = [];
foreach (array_unique($selectors) as $selector) {
$return[] = $this->data[$selector] ?? [];
Expand Down
2 changes: 1 addition & 1 deletion src/Minifier/DefaultCssMinifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function minify(string $haystack): string
{
$return = (string) preg_replace_callback(
'#[ \t\r\n]+|<(/)?(textarea|pre)(?=\W)#i',
fn (array $match): string => empty($match[2]) ? ' ' : $match[0],
fn(array $match): string => empty($match[2]) ? ' ' : $match[0],
$haystack,
);
$return = (string) preg_replace('/(\w|;)\s+({|})\s+(\w|\.|#)/', '$1$2$3', $return);
Expand Down

0 comments on commit f27a379

Please sign in to comment.