Passed
Push — master ( 6351b0...2a835b )
by Stavros
12:23
created
src/Config/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Enums/PaymentMethods.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Traits/getConfigSettings.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Transaction.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
     }
18 18
 
19
-    public function process(){
19
+    public function process() {
20 20
            echo 'Price =  '.$this->amount; 
21 21
 
22 22
     }
Please login to merge, or discard this patch.