Skip to content

Commit

Permalink
Merge pull request #179 from hydephp/analysis-ZlYAmP
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
caendesilva authored Apr 28, 2022
2 parents c72905f + 5140086 commit 1067f11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/Contracts/AssetServiceContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ public function version(): string;
*/
public function tailwindPath(): string|false;


/**
* Return the main Hyde stylesheet location/path.
*/
public function stylePath(): string;


/**
* Return the main Hyde script location/path.
*/
Expand All @@ -30,4 +28,4 @@ public function scriptPath(): string;
* Construct a URI path for the CDN using the static dist version.
*/
public function cdnPathConstructor(string $file): string;
}
}
5 changes: 3 additions & 2 deletions src/Services/AssetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class AssetService implements AssetServiceContract
{
/**
* The HydeFront version to load.
*
* @property string $version
*/
public string $version = 'v1.3.1';
Expand Down Expand Up @@ -36,6 +37,6 @@ public function scriptPath(): string

public function cdnPathConstructor(string $file): string
{
return 'https://cdn.jsdelivr.net/gh/hydephp/hydefront@' . $this->version() . '/dist/' . $file;
return 'https://cdn.jsdelivr.net/gh/hydephp/hydefront@'.$this->version().'/dist/'.$file;
}
}
}

0 comments on commit 1067f11

Please sign in to comment.