Skip to content

Commit

Permalink
Merge pull request #83 from l0gicgate/CodeQuality
Browse files Browse the repository at this point in the history
Code Quality
  • Loading branch information
l0gicgate committed May 5, 2019
2 parents 83ff8a0 + c27e94a commit 473a811
Show file tree
Hide file tree
Showing 23 changed files with 181 additions and 903 deletions.
File renamed without changes.
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"name": "Rob Allen",
"email": "[email protected]",
"homepage": "http://akrabat.com"
},
{
"name": "Pierre Berube",
"email": "[email protected]",
"homepage": "http://www.lgse.com"
}
],
"require": {
Expand All @@ -32,11 +37,11 @@
},
"require-dev": {
"nyholm/psr7": "^1.0",
"phpunit/phpunit": "^7.0",
"phpstan/phpstan": "^0.10.3",
"phpunit/phpunit": "^7.0",
"php-http/psr7-integration-tests": "dev-master",
"squizlabs/php_codesniffer": "^3.3.2",
"zendframework/zend-diactoros": "^2.0",
"php-http/psr7-integration-tests": "dev-master"
"zendframework/zend-diactoros": "^2.0"
},
"provide": {
"psr/http-factory": "^1.0"
Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml → phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.1/phpunit.xsd"
colors="true"
bootstrap="tests/bootstrap.php">
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="slim\http">
<testsuite name="Slim-Http Test Suite">
<directory>tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/</directory>
Expand Down
12 changes: 4 additions & 8 deletions src/Factory/DecoratedResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@
/**
* Slim Framework (https://slimframework.com)
*
* @link https://github.com/slimphp/Slim-Http
* @copyright Copyright (c) 2011-2018 Josh Lockhart
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE (MIT License)
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/

declare(strict_types=1);

namespace Slim\Http\Factory;

use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamFactoryInterface;
use Slim\Http\Response;

/**
* Class DecoratedResponseFactory
* @package Slim\Http\Factory
*/
class DecoratedResponseFactory implements ResponseFactoryInterface
{
/**
Expand All @@ -30,7 +27,6 @@ class DecoratedResponseFactory implements ResponseFactoryInterface
private $streamFactory;

/**
* DecoratedResponseFactory constructor.
* @param ResponseFactoryInterface $responseFactory
* @param StreamFactoryInterface $streamFactory
*/
Expand Down
15 changes: 6 additions & 9 deletions src/Factory/DecoratedServerRequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@
/**
* Slim Framework (https://slimframework.com)
*
* @link https://github.com/slimphp/Slim-Http
* @copyright Copyright (c) 2011-2018 Josh Lockhart
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE (MIT License)
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/

declare(strict_types=1);

namespace Slim\Http\Factory;

use Psr\Http\Message\ServerRequestFactoryInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\UriInterface;
use Slim\Http\ServerRequest;

/**
* Class DecoratedServerRequestFactory
* @package Slim\Http\Factory
*/
class DecoratedServerRequestFactory implements ServerRequestFactoryInterface
{
/**
Expand All @@ -24,7 +22,6 @@ class DecoratedServerRequestFactory implements ServerRequestFactoryInterface
private $serverRequestFactory;

/**
* DecoratedServerRequestFactory constructor.
* @param ServerRequestFactoryInterface $serverRequestFactory
*/
public function __construct(ServerRequestFactoryInterface $serverRequestFactory)
Expand All @@ -34,7 +31,7 @@ public function __construct(ServerRequestFactoryInterface $serverRequestFactory)

/**
* @param string $method
* @param \Psr\Http\Message\UriInterface|string $uri
* @param UriInterface|string $uri
* @param array $serverParams
* @return ServerRequest
*/
Expand Down
12 changes: 4 additions & 8 deletions src/Factory/DecoratedUriFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@
/**
* Slim Framework (https://slimframework.com)
*
* @link https://github.com/slimphp/Slim-Http
* @copyright Copyright (c) 2011-2018 Josh Lockhart
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE (MIT License)
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/

declare(strict_types=1);

namespace Slim\Http\Factory;

use Psr\Http\Message\UriFactoryInterface;
use Psr\Http\Message\UriInterface;
use Slim\Http\Uri;

/**
* Class DecoratedUriFactory
* @package Slim\Http\Factory
*/
class DecoratedUriFactory implements UriFactoryInterface
{
/**
Expand All @@ -24,7 +21,6 @@ class DecoratedUriFactory implements UriFactoryInterface
private $uriFactory;

/**
* DecoratedUriFactory constructor.
* @param UriFactoryInterface $uriFactory
*/
public function __construct(UriFactoryInterface $uriFactory)
Expand Down
Loading

0 comments on commit 473a811

Please sign in to comment.