Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Oct 17, 2018
1 parent a39816a commit bf37c01
Show file tree
Hide file tree
Showing 33 changed files with 35 additions and 182 deletions.
6 changes: 1 addition & 5 deletions src/Annotation/DefaultSchemeHost.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Annotation;

use Ray\Di\Di\Qualifier;
Expand Down
6 changes: 1 addition & 5 deletions src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Exception;

interface ExceptionInterface
Expand Down
6 changes: 1 addition & 5 deletions src/Exception/LogicException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Exception;

class LogicException extends \LogicException implements ExceptionInterface
Expand Down
6 changes: 1 addition & 5 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Exception;

class RuntimeException extends \RuntimeException implements ExceptionInterface
Expand Down
6 changes: 1 addition & 5 deletions src/Extension/Application/AbstractApp.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Extension\Application;

use BEAR\Resource\ResourceInterface;
Expand Down
6 changes: 1 addition & 5 deletions src/Extension/Application/AppInterface.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Extension\Application;

use BEAR\Sunday\Extension\ExtensionInterface;
Expand Down
11 changes: 1 addition & 10 deletions src/Extension/Error/ErrorInterface.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Extension\Error;

use BEAR\Sunday\Extension\Router\RouterMatch as Request;
Expand All @@ -15,17 +11,12 @@ interface ErrorInterface
/**
* Handle exception
*
* @param \Exception $e
* @param Request $request
*
* @return self
*/
public function handle(\Exception $e, Request $request);

/**
* Error page transfer
*
* @return void
*/
public function transfer();
}
6 changes: 1 addition & 5 deletions src/Extension/Error/NullError.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Extension\Error;

use BEAR\Sunday\Extension\Router\RouterMatch as Request;
Expand Down
6 changes: 1 addition & 5 deletions src/Extension/ExtensionInterface.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Extension;

interface ExtensionInterface
Expand Down
6 changes: 1 addition & 5 deletions src/Extension/Router/NullMatch.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Extension\Router;

class NullMatch extends RouterMatch
Expand Down
8 changes: 2 additions & 6 deletions src/Extension/Router/RouterInterface.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Extension\Router;

use BEAR\Sunday\Extension\ExtensionInterface;
Expand All @@ -24,7 +20,7 @@ public function match(array $globals, array $server);
* @param string $name the route name to look up
* @param array $data the data to interpolate into the URI; data keys map to param tokens in the path
*
* @return string|false returns a URI when it finds a name, or boolean false if there is no route name
* @return false|string returns a URI when it finds a name, or boolean false if there is no route name
*/
public function generate($name, $data);
}
9 changes: 2 additions & 7 deletions src/Extension/Router/RouterMatch.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Extension\Router;

class RouterMatch
Expand Down Expand Up @@ -34,8 +30,7 @@ class RouterMatch
public function __toString()
{
$querySymbol = $this->query ? '?' : '';
$string = "{$this->method} {$this->path}{$querySymbol}" . \http_build_query($this->query);

return $string;
return "{$this->method} {$this->path}{$querySymbol}" . \http_build_query($this->query);
}
}
6 changes: 1 addition & 5 deletions src/Extension/Transfer/HttpCacheInterface.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Extension\Transfer;

interface HttpCacheInterface
Expand Down
6 changes: 1 addition & 5 deletions src/Extension/Transfer/NullHttpCache.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Extension\Transfer;

final class NullHttpCache implements HttpCacheInterface
Expand Down
6 changes: 1 addition & 5 deletions src/Extension/Transfer/TransferInterface.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Extension\Transfer;

use BEAR\Resource\TransferInterface as RepresentationTransferInterface;
Expand Down
8 changes: 1 addition & 7 deletions src/Inject/PsrLoggerInject.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Inject;

use Psr\Log\LoggerInterface;
Expand All @@ -18,8 +14,6 @@ trait PsrLoggerInject
private $logger;

/**
* @param LoggerInterface $logger
*
* @Ray\Di\Di\Inject
*/
public function setPsrLogger(LoggerInterface $logger)
Expand Down
8 changes: 1 addition & 7 deletions src/Inject/ResourceInject.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Inject;

use BEAR\Resource\ResourceInterface;
Expand All @@ -18,8 +14,6 @@ trait ResourceInject
protected $resource;

/**
* @param ResourceInterface $resource
*
* @Ray\Di\Di\Inject
*/
public function setResource(ResourceInterface $resource)
Expand Down
6 changes: 1 addition & 5 deletions src/Module/Annotation/DoctrineAnnotationModule.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Module\Annotation;

use Doctrine\Common\Annotations\AnnotationReader;
Expand Down
6 changes: 1 addition & 5 deletions src/Module/Cache/DoctrineCacheModule.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Module\Cache;

use Doctrine\Common\Cache\ArrayCache;
Expand Down
9 changes: 1 addition & 8 deletions src/Module/Constant/NamedModule.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Module\Constant;

use Ray\Di\AbstractModule;
Expand All @@ -17,9 +13,6 @@ class NamedModule extends AbstractModule
*/
private $names;

/**
* @param array $names
*/
public function __construct(array $names)
{
$this->names = $names;
Expand Down
6 changes: 1 addition & 5 deletions src/Module/Resource/ResourceModule.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Module\Resource;

use BEAR\Resource\Annotation\AppName;
Expand Down
6 changes: 1 addition & 5 deletions src/Module/SundayModule.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Module;

use BEAR\Sunday\Module\Annotation\DoctrineAnnotationModule;
Expand Down
6 changes: 1 addition & 5 deletions src/Provide/Application/App.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Provide\Application;

use BEAR\Sunday\Extension\Application\AbstractApp;
Expand Down
6 changes: 1 addition & 5 deletions src/Provide/Application/AppModule.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Provide\Application;

use BEAR\Resource\Annotation\AppName;
Expand Down
6 changes: 1 addition & 5 deletions src/Provide/Error/ErrorModule.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

declare(strict_types=1);
/**
* This file is part of the BEAR.Sunday package.
*
* @license http://opensource.org/licenses/MIT MIT
*/

namespace BEAR\Sunday\Provide\Error;

use BEAR\Sunday\Extension\Error\ErrorInterface;
Expand Down
Loading

0 comments on commit bf37c01

Please sign in to comment.