Skip to content

Commit

Permalink
Add some trailing commas
Browse files Browse the repository at this point in the history
Now they can be everywhere!
  • Loading branch information
chesio committed Jul 7, 2023
1 parent 5218136 commit fb62567
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions classes/BlueChip/Cache/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public function inspect(): ?array
$item['total_disk_size'],
$item['plain_size'],
$item['gzip_size'],
$item['htaccess_size']
$item['htaccess_size'],
);
}

Expand Down Expand Up @@ -577,7 +577,7 @@ private function getPath(string $url): string
$url_parts['host'],
trailingslashit($url_path),
// URL path ends with slash? Yes: treat as directory path. No: treat as file path.
\str_ends_with($url_path, '/') ? self::DIRECTORY_PATH_DIRNAME : self::FILE_PATH_DIRNAME
\str_ends_with($url_path, '/') ? self::DIRECTORY_PATH_DIRNAME : self::FILE_PATH_DIRNAME,
]);

$normalized_path = self::normalizePath($path);
Expand Down
12 changes: 10 additions & 2 deletions classes/BlueChip/Cache/ListTableItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,16 @@ class ListTableItem extends Item
protected int $total_size;


public function __construct(string $entry_id, string $url, string $request_variant, ?int $timestamp, int $total_disk_size, int $plain_file_size, int $gzip_file_size, int $htaccess_file_size)
{
public function __construct(
string $entry_id,
string $url,
string $request_variant,
?int $timestamp,
int $total_disk_size,
int $plain_file_size,
int $gzip_file_size,
int $htaccess_file_size,
) {
parent::__construct($url, $request_variant);

$this->entry_id = $entry_id;
Expand Down

0 comments on commit fb62567

Please sign in to comment.