Skip to content

Commit

Permalink
doc(src) update all doc blocks, format
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Sep 3, 2024
1 parent 6559716 commit 9531f8c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/Uplink/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ class Register {
* @since 1.0.0
* @since 2.0.0 Added oAuth parameter.
*
* @param string $slug Resource slug.
* @param string $name Resource name.
* @param string $version Resource version.
* @param string $path Resource path to bootstrap file.
* @param string $class Resource class.
* @param string $license_class Resource license class.
* @param bool $is_oauth Is the plugin using OAuth?
* @param string $slug Resource slug.
* @param string $name Resource name.
* @param string $version Resource version.
* @param string $path Resource path to bootstrap file.
* @param string $class Resource class.
* @param string $license_class Resource license class.
* @param bool|int $oauth Whether the plugin uses OAuth (bool) or a set of OAuth options (int).
*
* @return Resources\Resource
*/
public static function plugin( $slug, $name, $version, $path, $class, $license_class = null, $is_oauth = false ) {
return Resources\Plugin::register( $slug, $name, $version, $path, $class, $license_class, $is_oauth );
public static function plugin( $slug, $name, $version, $path, $class, $license_class = null, $oauth = false ) {
return Resources\Plugin::register( $slug, $name, $version, $path, $class, $license_class, $oauth );
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Uplink/Resources/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ abstract public static function register( $name, $slug, $path, $class, $version,
* @param string $path Resource path to bootstrap file.
* @param string $class Resource class.
* @param string|null $license_class Class that holds the embedded license key.
* @param bool|int $oauth Either a boolean or an integer representing whether the resource uses OAuth,
* and if so, the OAuth options.
* @param bool|int $oauth Either a boolean or an integer representing whether the resource uses OAuth,
* and if so, the OAuth options.
*
* @return Resource
*/
Expand Down

0 comments on commit 9531f8c

Please sign in to comment.