@@ -11,8 +11,6 @@ |
||
11 | 11 | use Faulancer\Service\Config; |
12 | 12 | use Faulancer\Service\SessionManagerService; |
13 | 13 | use Faulancer\ServiceLocator\ServiceLocator; |
14 | -use Faulancer\Session\SessionManager; |
|
15 | -use Symfony\Component\EventDispatcher\Tests\Service; |
|
16 | 14 | |
17 | 15 | /** |
18 | 16 | * Class Translator |
@@ -8,7 +8,6 @@ |
||
8 | 8 | namespace Faulancer\ORM; |
9 | 9 | |
10 | 10 | use Faulancer\Service\AbstractControllerService; |
11 | -use Faulancer\Service\DbService; |
|
12 | 11 | use Faulancer\ServiceLocator\ServiceLocator; |
13 | 12 | use \ORM\EntityManager; |
14 | 13 |
@@ -9,7 +9,6 @@ discard block |
||
9 | 9 | use Faulancer\Exception\ClassNotFoundException; |
10 | 10 | use Faulancer\Exception\DispatchFailureException; |
11 | 11 | use Faulancer\Exception\IncompatibleResponseException; |
12 | -use Faulancer\Form\AbstractFormHandler; |
|
13 | 12 | use Faulancer\Http\JsonResponse; |
14 | 13 | use Faulancer\Http\Request; |
15 | 14 | use Faulancer\Http\Response; |
@@ -17,7 +16,6 @@ discard block |
||
17 | 16 | use Faulancer\Service\Config; |
18 | 17 | use Faulancer\Service\SessionManagerService; |
19 | 18 | use Faulancer\ServiceLocator\ServiceLocator; |
20 | -use Faulancer\Session\SessionManager; |
|
21 | 19 | |
22 | 20 | /** |
23 | 21 | * Class Dispatcher |
@@ -13,7 +13,6 @@ |
||
13 | 13 | use Faulancer\Service\SessionManagerService; |
14 | 14 | use Faulancer\ServiceLocator\ServiceLocator; |
15 | 15 | use Faulancer\Form\Validator\ValidatorChain; |
16 | -use Faulancer\ServiceLocator\ServiceLocatorAwareInterface; |
|
17 | 16 | use Faulancer\ServiceLocator\ServiceLocatorInterface; |
18 | 17 | use Faulancer\Session\SessionManager; |
19 | 18 |
@@ -29,8 +29,9 @@ discard block |
||
29 | 29 | */ |
30 | 30 | protected function generateXmlElement( \DOMDocument $dom, $data ) |
31 | 31 | { |
32 | - if ( empty( $data['name'] ) ) |
|
33 | - return false; |
|
32 | + if ( empty( $data['name'] ) ) { |
|
33 | + return false; |
|
34 | + } |
|
34 | 35 | |
35 | 36 | // Create the element |
36 | 37 | $element_value = ( ! empty( $data['value'] ) ) ? $data['value'] : null; |
@@ -45,12 +46,14 @@ discard block |
||
45 | 46 | |
46 | 47 | // Any other items in the data array should be child elements |
47 | 48 | foreach ( $data as $data_key => $child_data ) { |
48 | - if ( ! is_numeric( $data_key ) ) |
|
49 | - continue; |
|
49 | + if ( ! is_numeric( $data_key ) ) { |
|
50 | + continue; |
|
51 | + } |
|
50 | 52 | |
51 | 53 | $child = $this->generateXmlElement( $dom, $child_data ); |
52 | - if ( $child ) |
|
53 | - $element->appendChild( $child ); |
|
54 | + if ( $child ) { |
|
55 | + $element->appendChild( $child ); |
|
56 | + } |
|
54 | 57 | } |
55 | 58 | |
56 | 59 | return $element; |