@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * @return string |
37 | 37 | */ |
38 | - public static function random () { |
|
38 | + public static function random() { |
|
39 | 39 | try { |
40 | 40 | $colors = (new ReflectionClass(self::class))->getConstants(); |
41 | 41 | return $colors[array_rand($colors)]; |
@@ -37,23 +37,23 @@ discard block |
||
37 | 37 | * @param CustomField $customField |
38 | 38 | * @param array $data |
39 | 39 | */ |
40 | - public function __construct (CustomField $customField, array $data = []) { |
|
40 | + public function __construct(CustomField $customField, array $data = []) { |
|
41 | 41 | parent::__construct($customField, $data); |
42 | 42 | $this->customField = $customField; |
43 | 43 | } |
44 | 44 | |
45 | - final public function __toString (): string { |
|
45 | + final public function __toString(): string { |
|
46 | 46 | return "enum_options/{$this->getGid()}"; |
47 | 47 | } |
48 | 48 | |
49 | - final protected function _getDir (): string { |
|
49 | + final protected function _getDir(): string { |
|
50 | 50 | return "{$this->customField}/enum_options"; |
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | 54 | * @return CustomField |
55 | 55 | */ |
56 | - public function getCustomField () { |
|
56 | + public function getCustomField() { |
|
57 | 57 | return $this->customField; |
58 | 58 | } |
59 | 59 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * @param EnumOption $option |
62 | 62 | * @return $this |
63 | 63 | */ |
64 | - public function insertAfter (EnumOption $option) { |
|
64 | + public function insertAfter(EnumOption $option) { |
|
65 | 65 | assert($option->hasGid()); |
66 | 66 | if ($this->hasGid()) { |
67 | 67 | $this->api->post("{$this->_getDir()}/insert", [ |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * @param EnumOption $option |
81 | 81 | * @return $this |
82 | 82 | */ |
83 | - public function insertBefore (EnumOption $option) { |
|
83 | + public function insertBefore(EnumOption $option) { |
|
84 | 84 | assert($option->hasGid()); |
85 | 85 | if ($this->hasGid()) { |
86 | 86 | $this->api->post("{$this->_getDir()}/insert", [ |
@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | } |
31 | 31 | use DeleteTrait; |
32 | 32 | |
33 | - final public function __toString (): string { |
|
33 | + final public function __toString(): string { |
|
34 | 34 | return "webhooks/{$this->getGid()}"; |
35 | 35 | } |
36 | 36 | |
37 | - final protected function _getDir (): string { |
|
37 | + final protected function _getDir(): string { |
|
38 | 38 | return 'webhooks'; |
39 | 39 | } |
40 | 40 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @param string $target |
44 | 44 | * @return $this |
45 | 45 | */ |
46 | - public function create ($resource, string $target) { |
|
46 | + public function create($resource, string $target) { |
|
47 | 47 | $this->_set('resource', $resource); |
48 | 48 | $this->_set('target', $target); |
49 | 49 | return $this->_create(); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * @param Workspace $workspace |
18 | 18 | * @return $this |
19 | 19 | */ |
20 | - public function setWorkspace (Workspace $workspace) { |
|
20 | + public function setWorkspace(Workspace $workspace) { |
|
21 | 21 | assert(!$this->hasGid()); |
22 | 22 | return $this->_set('workspace', $workspace); |
23 | 23 | } |
@@ -12,5 +12,5 @@ |
||
12 | 12 | * @param string $path |
13 | 13 | * @param null|array $payload |
14 | 14 | */ |
15 | - public function log (string $info, string $path, ?array $payload): void; |
|
15 | + public function log(string $info, string $path, ?array $payload): void; |
|
16 | 16 | } |
17 | 17 | \ No newline at end of file |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | protected $curlInfo; |
22 | 22 | |
23 | - public function __construct (int $code, string $message, array $curlInfo) { |
|
23 | + public function __construct(int $code, string $message, array $curlInfo) { |
|
24 | 24 | parent::__construct($message, $code); |
25 | 25 | $this->curlInfo = $curlInfo; |
26 | 26 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | /** |
29 | 29 | * @return array |
30 | 30 | */ |
31 | - public function getCurlInfo (): array { |
|
31 | + public function getCurlInfo(): array { |
|
32 | 32 | return $this->curlInfo; |
33 | 33 | } |
34 | 34 | } |
35 | 35 | \ No newline at end of file |
@@ -13,7 +13,7 @@ |
||
13 | 13 | /** |
14 | 14 | * `DELETE` |
15 | 15 | */ |
16 | - public function delete (): void { |
|
16 | + public function delete(): void { |
|
17 | 17 | /** @var Api $api */ |
18 | 18 | $api = $this->api; |
19 | 19 | $api->delete($this); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * |
16 | 16 | * @return $this |
17 | 17 | */ |
18 | - public function update () { |
|
18 | + public function update() { |
|
19 | 19 | if ($this->isDiff()) { |
20 | 20 | /** @var Api $api */ |
21 | 21 | $api = $this->api; |
@@ -49,21 +49,21 @@ |
||
49 | 49 | /** |
50 | 50 | * @return Api |
51 | 51 | */ |
52 | - final public static function getApi () { |
|
52 | + final public static function getApi() { |
|
53 | 53 | return static::getFacadeRoot(); |
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
57 | 57 | * @return string |
58 | 58 | */ |
59 | - public static function getFacadeAccessor () { |
|
59 | + public static function getFacadeAccessor() { |
|
60 | 60 | return AsanaServiceProvider::NAME; |
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | 64 | * @return Api |
65 | 65 | */ |
66 | - public static function getFacadeRoot () { |
|
66 | + public static function getFacadeRoot() { |
|
67 | 67 | return parent::getFacadeRoot(); |
68 | 68 | } |
69 | 69 | } |
70 | 70 | \ No newline at end of file |