@@ -15,8 +15,8 @@ |
||
15 | 15 | // $this->settings = require dirname(__DIR__, 2) . '/viva-config.php'; |
16 | 16 | |
17 | 17 | $paths = [ |
18 | - dirname(__DIR__, 2) . '/viva-config.php', |
|
19 | - dirname(__DIR__, 5) . '/viva-config.php']; |
|
18 | + dirname(__DIR__, 2).'/viva-config.php', |
|
19 | + dirname(__DIR__, 5).'/viva-config.php']; |
|
20 | 20 | |
21 | 21 | $this->settings = $this->loadConfigFile($paths); |
22 | 22 |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | /** |
62 | 62 | * Return value as string |
63 | 63 | * Enums\PaymentMethods::fromName('Dias'); |
64 | - */ |
|
64 | + */ |
|
65 | 65 | |
66 | 66 | |
67 | 67 | public static function fromName(string $name): int |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * Return value as string |
81 | 81 | * Enums\PaymentMethods::fromValue(15); |
82 | - */ |
|
82 | + */ |
|
83 | 83 | |
84 | 84 | public static function fromValue(int $value): string |
85 | 85 | { |
@@ -67,11 +67,11 @@ discard block |
||
67 | 67 | public static function fromName(string $name): int |
68 | 68 | { |
69 | 69 | foreach (self::cases() as $status) { |
70 | - if( $name === $status->name ){ |
|
70 | + if ($name === $status->name) { |
|
71 | 71 | return $status->value; |
72 | 72 | } |
73 | 73 | } |
74 | - throw new \ValueError("$name is not a valid backing value for enum " . self::class ); |
|
74 | + throw new \ValueError("$name is not a valid backing value for enum ".self::class); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | |
@@ -84,11 +84,11 @@ discard block |
||
84 | 84 | public static function fromValue(int $value): string |
85 | 85 | { |
86 | 86 | foreach (self::cases() as $status) { |
87 | - if( $value === $status->value ){ |
|
87 | + if ($value === $status->value) { |
|
88 | 88 | return $status->name; |
89 | 89 | } |
90 | 90 | } |
91 | - throw new \ValueError("$value is not a valid backing value for enum " . self::class ); |
|
91 | + throw new \ValueError("$value is not a valid backing value for enum ".self::class); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | |
6 | 6 | trait getConfigSettings |
7 | 7 | { |
8 | - public function getConfigSettings() { |
|
8 | + public function getConfigSettings() { |
|
9 | 9 | if (!property_exists($this, 'accessToken')) { |
10 | 10 | throw new \Exception('Property $accessToken does not exist'); |
11 | 11 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | } |
18 | 18 | |
19 | 19 | public function process(){ |
20 | - echo 'Price = '.$this->amount; |
|
20 | + echo 'Price = '.$this->amount; |
|
21 | 21 | |
22 | 22 | } |
23 | 23 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | } |
18 | 18 | |
19 | - public function process(){ |
|
19 | + public function process() { |
|
20 | 20 | echo 'Price = '.$this->amount; |
21 | 21 | |
22 | 22 | } |