HasProfileSettings::getAccountTypes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace seregazhuk\PinterestBot\Api\Traits;
4
5
use seregazhuk\PinterestBot\Helpers\UrlBuilder;
6
7
trait HasProfileSettings
8
{
9
    use HandlesRequest;
10
11
    /**
12
     * Get list of available locales
13
     * @return array
14
     */
15
    public function getLocales()
16
    {
17
        return $this->get(UrlBuilder::RESOURCE_AVAILABLE_LOCALES);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->get(serega...URCE_AVAILABLE_LOCALES) also could return the type boolean which is incompatible with the documented return type array.
Loading history...
18
    }
19
20
    /**
21
     * Get list of available countries
22
     * @return array
23
     */
24
    public function getCountries()
25
    {
26
        return $this->get(UrlBuilder::RESOURCE_AVAILABLE_COUNTRIES);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->get(serega...CE_AVAILABLE_COUNTRIES) also could return the type boolean which is incompatible with the documented return type array.
Loading history...
27
    }
28
29
    /**
30
     * Get list of available account types
31
     * @return array
32
     */
33
    public function getAccountTypes()
34
    {
35
        return $this->get(UrlBuilder::RESOURCE_AVAILABLE_ACCOUNT_TYPES);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->get(serega...VAILABLE_ACCOUNT_TYPES) also could return the type boolean which is incompatible with the documented return type array.
Loading history...
36
    }
37
}
38