Merge pull request #451 from yaman-jain/docfixes

PhpDoc
This commit is contained in:
Flavio Copes
2015-11-18 14:49:58 +01:00
4 changed files with 10 additions and 4 deletions

View File

@@ -64,8 +64,8 @@ abstract class Folder
/**
* Get relative path between target and base path. If path isn't relative, return full path.
*
* @param string $path
* @param string $base
* @param string $path
* @param mixed|string $base
* @return string
*/
public static function getRelativePath($path, $base = GRAV_ROOT)

View File

@@ -16,6 +16,8 @@ class Plugins extends AbstractPackageCollection
/**
* Local Plugins Constructor
* @param bool $refresh
* @param callable $callback Either a function or callback in array notation
*/
public function __construct($refresh = false, $callback = null)
{

View File

@@ -16,6 +16,8 @@ class Themes extends AbstractPackageCollection
/**
* Local Themes Constructor
* @param bool $refresh
* @param callable $callback Either a function or callback in array notation
*/
public function __construct($refresh = false, $callback = null)
{

View File

@@ -50,6 +50,7 @@ class Response
/**
* Sets the preferred method to use for making HTTP calls.
* @param string $method Default is `auto`
* @return Response
*/
public static function setMethod($method = 'auto')
{
@@ -64,8 +65,9 @@ class Response
/**
* Makes a request to the URL by using the preferred method
* @param string $uri URL to call
* @param array $options An array of parameters for both `curl` and `fopen`
* @param string $uri URL to call
* @param array $options An array of parameters for both `curl` and `fopen`
* @param callable $callback Either a function or callback in array notation
* @return string The response of the request
*/
public static function get($uri = '', $options = [], $callback = null)