Test Failed
Pull Request — master (#19)
by Flo
02:32
created
src/Mail/Mailer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         $headers .= 'Content-Type: multipart/mixed; boundary=' . $boundary . $eol;
189 189
 
190 190
         if (!empty($this->from)) {
191
-            $headers .= 'From: ' .$this->from . $eol;
191
+            $headers .= 'From: ' . $this->from . $eol;
192 192
         }
193 193
 
194 194
         if (!empty($this->replyTo)) {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
                 }
247 247
 
248 248
                 $body .= 'Content-Transfer-Encoding: base64' . $eol;
249
-                $body .= 'X-Attachment-Id: ' . rand(1000,99999) . $eol . $eol;
249
+                $body .= 'X-Attachment-Id: ' . rand(1000, 99999) . $eol . $eol;
250 250
                 $body .= $encodedContent . $eol;
251 251
 
252 252
             }
Please login to merge, or discard this patch.
src/Form/Validator/AbstractValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         if (!$this->process($this->field->getValue())) {
42 42
 
43
-            $this->field->addAttribute('class',  'error');
43
+            $this->field->addAttribute('class', 'error');
44 44
             $this->field->setErrorMessages([$this->getMessage()]);
45 45
             return false;
46 46
 
Please login to merge, or discard this patch.
src/Http/XmlResponse.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 class XmlResponse extends Response
13 13
 {
14 14
 
15
-    public function __construct ($content = [])
15
+    public function __construct($content = [])
16 16
     {
17 17
         parent::__construct($content);
18 18
 
@@ -27,30 +27,30 @@  discard block
 block discarded – undo
27 27
      * @param $data
28 28
      * @return bool|\DOMElement
29 29
      */
30
-    protected function generateXmlElement( \DOMDocument $dom, $data )
30
+    protected function generateXmlElement(\DOMDocument $dom, $data)
31 31
     {
32
-        if ( empty( $data['name'] ) )
32
+        if (empty($data['name']))
33 33
             return false;
34 34
 
35 35
         // Create the element
36
-        $element_value = ( ! empty( $data['value'] ) ) ? $data['value'] : null;
37
-        $element = $dom->createElement( $data['name'], $element_value );
36
+        $element_value = (!empty($data['value'])) ? $data['value'] : null;
37
+        $element = $dom->createElement($data['name'], $element_value);
38 38
 
39 39
         // Add any attributes
40
-        if ( ! empty( $data['attributes'] ) && is_array( $data['attributes'] ) ) {
41
-            foreach ( $data['attributes'] as $attribute_key => $attribute_value ) {
42
-                $element->setAttribute( $attribute_key, $attribute_value );
40
+        if (!empty($data['attributes']) && is_array($data['attributes'])) {
41
+            foreach ($data['attributes'] as $attribute_key => $attribute_value) {
42
+                $element->setAttribute($attribute_key, $attribute_value);
43 43
             }
44 44
         }
45 45
 
46 46
         // Any other items in the data array should be child elements
47
-        foreach ( $data as $data_key => $child_data ) {
48
-            if ( ! is_numeric( $data_key ) )
47
+        foreach ($data as $data_key => $child_data) {
48
+            if (!is_numeric($data_key))
49 49
                 continue;
50 50
 
51
-            $child = $this->generateXmlElement( $dom, $child_data );
52
-            if ( $child )
53
-                $element->appendChild( $child );
51
+            $child = $this->generateXmlElement($dom, $child_data);
52
+            if ($child)
53
+                $element->appendChild($child);
54 54
         }
55 55
 
56 56
         return $element;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $doc->encoding   = 'UTF-8';
71 71
         $child = $this->generateXmlElement($doc, $content);
72 72
 
73
-        if ( $child ) {
73
+        if ($child) {
74 74
             $doc->appendChild($child);
75 75
         }
76 76
 
Please login to merge, or discard this patch.