Test Setup Failed
Branch master (3b2821)
by Dmitrii
09:55
created
src/connector/TestRailAPIClient.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -116,16 +116,14 @@  discard block
 block discarded – undo
116 116
             if (is_array($data))
117 117
             {
118 118
                 $data_str = json_encode($data);
119
-            }
120
-            else
119
+            } else
121 120
             {
122 121
                 $data_str = '';
123 122
             }
124 123
 
125 124
             curl_setopt($ch, CURLOPT_POST, true);
126 125
             curl_setopt($ch, CURLOPT_POSTFIELDS, $data_str);
127
-        }
128
-        else
126
+        } else
129 127
         {
130 128
             curl_setopt($ch, CURLOPT_POST, false);
131 129
         }
@@ -149,8 +147,7 @@  discard block
 block discarded – undo
149 147
         if ($response)
150 148
         {
151 149
             $result = json_decode($response, true); // As array
152
-        }
153
-        else
150
+        } else
154 151
         {
155 152
             $result = array();
156 153
         }
Please login to merge, or discard this patch.
src/api/Fields.php 1 patch
Braces   +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.