Passed
Push — master ( c355fd...36c5b6 )
by Sebastian
04:30
created
src/Mailcode/Parser.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
         '{\s*([a-z]+)\s+([a-z-]+)\s*:([^}]*)}'
29 29
     );
30 30
     
31
-   /**
32
-    * @var Mailcode
33
-    */
31
+    /**
32
+     * @var Mailcode
33
+     */
34 34
     protected $mailcode;
35 35
     
36
-   /**
37
-    * @var Mailcode_Commands
38
-    */
36
+    /**
37
+     * @var Mailcode_Commands
38
+     */
39 39
     protected $commands;
40 40
 
41 41
     /**
@@ -49,11 +49,11 @@  discard block
 block discarded – undo
49 49
         $this->commands = $this->mailcode->getCommands();
50 50
     }
51 51
     
52
-   /**
53
-    * Gets the regex format string used to detect commands.
54
-    * 
55
-    * @return string
56
-    */
52
+    /**
53
+     * Gets the regex format string used to detect commands.
54
+     * 
55
+     * @return string
56
+     */
57 57
     protected static function getRegex() : string
58 58
     {
59 59
         return '/'.implode('|', self::COMMAND_REGEX_PARTS).'/sixU';
@@ -175,14 +175,14 @@  discard block
 block discarded – undo
175 175
         throw new Mailcode_Exception('Not a command', '', self::ERROR_NOT_A_COMMAND);
176 176
     }
177 177
     
178
-   /**
179
-    * Parses a single regex match: determines which named group
180
-    * matches, and retrieves the according information.
181
-    * 
182
-    * @param array[] $matches The regex results array.
183
-    * @param int $index The matched index.
184
-    * @return Mailcode_Parser_Match
185
-    */
178
+    /**
179
+     * Parses a single regex match: determines which named group
180
+     * matches, and retrieves the according information.
181
+     * 
182
+     * @param array[] $matches The regex results array.
183
+     * @param int $index The matched index.
184
+     * @return Mailcode_Parser_Match
185
+     */
186 186
     protected function parseMatch(array $matches, int $index) : Mailcode_Parser_Match
187 187
     {
188 188
         $name = ''; // the command name, e.g. "showvar"
@@ -220,14 +220,14 @@  discard block
 block discarded – undo
220 220
         );
221 221
     }
222 222
     
223
-   /**
224
-    * Creates an instance of the safeguard tool, which
225
-    * is used to safeguard commands in a string with placeholders.
226
-    * 
227
-    * @param string $subject The string to use to safeguard commands in.
228
-    * @return Mailcode_Parser_Safeguard
229
-    * @see Mailcode_Parser_Safeguard
230
-    */
223
+    /**
224
+     * Creates an instance of the safeguard tool, which
225
+     * is used to safeguard commands in a string with placeholders.
226
+     * 
227
+     * @param string $subject The string to use to safeguard commands in.
228
+     * @return Mailcode_Parser_Safeguard
229
+     * @see Mailcode_Parser_Safeguard
230
+     */
231 231
     public function createSafeguard(string $subject) : Mailcode_Parser_Safeguard
232 232
     {
233 233
         return new Mailcode_Parser_Safeguard($this, $subject);
Please login to merge, or discard this patch.