Completed
Push — master ( 2d02b0...698bc6 )
by Thibaud
19:46 queued 17:30
created
src/ResourceUri.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     private static function getNonEmptyParts($uri)
24 24
     {
25
-        $nonEmptyStringFilter = function ($value) {
25
+        $nonEmptyStringFilter = function($value) {
26 26
             return $value != '';
27 27
         };
28 28
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public static function fromProtocolAndResource($protocol, $resource)
49 49
     {
50
-        return new self($protocol . self::PROTOCOL_SEPARATOR . $resource);
50
+        return new self($protocol.self::PROTOCOL_SEPARATOR.$resource);
51 51
     }
52 52
 
53 53
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         $parts = self::getNonEmptyParts($uri);
64 64
 
65
-        if (! self::validateResourceParts($parts)) {
65
+        if (!self::validateResourceParts($parts)) {
66 66
             return false;
67 67
         }
68 68
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     public static function fromString($uri)
77 77
     {
78 78
         if (strpos($uri, self::PROTOCOL_SEPARATOR) === false) {
79
-            $uri = self::DEFAULT_PROTOCOL . self::PROTOCOL_SEPARATOR . $uri;
79
+            $uri = self::DEFAULT_PROTOCOL.self::PROTOCOL_SEPARATOR.$uri;
80 80
         }
81 81
 
82 82
         return new self($uri);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function __construct($uri)
116 116
     {
117
-        if (! self::isValidUri($uri)) {
117
+        if (!self::isValidUri($uri)) {
118 118
             throw new \InvalidArgumentException(sprintf(
119 119
                 'Malformed URI: required format is "protocol://resource", got "%s"',
120 120
                 $uri
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
     public function child($childRelativePath)
184 184
     {
185
-        return self::fromProtocolAndResource($this->protocol, $this->resource . '/' . ltrim($childRelativePath, '/'));
185
+        return self::fromProtocolAndResource($this->protocol, $this->resource.'/'.ltrim($childRelativePath, '/'));
186 186
     }
187 187
 
188 188
     /**
Please login to merge, or discard this patch.