Completed
Pull Request — master (#51)
by Sergey
03:03
created

User   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
lcom 0
cbo 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A profile() 0 6 1
1
<?php
2
3
namespace seregazhuk\PinterestBot\Api\Providers;
4
5
use seregazhuk\PinterestBot\Helpers\UrlHelper;
6
7
class User extends Provider {
8
9
    protected $loginRequired = ['profile'];
10
11
    public function profile($userInfo)
12
    {
13
        return $this->callPostRequest(
14
            $userInfo, UrlHelper::RESOURCE_UPDATE_USER_SETTINGS
15
        );
16
    }
17
18
}
19