Applied some php-cs-fixer magic

This commit is contained in:
Christophe Coevoet 2012-05-23 00:33:01 +02:00
parent 84ad827c89
commit 04b075736f
15 changed files with 84 additions and 90 deletions

View File

@ -11,7 +11,6 @@
namespace Nelmio\ApiDocBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

View File

@ -59,7 +59,7 @@ abstract class AbstractFormatter implements FormatterInterface
* @param array $data
* @return string|array
*/
protected abstract function renderOne(array $data);
abstract protected function renderOne(array $data);
/**
* Format a set of resource sections.
@ -67,7 +67,7 @@ abstract class AbstractFormatter implements FormatterInterface
* @param array $collection
* @return string|array
*/
protected abstract function render(array $collection);
abstract protected function render(array $collection);
/**
* @param ApiDoc $apiDoc

View File

@ -22,7 +22,7 @@ interface FormatterInterface
* @param array $collection
* @return string|array
*/
function format(array $collection);
public function format(array $collection);
/**
* Format documentation data for one route.
@ -31,5 +31,5 @@ interface FormatterInterface
* @param Route $route
* return string|array
*/
function formatOne(ApiDoc $apiDoc, Route $route);
public function formatOne(ApiDoc $apiDoc, Route $route);
}

View File

@ -11,8 +11,6 @@
namespace Nelmio\ApiDocBundle\Formatter;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Symfony\Component\Routing\Route;
use Symfony\Component\Templating\EngineInterface;
class HtmlFormatter extends AbstractFormatter

View File

@ -11,9 +11,6 @@
namespace Nelmio\ApiDocBundle\Tests\Fixtures\Controller;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Symfony\Component\HttpFoundation\Response;
class TestServiceController extends TestController
{
}

View File

@ -31,7 +31,6 @@ while ($dir !== $lastDir) {
}
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel\Kernel;
/**

View File

@ -37,14 +37,14 @@ abstract class WebTestCase extends BaseWebTestCase
return static::$kernel->getContainer();
}
static protected function getKernelClass()
protected static function getKernelClass()
{
require_once __DIR__.'/Fixtures/app/AppKernel.php';
return 'Nelmio\ApiDocBundle\Tests\Functional\AppKernel';
}
static protected function createKernel(array $options = array())
protected static function createKernel(array $options = array())
{
$class = self::getKernelClass();

View File

@ -1,6 +1,7 @@
<?php
function includeIfExists($file) {
function includeIfExists($file)
{
if (file_exists($file)) {
return include $file;
}