Completed
Push — master ( c434f2...7ac5be )
by Sebastian
03:19
created
src/Seboettg/CiteProc/Rendering/Name/Name.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -395,7 +395,7 @@
 block discarded – undo
395 395
     }
396 396
 
397 397
     /**
398
-     * @param $name
398
+     * @param \stdClass $name
399 399
      * @return string
400 400
      */
401 401
     private function getNamesString($name, $rank)
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         foreach ($node->attributes() as $attribute) {
226 226
             switch ($attribute->getName()) {
227 227
                 case 'and':
228
-                    $and = (string)$attribute;
228
+                    $and = (string) $attribute;
229 229
                     if ("text" === $and) {
230 230
                         $this->and = CiteProc::getContext()->getLocale()->filter('terms', 'and')->single;
231 231
                     } elseif ('symbol' === $and) {
@@ -334,16 +334,16 @@  discard block
 block discarded – undo
334 334
                     if (count($resultNames) === 1) {
335 335
                         $text .= " $etAl";
336 336
                     } else {
337
-                        $text .=  $this->delimiter . $etAl;
337
+                        $text .= $this->delimiter . $etAl;
338 338
                     }
339 339
 
340 340
             }
341 341
         }
342 342
         if ($this->form == 'count') {
343 343
             if ($etAl === false) {
344
-                return (int)count($resultNames);
344
+                return (int) count($resultNames);
345 345
             } else {
346
-                return (int)(count($resultNames) - 1);
346
+                return (int) (count($resultNames) - 1);
347 347
             }
348 348
         }
349 349
         // strip out the last delimiter if not required
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
         if (count($this->nameParts) > 0) {
386 386
             /** @var NamePart $namePart */
387 387
             foreach ($this->nameParts as $namePart) {
388
-                $nameObj->{$namePart->getName()} =   $namePart->render($name);
388
+                $nameObj->{$namePart->getName()} = $namePart->render($name);
389 389
             }
390 390
         }
391 391
 
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
                                     $suffix);
437 437
                             //remove last comma when no suffix exist.
438 438
                             $text = trim($text);
439
-                            $text = substr($text, -1) === "," ? substr($text, 0, strlen($text)-1) : $text;
439
+                            $text = substr($text, -1) === "," ? substr($text, 0, strlen($text) - 1) : $text;
440 440
                         break;
441 441
                     default:
442 442
                         /*
Please login to merge, or discard this patch.