Notification Setup Error

We have detected an error in your notification set-up (Event-ID dab39dc24f564ec7bd4628d1305fd03c). Currently, we cannot inform you about inspection progress. Please check that the user 557058:bca11929-8c2d-43f2-8a82-c5416880d395 still has access to your repository or update the API account.

Repositories   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 28
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 10 2
1
<?php
2
3
/**
4
 * This file is part of the bitbucket-api package.
5
 *
6
 * (c) Alexandru G. <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bitbucket\API;
13
14
use Psr\Http\Message\ResponseInterface;
15
16
/**
17
 * @author  Alexandru G.    <[email protected]>
18
 */
19
class Repositories extends Api
20
{
21
    /**
22
     * Get a list of repositories.
23
     *
24
     * - If the caller is properly authenticated and authorized, will also return
25
     *      the private repositories.
26
     * - If `$owner` is omitted, will return a list of all public repositories on Bitbucket.
27
     *
28
     * @access public
29
     * @param  string           $owner  The account of the repo owner.
30
     * @param  array            $params Additional parameters
31
     * @return ResponseInterface
32
     *
33
     * @api 2.0
34
     * @since Method available since 0.2.0
35
     */
36 14
    public function all($owner = null, array $params = array())
37
    {
38 14
        $endpoint = '/repositories';
39
40 14
        if (!is_null($owner)) {
41 14
            $endpoint = sprintf('/repositories/%s', $owner);
42
        }
43
44 14
        return $this->getClient()->setApiVersion('2.0')->get($endpoint, $params);
45
    }
46
}
47