Passed
Push — master ( 758f58...e7d92c )
by Sebastian
02:33
created
src/Mailcode/Traits/Commands/Validation/URLEncode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $keywords = $this->params->getInfo()->getKeywords();
36 36
 
37
-        foreach($keywords as $keyword)
37
+        foreach ($keywords as $keyword)
38 38
         {
39
-            if($keyword->isURLEncoded())
39
+            if ($keyword->isURLEncoded())
40 40
             {
41 41
                 $this->urlencodeToken = $keyword;
42 42
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         }
48 48
     }
49 49
 
50
-    abstract public function setURLEncoding(bool $encoding=true);
50
+    abstract public function setURLEncoding(bool $encoding = true);
51 51
 
52 52
     public function getURLEncodeToken() : ?Mailcode_Parser_Statement_Tokenizer_Token_Keyword
53 53
     {
Please login to merge, or discard this patch.
src/Mailcode/Commands/Command/ShowNumber.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
     const VALIDATION_INVALID_DECIMAL_SEPARATOR = 72209;
32 32
     const VALIDATION_SEPARATORS_SAME_CHARACTER = 72210;
33 33
     
34
-   /**
35
-    * The default number format string.
36
-    * @var string
37
-    */
34
+    /**
35
+     * The default number format string.
36
+     * @var string
37
+     */
38 38
     private $formatString = Mailcode_Number_Info::DEFAULT_FORMAT;
39 39
     
40 40
     public function getName() : string
@@ -58,16 +58,16 @@  discard block
 block discarded – undo
58 58
 
59 59
     protected function validateSyntax_check_format() : void
60 60
     {
61
-         $tokens = $this->params->getInfo()->getStringLiterals();
61
+            $tokens = $this->params->getInfo()->getStringLiterals();
62 62
          
63
-         // no format specified? Use the default one.
64
-         if(empty($tokens))
65
-         {
66
-             return;
67
-         }
63
+            // no format specified? Use the default one.
64
+            if(empty($tokens))
65
+            {
66
+                return;
67
+            }
68 68
 
69
-         $token = array_pop($tokens);
70
-         $this->parseFormatString($token->getText());
69
+            $token = array_pop($tokens);
70
+            $this->parseFormatString($token->getText());
71 71
     }
72 72
 
73 73
     private function parseFormatString(string $format) : void
@@ -86,11 +86,11 @@  discard block
 block discarded – undo
86 86
         );
87 87
     }
88 88
     
89
-   /**
90
-    * Retrieves the format string used to format the number.
91
-    * 
92
-    * @return string
93
-    */
89
+    /**
90
+     * Retrieves the format string used to format the number.
91
+     * 
92
+     * @return string
93
+     */
94 94
     public function getFormatString() : string
95 95
     {
96 96
         return $this->formatString;
Please login to merge, or discard this patch.