Test Failed
Branch master (2c2319)
by Dmitrii
02:16
created
src/connector/TestRailAPIClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,14 +116,14 @@  discard block
 block discarded – undo
116 116
             if (is_array($data))
117 117
             {
118 118
                 $data_str = json_encode($data);
119
-            } else
119
+            }else
120 120
             {
121 121
                 $data_str = '';
122 122
             }
123 123
 
124 124
             curl_setopt($ch, CURLOPT_POST, true);
125 125
             curl_setopt($ch, CURLOPT_POSTFIELDS, $data_str);
126
-        } else
126
+        }else
127 127
         {
128 128
             curl_setopt($ch, CURLOPT_POST, false);
129 129
         }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         if ($response)
148 148
         {
149 149
             $result = json_decode($response, true); // As array
150
-        } else
150
+        }else
151 151
         {
152 152
             $result = array();
153 153
         }
Please login to merge, or discard this patch.
src/api/Fields.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         foreach ($fields as $field) {
27 27
             if ($field['configs'][0]['context']['is_global'] === true) {
28 28
                 $resultFields[] = $field;
29
-            } else if (in_array($projectId, $field['configs'][0]['context']['project_ids'])) {
29
+            }else if (in_array($projectId, $field['configs'][0]['context']['project_ids'])) {
30 30
                 $resultFields[] = $field;
31 31
             }
32 32
         }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function findByName(string $name, int $projectId = null) {
37 37
         if ($projectId === null) {
38 38
             $fields = $this->all();
39
-        } else {
39
+        }else {
40 40
             $fields = $this->findByProject($projectId);
41 41
         }
42 42
 
Please login to merge, or discard this patch.