Completed
Push — master ( 46ad02...e3f6c6 )
by Pavel
16:43
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   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
 		file_put_contents(
133 133
 			"{$this->api_dir}/{$file_name}.php",
134
-			$this->getHttpAuthSnippet() . $template
134
+			$this->getHttpAuthSnippet().$template
135 135
 		);
136 136
 	}
137 137
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
 		file_put_contents(
152 152
 			"{$this->api_dir}/index.php",
153
-			$this->getHttpAuthSnippet() . $template
153
+			$this->getHttpAuthSnippet().$template
154 154
 		);
155 155
 	}
156 156
 
@@ -184,10 +184,10 @@  discard block
 block discarded – undo
184 184
 
185 185
 		$template->addFilter(NULL, 'Ublaboo\ApiDocu\TemplateFilters::common');
186 186
 
187
-		$template->setFile(__DIR__ . '/templates/' . $which);
187
+		$template->setFile(__DIR__.'/templates/'.$which);
188 188
 
189 189
 		if ($template instanceof Nette\Application\UI\ITemplate) {
190
-			$template->base_dir = __DIR__ . '/templates';
190
+			$template->base_dir = __DIR__.'/templates';
191 191
 		}
192 192
 
193 193
 		$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.