Skip to content

Commit 5e9f063

Browse files
committed
Comment updates from PR feedback
1 parent 35139ae commit 5e9f063

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Assets/Assets.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ public static function asset( string $slug, string $file, string $version = null
109109
*
110110
* @param Asset $asset Register an asset.
111111
*
112-
* @return Asset|VendorAsset The registered object or false on error.
112+
* @return Asset|VendorAsset The registered object.
113113
* @since 1.0.0
114114
*
115115
*/
116116
public function add( Asset $asset ) {
117-
// Check if the slug is registered, and if so return the previously-registerd Asset.
117+
// Check if the slug is registered, and if so return the previously-registered Asset.
118118
$slug = $asset->get_slug();
119119

120120
if ( $this->exists( $slug ) ) {

src/Assets/VendorAsset.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static function add( string $slug, string $url, ?string $type = null, $ve
7474
*
7575
* @param string $version The asset version.
7676
*
77-
* @return $this
77+
* @return static
7878
*/
7979
public function set_version( string $version ): self {
8080
$this->version = $version;
@@ -138,8 +138,8 @@ public function get_min_url(): string {
138138
/**
139139
* Get the formatted version of the URL.
140140
*
141-
* This will replace the version placeholder in the URL with the actual version. If there
142-
* is no placeholder, it will append the version as a query string.
141+
* This will replace the version placeholder in the URL with the actual version.
142+
* If there is no placeholder, it will append the version as a query string.
143143
*
144144
* @return string
145145
*/
@@ -246,7 +246,7 @@ public function set_asset_file( string $path ) {
246246
* @param ?string $path The path to the minified file.
247247
* @param ?bool $prefix Whether to prefix files automatically by type (e.g. js/ for JS). Defaults to true.
248248
*
249-
* @return $this
249+
* @return static
250250
*/
251251
public function set_path( ?string $path = null, $prefix = null ) {
252252
return $this;
@@ -257,7 +257,7 @@ public function set_path( ?string $path = null, $prefix = null ) {
257257
*
258258
* @param ?string $path The path to the minified file.
259259
*
260-
* @return $this
260+
* @return static
261261
*/
262262
public function set_min_path( ?string $path = null ) {
263263
return $this;
@@ -268,7 +268,7 @@ public function set_min_path( ?string $path = null ) {
268268
*
269269
* @param boolean $_unused Whether to use an .asset.php file.
270270
*
271-
* @return self
271+
* @return static
272272
*/
273273
public function use_asset_file( bool $_unused = true ): self {
274274
return $this;

0 commit comments

Comments
 (0)