Skip to content

Commit eb4d9da

Browse files
committed
Fix coding standards with the new added fixers
1 parent 3a743ad commit eb4d9da

File tree

14 files changed

+17
-17
lines changed

14 files changed

+17
-17
lines changed

app/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use Symfony\Component\HttpKernel\Kernel;
43
use Symfony\Component\Config\Loader\LoaderInterface;
4+
use Symfony\Component\HttpKernel\Kernel;
55

66
class AppKernel extends Kernel
77
{

app/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use Doctrine\Common\Annotations\AnnotationRegistry;
43
use Composer\Autoload\ClassLoader;
4+
use Doctrine\Common\Annotations\AnnotationRegistry;
55

66
/** @var ClassLoader $loader */
77
$loader = require __DIR__.'/../vendor/autoload.php';

src/AppBundle/Command/AddUserCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
namespace AppBundle\Command;
1313

14+
use AppBundle\Entity\User;
15+
use Doctrine\Common\Persistence\ObjectManager;
1416
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
1517
use Symfony\Component\Console\Input\InputArgument;
1618
use Symfony\Component\Console\Input\InputInterface;
1719
use Symfony\Component\Console\Input\InputOption;
1820
use Symfony\Component\Console\Output\OutputInterface;
1921
use Symfony\Component\Console\Question\Question;
20-
use Doctrine\Common\Persistence\ObjectManager;
21-
use AppBundle\Entity\User;
2222

2323
/**
2424
* A command console that creates users and stores them in the database.

src/AppBundle/Command/DeleteUserCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
namespace AppBundle\Command;
1313

1414
use AppBundle\Entity\User;
15+
use Doctrine\Common\Persistence\ObjectManager;
1516
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
1617
use Symfony\Component\Console\Input\InputArgument;
1718
use Symfony\Component\Console\Input\InputInterface;
1819
use Symfony\Component\Console\Output\OutputInterface;
1920
use Symfony\Component\Console\Question\Question;
20-
use Doctrine\Common\Persistence\ObjectManager;
2121

2222
/**
2323
* A command console that deletes users from the database.

src/AppBundle/Command/ListUsersCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
use Symfony\Component\Console\Helper\Table;
1818
use Symfony\Component\Console\Input\InputInterface;
1919
use Symfony\Component\Console\Input\InputOption;
20-
use Symfony\Component\Console\Output\OutputInterface;
2120
use Symfony\Component\Console\Output\BufferedOutput;
21+
use Symfony\Component\Console\Output\OutputInterface;
2222

2323
/**
2424
* A command console that lists all the existing users.

src/AppBundle/Controller/BlogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use AppBundle\Entity\Comment;
1515
use AppBundle\Entity\Post;
16+
use AppBundle\Form\CommentType;
1617
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
1718
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
1819
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
@@ -21,7 +22,6 @@
2122
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
2223
use Symfony\Component\HttpFoundation\Request;
2324
use Symfony\Component\HttpFoundation\Response;
24-
use AppBundle\Form\CommentType;
2525

2626
/**
2727
* Controller used to manage blog contents in the public part of the site.

src/AppBundle/Controller/SecurityController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace AppBundle\Controller;
1313

14-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
1514
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
15+
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
1616

1717
/**
1818
* Controller used to manage the application security.

src/AppBundle/DataFixtures/ORM/LoadFixtures.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace AppBundle\DataFixtures\ORM;
1313

14-
use AppBundle\Entity\User;
15-
use AppBundle\Entity\Post;
1614
use AppBundle\Entity\Comment;
15+
use AppBundle\Entity\Post;
16+
use AppBundle\Entity\User;
1717
use Doctrine\Common\DataFixtures\FixtureInterface;
1818
use Doctrine\Common\Persistence\ObjectManager;
1919
use Symfony\Component\DependencyInjection\ContainerAwareInterface;

src/AppBundle/Entity/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace AppBundle\Entity;
44

5-
use Doctrine\ORM\Mapping as ORM;
65
use Doctrine\Common\Collections\ArrayCollection;
6+
use Doctrine\ORM\Mapping as ORM;
77
use Symfony\Component\Validator\Constraints as Assert;
88

99
/**

src/AppBundle/EventListener/RedirectToPreferredLocaleListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace AppBundle\EventListener;
1313

14-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1514
use Symfony\Component\HttpFoundation\RedirectResponse;
15+
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1616
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1717

1818
/**

src/CodeExplorerBundle/EventListener/ControllerListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace CodeExplorerBundle\EventListener;
1313

14-
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
1514
use CodeExplorerBundle\Twig\SourceCodeExtension;
15+
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
1616

1717
/**
1818
* Defines the method that 'listens' to the 'kernel.controller' event, which is

tests/AppBundle/Controller/BlogControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Tests\AppBundle\Controller;
1313

14-
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1514
use AppBundle\Entity\Post;
15+
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1616

1717
/**
1818
* Functional test for the controllers defined inside BlogController.

web/app_dev.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// * http://symfony.com/doc/current/cookbook/configuration/front_controllers_and_kernel.html
66
// * http://symfony.com/doc/current/cookbook/configuration/environments.html
77

8-
use Symfony\Component\HttpFoundation\Request;
98
use Symfony\Component\Debug\Debug;
9+
use Symfony\Component\HttpFoundation\Request;
1010

1111
// If you don't want to setup permissions the proper way, just uncomment the
1212
// following PHP line. See:

web/config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
exit('This script cannot be run from the CLI. Run it from a browser.');
1515
}
1616

17-
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
17+
if (!in_array(@$_SERVER['REMOTE_ADDR'], [
1818
'127.0.0.1',
1919
'::1',
20-
))) {
20+
])) {
2121
header('HTTP/1.0 403 Forbidden');
2222
exit('This script is only accessible from localhost.');
2323
}

0 commit comments

Comments
 (0)