Completed
Push — master ( a64231...f74f4e )
by Pavel
02:39
created
src/Generator.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -179,6 +179,7 @@
 block discarded – undo
179 179
 
180 180
 	/**
181 181
 	 * @param  string
182
+	 * @param string $which
182 183
 	 * @return Nette\Application\UI\ITemplate
183 184
 	 */
184 185
 	public function createTemplate($which)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,10 +167,10 @@
 block discarded – undo
167 167
 	public function createTemplate($which)
168 168
 	{
169 169
 		$template = $this->templateFactory->createTemplate();
170
-		$template->setFile(__DIR__ . '/templates/' . $which);
170
+		$template->setFile(__DIR__.'/templates/'.$which);
171 171
 
172 172
 		if ($template instanceof Nette\Application\UI\ITemplate) {
173
-			$template->base_dir = __DIR__ . '/templates';
173
+			$template->base_dir = __DIR__.'/templates';
174 174
 		}
175 175
 
176 176
 		$template->addFilter('routeMaskStyles', function($mask) {
Please login to merge, or discard this patch.
src/TemplateFilters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 		$text = str_replace(["\n", "\n\r", "\r\n", "\r"], '', $text);
27 27
 
28 28
 		$text = preg_replace_callback('/<json><br \/>(.*?)<\/json>/s', function($item) {
29
-			$s = '<br><pre class="apiDocu-json">' . str_replace("<br>", '', end($item)) . '</pre>';
29
+			$s = '<br><pre class="apiDocu-json">'.str_replace("<br>", '', end($item)).'</pre>';
30 30
 			$s = preg_replace('/(\s)"([^"]+)"/', '$1<span class="apiDocu-string">"$2"</span>', $s);
31 31
 			$s = preg_replace('/\/\/(.*?)<br \/>/', '<span class="apiDocu-comment">//$1</span><br>', $s);
32 32
 
Please login to merge, or discard this patch.