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 ( 87d9d9...44a884 )
by
unknown
57:42 queued 42:42
created

Permissions   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A teams() 0 4 1
A repositories() 0 4 1
1
<?php
2
3
namespace Bitbucket\API\User;
4
5
use Bitbucket\API\Api;
6
use Psr\Http\Message\ResponseInterface;
7
8
class Permissions extends Api
9
{
10
    /**
11
     * Get the list of the user's team permissions
12
     *
13
     * @return ResponseInterface
14
     */
15
    public function teams()
16
    {
17
        return $this->getClient()->setApiVersion('2.0')->get('/user/permissions/teams');
18
    }
19
20
    /**
21
     * Get the list of the user's repository permissions
22
     *
23
     * @return ResponseInterface
24
     */
25
    public function repositories()
26
    {
27
        return $this->getClient()->setApiVersion('2.0')->get('/user/permissions/repositories');
28
    }
29
}
30