tuupola / cors-middleware
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
CHANGELOG.md has changed.

@@ -47,19 +47,6 @@
Loading
47 47
use Tuupola\Http\Factory\ResponseFactory;
48 48
use Tuupola\Middleware\Settings as CorsSettings;
49 49
50 -
/**
51 -
 * @template TSanitizedOptions of array{
52 -
 *  origin?: array<string>,
53 -
 *  methods?: array<string>|callable|null,
54 -
 *  "headers.allow"?: array<string>,
55 -
 *  "headers.expose"?: array<string>,
56 -
 *  credentials?: bool,
57 -
 *  "origin.server"?: null|string|array<string>,
58 -
 *  cache?: int,
59 -
 *  error?: null|callable,
60 -
 *  logger?: null|LoggerInterface,
61 -
 * }
62 -
 */
63 50
final class CorsMiddleware implements MiddlewareInterface
64 51
{
65 52
    use DoublePassTrait;
@@ -118,7 +105,6 @@
Loading
118 105
            $options["origin"] = (array) $options["origin"];
119 106
        }
120 107
121 -
        /** @var TSanitizedOptions $options */
122 108
        /* Store passed in options overwriting any defaults. */
123 109
        $this->hydrate($options);
124 110
    }
@@ -188,8 +174,6 @@
Loading
188 174
189 175
    /**
190 176
     * Hydrate all options from the given array.
191 -
     *
192 -
     * @param TSanitizedOptions $data
193 177
     */
194 178
    private function hydrate(array $data = []): void
195 179
    {
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