Skip to content

Commit

Permalink
No multiple uses, fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
stephpy committed Jul 11, 2012
1 parent ece5468 commit a58149a
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 53 deletions.
2 changes: 0 additions & 2 deletions DependencyInjection/FOSRestExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\HttpKernel\Kernel;
Expand Down
2 changes: 1 addition & 1 deletion Request/ParamFetcherInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function setController($controller);
*
* @return mixed Value of the parameter.
*/
function get($name, $strict = null);
public function get($name, $strict = null);

/**
* Get all validated parameter.
Expand Down
1 change: 0 additions & 1 deletion Routing/Loader/AbstractRestRouteLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

use Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpFoundation\Request;

use FOS\RestBundle\Routing\Loader\Reader\RestControllerReader;
Expand Down
4 changes: 1 addition & 3 deletions Routing/Loader/RestXmlCollectionLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
namespace FOS\RestBundle\Routing\Loader;

use Symfony\Component\Config\FileLocatorInterface;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Routing\Loader\XmlFileLoader;
use Symfony\Component\Config\Loader\FileLoader;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Route;

Expand Down Expand Up @@ -104,7 +102,7 @@ public function supports($resource, $type = null)
}

/**
* @param \DOMDocument $dom
* @param \DOMDocument $dom
* @throws \InvalidArgumentException When xml doesn't validate its xsd schema
*/
protected function validate(\DOMDocument $dom)
Expand Down
1 change: 0 additions & 1 deletion Routing/Loader/RestYamlCollectionLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Yaml\Yaml;
use Symfony\Component\Routing\Loader\YamlFileLoader;
use Symfony\Component\Config\Loader\FileLoader;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Route;

Expand Down
6 changes: 3 additions & 3 deletions Tests/DependencyInjection/FOSRestExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

namespace FOS\RestBundle\Tests\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder,
Symfony\Component\DependencyInjection\Definition,
Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;

use FOS\RestBundle\DependencyInjection\FOSRestExtension;

Expand Down
4 changes: 2 additions & 2 deletions Tests/EventListener/FormatListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

namespace FOS\RestBundle\Tests\EventListener;

use Symfony\Component\HttpKernel\HttpKernelInterface,
Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpFoundation\Request;

use FOS\RestBundle\EventListener\FormatListener;

Expand Down
4 changes: 2 additions & 2 deletions Tests/EventListener/ViewResponseListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

namespace FOS\RestBundle\Tests\EventListener;

use Symfony\Component\HttpFoundation\Request,
Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

use FOS\RestBundle\EventListener\ViewResponseListener;

Expand Down
16 changes: 8 additions & 8 deletions Tests/Fixtures/Controller/AnnotatedUsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

use FOS\RestBundle\Controller\Annotations\Route,
FOS\RestBundle\Controller\Annotations\NoRoute,
FOS\RestBundle\Controller\Annotations\Get,
FOS\RestBundle\Controller\Annotations\Post,
FOS\RestBundle\Controller\Annotations\Put,
FOS\RestBundle\Controller\Annotations\Patch,
FOS\RestBundle\Controller\Annotations\Delete,
FOS\RestBundle\Controller\Annotations\Head;
use FOS\RestBundle\Controller\Annotations\Route;
use FOS\RestBundle\Controller\Annotations\NoRoute;
use FOS\RestBundle\Controller\Annotations\Get;
use FOS\RestBundle\Controller\Annotations\Post;
use FOS\RestBundle\Controller\Annotations\Put;
use FOS\RestBundle\Controller\Annotations\Patch;
use FOS\RestBundle\Controller\Annotations\Delete;
use FOS\RestBundle\Controller\Annotations\Head;

class AnnotatedUsersController extends Controller
{
Expand Down
6 changes: 3 additions & 3 deletions Tests/Fixtures/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

namespace FOS\RestBundle\Tests\Fixtures\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller,
Symfony\Component\HttpFoundation\Response,
Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;

class UsersController extends Controller
{
Expand Down
9 changes: 4 additions & 5 deletions Tests/Request/ParamFetcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace FOS\RestBundle\Tests\Request;

use FOS\RestBundle\Controller\Annotations\NamePrefix;
use FOS\RestBundle\Controller\Annotations\Param;
use FOS\RestBundle\Controller\Annotations\RequestParam;
use FOS\RestBundle\Controller\Annotations\QueryParam;
Expand Down Expand Up @@ -90,11 +89,11 @@ public function getParamFetcher($query = array(), $request = array(), $attribute
/**
* Test valid parameters.
*
* @param string $param which param to test
* @param string $expected Expected query parameter value.
* @param string $param which param to test
* @param string $expected Expected query parameter value.
* @param string $expectedAll Expected query parameter values.
* @param array $query Query parameters for the request.
* @param array $request Request parameters for the request.
* @param array $query Query parameters for the request.
* @param array $request Request parameters for the request.
*
* @dataProvider validatesConfiguredParamDataProvider
*/
Expand Down
8 changes: 4 additions & 4 deletions Tests/Routing/Loader/RestXmlCollectionLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

namespace FOS\RestBundle\Tests\Routing\Loader;

use Symfony\Component\Config\Loader\LoaderResolver,
Symfony\Component\Config\FileLocator;
use Symfony\Component\Config\Loader\LoaderResolver;
use Symfony\Component\Config\FileLocator;

use FOS\RestBundle\Routing\Loader\RestRouteProcessor,
FOS\RestBundle\Routing\Loader\RestXmlCollectionLoader;
use FOS\RestBundle\Routing\Loader\RestRouteProcessor;
use FOS\RestBundle\Routing\Loader\RestXmlCollectionLoader;

/**
* RestXmlCollectionLoader test.
Expand Down
8 changes: 4 additions & 4 deletions Tests/Routing/Loader/RestYamlCollectionLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

namespace FOS\RestBundle\Tests\Routing\Loader;

use Symfony\Component\Config\Loader\LoaderResolver,
Symfony\Component\Config\FileLocator;
use Symfony\Component\Config\Loader\LoaderResolver;
use Symfony\Component\Config\FileLocator;

use FOS\RestBundle\Routing\Loader\RestRouteProcessor,
FOS\RestBundle\Routing\Loader\RestYamlCollectionLoader;
use FOS\RestBundle\Routing\Loader\RestRouteProcessor;
use FOS\RestBundle\Routing\Loader\RestYamlCollectionLoader;

/**
* RestYamlCollectionLoader test.
Expand Down
14 changes: 7 additions & 7 deletions Tests/View/ViewHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

namespace FOS\RestBundle\Tests\View;

use FOS\RestBundle\View\View,
FOS\RestBundle\View\ViewHandler,
Symfony\Bundle\FrameworkBundle\Templating\TemplateReference,
FOS\Rest\Util\Codes,
Symfony\Component\HttpFoundation\Request,
Symfony\Component\HttpFoundation\Response,
Symfony\Component\Form\FormView;
use FOS\RestBundle\View\View;
use FOS\RestBundle\View\ViewHandler;
use Symfony\Bundle\FrameworkBundle\Templating\TemplateReference;
use FOS\Rest\Util\Codes;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Form\FormView;

/**
* View test
Expand Down
14 changes: 7 additions & 7 deletions Tests/View/ViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

namespace FOS\RestBundle\Tests\View;

use FOS\RestBundle\View\View,
FOS\RestBundle\View\RedirectView,
FOS\RestBundle\View\RouteRedirectView,
Symfony\Bundle\FrameworkBundle\Templating\TemplateReference,
FOS\Rest\Util\Codes,
Symfony\Component\HttpFoundation\Request,
Symfony\Component\HttpFoundation\Response;
use FOS\RestBundle\View\View;
use FOS\RestBundle\View\RedirectView;
use FOS\RestBundle\View\RouteRedirectView;
use Symfony\Bundle\FrameworkBundle\Templating\TemplateReference;
use FOS\Rest\Util\Codes;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

/**
* View test
Expand Down

0 comments on commit a58149a

Please sign in to comment.