Completed
Push — master ( 8eaf12...df89b6 )
by Adam
02:13
created
src/IPub/FormSlug/Controls/Slug.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @date           08.01.15
13 13
  */
14 14
 
15
-declare(strict_types=1);
15
+declare(strict_types = 1);
16 16
 
17 17
 namespace IPub\FormSlug\Controls;
18 18
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 			'onetime'   => $this->onetimeAutoUpdate,
181 181
 			'forceEdit' => $this->forceEditUpdate,
182 182
 			'fields'    => (array_reduce($this->fields, function (array $result, Forms\Controls\BaseControl $row) {
183
-				$result[] = '#' . $row->getHtmlId();
183
+				$result[] = '#'.$row->getHtmlId();
184 184
 
185 185
 				return $result;
186 186
 			}, [])),
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
 		// Check if template file exists...
205 205
 		if (!is_file($templateFile)) {
206 206
 			// ...check if extension template is used
207
-			if (is_file(__DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile)) {
208
-				$templateFile = __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile;
207
+			if (is_file(__DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile)) {
208
+				$templateFile = __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile;
209 209
 
210 210
 			} else {
211 211
 				// ...if not throw exception
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 	 */
222 222
 	private function getTemplateFile() : string
223 223
 	{
224
-		return $this->templateFile !== NULL ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte';
224
+		return $this->templateFile !== NULL ? $this->templateFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte';
225 225
 	}
226 226
 
227 227
 	/**
Please login to merge, or discard this patch.