Completed
Push — master ( c69c7c...bf0357 )
by Adam
09:02
created
src/IPub/FormSlug/Utils/Html.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 		}
89 89
 
90 90
 		if ($indent !== NULL) {
91
-			return "\n" . str_repeat("\t", $indent - 1) . $s . "\n" . str_repeat("\t", max(0, $indent - 2));
91
+			return "\n".str_repeat("\t", $indent - 1).$s."\n".str_repeat("\t", max(0, $indent - 2));
92 92
 		}
93 93
 
94 94
 		return $s;
Please login to merge, or discard this patch.
src/IPub/FormSlug/Controls/Slug.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,9 @@
 block discarded – undo
14 14
 
15 15
 namespace IPub\FormSlug\Controls;
16 16
 
17
-use Nette;
18 17
 use Nette\Application\UI;
19 18
 use Nette\Bridges;
20 19
 use Nette\Forms;
21
-
22 20
 use IPub;
23 21
 use IPub\FormSlug;
24 22
 use IPub\FormSlug\Exceptions;
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
 			'toggle'  => $this->toggleBox,
132 132
 			'onetime' => $this->onetimeAutoUpdate,
133 133
 			'fields'  => (array_reduce($this->fields, function (array $result, Forms\Controls\BaseControl $row) {
134
-				$result[] = '#' . $row->getHtmlId();
134
+				$result[] = '#'.$row->getHtmlId();
135 135
 
136 136
 				return $result;
137 137
 			}, [])),
@@ -168,8 +168,8 @@  discard block
 block discarded – undo
168 168
 		// Check if template file exists...
169 169
 		if (!is_file($templateFile)) {
170 170
 			// ...check if extension template is used
171
-			if (is_file(__DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile)) {
172
-				$templateFile = __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile;
171
+			if (is_file(__DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile)) {
172
+				$templateFile = __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile;
173 173
 
174 174
 			} else {
175 175
 				// ...if not throw exception
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 */
186 186
 	private function getTemplateFile() : string
187 187
 	{
188
-		return $this->templateFile !== NULL ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte';
188
+		return $this->templateFile !== NULL ? $this->templateFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte';
189 189
 	}
190 190
 
191 191
 	/**
Please login to merge, or discard this patch.