@@ -14,8 +14,8 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller; |
| 16 | 16 | |
| 17 | -use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
|
| 18 | 17 | use Doctrine\ORM\QueryBuilder; |
| 18 | +use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Abstract controller |
@@ -14,15 +14,15 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller; |
| 16 | 16 | |
| 17 | -use Symfony\Component\HttpFoundation\Request; |
|
| 18 | 17 | use AppBundle\Controller\AbstractController; |
| 19 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
| 20 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
| 21 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
| 22 | 18 | use AppBundle\Entity\Article; |
| 23 | 19 | use AppBundle\Entity\Supplier; |
| 24 | -use AppBundle\Form\Type\ArticleType; |
|
| 25 | 20 | use AppBundle\Form\Type\ArticleReassignType; |
| 21 | +use AppBundle\Form\Type\ArticleType; |
|
| 22 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
| 23 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
| 24 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
| 25 | +use Symfony\Component\HttpFoundation\Request; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Article controller. |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller; |
| 16 | 16 | |
| 17 | -use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
|
| 18 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
| 19 | 17 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 18 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
| 20 | 19 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 20 | +use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
|
| 21 | 21 | use Symfony\Component\HttpFoundation\Response; |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -14,18 +14,17 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller; |
| 16 | 16 | |
| 17 | -use Symfony\Component\HttpFoundation\Request; |
|
| 18 | -use Symfony\Component\HttpFoundation\Response; |
|
| 19 | 17 | use AppBundle\Controller\AbstractController; |
| 20 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
| 21 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
| 22 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
| 23 | - |
|
| 24 | 18 | use AppBundle\Entity\Inventory; |
| 25 | -use AppBundle\Form\Type\InventoryType; |
|
| 26 | 19 | use AppBundle\Entity\InventoryArticles; |
| 27 | 20 | use AppBundle\Form\Type\InventoryEditType; |
| 21 | +use AppBundle\Form\Type\InventoryType; |
|
| 28 | 22 | use AppBundle\Form\Type\InventoryValidType; |
| 23 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
| 24 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
| 25 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
| 26 | +use Symfony\Component\HttpFoundation\Request; |
|
| 27 | +use Symfony\Component\HttpFoundation\Response; |
|
| 29 | 28 | |
| 30 | 29 | /** |
| 31 | 30 | * Inventory controller. |
@@ -14,17 +14,17 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller; |
| 16 | 16 | |
| 17 | -use Symfony\Component\HttpFoundation\Request; |
|
| 18 | 17 | use AppBundle\Controller\AbstractController; |
| 18 | +use AppBundle\Entity\User; |
|
| 19 | +use AppBundle\Form\Type\UserFilterType; |
|
| 20 | +use AppBundle\Form\Type\UserType; |
|
| 21 | +use Doctrine\ORM\QueryBuilder; |
|
| 19 | 22 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 20 | 23 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 21 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
| 22 | 24 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; |
| 23 | -use AppBundle\Entity\User; |
|
| 24 | -use AppBundle\Form\Type\UserType; |
|
| 25 | -use AppBundle\Form\Type\UserFilterType; |
|
| 25 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
| 26 | 26 | use Symfony\Component\Form\FormInterface; |
| 27 | -use Doctrine\ORM\QueryBuilder; |
|
| 27 | +use Symfony\Component\HttpFoundation\Request; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * User controller. |
@@ -14,9 +14,9 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Entity; |
| 16 | 16 | |
| 17 | -use FOS\UserBundle\Model\User as BaseUser; |
|
| 18 | -use Doctrine\ORM\Mapping as ORM; |
|
| 19 | 17 | use Doctrine\Common\Collections\ArrayCollection; |
| 18 | +use Doctrine\ORM\Mapping as ORM; |
|
| 19 | +use FOS\UserBundle\Model\User as BaseUser; |
|
| 20 | 20 | use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -5,7 +5,8 @@ discard block |
||
| 5 | 5 | /** |
| 6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:16. |
| 7 | 7 | */ |
| 8 | -class GroupTypeTest extends \PHPUnit_Framework_TestCase { |
|
| 8 | +class GroupTypeTest extends \PHPUnit_Framework_TestCase |
|
| 9 | +{ |
|
| 9 | 10 | |
| 10 | 11 | /** |
| 11 | 12 | * @var GroupType |
@@ -16,7 +17,8 @@ discard block |
||
| 16 | 17 | * Sets up the fixture, for example, opens a network connection. |
| 17 | 18 | * This method is called before a test is executed. |
| 18 | 19 | */ |
| 19 | - protected function setUp() { |
|
| 20 | + protected function setUp() |
|
| 21 | + { |
|
| 20 | 22 | $this->object = new GroupType; |
| 21 | 23 | } |
| 22 | 24 | |
@@ -24,7 +26,8 @@ discard block |
||
| 24 | 26 | * Tears down the fixture, for example, closes a network connection. |
| 25 | 27 | * This method is called after a test is executed. |
| 26 | 28 | */ |
| 27 | - protected function tearDown() { |
|
| 29 | + protected function tearDown() |
|
| 30 | + { |
|
| 28 | 31 | |
| 29 | 32 | } |
| 30 | 33 | |
@@ -32,7 +35,8 @@ discard block |
||
| 32 | 35 | * @covers AppBundle\Form\Type\GroupType::buildForm |
| 33 | 36 | * @todo Implement testBuildForm(). |
| 34 | 37 | */ |
| 35 | - public function testBuildForm() { |
|
| 38 | + public function testBuildForm() |
|
| 39 | + { |
|
| 36 | 40 | // Remove the following lines when you implement this test. |
| 37 | 41 | $this->markTestIncomplete( |
| 38 | 42 | 'This test has not been implemented yet.' |
@@ -43,7 +47,8 @@ discard block |
||
| 43 | 47 | * @covers AppBundle\Form\Type\GroupType::configureOptions |
| 44 | 48 | * @todo Implement testConfigureOptions(). |
| 45 | 49 | */ |
| 46 | - public function testConfigureOptions() { |
|
| 50 | + public function testConfigureOptions() |
|
| 51 | + { |
|
| 47 | 52 | // Remove the following lines when you implement this test. |
| 48 | 53 | $this->markTestIncomplete( |
| 49 | 54 | 'This test has not been implemented yet.' |
@@ -54,7 +59,8 @@ discard block |
||
| 54 | 59 | * @covers AppBundle\Form\Type\GroupType::getName |
| 55 | 60 | * @todo Implement testGetName(). |
| 56 | 61 | */ |
| 57 | - public function testGetName() { |
|
| 62 | + public function testGetName() |
|
| 63 | + { |
|
| 58 | 64 | // Remove the following lines when you implement this test. |
| 59 | 65 | $this->markTestIncomplete( |
| 60 | 66 | 'This test has not been implemented yet.' |
@@ -5,7 +5,8 @@ discard block |
||
| 5 | 5 | /** |
| 6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:16. |
| 7 | 7 | */ |
| 8 | -class UserFilterTypeTest extends \PHPUnit_Framework_TestCase { |
|
| 8 | +class UserFilterTypeTest extends \PHPUnit_Framework_TestCase |
|
| 9 | +{ |
|
| 9 | 10 | |
| 10 | 11 | /** |
| 11 | 12 | * @var UserFilterType |
@@ -16,7 +17,8 @@ discard block |
||
| 16 | 17 | * Sets up the fixture, for example, opens a network connection. |
| 17 | 18 | * This method is called before a test is executed. |
| 18 | 19 | */ |
| 19 | - protected function setUp() { |
|
| 20 | + protected function setUp() |
|
| 21 | + { |
|
| 20 | 22 | $this->object = new UserFilterType; |
| 21 | 23 | } |
| 22 | 24 | |
@@ -24,7 +26,8 @@ discard block |
||
| 24 | 26 | * Tears down the fixture, for example, closes a network connection. |
| 25 | 27 | * This method is called after a test is executed. |
| 26 | 28 | */ |
| 27 | - protected function tearDown() { |
|
| 29 | + protected function tearDown() |
|
| 30 | + { |
|
| 28 | 31 | |
| 29 | 32 | } |
| 30 | 33 | |
@@ -32,7 +35,8 @@ discard block |
||
| 32 | 35 | * @covers AppBundle\Form\Type\UserFilterType::buildForm |
| 33 | 36 | * @todo Implement testBuildForm(). |
| 34 | 37 | */ |
| 35 | - public function testBuildForm() { |
|
| 38 | + public function testBuildForm() |
|
| 39 | + { |
|
| 36 | 40 | // Remove the following lines when you implement this test. |
| 37 | 41 | $this->markTestIncomplete( |
| 38 | 42 | 'This test has not been implemented yet.' |
@@ -43,7 +47,8 @@ discard block |
||
| 43 | 47 | * @covers AppBundle\Form\Type\UserFilterType::configureOptions |
| 44 | 48 | * @todo Implement testConfigureOptions(). |
| 45 | 49 | */ |
| 46 | - public function testConfigureOptions() { |
|
| 50 | + public function testConfigureOptions() |
|
| 51 | + { |
|
| 47 | 52 | // Remove the following lines when you implement this test. |
| 48 | 53 | $this->markTestIncomplete( |
| 49 | 54 | 'This test has not been implemented yet.' |
@@ -54,7 +59,8 @@ discard block |
||
| 54 | 59 | * @covers AppBundle\Form\Type\UserFilterType::getName |
| 55 | 60 | * @todo Implement testGetName(). |
| 56 | 61 | */ |
| 57 | - public function testGetName() { |
|
| 62 | + public function testGetName() |
|
| 63 | + { |
|
| 58 | 64 | // Remove the following lines when you implement this test. |
| 59 | 65 | $this->markTestIncomplete( |
| 60 | 66 | 'This test has not been implemented yet.' |
@@ -5,7 +5,8 @@ discard block |
||
| 5 | 5 | /** |
| 6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:15. |
| 7 | 7 | */ |
| 8 | -class UserTypeTest extends \PHPUnit_Framework_TestCase { |
|
| 8 | +class UserTypeTest extends \PHPUnit_Framework_TestCase |
|
| 9 | +{ |
|
| 9 | 10 | |
| 10 | 11 | /** |
| 11 | 12 | * @var UserType |
@@ -16,7 +17,8 @@ discard block |
||
| 16 | 17 | * Sets up the fixture, for example, opens a network connection. |
| 17 | 18 | * This method is called before a test is executed. |
| 18 | 19 | */ |
| 19 | - protected function setUp() { |
|
| 20 | + protected function setUp() |
|
| 21 | + { |
|
| 20 | 22 | $this->object = new UserType; |
| 21 | 23 | } |
| 22 | 24 | |
@@ -24,7 +26,8 @@ discard block |
||
| 24 | 26 | * Tears down the fixture, for example, closes a network connection. |
| 25 | 27 | * This method is called after a test is executed. |
| 26 | 28 | */ |
| 27 | - protected function tearDown() { |
|
| 29 | + protected function tearDown() |
|
| 30 | + { |
|
| 28 | 31 | |
| 29 | 32 | } |
| 30 | 33 | |
@@ -32,7 +35,8 @@ discard block |
||
| 32 | 35 | * @covers AppBundle\Form\Type\UserType::buildForm |
| 33 | 36 | * @todo Implement testBuildForm(). |
| 34 | 37 | */ |
| 35 | - public function testBuildForm() { |
|
| 38 | + public function testBuildForm() |
|
| 39 | + { |
|
| 36 | 40 | // Remove the following lines when you implement this test. |
| 37 | 41 | $this->markTestIncomplete( |
| 38 | 42 | 'This test has not been implemented yet.' |
@@ -43,7 +47,8 @@ discard block |
||
| 43 | 47 | * @covers AppBundle\Form\Type\UserType::configureOptions |
| 44 | 48 | * @todo Implement testConfigureOptions(). |
| 45 | 49 | */ |
| 46 | - public function testConfigureOptions() { |
|
| 50 | + public function testConfigureOptions() |
|
| 51 | + { |
|
| 47 | 52 | // Remove the following lines when you implement this test. |
| 48 | 53 | $this->markTestIncomplete( |
| 49 | 54 | 'This test has not been implemented yet.' |
@@ -54,7 +59,8 @@ discard block |
||
| 54 | 59 | * @covers AppBundle\Form\Type\UserType::getName |
| 55 | 60 | * @todo Implement testGetName(). |
| 56 | 61 | */ |
| 57 | - public function testGetName() { |
|
| 62 | + public function testGetName() |
|
| 63 | + { |
|
| 58 | 64 | // Remove the following lines when you implement this test. |
| 59 | 65 | $this->markTestIncomplete( |
| 60 | 66 | 'This test has not been implemented yet.' |