Test Failed
Pull Request — master (#19)
by Flo
03:11
created
src/Translate/Translator.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
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
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
@@ -33,8 +33,9 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected function generateXmlElement(\DOMDocument $dom, $data )
35 35
     {
36
-        if ( empty( $data['name'] ) )
37
-            return false;
36
+        if ( empty( $data['name'] ) ) {
37
+                    return false;
38
+        }
38 39
 
39 40
         // Create the element
40 41
         $element_value = ( ! empty( $data['value'] ) ) ? $data['value'] : null;
@@ -49,12 +50,14 @@  discard block
 block discarded – undo
49 50
 
50 51
         // Any other items in the data array should be child elements
51 52
         foreach ( $data as $data_key => $child_data ) {
52
-            if ( ! is_numeric( $data_key ) )
53
-                continue;
53
+            if ( ! is_numeric( $data_key ) ) {
54
+                            continue;
55
+            }
54 56
 
55 57
             $child = $this->generateXmlElement( $dom, $child_data );
56
-            if ( $child )
57
-                $element->appendChild( $child );
58
+            if ( $child ) {
59
+                            $element->appendChild( $child );
60
+            }
58 61
         }
59 62
 
60 63
         return $element;
Please login to merge, or discard this patch.
src/Controller/Dispatcher.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\Http\Request;
14 14
 use Faulancer\Http\Response;
15 15
 use Faulancer\Exception\MethodNotFoundException;
16
-use Faulancer\Service\AuthenticatorPlugin;
17 16
 use Faulancer\Service\AuthenticatorService;
18 17
 use Faulancer\Service\Config;
19 18
 use Faulancer\Service\SessionManagerService;
Please login to merge, or discard this patch.
src/View/ViewController.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,14 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Faulancer\View;
4 4
 
5
-use Faulancer\Exception\ClassNotFoundException;
6 5
 use Faulancer\Exception\ConstantMissingException;
7
-use Faulancer\Exception\Exception;
8 6
 use Faulancer\Exception\FileNotFoundException;
9 7
 use Faulancer\Exception\ViewHelperException;
10
-use Faulancer\Exception\ViewHelperIncompatibleException;
11 8
 use Faulancer\Service\Config;
12
-use Faulancer\Service\ResponseService;
13 9
 use Faulancer\ServiceLocator\ServiceLocator;
14 10
 
15 11
 /**
Please login to merge, or discard this patch.