@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 7 | -use Symfony\Component\Debug\Exception\ContextErrorException; |
|
| 8 | 7 | use Symfony\Component\Routing\Exception\InvalidParameterException; |
| 9 | 8 | use Symfony\Component\HttpFoundation\Request; |
| 10 | 9 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | return $this->render( |
| 112 | 112 | 'quote/all.html.twig', [ |
| 113 | 113 | 'base_dir' => realpath( |
| 114 | - $this->getParameter('kernel.root_dir') . '/..' |
|
| 114 | + $this->getParameter('kernel.root_dir').'/..' |
|
| 115 | 115 | ), |
| 116 | 116 | "xtPage" => "bash", |
| 117 | 117 | "xtPageTitle" => "tool_bash", |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | return $this->render( |
| 162 | 162 | 'quote/view.html.twig', [ |
| 163 | 163 | 'base_dir' => realpath( |
| 164 | - $this->getParameter('kernel.root_dir') . '/..' |
|
| 164 | + $this->getParameter('kernel.root_dir').'/..' |
|
| 165 | 165 | ), |
| 166 | 166 | "xtPage" => "bash", |
| 167 | 167 | "xtPageTitle" => "tool_bash", |
@@ -73,8 +73,7 @@ discard block |
||
| 73 | 73 | // a flash notice. |
| 74 | 74 | try { |
| 75 | 75 | $id = rand(1, sizeof($this->getParameter("quotes"))); |
| 76 | - } |
|
| 77 | - catch (InvalidParameterException $e) { |
|
| 76 | + } catch (InvalidParameterException $e) { |
|
| 78 | 77 | $this->addFlash("notice", ["noquotes"]); |
| 79 | 78 | return $this->redirectToRoute("quote"); |
| 80 | 79 | } |
@@ -101,8 +100,7 @@ discard block |
||
| 101 | 100 | // a flash notice. |
| 102 | 101 | try { |
| 103 | 102 | $quotes = $this->getParameter("quotes"); |
| 104 | - } |
|
| 105 | - catch (InvalidParameterException $e) { |
|
| 103 | + } catch (InvalidParameterException $e) { |
|
| 106 | 104 | $this->addFlash("notice", ["noquotes"]); |
| 107 | 105 | return $this->redirectToRoute("quote"); |
| 108 | 106 | } |