Completed
Pull Request — master (#1)
by
unknown
03:01
created
src/IPub/VisualPaginator/Components/Control.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use Nette\Application;
19 19
 use Nette\Localization;
20 20
 use Nette\Utils;
21
-
22 21
 use IPub;
23 22
 use IPub\VisualPaginator;
24 23
 use IPub\VisualPaginator\Exceptions;
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
 		// Check if control has template
101 101
 		if ($this->template instanceof Nette\Bridges\ApplicationLatte\Template) {
102 102
 			// Assign vars to template
103
-			$this->template->steps		= $this->getSteps();
104
-			$this->template->paginator	= $this->getPaginator();
103
+			$this->template->steps = $this->getSteps();
104
+			$this->template->paginator = $this->getPaginator();
105 105
 			$this->template->handle		= 'showPage!';
106 106
 			$this->template->useAjax	= $this->useAjax;
107 107
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 			// If template was not defined before...
114 114
 			if ($this->template->getFile() === NULL) {
115 115
 				// ...try to get base component template file
116
-				$templateFile = !empty($this->templateFile) ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR .'template'. DIRECTORY_SEPARATOR .'default.latte';
116
+				$templateFile = !empty($this->templateFile) ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte';
117 117
 				$this->template->setFile($templateFile);
118 118
 			}
119 119
 
@@ -172,12 +172,12 @@  discard block
 block discarded – undo
172 172
 		// Check if template file exists...
173 173
 		if (!is_file($templateFile)) {
174 174
 			// ...check if extension template is used
175
-			if (is_file(__DIR__ . DIRECTORY_SEPARATOR .'template'. DIRECTORY_SEPARATOR . $templateFile)) {
176
-				$templateFile = __DIR__ . DIRECTORY_SEPARATOR .'template'. DIRECTORY_SEPARATOR . $templateFile;
175
+			if (is_file(__DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile)) {
176
+				$templateFile = __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile;
177 177
 
178 178
 			} else {
179 179
 				// ...if not throw exception
180
-				throw new Exceptions\FileNotFoundException('Template file "'. $templateFile .'" was not found.');
180
+				throw new Exceptions\FileNotFoundException('Template file "' . $templateFile . '" was not found.');
181 181
 			}
182 182
 		}
183 183
 
Please login to merge, or discard this patch.
src/IPub/VisualPaginator/DI/VisualPaginatorExtension.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 
17 17
 use Nette;
18 18
 use Nette\DI;
19
-use Nette\PhpGenerator as Code;
20 19
 
21 20
 class VisualPaginatorExtension extends DI\CompilerExtension
22 21
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	 */
52 52
 	public static function register(Nette\Configurator $config, $extensionName = 'visualPaginator')
53 53
 	{
54
-		$config->onCompile[] = function (Nette\Configurator $config, Nette\DI\Compiler $compiler) use ($extensionName) {
54
+		$config->onCompile[] = function(Nette\Configurator $config, Nette\DI\Compiler $compiler) use ($extensionName) {
55 55
 			$compiler->addExtension($extensionName, new VisualPaginatorExtension());
56 56
 		};
57 57
 	}
Please login to merge, or discard this patch.
src/IPub/VisualPaginator/Components/IControl.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * IControl.php
4
- *
5
- * @copyright	More in license.md
6
- * @license		http://www.ipublikuj.eu
7
- * @author		Adam Kadlec http://www.ipublikuj.eu
8
- * @package		iPublikuj:VisualPaginator!
9
- * @subpackage	Components
10
- * @since		5.0
11
- *
12
- * @date		18.06.14
13
- */
3
+	 * IControl.php
4
+	 *
5
+	 * @copyright	More in license.md
6
+	 * @license		http://www.ipublikuj.eu
7
+	 * @author		Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package		iPublikuj:VisualPaginator!
9
+	 * @subpackage	Components
10
+	 * @since		5.0
11
+	 *
12
+	 * @date		18.06.14
13
+	 */
14 14
 
15 15
 namespace IPub\VisualPaginator\Components;
16 16
 
Please login to merge, or discard this patch.
src/IPub/VisualPaginator/Exceptions/FileNotFoundException.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,4 +14,6 @@
 block discarded – undo
14 14
 
15 15
 namespace IPub\VisualPaginator\Exceptions;
16 16
 
17
-class FileNotFoundException extends IOException implements IException {}
18 17
\ No newline at end of file
18
+class FileNotFoundException extends IOException implements IException
19
+{
20
+}
19 21
\ No newline at end of file
Please login to merge, or discard this patch.
src/IPub/VisualPaginator/Exceptions/IException.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,4 +14,6 @@
 block discarded – undo
14 14
 
15 15
 namespace IPub\VisualPaginator\Exceptions;
16 16
 
17
-interface IException {}
18 17
\ No newline at end of file
18
+interface IException
19
+{
20
+}
19 21
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * IException.php
4
- *
5
- * @copyright	More in license.md
6
- * @license		http://www.ipublikuj.eu
7
- * @author		Adam Kadlec http://www.ipublikuj.eu
8
- * @package		iPublikuj:VisualPaginator!
9
- * @subpackage	Exceptions
10
- * @since		5.0
11
- *
12
- * @date		30.01.15
13
- */
3
+	 * IException.php
4
+	 *
5
+	 * @copyright	More in license.md
6
+	 * @license		http://www.ipublikuj.eu
7
+	 * @author		Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package		iPublikuj:VisualPaginator!
9
+	 * @subpackage	Exceptions
10
+	 * @since		5.0
11
+	 *
12
+	 * @date		30.01.15
13
+	 */
14 14
 
15 15
 namespace IPub\VisualPaginator\Exceptions;
16 16
 
Please login to merge, or discard this patch.
src/IPub/VisualPaginator/Exceptions/IOException.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,4 +14,6 @@
 block discarded – undo
14 14
 
15 15
 namespace IPub\VisualPaginator\Exceptions;
16 16
 
17
-class IOException extends \RuntimeException implements IException {}
18 17
\ No newline at end of file
18
+class IOException extends \RuntimeException implements IException
19
+{
20
+}
19 21
\ No newline at end of file
Please login to merge, or discard this patch.
src/IPub/VisualPaginator/TVisualPaginator.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,8 @@
 block discarded – undo
30 30
 	/**
31 31
 	 * @param Components\IControl $visualPaginatorFactory
32 32
 	 */
33
-	public function injectVisualPaginator(Components\IControl $visualPaginatorFactory) {
33
+	public function injectVisualPaginator(Components\IControl $visualPaginatorFactory)
34
+	{
34 35
 		$this->visualPaginatorFactory = $visualPaginatorFactory;
35 36
 	}
36 37
 }
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TVisualPaginator.php
4
- *
5
- * @copyright	More in license.md
6
- * @license		http://www.ipublikuj.eu
7
- * @author		Adam Kadlec http://www.ipublikuj.eu
8
- * @package		iPublikuj:VisualPaginator!
9
- * @subpackage	common
10
- * @since		5.0
11
- *
12
- * @date		01.02.15
13
- */
3
+	 * TVisualPaginator.php
4
+	 *
5
+	 * @copyright	More in license.md
6
+	 * @license		http://www.ipublikuj.eu
7
+	 * @author		Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package		iPublikuj:VisualPaginator!
9
+	 * @subpackage	common
10
+	 * @since		5.0
11
+	 *
12
+	 * @date		01.02.15
13
+	 */
14 14
 
15 15
 namespace IPub\VisualPaginator;
16 16
 
Please login to merge, or discard this patch.