Completed
Push — master ( a87ba4...b6d929 )
by Adam
01:01
created
src/IPub/ConfirmationDialog/DI/ConfirmationDialogExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 	 */
70 70
 	public static function register(Nette\Configurator $config, $extensionName = 'confirmationDialog')
71 71
 	{
72
-		$config->onCompile[] = function (Nette\Configurator $config, Nette\DI\Compiler $compiler) use ($extensionName) {
72
+		$config->onCompile[] = function(Nette\Configurator $config, Nette\DI\Compiler $compiler) use ($extensionName) {
73 73
 			$compiler->addExtension($extensionName, new ConfirmationDialogExtension());
74 74
 		};
75 75
 	}
Please login to merge, or discard this patch.
src/IPub/ConfirmationDialog/Components/BaseControl.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
  */
32 32
 abstract class BaseControl extends Application\UI\Control
33 33
 {
34
-	const TEMPLATE_LAYOUT		= 'layout';
35
-	const TEMPLATE_CONFIRMER	= 'template';
34
+	const TEMPLATE_LAYOUT = 'layout';
35
+	const TEMPLATE_CONFIRMER = 'template';
36 36
 
37 37
 	/**
38 38
 	 * @var null|string
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
 			$dir = dirname($this->getReflection()->getFileName());
81 81
 
82 82
 			// ...check if extension template is used
83
-			if (is_file($dir . DIRECTORY_SEPARATOR .'template'. DIRECTORY_SEPARATOR . $templateFile)) {
83
+			if (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile)) {
84 84
 				$templateFile = $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile;
85 85
 
86
-			} else if (is_file($dir . DIRECTORY_SEPARATOR .'template'. DIRECTORY_SEPARATOR . $templateFile .'.latte')) {
87
-				$templateFile = $dir . DIRECTORY_SEPARATOR .'template'. DIRECTORY_SEPARATOR . $templateFile .'.latte';
86
+			} else if (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile . '.latte')) {
87
+				$templateFile = $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile . '.latte';
88 88
 
89 89
 			} else {
90 90
 				// ...if not throw exception
Please login to merge, or discard this patch.
src/IPub/ConfirmationDialog/Components/Confirmer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
 			$template->name		= $this->name;
184 184
 			$template->class	= $this->cssClass;
185 185
 			$template->icon		= $this->getIcon();
186
-			$template->question	= $this->getQuestion();
186
+			$template->question = $this->getQuestion();
187 187
 			$template->heading	= $this->getHeading();
188 188
 			$template->useAjax	= $this->useAjax;
189 189
 
Please login to merge, or discard this patch.
src/IPub/ConfirmationDialog/Components/Control.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 	public function getTemplateFile()
114 114
 	{
115 115
 		// ...try to get default component layout file
116
-		return !empty($this->templateFile) ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR .'template'. DIRECTORY_SEPARATOR .'default.latte';
116
+		return !empty($this->templateFile) ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte';
117 117
 	}
118 118
 
119 119
 	/**
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 			throw new Exceptions\InvalidArgumentException("Confirmation control name contain invalid characters.");
153 153
 
154 154
 		// Check confirmer
155
-		} else if ((!$confirmer = $this->getComponent('confirmer-'. $name)) || !$confirmer instanceof Confirmer || $confirmer->isConfigured()) {
155
+		} else if ((!$confirmer = $this->getComponent('confirmer-' . $name)) || !$confirmer instanceof Confirmer || $confirmer->isConfigured()) {
156 156
 			throw new Exceptions\InvalidArgumentException("Confirmation control '$name' could not be created.");
157 157
 
158 158
 		} else {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 	 */
178 178
 	public function getConfirmer($name)
179 179
 	{
180
-		if ((!$confirmer = $this->getComponent('confirmer-'. $name)) || !$confirmer instanceof Confirmer || !$confirmer->isConfigured()) {
180
+		if ((!$confirmer = $this->getComponent('confirmer-' . $name)) || !$confirmer instanceof Confirmer || !$confirmer->isConfigured()) {
181 181
 			throw new Exceptions\InvalidArgumentException("Confirmation control '$name' does not exists.");
182 182
 		}
183 183
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 			throw new Exceptions\InvalidArgumentException('$name must be string.');
242 242
 		}
243 243
 
244
-		if ((!$this->confirmer = $this['confirmer-'. $name]) || !$this->confirmer->isConfigured()) {
244
+		if ((!$this->confirmer = $this['confirmer-' . $name]) || !$this->confirmer->isConfigured()) {
245 245
 			throw new Exceptions\InvalidStateException("Confirmer '$name' do not exist.");
246 246
 		}
247 247
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 		$name = Utils\Strings::substring($signal, 7);
268 268
 		$name{0} = strtolower($name{0});
269 269
 
270
-		if (!$this['confirmer-'. $name]->isConfigured()) {
270
+		if (!$this['confirmer-' . $name]->isConfigured()) {
271 271
 			throw new Exceptions\InvalidArgumentException('Invalid confirmation control.');
272 272
 		}
273 273
 
Please login to merge, or discard this patch.