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.

Completed
Push — develop ( 251f08...8e732e )
by Alexandru
03:56 queued 13s
created

Refs::all()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 1
1
<?php
2
/**
3
 * This file is part of the bitbucket-api package.
4
 *
5
 * (c) Alexandru Guzinschi <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Bitbucket\API\Repositories;
11
12
use Bitbucket\API;
13
use Buzz\Message\MessageInterface;
14
15
/**
16
 * @author  Kevin Howe    <[email protected]>
17
 */
18
class Refs extends API\Api
19
{
20
    /**
21
     * Get a list of refs
22
     *
23
     * @access public
24
     * @param  string           $account The team or individual account owning the repository.
25
     * @param  string           $repo    The repository identifier.
26
     * @param  string|array     $params  GET parameters
27
     * @return MessageInterface
28
     *
29
     * @throws \InvalidArgumentException
30
     */
31 2
    public function all($account, $repo, array $params = array())
32
    {
33 2
        return $this->getClient()->setApiVersion('2.0')->get(
34 2
            sprintf('repositories/%s/%s/refs', $account, $repo),
35 2
            $params
36
        );
37
    }
38
}
39