tuupola / cors-middleware
Showing 2 of 5 files from the diff.

@@ -46,7 +46,7 @@
Loading
46 46
    {
47 47
        $isAllowed = parent::isRequestOriginAllowed($requestOrigin);
48 48
49 -
        if (!$isAllowed) {
49 +
        if (! $isAllowed) {
50 50
            $isAllowed = $this->wildcardOriginAllowed($requestOrigin);
51 51
        }
52 52

@@ -155,8 +155,8 @@
Loading
155 155
                $cors_headers = $cors->getResponseHeaders();
156 156
                foreach ($cors_headers as $header => $value) {
157 157
                    /* Diactoros errors on integer values. */
158 -
                    if (!is_array($value)) {
159 -
                        $value = (string)$value;
158 +
                    if (! is_array($value)) {
159 +
                        $value = (string) $value;
160 160
                    }
161 161
162 162
                    $response = $response->withHeader($header, $value);
@@ -173,8 +173,8 @@
Loading
173 173
174 174
                foreach ($cors_headers as $header => $value) {
175 175
                    /* Diactoros errors on integer values. */
176 -
                    if (!is_array($value)) {
177 -
                        $value = (string)$value;
176 +
                    if (! is_array($value)) {
177 +
                        $value = (string) $value;
178 178
                    }
179 179
180 180
                    $response = $response->withHeader($header, $value);
@@ -276,7 +276,7 @@
Loading
276 276
                $url = $url_chunks;
277 277
            }
278 278
279 -
            if (!array_key_exists("port", $url)) {
279 +
            if (! array_key_exists("port", $url)) {
280 280
                $url["port"] = $url["scheme"] === "https" ? self::PORT_HTTPS : self::PORT_HTTP;
281 281
            }
282 282
        }
Files Complexity Coverage
src 49 99.24%
Project Totals (2 files) 49 99.24%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading