@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 15 | 15 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 16 | 16 | use Symfony\Component\HttpFoundation\Request; |
| 17 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
| 18 | 17 | use Xtools\ProjectRepository; |
| 19 | 18 | use Xtools\RFA; |
| 20 | 19 | |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace AppBundle\Controller; |
| 4 | 4 | |
| 5 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | -use Symfony\Component\CssSelector\Exception\InternalErrorException; |
|
| 7 | -use Symfony\Component\Debug\Exception\ContextErrorException; |
|
| 8 | 6 | use Symfony\Component\HttpFoundation\Request; |
| 9 | 7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 10 | 8 | use Xtools\ProjectRepository; |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * Returns matches. |
| 21 | 21 | * |
| 22 | 22 | * @param $input |
| 23 | - * @param $matches |
|
| 23 | + * @param string[] $matches |
|
| 24 | 24 | * |
| 25 | 25 | * @return int |
| 26 | 26 | */ |
@@ -85,6 +85,9 @@ discard block |
||
| 85 | 85 | return $this->userSectionFound; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | + /** |
|
| 89 | + * @param string $sectionName |
|
| 90 | + */ |
|
| 88 | 91 | public function getSection($sectionName) { |
| 89 | 92 | $sectionName = strtolower($sectionName); |
| 90 | 93 | if (!isset($this->data[$sectionName])) { |