Passed
Push — master ( e8275e...2e2cc3 )
by Sebastian
03:17
created
src/Mailcode/Parser/Statement/Validator.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
  */
29 29
 class Mailcode_Parser_Statement_Validator
30 30
 {
31
-   /**
32
-    * @var Mailcode_Parser_Statement
33
-    */
31
+    /**
32
+     * @var Mailcode_Parser_Statement
33
+     */
34 34
     private $statement;
35 35
     
36 36
     public function __construct(Mailcode_Parser_Statement $statement)
@@ -38,24 +38,24 @@  discard block
 block discarded – undo
38 38
         $this->statement = $statement;
39 39
     }
40 40
     
41
-   /**
42
-    * Creates a variable validator: checks whether a single
43
-    * variable token is present in the parameters.
44
-    * 
45
-    * @return Mailcode_Parser_Statement_Validator_Type_Variable
46
-    */
41
+    /**
42
+     * Creates a variable validator: checks whether a single
43
+     * variable token is present in the parameters.
44
+     * 
45
+     * @return Mailcode_Parser_Statement_Validator_Type_Variable
46
+     */
47 47
     public function createVariable() : Mailcode_Parser_Statement_Validator_Type_Variable
48 48
     {
49 49
         return new Mailcode_Parser_Statement_Validator_Type_Variable($this->statement);
50 50
     }
51 51
     
52
-   /**
53
-    * Creates a keyword validator: checks whether a single
54
-    * keyword token is present in the parameters.
55
-    * 
56
-    * @param string $keywordName
57
-    * @return Mailcode_Parser_Statement_Validator_Type_Keyword
58
-    */
52
+    /**
53
+     * Creates a keyword validator: checks whether a single
54
+     * keyword token is present in the parameters.
55
+     * 
56
+     * @param string $keywordName
57
+     * @return Mailcode_Parser_Statement_Validator_Type_Keyword
58
+     */
59 59
     public function createKeyword(string $keywordName) : Mailcode_Parser_Statement_Validator_Type_Keyword
60 60
     {
61 61
         return new Mailcode_Parser_Statement_Validator_Type_Keyword(
Please login to merge, or discard this patch.
src/Mailcode/Collection.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
     const ERROR_CANNOT_RETRIEVE_FIRST_ERROR = 52301;
26 26
     const ERROR_CANNOT_MODIFY_FINALIZED = 52302;
27 27
     
28
-   /**
29
-    * @var Mailcode_Commands_Command[]
30
-    */
28
+    /**
29
+     * @var Mailcode_Commands_Command[]
30
+     */
31 31
     protected $commands = array();
32 32
     
33 33
     /**
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
      */
36 36
     protected $errors = array();
37 37
     
38
-   /**
39
-    * @var OperationResult|NULL
40
-    */
38
+    /**
39
+     * @var OperationResult|NULL
40
+     */
41 41
     protected $validationResult;
42 42
 
43 43
     /**
@@ -77,21 +77,21 @@  discard block
 block discarded – undo
77 77
         return $this;
78 78
     }
79 79
     
80
-   /**
81
-    * Whether there are any commands in the collection.
82
-    * 
83
-    * @return bool
84
-    */
80
+    /**
81
+     * Whether there are any commands in the collection.
82
+     * 
83
+     * @return bool
84
+     */
85 85
     public function hasCommands() : bool
86 86
     {
87 87
         return !empty($this->commands);
88 88
     }
89 89
     
90
-   /**
91
-    * Counts the amount of commands in the collection.
92
-    * 
93
-    * @return int
94
-    */
90
+    /**
91
+     * Counts the amount of commands in the collection.
92
+     * 
93
+     * @return int
94
+     */
95 95
     public function countCommands() : int
96 96
     {
97 97
         return count($this->commands);
@@ -129,9 +129,9 @@  discard block
 block discarded – undo
129 129
         $this->commands = $keep;
130 130
     }
131 131
     
132
-   /**
133
-    * @return Mailcode_Collection_Error[]
134
-    */
132
+    /**
133
+     * @return Mailcode_Collection_Error[]
134
+     */
135 135
     public function getErrors()
136 136
     {
137 137
         $result = $this->getValidationResult();
@@ -173,12 +173,12 @@  discard block
 block discarded – undo
173 173
         return empty($errors);
174 174
     }
175 175
     
176
-   /**
177
-    * Retrieves all commands that were detected, in the exact order
178
-    * they were found.
179
-    * 
180
-    * @return Mailcode_Commands_Command[]
181
-    */
176
+    /**
177
+     * Retrieves all commands that were detected, in the exact order
178
+     * they were found.
179
+     * 
180
+     * @return Mailcode_Commands_Command[]
181
+     */
182 182
     public function getCommands()
183 183
     {
184 184
         $this->validate();
@@ -329,10 +329,10 @@  discard block
 block discarded – undo
329 329
     }
330 330
 
331 331
     /**
332
-    * Retrieves only show variable commands in the collection, if any.
333
-    * 
334
-    * @return Mailcode_Commands_Command_ShowVariable[]
335
-    */
332
+     * Retrieves only show variable commands in the collection, if any.
333
+     * 
334
+     * @return Mailcode_Commands_Command_ShowVariable[]
335
+     */
336 336
     public function getShowVariableCommands(): array
337 337
     {
338 338
         return $this->getCommandsByClass(Mailcode_Commands_Command_ShowVariable::class);
@@ -346,11 +346,11 @@  discard block
 block discarded – undo
346 346
         return $this->getCommandsByClass(Mailcode_Commands_Command_For::class);
347 347
     }
348 348
 
349
-   /**
350
-    * Retrieves only show date commands in the collection, if any.
351
-    *
352
-    * @return Mailcode_Commands_Command_ShowDate[]
353
-    */
349
+    /**
350
+     * Retrieves only show date commands in the collection, if any.
351
+     *
352
+     * @return Mailcode_Commands_Command_ShowDate[]
353
+     */
354 354
     public function getShowDateCommands() : array
355 355
     {
356 356
         return $this->getCommandsByClass(Mailcode_Commands_Command_ShowDate::class);
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/Multiline.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,14 +26,14 @@
 block discarded – undo
26 26
  */
27 27
 trait Mailcode_Traits_Commands_Validation_Multiline
28 28
 {
29
-   /**
30
-    * @var boolean
31
-    */
29
+    /**
30
+     * @var boolean
31
+     */
32 32
     protected $multiline = false;
33 33
 
34
-   /**
35
-    * @var Mailcode_Parser_Statement_Tokenizer_Token_Keyword|NULL
36
-    */
34
+    /**
35
+     * @var Mailcode_Parser_Statement_Tokenizer_Token_Keyword|NULL
36
+     */
37 37
     protected $multilineToken;
38 38
     
39 39
     protected function validateSyntax_multiline() : void
Please login to merge, or discard this patch.
src/Mailcode/Collection/NestingValidator.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,19 +30,19 @@
 block discarded – undo
30 30
     const VALIDATION_UNCLOSED_COMMAND = 49104;
31 31
     const VALIDATION_CLOSING_NON_OPENING_COMMAND = 49105;
32 32
     
33
-   /**
34
-    * @var Mailcode_Collection
35
-    */
33
+    /**
34
+     * @var Mailcode_Collection
35
+     */
36 36
     protected $collection;
37 37
     
38
-   /**
39
-    * @var OperationResult
40
-    */
38
+    /**
39
+     * @var OperationResult
40
+     */
41 41
     protected $validationResult;
42 42
     
43
-   /**
44
-    * @var Mailcode_Commands_Command_Type[]
45
-    */
43
+    /**
44
+     * @var Mailcode_Commands_Command_Type[]
45
+     */
46 46
     protected $stack = array();
47 47
     
48 48
     public function __construct(Mailcode_Collection $collection)
Please login to merge, or discard this patch.