@@ -367,6 +367,10 @@ |
||
| 367 | 367 | return $file; |
| 368 | 368 | } |
| 369 | 369 | |
| 370 | + /** |
|
| 371 | + * @param string $class |
|
| 372 | + * @param string $ext |
|
| 373 | + */ |
|
| 370 | 374 | private function findFileWithExtension($class, $ext) |
| 371 | 375 | { |
| 372 | 376 | // PSR-4 lookup |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | * Set an option for the GitHub instance. |
| 111 | 111 | * |
| 112 | 112 | * @param string $key The name of the option to set. |
| 113 | - * @param mixed $value The option value to set. |
|
| 113 | + * @param string $value The option value to set. |
|
| 114 | 114 | * |
| 115 | 115 | * @return GitHub This object for method chaining. |
| 116 | 116 | * |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | namespace Joomla\Github\Package\Activity; |
| 10 | 10 | |
| 11 | 11 | use Joomla\Github\AbstractPackage; |
| 12 | -use Joomla\Uri\Uri; |
|
| 13 | 12 | |
| 14 | 13 | /** |
| 15 | 14 | * GitHub API Activity Events class for the Joomla Framework. |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * @throws \UnexpectedValueException |
| 72 | 72 | * @since 1.0 |
| 73 | 73 | * |
| 74 | - * @return boolean |
|
| 74 | + * @return boolean|null |
|
| 75 | 75 | */ |
| 76 | 76 | public function check($org, $user) |
| 77 | 77 | { |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | * @throws \UnexpectedValueException |
| 165 | 165 | * @since 1.0 |
| 166 | 166 | * |
| 167 | - * @return boolean |
|
| 167 | + * @return boolean|null |
|
| 168 | 168 | */ |
| 169 | 169 | public function checkPublic($org, $user) |
| 170 | 170 | { |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | * @param integer $id The team id. |
| 201 | 201 | * @param string $user The name of the user. |
| 202 | 202 | * |
| 203 | - * @return boolean |
|
| 203 | + * @return boolean|null |
|
| 204 | 204 | * |
| 205 | 205 | * @since 1.0 |
| 206 | 206 | * @throws \UnexpectedValueException |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | * @param string $owner The owner of the GitHub repository. |
| 402 | 402 | * @param string $repo The name of the GitHub repository. |
| 403 | 403 | * |
| 404 | - * @return boolean |
|
| 404 | + * @return boolean|null |
|
| 405 | 405 | * |
| 406 | 406 | * @since 1.0 |
| 407 | 407 | * @throws \UnexpectedValueException |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * @throws \UnexpectedValueException |
| 54 | 54 | * @since 1.0 |
| 55 | 55 | * |
| 56 | - * @return boolean |
|
| 56 | + * @return boolean|null |
|
| 57 | 57 | */ |
| 58 | 58 | public function get($owner, $repo, $user) |
| 59 | 59 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * |
| 67 | 67 | * @param string $user The name of the user. |
| 68 | 68 | * |
| 69 | - * @return boolean |
|
| 69 | + * @return boolean|null |
|
| 70 | 70 | * |
| 71 | 71 | * @since 1.0 |
| 72 | 72 | * @throws \UnexpectedValueException |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | * @param string $user The name of the user. |
| 103 | 103 | * @param string $target The name of the user to check is being followed. |
| 104 | 104 | * |
| 105 | - * @return boolean |
|
| 105 | + * @return boolean|null |
|
| 106 | 106 | * |
| 107 | 107 | * @since 1.4.0 |
| 108 | 108 | * @throws \UnexpectedValueException |
@@ -33,6 +33,9 @@ |
||
| 33 | 33 | ), |
| 34 | 34 | ); |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @return callable |
|
| 38 | + */ |
|
| 36 | 39 | public static function getInitializer(ClassLoader $loader) |
| 37 | 40 | { |
| 38 | 41 | return \Closure::bind(function () use ($loader) { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * Set an option for the HTTP client. |
| 88 | 88 | * |
| 89 | 89 | * @param string $key The name of the option to set. |
| 90 | - * @param mixed $value The option value to set. |
|
| 90 | + * @param string $value The option value to set. |
|
| 91 | 91 | * |
| 92 | 92 | * @return Http This object for method chaining. |
| 93 | 93 | * |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | /** |
| 136 | 136 | * Method to send the GET command to the server. |
| 137 | 137 | * |
| 138 | - * @param string|UriInterface $url The URI to the resource to request. |
|
| 138 | + * @param string $url The URI to the resource to request. |
|
| 139 | 139 | * @param array $headers An array of request headers to send with the request. |
| 140 | 140 | * @param integer $timeout Read timeout in seconds. |
| 141 | 141 | * |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | /** |
| 152 | 152 | * Method to send the POST command to the server. |
| 153 | 153 | * |
| 154 | - * @param string|UriInterface $url The URI to the resource to request. |
|
| 154 | + * @param string $url The URI to the resource to request. |
|
| 155 | 155 | * @param mixed $data Either an associative array or a string to be sent with the request. |
| 156 | 156 | * @param array $headers An array of request headers to send with the request. |
| 157 | 157 | * @param integer $timeout Read timeout in seconds. |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | /** |
| 169 | 169 | * Method to send the PUT command to the server. |
| 170 | 170 | * |
| 171 | - * @param string|UriInterface $url The URI to the resource to request. |
|
| 171 | + * @param string $url The URI to the resource to request. |
|
| 172 | 172 | * @param mixed $data Either an associative array or a string to be sent with the request. |
| 173 | 173 | * @param array $headers An array of request headers to send with the request. |
| 174 | 174 | * @param integer $timeout Read timeout in seconds. |
@@ -185,10 +185,10 @@ discard block |
||
| 185 | 185 | /** |
| 186 | 186 | * Method to send the DELETE command to the server. |
| 187 | 187 | * |
| 188 | - * @param string|UriInterface $url The URI to the resource to request. |
|
| 188 | + * @param string $url The URI to the resource to request. |
|
| 189 | 189 | * @param array $headers An array of request headers to send with the request. |
| 190 | 190 | * @param integer $timeout Read timeout in seconds. |
| 191 | - * @param mixed $data Either an associative array or a string to be sent with the request. |
|
| 191 | + * @param string $data Either an associative array or a string to be sent with the request. |
|
| 192 | 192 | * |
| 193 | 193 | * @return Response |
| 194 | 194 | * |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | /** |
| 219 | 219 | * Method to send the PATCH command to the server. |
| 220 | 220 | * |
| 221 | - * @param string|UriInterface $url The URI to the resource to request. |
|
| 221 | + * @param string $url The URI to the resource to request. |
|
| 222 | 222 | * @param mixed $data Either an associative array or a string to be sent with the request. |
| 223 | 223 | * @param array $headers An array of request headers to send with the request. |
| 224 | 224 | * @param integer $timeout Read timeout in seconds. |