Passed
Push — new-api ( f151f9...5a646f )
by Sebastian
04:44
created
src/Util/Renderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
                 'array or ArrayList expected.');
72 72
         }
73 73
         $this->setCitationData($data);
74
-        switch ((string)$mode) {
74
+        switch ((string) $mode) {
75 75
             case Config\RenderingMode::BIBLIOGRAPHY:
76 76
                 $this->setMode($mode);
77 77
                 // set CitationItems to Context
Please login to merge, or discard this patch.
src/Rendering/Date/Date.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@
 block discarded – undo
369 369
                     $this->dateParts->add(
370 370
                         "$form-$datePart",
371 371
                         DatePart::factory(
372
-                            new SimpleXMLElement('<date-part name="'.$datePart.'" form="'.$form.'" />')
372
+                            new SimpleXMLElement('<date-part name="' . $datePart . '" form="' . $form . '" />')
373 373
                         )
374 374
                     );
375 375
                 }
Please login to merge, or discard this patch.
src/Rendering/Label/Label.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         if ($this->variable === "editortranslator") {
119 119
             if (isset($data->editor) && isset($data->translator)) {
120 120
                 $plural = $this->getPlural($data, $plural, "editortranslator");
121
-                $term = $this->locale->filter('terms', "editortranslator", (string)$form);
121
+                $term = $this->locale->filter('terms', "editortranslator", (string) $form);
122 122
                 $pluralForm = $term->{$plural};
123 123
                 if (!empty($pluralForm)) {
124 124
                     $text = $pluralForm;
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             $citationItem = getCurrentById($this->citationItems, $id);
130 130
             if (!empty($citationItem->label)) {
131 131
                 $plural = $this->evaluateStringPluralism($citationItem->locator, $citationItem->label);
132
-                $term = $this->locale->filter('terms', $citationItem->label, (string)$form);
132
+                $term = $this->locale->filter('terms', $citationItem->label, (string) $form);
133 133
                 $pluralForm = $term->{$plural} ?? "";
134 134
                 if (!empty($citationItem->locator) && !empty($pluralForm)) {
135 135
                     $text = $pluralForm;
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             foreach ($variables as $variable) {
140 140
                 if (isset($data->{$variable})) {
141 141
                     $plural = $this->getPlural($data, $plural, $variable);
142
-                    $term = $this->locale->filter('terms', $variable, (string)$form);
142
+                    $term = $this->locale->filter('terms', $variable, (string) $form);
143 143
                     $pluralForm = $term->{$plural} ?? "";
144 144
                     if (!empty($data->{$variable}) && !empty($pluralForm)) {
145 145
                         $text = $pluralForm;
Please login to merge, or discard this patch.