@@ -106,7 +106,9 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $filename = $file['@name']; |
| 108 | 108 | $name = basename($file['@name']); |
| 109 | - if (!isset($file['line'])) return; |
|
| 109 | + if (!isset($file['line'])) { |
|
| 110 | + return; |
|
| 111 | + } |
|
| 110 | 112 | foreach ($file['line'] as $line) { |
| 111 | 113 | if ($line['@count'] == 0 && $line['@type'] == 'stmt') { |
| 112 | 114 | $text = file_get_contents($filename); |
@@ -128,7 +130,9 @@ discard block |
||
| 128 | 130 | |
| 129 | 131 | private function isAssoc(array $arr) |
| 130 | 132 | { |
| 131 | - if (array() === $arr) return false; |
|
| 133 | + if (array() === $arr) { |
|
| 134 | + return false; |
|
| 135 | + } |
|
| 132 | 136 | return array_keys($arr) !== range(0, count($arr) - 1); |
| 133 | 137 | } |
| 134 | 138 | } |
@@ -136,7 +136,9 @@ discard block |
||
| 136 | 136 | 'body' => json_encode($payload ?: []) |
| 137 | 137 | ]; |
| 138 | 138 | |
| 139 | - if ($noauth) unset($args['auth']); |
|
| 139 | + if ($noauth) { |
|
| 140 | + unset($args['auth']); |
|
| 141 | + } |
|
| 140 | 142 | |
| 141 | 143 | // @codeCoverageIgnoreStart |
| 142 | 144 | try { |
@@ -171,7 +173,9 @@ discard block |
||
| 171 | 173 | */ |
| 172 | 174 | public function V2($url, $method, $payload = null, $headers = null) |
| 173 | 175 | { |
| 174 | - if (!$this->bearer) $this->login(); |
|
| 176 | + if (!$this->bearer) { |
|
| 177 | + $this->login(); |
|
| 178 | + } |
|
| 175 | 179 | |
| 176 | 180 | $client = new Client(); |
| 177 | 181 | $args = [ |