@@ -43,7 +43,7 @@ |
||
43 | 43 | 'format' => 'dd MMM yyyy', |
44 | 44 | 'html5' => false, |
45 | 45 | 'input' => 'datetime', |
46 | - 'attr' => ['class' => 'form-control',], |
|
46 | + 'attr' => ['class' => 'form-control', ], |
|
47 | 47 | ) |
48 | 48 | ) |
49 | 49 | ->add('status', HiddenType::class) |
@@ -68,7 +68,7 @@ |
||
68 | 68 | 'empty_data' => '0,000', |
69 | 69 | 'label' => 'settings.quantity', |
70 | 70 | 'translation_domain' => 'gs_articles', |
71 | - 'attr'=> ['class' => 'form-control text-right',], |
|
71 | + 'attr'=> ['class' => 'form-control text-right', ], |
|
72 | 72 | ) |
73 | 73 | ) |
74 | 74 | ->add( |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | $query = $this->createQueryBuilder('o') |
24 | 24 | ->where('o.status = 1') |
25 | - ->andWhere('o.delivdate < ' . date('d-m-Y')) |
|
25 | + ->andWhere('o.delivdate < '.date('d-m-Y')) |
|
26 | 26 | ->orderBy('o.id', 'DESC') |
27 | 27 | ->setMaxResults($count) |
28 | 28 | ->getQuery(); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | { |
41 | 41 | $query = $this->createQueryBuilder('o') |
42 | 42 | ->where('o.status = 1') |
43 | - ->andWhere('o.delivdate >= ' . date('d-m-Y')) |
|
43 | + ->andWhere('o.delivdate >= '.date('d-m-Y')) |
|
44 | 44 | ->orderBy('o.id', 'DESC') |
45 | 45 | ->setMaxResults($count) |
46 | 46 | ->getQuery(); |
@@ -7,7 +7,8 @@ discard block |
||
7 | 7 | /** |
8 | 8 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:37. |
9 | 9 | */ |
10 | -class ArticleRepositoryTest extends \PHPUnit_Framework_TestCase { |
|
10 | +class ArticleRepositoryTest extends \PHPUnit_Framework_TestCase |
|
11 | +{ |
|
11 | 12 | |
12 | 13 | /** |
13 | 14 | * @var ArticleRepository |
@@ -18,7 +19,8 @@ discard block |
||
18 | 19 | * Sets up the fixture, for example, opens a network connection. |
19 | 20 | * This method is called before a test is executed. |
20 | 21 | */ |
21 | - protected function setUp() { |
|
22 | + protected function setUp() |
|
23 | + { |
|
22 | 24 | $this->object = new Article(); |
23 | 25 | } |
24 | 26 | |
@@ -26,7 +28,8 @@ discard block |
||
26 | 28 | * Tears down the fixture, for example, closes a network connection. |
27 | 29 | * This method is called after a test is executed. |
28 | 30 | */ |
29 | - protected function tearDown() { |
|
31 | + protected function tearDown() |
|
32 | + { |
|
30 | 33 | |
31 | 34 | } |
32 | 35 | |
@@ -34,7 +37,8 @@ discard block |
||
34 | 37 | * @covers AppBundle\Entity\ArticleRepository::getArticles |
35 | 38 | * @todo Implement testGetArticles(). |
36 | 39 | */ |
37 | - public function testGetArticles() { |
|
40 | + public function testGetArticles() |
|
41 | + { |
|
38 | 42 | // Remove the following lines when you implement this test. |
39 | 43 | $this->markTestIncomplete( |
40 | 44 | 'This test has not been implemented yet.' |
@@ -45,7 +49,8 @@ discard block |
||
45 | 49 | * @covers AppBundle\Entity\ArticleRepository::getArticleFromSupplier |
46 | 50 | * @todo Implement testGetArticleFromSupplier(). |
47 | 51 | */ |
48 | - public function testGetArticleFromSupplier() { |
|
52 | + public function testGetArticleFromSupplier() |
|
53 | + { |
|
49 | 54 | // Remove the following lines when you implement this test. |
50 | 55 | $this->markTestIncomplete( |
51 | 56 | 'This test has not been implemented yet.' |
@@ -6,7 +6,8 @@ |
||
6 | 6 | |
7 | 7 | class ArticleControllerTest extends WebTestCase |
8 | 8 | { |
9 | - public function testIndex() { |
|
9 | + public function testIndex() |
|
10 | + { |
|
10 | 11 | $client = self::createClient(); |
11 | 12 | |
12 | 13 | $crawler = $client->request('GET', '/article'); |
@@ -6,7 +6,8 @@ |
||
6 | 6 | |
7 | 7 | class InventoryControllerTest extends WebTestCase |
8 | 8 | { |
9 | - public function testIndex() { |
|
9 | + public function testIndex() |
|
10 | + { |
|
10 | 11 | $client = self::createClient( |
11 | 12 | // array(), |
12 | 13 | // array( |
@@ -100,9 +100,9 @@ discard block |
||
100 | 100 | { |
101 | 101 | $roles = ''; |
102 | 102 | $user = new User(); |
103 | - $form = $this->createForm(UserType::class, $user, ['action' => $this->generateUrl('user_create'),]); |
|
103 | + $form = $this->createForm(UserType::class, $user, ['action' => $this->generateUrl('user_create'), ]); |
|
104 | 104 | $form->handleRequest($request); |
105 | - $return = ['user' => $user, 'form' => $form->createView(),]; |
|
105 | + $return = ['user' => $user, 'form' => $form->createView(), ]; |
|
106 | 106 | |
107 | 107 | if ($form->isValid()) { |
108 | 108 | foreach ($user->getGroups() as $key => $group) { |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | $editForm->handleRequest($request); |
176 | 176 | $return = ['user' => $user, |
177 | 177 | 'edit_form' => $editForm->createView(), |
178 | - 'delete_form' => $deleteForm->createView(),]; |
|
178 | + 'delete_form' => $deleteForm->createView(), ]; |
|
179 | 179 | |
180 | 180 | if ($editForm->isValid()) { |
181 | 181 | foreach ($user->getGroups() as $key => $group) { |
@@ -100,7 +100,7 @@ |
||
100 | 100 | $form = $this->createForm(GroupType::class, $group); |
101 | 101 | AbstractController::addRoles($form, $group); |
102 | 102 | $form->handleRequest($request); |
103 | - $return = ['group' => $group, 'form' => $form->createView(),]; |
|
103 | + $return = ['group' => $group, 'form' => $form->createView(), ]; |
|
104 | 104 | |
105 | 105 | if ($form->isValid()) { |
106 | 106 | $etm = $this->getDoctrine()->getManager(); |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | */ |
300 | 300 | public function printAction(Inventory $inventory) |
301 | 301 | { |
302 | - $file = $inventory->getDate()->format('Ymd') . '-inventory.pdf'; |
|
302 | + $file = $inventory->getDate()->format('Ymd').'-inventory.pdf'; |
|
303 | 303 | // Create and save the PDF file to print |
304 | 304 | $html = $this->renderView( |
305 | 305 | 'AppBundle:Inventory:print.pdf.twig', |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | 200, |
314 | 314 | array( |
315 | 315 | 'Content-Type' => 'application/pdf', |
316 | - 'Content-Disposition' => 'attachment; filename="' . $file . '"' |
|
316 | + 'Content-Disposition' => 'attachment; filename="'.$file.'"' |
|
317 | 317 | ) |
318 | 318 | ); |
319 | 319 | } |