Test Failed
Pull Request — master (#19)
by Flo
02:32
created
src/ORM/Entity.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Controller/Dispatcher.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Form/Type/AbstractType.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Http/XmlResponse.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,8 +29,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.