Skip to content

Commit

Permalink
TE-1211 Fixed cs.
Browse files Browse the repository at this point in the history
  • Loading branch information
stereomon committed Sep 26, 2019
1 parent 7cba70f commit 5b7c8cd
Show file tree
Hide file tree
Showing 23 changed files with 65 additions and 28 deletions.
7 changes: 3 additions & 4 deletions src/Spryker/Shared/Router/Resolver/ControllerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ public function __construct(ContainerInterface $container)
}

/**
* {@inheritdoc}
* @param \Symfony\Component\HttpFoundation\Request $request
*
* This method looks for a '_controller' request attribute that represents
* the controller.
* @return array|bool|callable|object|false
*/
public function getController(Request $request)
{
Expand Down Expand Up @@ -135,7 +134,7 @@ protected function injectContainerAndInitialize($controller)
}

/**
* {@inheritdoc}
* @inheritdoc
*
* @deprecated This method is deprecated as of 3.1 and will be removed in 4.0. Implement the ArgumentResolverInterface and inject it in the HttpKernel instead.
*/
Expand Down
10 changes: 6 additions & 4 deletions src/Spryker/Yves/Router/Plugin/Console/Descriptor/Descriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ abstract class Descriptor implements DescriptorInterface
protected $output;

/**
* {@inheritdoc}
* @param \Symfony\Component\Console\Output\OutputInterface $output
* @param object $object
* @param array $options
*
* @throws \InvalidArgumentException
*
* @return void
*/
public function describe(OutputInterface $output, $object, array $options = [])
{
Expand All @@ -44,9 +48,7 @@ public function describe(OutputInterface $output, $object, array $options = [])
}

/**
* Returns the output.
*
* @return \Symfony\Component\Console\Output\OutputInterface The output
* @return \Symfony\Component\Console\Output\OutputInterface
*/
protected function getOutput()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
class TextDescriptor extends Descriptor
{
/**
* {@inheritdoc}
* @param \Symfony\Component\Routing\RouteCollection $routes
* @param array $options
*
* @return void
*/
protected function describeRouteCollection(RouteCollection $routes, array $options = [])
{
Expand Down Expand Up @@ -56,7 +59,10 @@ protected function describeRouteCollection(RouteCollection $routes, array $optio
}

/**
* {@inheritdoc}
* @param \Spryker\Yves\Router\Route\Route $route
* @param array $options
*
* @return void
*/
protected function describeRoute(Route $route, array $options = [])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ protected function getFactory(): RouterFactory
}

/**
* {@inheritdoc}
* @param \Symfony\Component\Console\Input\InputInterface $input
* @param \Symfony\Component\Console\Output\OutputInterface $output
*
* @throws \Symfony\Component\Console\Exception\InvalidArgumentException When route does not exist
* @throws \Symfony\Component\Console\Exception\InvalidArgumentException
*
* @return int|null|void
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
Expand Down
12 changes: 6 additions & 6 deletions src/Spryker/Yves/Router/RouterConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class RouterConfig extends AbstractBundleConfig
* Specification:
* - Returns a Router configuration which makes use of a Router cache.
*
* @see \Symfony\Component\Routing\Router::setOptions()
*
* @api
*
* @see \Symfony\Component\Routing\Router::setOptions()
*
* @return array
*/
public function getRouterConfiguration(): array
Expand All @@ -39,10 +39,10 @@ public function getRouterConfiguration(): array
* - Returns a Router configuration which does not make use of a Router cache.
* - Fallback for development which is executed when the cached Router is not able to match.
*
* @see \Symfony\Component\Routing\Router::setOptions()
*
* @api
*
* @see \Symfony\Component\Routing\Router::setOptions()
*
* @return array
*/
public function getDevelopmentRouterConfiguration(): array
Expand Down Expand Up @@ -102,10 +102,10 @@ public function getSslExcludedRouteNames(): array
*
* @example Incoming URL `/en/home` will be manipulated to `/home` because the router only knows URL's without any optional pre/suffix.
*
* @see \Spryker\Yves\Router\Plugin\RouterEnhancer\LanguagePrefixRouterEnhancerPlugin
*
* @api
*
* @see \Spryker\Yves\Router\Plugin\RouterEnhancer\LanguagePrefixRouterEnhancerPlugin
*
* @return array
*/
public function getAllowedLanguages(): array
Expand Down
3 changes: 2 additions & 1 deletion src/Spryker/Yves/Router/RouterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
class RouterFactory extends AbstractFactory
{
/**
* @return \Spryker\Yves\Router\Router\ChainRouter */
* @return \Spryker\Yves\Router\Router\ChainRouter
*/
public function createRouter()
{
return new ChainRouter($this->getRouterPlugins());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ abstract class Descriptor implements DescriptorInterface
protected $output;

/**
* {@inheritdoc}
* @param \Symfony\Component\Console\Output\OutputInterface $output
* @param object $object
* @param array $options
*
* @throws \InvalidArgumentException
*
* @return void
*/
public function describe(OutputInterface $output, $object, array $options = [])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
class TextDescriptor extends Descriptor
{
/**
* {@inheritdoc}
* @param \Symfony\Component\Routing\RouteCollection $routes
* @param array $options
*
* @return void
*/
protected function describeRouteCollection(RouteCollection $routes, array $options = [])
{
Expand Down Expand Up @@ -58,7 +61,10 @@ protected function describeRouteCollection(RouteCollection $routes, array $optio
}

/**
* {@inheritdoc}
* @param \Symfony\Component\Routing\Route $route
* @param array $options
*
* @return void
*/
protected function describeRoute(Route $route, array $options = [])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ protected function configure(): void
}

/**
* {@inheritdoc}
* @param \Symfony\Component\Console\Input\InputInterface $input
* @param \Symfony\Component\Console\Output\OutputInterface $output
*
* @throws \Symfony\Component\Console\Exception\InvalidArgumentException When route does not exist
* @throws \Symfony\Component\Console\Exception\InvalidArgumentException
*
* @return int|null|void
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Spryker/Zed/Router/RouterConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ class RouterConfig extends AbstractBundleConfig
* Specification:
* - Returns a Router configuration which makes use of a Router cache.
*
* @see \Symfony\Component\Routing\Router::setOptions()
*
* @api
*
* @see \Symfony\Component\Routing\Router::setOptions()
*
* @return array
*/
public function getRouterConfiguration(): array
Expand All @@ -40,10 +40,10 @@ public function getRouterConfiguration(): array
* - Returns a Router configuration which does not make use of a Router cache.
* - Fallback for development which is executed when the cached Router is not able to match.
*
* @see \Symfony\Component\Routing\Router::setOptions()
*
* @api
*
* @see \Symfony\Component\Routing\Router::setOptions()
*
* @return array
*/
public function getDevelopmentRouterConfiguration(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

/**
* Auto-generated group annotations
*
* @group SprykerTest
* @group Shared
* @group Router
Expand Down
1 change: 1 addition & 0 deletions tests/SprykerTest/Shared/Router/_support/RouterTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/**
* Inherited Methods
*
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* Auto-generated group annotations
*
* @group SprykerTest
* @group Yves
* @group Router
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* Auto-generated group annotations
*
* @group SprykerTest
* @group Yves
* @group Router
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

/**
* Auto-generated group annotations
*
* @group SprykerTest
* @group Yves
* @group Router
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/**
* Auto-generated group annotations
*
* @group SprykerTest
* @group Yves
* @group Router
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/**
* Auto-generated group annotations
*
* @group SprykerTest
* @group Yves
* @group Router
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

/**
* Auto-generated group annotations
*
* @group SprykerTest
* @group Yves
* @group Router
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/**
* Auto-generated group annotations
*
* @group SprykerTest
* @group Yves
* @group Router
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* Inherited Methods
*
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

/**
* Auto-generated group annotations
*
* @group SprykerTest
* @group Zed
* @group Router
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* Auto-generated group annotations
*
* @group Spryker
* @group Router
* @group tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

/**
* Inherited Methods
*
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
Expand Down

0 comments on commit 5b7c8cd

Please sign in to comment.