Skip to content

Commit

Permalink
StaticAssets: code reformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Mar 11, 2024
1 parent 2f32d99 commit b5b7f7d
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions classes/StaticAssets.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function resolveDependencies(array $packages): bool|array
}

// make array contains unique values and fix indexing
return array_values(array_unique($ret));
return array_values(array_unique($ret));
}

/**
Expand Down Expand Up @@ -368,12 +368,12 @@ public function getUrlsForPackages(array $packages, $type)
return count($ret) > 0 ? $ret : false;
}

/**
* Serve given request for a static asset / package
*
* This is an entry point
* @throws Exception
*/
/**
* Serve given request for a static asset / package
*
* This is an entry point
* @throws Exception
*/
public function serve(Request $request): bool
{
$ext = $request->getExtension();
Expand Down Expand Up @@ -423,12 +423,12 @@ public function serve(Request $request): bool
return true;
}

/**
* Serve single static asset
*
* Performs additional checks and returns minified version of an asset
* @throws Exception
*/
/**
* Serve single static asset
*
* Performs additional checks and returns minified version of an asset
* @throws Exception
*/
private function serveSingleAsset($requestPath, $ext): bool|string
{
// get local path to the asset
Expand Down Expand Up @@ -464,10 +464,10 @@ private function serveSingleAsset($requestPath, $ext): bool|string
return $content;
}

/**
* Serve package(s) of static assets
* @throws Exception
*/
/**
* Serve package(s) of static assets
* @throws Exception
*/
private function servePackage($package, $ext): bool|string
{
if (!in_array($ext, [self::PACKAGE_CSS, self::PACKAGE_JS])) {
Expand Down

0 comments on commit b5b7f7d

Please sign in to comment.