@@ -333,14 +333,16 @@ public function api($name)
333333 * @param string|null $authMethod One of the AUTH_* class constants
334334 *
335335 * @throws InvalidArgumentException If no authentication method was given
336+ *
337+ * @return void
336338 */
337339 public function authenticate ($ tokenOrLogin , $ password = null , $ authMethod = null )
338340 {
339341 if (null === $ password && null === $ authMethod ) {
340342 throw new InvalidArgumentException ('You need to specify authentication method! ' );
341343 }
342344
343- if (null === $ authMethod && in_array ($ password , [self ::AUTH_URL_TOKEN , self ::AUTH_URL_CLIENT_ID , self ::AUTH_HTTP_PASSWORD , self ::AUTH_HTTP_TOKEN , self ::AUTH_JWT ], true )) {
345+ if (null === $ authMethod && in_array ($ password , [self ::AUTH_URL_TOKEN , self ::AUTH_URL_CLIENT_ID , self ::AUTH_HTTP_PASSWORD , self ::AUTH_HTTP_TOKEN , self ::AUTH_ACCESS_TOKEN , self :: AUTH_JWT ], true )) {
344346 $ authMethod = $ password ;
345347 $ password = null ;
346348 }
@@ -357,6 +359,8 @@ public function authenticate($tokenOrLogin, $password = null, $authMethod = null
357359 * Sets the URL of your GitHub Enterprise instance.
358360 *
359361 * @param string $enterpriseUrl URL of the API in the form of http(s)://hostname
362+ *
363+ * @return void
360364 */
361365 private function setEnterpriseUrl ($ enterpriseUrl )
362366 {
@@ -381,6 +385,8 @@ public function getApiVersion()
381385 *
382386 * @param CacheItemPoolInterface $cachePool
383387 * @param array $config
388+ *
389+ * @return void
384390 */
385391 public function addCache (CacheItemPoolInterface $ cachePool , array $ config = [])
386392 {
@@ -389,6 +395,8 @@ public function addCache(CacheItemPoolInterface $cachePool, array $config = [])
389395
390396 /**
391397 * Remove the cache plugin.
398+ *
399+ * @return void
392400 */
393401 public function removeCache ()
394402 {
@@ -397,8 +405,7 @@ public function removeCache()
397405
398406 /**
399407 * @param string $name
400- *
401- * @throws BadMethodCallException
408+ * @param array $args
402409 *
403410 * @return ApiInterface
404411 */
0 commit comments