Completed
Push — master ( 02dbed...351c5c )
by Laurent
03:50
created
src/AppBundle/Tests/AppBundleTest.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,8 @@  discard block
 block discarded – undo
5 5
 /**
6 6
  * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:18.
7 7
  */
8
-class AppBundleTest extends \PHPUnit_Framework_TestCase {
8
+class AppBundleTest extends \PHPUnit_Framework_TestCase
9
+{
9 10
 
10 11
     /**
11 12
      * @var AppBundle
@@ -16,7 +17,8 @@  discard block
 block discarded – undo
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 AppBundle;
21 23
     }
22 24
 
@@ -24,7 +26,8 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/AbstractController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $session = $this->getRequest()->getSession();
49 49
 
50
-        return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null;
50
+        return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null;
51 51
     }
52 52
 
53 53
     /**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $alias = current($qb->getDQLPart('from'))->getAlias();
62 62
         if (is_array($order = $this->getOrder($name))) {
63
-            $qb->orderBy($alias . '.' . $order['field'], $order['type']);
63
+            $qb->orderBy($alias.'.'.$order['field'], $order['type']);
64 64
         }
65 65
     }
66 66
 
Please login to merge, or discard this patch.