Issues (59)

src/Api/Traits/HasProfileSettings.php (3 issues)

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