Skip to content

Commit

Permalink
fixed phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Oct 9, 2016
1 parent dfd41a8 commit 56adb64
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Interop\Http\Middleware\DelegateInterface;
use Neomerx\Cors\Analyzer;
use Neomerx\Cors\Contracts\AnalysisResultInterface;
use Neomerx\Cors\Contracts\AnalyzerInterface;
use Neomerx\Cors\Contracts\Strategies\SettingsStrategyInterface;

class Cors implements MiddlewareInterface
Expand Down Expand Up @@ -65,12 +64,12 @@ public function process(RequestInterface $request, DelegateInterface $delegate)
/**
* Adds cors headers to the response.
*
* @param ResponseInterface $response
* @param AnalyzerInterface $cors
* @param ResponseInterface $response
* @param AnalysisResultInterface $cors
*
* @return ResponseInterface
*/
private static function withCorsHeaders(ResponseInterface $response, AnalyzerInterface $cors)
private static function withCorsHeaders(ResponseInterface $response, AnalysisResultInterface $cors)
{
foreach ($cors->getResponseHeaders() as $name => $value) {
$response = $response->withHeader($name, $value);
Expand Down

0 comments on commit 56adb64

Please sign in to comment.