Completed
Pull Request — master (#30)
by John
02:51
created
src/APIRequest/URLParser/RegexURLParser/RegexURLParser.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
  * Class RegexURLParser
16 16
  * @package LunixREST\APIRequest\URLParser\RegexURLParser
17 17
  */
18
-class RegexURLParser implements URLParser
19
-{
18
+class RegexURLParser implements URLParser {
20 19
     /**
21 20
      * @var string
22 21
      */
@@ -32,8 +31,7 @@  discard block
 block discarded – undo
32 31
      * @param MIMEProvider|null $MIMEProvider
33 32
      * @throws InvalidRegexPatternException
34 33
      */
35
-    public function __construct(string $pattern, ?MIMEProvider $MIMEProvider = null)
36
-    {
34
+    public function __construct(string $pattern, ?MIMEProvider $MIMEProvider = null) {
37 35
         $this->pattern = $pattern;
38 36
 
39 37
         if(@preg_match($pattern, null) === false) {
Please login to merge, or discard this patch.
URLParser/RegexURLParser/Exceptions/InvalidRegexPatternException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
  * Class InvalidRequestURLException
7 7
  * @package LunixREST\APIRequest\URLParser\RegexURLParser\Exceptions
8 8
  */
9
-class InvalidRegexPatternException extends \Exception
10
-{
9
+class InvalidRegexPatternException extends \Exception {
11 10
 
12 11
 }
Please login to merge, or discard this patch.
src/APIRequest/URLParser/Exceptions/UnableToProvideMIMEException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace LunixREST\APIRequest\URLParser\Exceptions;
3 3
 
4
-class UnableToProvideMIMEException extends \Exception
5
-{
4
+class UnableToProvideMIMEException extends \Exception {
6 5
 
7 6
 }
Please login to merge, or discard this patch.
src/APIRequest/URLParser/MIMEProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
  * Interface MIMEProvider
9 9
  * @package LunixREST\APIRequest\URLParser
10 10
  */
11
-interface MIMEProvider
12
-{
11
+interface MIMEProvider {
13 12
     /**
14 13
      * @param string $fileExtension
15 14
      * @return string
Please login to merge, or discard this patch.