Skip to content

Commit

Permalink
fix phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Dec 21, 2014
1 parent 2f1284e commit dfd74b7
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 22 deletions.
3 changes: 2 additions & 1 deletion src/Extension/Application/AbstractApp.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the *** package
* This file is part of the BEAR.Sunday package
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*/
Expand Down Expand Up @@ -37,6 +37,7 @@ class AbstractApp implements AppInterface
* @param RouterInterface $router
* @param TransferInterface $responder
* @param ResourceInterface $resource
* @param ErrorInterface $error
*/
public function __construct(
RouterInterface $router,
Expand Down
6 changes: 1 addition & 5 deletions src/Extension/Representation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@

### interface

BEAR\Resource\RenderInterface

### file:

vendor/bear/resource/BEAR/Resource/RenderInterface
[BEAR\Resource\RenderInterface](https://github.com/koriym/BEAR.Resource/blob/develop-2/src/RenderInterface.php)
3 changes: 3 additions & 0 deletions src/Extension/Router/RouterMatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class RouterMatch
*/
public $query = [];

/**
* @return string
*/
public function __toString()
{
$querySymbol = $this->query ? '?' : '';
Expand Down
2 changes: 0 additions & 2 deletions src/Inject/PsrLoggerInject.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ trait PsrLoggerInject
private $logger;

/**
* PSR Logger setter
*
* @param LoggerInterface $logger
*
* @Ray\Di\Di\Inject
Expand Down
3 changes: 3 additions & 0 deletions src/Module/Constant/NamedModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public function __construct(array $names)
parent::__construct();
}

/**
* {@inheritdoc}
*/
protected function configure()
{
foreach ($this->names as $annotatedWith => $instance) {
Expand Down
2 changes: 1 addition & 1 deletion src/Module/SundayModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
use BEAR\Sunday\Module\Cache\DoctrineCacheModule;
use BEAR\Sunday\Module\Resource\ResourceModule;
use BEAR\Sunday\Provide\Application\MinApp;
use BEAR\Sunday\Provide\Error\ErrorModule;
use BEAR\Sunday\Provide\Router\RouterModule;
use BEAR\Sunday\Provide\Transfer\HttpResponderModule;
use BEAR\Sunday\Provide\Error\ErrorModule;
use Ray\Di\AbstractModule;

class SundayModule extends AbstractModule
Expand Down
2 changes: 1 addition & 1 deletion src/Provide/Application/AppModule.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the *** package
* This file is part of the BEAR.Sunday package
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Provide/Application/MinApp.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the *** package
* This file is part of the BEAR.Sunday package
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*/
Expand Down
8 changes: 7 additions & 1 deletion src/Provide/Error/VndError.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use BEAR\Resource\Code;
use BEAR\Resource\Exception\BadRequestException as BadRequest;
use BEAR\Resource\Exception\ResourceNotFoundException as NotFound;
use BEAR\Resource\Exception\ServerErrorException as ServerError;
use BEAR\Resource\Exception\ServerErrorException;
use BEAR\Sunday\Extension\Error\ErrorInterface;
use BEAR\Sunday\Extension\Router\RouterMatch as Request;
Expand Down Expand Up @@ -44,6 +43,11 @@ public function handle(\Exception $e, Request $request)
return $this->serverError($e, $request);
}

/**
* @param \Exception $e
*
* @return ErrorPage
*/
private function codeError(\Exception $e)
{
$code = $e->getCode();
Expand All @@ -57,6 +61,8 @@ private function codeError(\Exception $e)
/**
* @param \Exception $e
* @param Request $request
*
* @return ErrorPage
*/
private function serverError(\Exception $e, Request $request)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Provide/Representation/RepresentationModule.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the *** package
* This file is part of the BEAR.Sunday package
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*/
Expand Down
5 changes: 4 additions & 1 deletion src/Provide/Transfer/HttpResponder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the *** package
* This file is part of the BEAR.Sunday package
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*/
Expand All @@ -11,6 +11,9 @@

class HttpResponder implements TransferInterface
{
/**
* {@inheritdoc}
*/
public function __invoke(ResourceObject $resourceObject)
{
// code
Expand Down
5 changes: 4 additions & 1 deletion src/Provide/Transfer/JsonResponder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the *** package
* This file is part of the BEAR.Sunday package
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*/
Expand All @@ -11,6 +11,9 @@

class JsonResponder implements TransferInterface
{
/**
* {@inheritdoc}
*/
public function __invoke(ResourceObject $resourceObject)
{
// code
Expand Down
6 changes: 1 addition & 5 deletions tests/Provide/Error/VndErrorTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<?php
/**
* This file is part of the BEAR.Sunday package
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*/

namespace BEAR\Sunday\Provide\Error;

use BEAR\Resource\Exception\BadRequestException;
Expand Down
4 changes: 2 additions & 2 deletions tests/multiple_apps_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace BEAR\Sunday;

use Ray\Di\Injector;
use BEAR\Resource\Request;
use BEAR\Resource\ResourceInterface;
use FakeVendor\HelloWorldX\Module\AppModule;
use BEAR\Resource\Request;
use Ray\Di\Injector;

class multiple_apps_Test extends \PHPUnit_Framework_TestCase
{
Expand Down

0 comments on commit dfd74b7

Please sign in to comment.