Passed
Push — master ( 1f469e...de8bcc )
by Julius
02:00
created
src/Builder/PhpDomainBuilder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @return mixed
71 71
      */
72 72
     public static function getNamespace(Element $element) {
73
-        return substr($element->getFqsen(), 0, strlen($element->getFqsen())-strlen('\\'. $element->getName()));
73
+        return substr($element->getFqsen(), 0, strlen($element->getFqsen()) - strlen('\\' . $element->getName()));
74 74
         //return str_replace('\\' . $element->getName(), '', $element->getFqsen());
75 75
     }
76 76
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      * @param Property $property
165 165
      */
166 166
     private function addProperty(Property $property) {
167
-        $modifiers = $property->isStatic() ? '' : ' static' ;
167
+        $modifiers = $property->isStatic() ? '' : ' static';
168 168
         $this->beginPhpDomain('attr', $property->getVisibility() . $modifiers . ' ' . $property->getName());
169 169
         $docBlock = $property->getDocBlock();
170 170
         $this->addDocBlockDescription($property);
@@ -239,10 +239,10 @@  discard block
 block discarded – undo
239 239
                 $args .= self::escape($type) . '|';
240 240
             }
241 241
             $args = substr($args, 0, -1) . ' ';
242
-            if($argument->isVariadic()) {
242
+            if ($argument->isVariadic()) {
243 243
                 $args .= '...';
244 244
             }
245
-            if($argument->isByReference()) {
245
+            if ($argument->isByReference()) {
246 246
                 $args .= '&';
247 247
             }
248 248
             $args .= '$' . $argument->getName();
@@ -292,8 +292,8 @@  discard block
 block discarded – undo
292 292
      * @param $fqsen string
293 293
      * @return string
294 294
      */
295
-    public static function getLink($type, $fqsen, $description='') {
296
-        if($description !== '') {
295
+    public static function getLink($type, $fqsen, $description = '') {
296
+        if ($description !== '') {
297 297
             return ':php:' . $type . ':`' . RstBuilder::escape($description) . '<' . RstBuilder::escape(substr($fqsen, 1)) . '>`';
298 298
         }
299 299
         return ':php:' . $type . ':`' . RstBuilder::escape(substr($fqsen, 1)) . '`';
Please login to merge, or discard this patch.