Passed
Push — master ( 7f7d2c...7dbe13 )
by Daimona
02:03
created
includes/Utils/RegexUtils.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare( strict_types=1 );
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace BotRiconferme\Utils;
4 4
 
@@ -10,10 +10,10 @@  discard block
 block discarded – undo
10 10
 	 * @param IRegexAble ...$elements
11 11
 	 * @return string
12 12
 	 */
13
-	public static function regexFromArray( string $delimiter = '/', IRegexAble ...$elements ) : string {
14
-		$bits = [];
13
+	public static function regexFromArray ( string $delimiter = '/', IRegexAble ...$elements ) : string {
14
+		$bits = [ ];
15 15
 		foreach ( $elements as $el ) {
16
-			$bits[] = $el->getRegex( $delimiter );
16
+			$bits[ ] = $el->getRegex( $delimiter );
17 17
 		}
18 18
 		return '(?:' . implode( '|', $bits ) . ')';
19 19
 	}
Please login to merge, or discard this patch.
includes/Utils/IRegexAble.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare( strict_types=1 );
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace BotRiconferme\Utils;
4 4
 
@@ -9,5 +9,5 @@  discard block
 block discarded – undo
9 9
 	 * @param string $delimiter
10 10
 	 * @return string
11 11
 	 */
12
-	public function getRegex( string $delimiter ) : string;
12
+	public function getRegex ( string $delimiter ) : string;
13 13
 }
Please login to merge, or discard this patch.