Completed
Branch master (fbe87b)
by
unknown
01:57
created
src/Schema/BaseSchema.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -78,16 +78,16 @@  discard block
 block discarded – undo
78 78
     {
79 79
         assert(
80 80
             is_string($this->getResourceType()) === true && empty($this->getResourceType()) === false,
81
-            'Resource type is not set for Schema \'' . static::class . '\'.'
81
+            'Resource type is not set for Schema \''.static::class.'\'.'
82 82
         );
83 83
 
84 84
         if ($this->selfSubUrl === null) {
85
-            $this->selfSubUrl = '/' . $this->getResourceType();
85
+            $this->selfSubUrl = '/'.$this->getResourceType();
86 86
         } else {
87 87
             assert(
88 88
                 is_string($this->selfSubUrl) === true && empty($this->selfSubUrl) === false &&
89 89
                 $this->selfSubUrl[0] === '/' && $this->selfSubUrl[strlen($this->selfSubUrl) - 1] != '/',
90
-                '\'Self\' sub-url set incorrectly for Schema \'' . static::class . '\'.'
90
+                '\'Self\' sub-url set incorrectly for Schema \''.static::class.'\'.'
91 91
             );
92 92
         }
93 93
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function getSelfSubUrl($resource = null): string
109 109
     {
110
-        return $resource === null ? $this->selfSubUrl : $this->selfSubUrl . '/' . $this->getId($resource);
110
+        return $resource === null ? $this->selfSubUrl : $this->selfSubUrl.'/'.$this->getId($resource);
111 111
     }
112 112
 
113 113
     /**
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
      */
273 273
     protected function getRelationshipSelfUrl($resource, $name)
274 274
     {
275
-        $url = $this->getSelfSubUrl($resource) . '/' . DocumentInterface::KEYWORD_RELATIONSHIPS . '/' . $name;
275
+        $url = $this->getSelfSubUrl($resource).'/'.DocumentInterface::KEYWORD_RELATIONSHIPS.'/'.$name;
276 276
 
277 277
         return $url;
278 278
     }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      */
286 286
     protected function getRelationshipRelatedUrl($resource, $name)
287 287
     {
288
-        $url = $this->getSelfSubUrl($resource) . '/' . $name;
288
+        $url = $this->getSelfSubUrl($resource).'/'.$name;
289 289
 
290 290
         return $url;
291 291
     }
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
             array_key_exists(self::DATA, $desc) === true ||
340 340
             array_key_exists(self::META, $desc) === true ||
341 341
             array_key_exists(self::LINKS, $desc) === true,
342
-            'A `' . $this->getResourceType() . ".$name` relationship must contain at least data, links or meta."
342
+            'A `'.$this->getResourceType().".$name` relationship must contain at least data, links or meta."
343 343
         );
344 344
 
345 345
         $data          = $desc[self::DATA] ?? null;
Please login to merge, or discard this patch.