Passed
Push — master ( 8f2f8a...8eb6c3 )
by Sebastian
03:17
created
src/XMLHelper/DOMErrors/Error.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@
 block discarded – undo
27 27
     public const ERROR_CANNOT_UNSERIALIZE_ERROR_DATA = 57201;
28 28
     public const ERROR_ERROR_DATA_KEY_MISSING = 57202;
29 29
     
30
-   /**
31
-    * @var LibXMLError
32
-    */
30
+    /**
31
+     * @var LibXMLError
32
+     */
33 33
     private LibXMLError $error;
34 34
 
35 35
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,9 +90,9 @@
 block discarded – undo
90 90
      */
91 91
     private static function checkErrorData(array $data) : void
92 92
     {
93
-        foreach(self::$requiredKeys as $key)
93
+        foreach (self::$requiredKeys as $key)
94 94
         {
95
-            if(!array_key_exists($key, $data))
95
+            if (!array_key_exists($key, $data))
96 96
             {
97 97
                 throw new XMLHelper_Exception(
98 98
                     'Required key missing in error data',
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
         try
59 59
         {
60 60
             $data = json_decode($serialized, true, 512, JSON_THROW_ON_ERROR);
61
-        }
62
-        catch (JsonException $e)
61
+        } catch (JsonException $e)
63 62
         {
64 63
             throw new XMLHelper_Exception(
65 64
                 'Could not unserialize error data',
Please login to merge, or discard this patch.
src/XMLHelper/SimpleXML.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -28,32 +28,32 @@
 block discarded – undo
28 28
     
29 29
     private ?SimpleXMLElement $element = null;
30 30
     
31
-   /**
32
-    * @var XMLHelper_SimpleXML_Error[]
33
-    */
31
+    /**
32
+     * @var XMLHelper_SimpleXML_Error[]
33
+     */
34 34
     private array $errors = array();
35 35
     
36
-   /**
37
-    * Creates a simplexml instance from an XML string.
38
-    *
39
-    * NOTE: returns false in case of a fatal error.
40
-    *
41
-    * @param string $string
42
-    * @return SimpleXMLElement|NULL
43
-    */
36
+    /**
37
+     * Creates a simplexml instance from an XML string.
38
+     *
39
+     * NOTE: returns false in case of a fatal error.
40
+     *
41
+     * @param string $string
42
+     * @return SimpleXMLElement|NULL
43
+     */
44 44
     public function loadString(string $string) : ?SimpleXMLElement
45 45
     {
46 46
         return $this->load('string', $string);
47 47
     }
48 48
     
49
-   /**
50
-    * Creates a simplexml instance from an XML file.
51
-    * 
52
-    * NOTE: returns false in case of a fatal error.
53
-    * 
54
-    * @param string $file
55
-    * @return SimpleXMLElement|NULL
56
-    */
49
+    /**
50
+     * Creates a simplexml instance from an XML file.
51
+     * 
52
+     * NOTE: returns false in case of a fatal error.
53
+     * 
54
+     * @param string $file
55
+     * @return SimpleXMLElement|NULL
56
+     */
57 57
     public function loadFile(string $file) : ?SimpleXMLElement
58 58
     {
59 59
         return $this->load('file', $file);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         // error wrappers.
84 84
         $errors = libxml_get_errors();
85 85
         
86
-        foreach($errors as $error) 
86
+        foreach ($errors as $error) 
87 87
         {
88 88
             $this->errors[] = new XMLHelper_SimpleXML_Error($this, $error);
89 89
         }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         
98 98
         $xml = $function($subject);
99 99
         
100
-        if($xml instanceof SimpleXMLElement)
100
+        if ($xml instanceof SimpleXMLElement)
101 101
         {
102 102
             return $xml;
103 103
         }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     
108 108
     public function getConverter() : XMLHelper_Converter
109 109
     {
110
-        if($this->element instanceof SimpleXMLElement)
110
+        if ($this->element instanceof SimpleXMLElement)
111 111
         {
112 112
             return XMLHelper::convertElement($this->element);
113 113
         }
Please login to merge, or discard this patch.
src/XMLHelper/SimpleXML/Error.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 {
11 11
     protected XMLHelper_SimpleXML $xml;
12 12
     
13
-   /**
14
-    * @var  LibXMLError
15
-    */
13
+    /**
14
+     * @var  LibXMLError
15
+     */
16 16
     protected LibXMLError $nativeError;
17 17
     
18 18
     public function __construct(XMLHelper_SimpleXML $xml, LibXMLError $nativeError)
Please login to merge, or discard this patch.
src/Request/RefreshParams/Exclude/Callback.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
  */
21 21
 class Request_RefreshParams_Exclude_Callback extends Request_RefreshParams_Exclude
22 22
 {
23
-   /**
24
-    * @var callable
25
-    */
23
+    /**
24
+     * @var callable
25
+     */
26 26
     private $callback;
27 27
     
28 28
     public function __construct(callable $callback)
Please login to merge, or discard this patch.
src/VariableInfo/Renderer.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
 
7 7
 abstract class VariableInfo_Renderer
8 8
 {
9
-   /**
10
-    * @var mixed|NULL
11
-    */
9
+    /**
10
+     * @var mixed|NULL
11
+     */
12 12
     protected $value;
13 13
     
14 14
     protected VariableInfo $info;
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
     
25 25
     abstract protected function init() : void;
26 26
 
27
-   /**
28
-    * Renders the value to the target format.
29
-    * 
30
-    * @return string
31
-    */
27
+    /**
28
+     * Renders the value to the target format.
29
+     * 
30
+     * @return string
31
+     */
32 32
     public function render() : string
33 33
     {
34 34
         return $this->_render();
Please login to merge, or discard this patch.