Passed
Push — develop ( 0de06e...665f09 )
by Sebastian
02:06 queued 12s
created
example/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             margin: 0.5em 0;
38 38
         }
39 39
 
40
-        <?php echo "\n".$cssStyles; ?>
40
+        <?php echo "\n" . $cssStyles; ?>
41 41
     </style>
42 42
 </head>
43 43
 <body>
@@ -91,22 +91,22 @@  discard block
 block discarded – undo
91 91
 $style = StyleSheet::loadStyleSheet("ieee");
92 92
 $citeProc = new CiteProc($style, "en-US", [
93 93
     "bibliography" => [
94
-        "author" => function ($authorItem, $renderedText) {
94
+        "author" => function($authorItem, $renderedText) {
95 95
             if (isset($authorItem->id)) {
96
-                return '<a href="https://example.org/author/'.$authorItem->id.'">'.$renderedText.'</a>';
96
+                return '<a href="https://example.org/author/' . $authorItem->id . '">' . $renderedText . '</a>';
97 97
             }
98 98
             return $renderedText;
99 99
         },
100
-        "title" => function ($cslItem, $renderedText) {
101
-            return '<a href="https://example.org/publication/'.$cslItem->id.'">'.$renderedText.'</a>';
100
+        "title" => function($cslItem, $renderedText) {
101
+            return '<a href="https://example.org/publication/' . $cslItem->id . '">' . $renderedText . '</a>';
102 102
         },
103
-        "csl-entry" => function ($cslItem, $renderedText) {
104
-            return '<a id="'.$cslItem->id.'" href="#'.$cslItem->id.'"></a>'.$renderedText;
103
+        "csl-entry" => function($cslItem, $renderedText) {
104
+            return '<a id="' . $cslItem->id . '" href="#' . $cslItem->id . '"></a>' . $renderedText;
105 105
         }
106 106
     ],
107 107
     "citation" => [
108
-        "citation-number" => function ($cslItem, $renderedText) {
109
-            return '<a href="#'.$cslItem->id.'">'.$renderedText.'</a>';
108
+        "citation-number" => function($cslItem, $renderedText) {
109
+            return '<a href="#' . $cslItem->id . '">' . $renderedText . '</a>';
110 110
         }
111 111
     ]
112 112
 ]);
Please login to merge, or discard this patch.