Completed
Push — master ( 0636af...e088fc )
by Adam
07:34
created
src/IPub/Widgets/Components/Control.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 				$dir = dirname($this->getReflection()->getFileName());
160 160
 
161 161
 				// ...try to get base component template file
162
-				$templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte';
162
+				$templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte';
163 163
 				$this->template->setFile($templateFile);
164 164
 			}
165 165
 
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 		$widget = $factory->create($data);
288 288
 
289 289
 		// Add widget component to container/position
290
-		$positionContainer->addComponent($widget, ($widget->getName() . spl_object_hash($data)));
290
+		$positionContainer->addComponent($widget, ($widget->getName().spl_object_hash($data)));
291 291
 	}
292 292
 
293 293
 	/**
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
 use Nette\ComponentModel;
22 22
 use Nette\Localization;
23 23
 use Nette\Utils;
24
-
25 24
 use IPub;
26 25
 use IPub\Widgets\Decorators;
27 26
 use IPub\Widgets\Entities;
Please login to merge, or discard this patch.
src/IPub/Widgets/Application/UI/BaseControl.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,11 +66,11 @@
 block discarded – undo
66 66
 			$dir = dirname($this->getReflection()->getFileName());
67 67
 
68 68
 			// ...check if extension template is used
69
-			if (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile)) {
70
-				$templateFile = $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile;
69
+			if (is_file($dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile)) {
70
+				$templateFile = $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile;
71 71
 
72
-			} else if (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile . '.latte')) {
73
-				$templateFile = $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile . '.latte';
72
+			} else if (is_file($dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile.'.latte')) {
73
+				$templateFile = $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile.'.latte';
74 74
 
75 75
 			} else {
76 76
 				// ...if not throw exception
Please login to merge, or discard this patch.
src/IPub/Widgets/Decorators/Decorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 				$dir = dirname($this->getReflection()->getFileName());
57 57
 
58 58
 				// ...try to get base component template file
59
-				$templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte';
59
+				$templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte';
60 60
 				$this->template->setFile($templateFile);
61 61
 			}
62 62
 
Please login to merge, or discard this patch.
src/IPub/Widgets/Widgets/Widget.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,8 @@
 block discarded – undo
19 19
 use Nette\ComponentModel;
20 20
 use Nette\Localization;
21 21
 use Nette\Utils;
22
-
23 22
 use IPub;
24 23
 use IPub\Widgets;
25
-use IPub\Widgets\Decorators;
26 24
 use IPub\Widgets\Entities;
27 25
 use IPub\Widgets\Exceptions;
28 26
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 				->render();
125 125
 
126 126
 			// Modify widget name
127
-			$name = $name . mb_substr($name, $pos);
127
+			$name = $name.mb_substr($name, $pos);
128 128
 		}
129 129
 
130 130
 		// If widget name has subtitle...
@@ -141,20 +141,20 @@  discard block
 block discarded – undo
141 141
 				->render();
142 142
 
143 143
 			// Split name to title & subtitle
144
-			$name = $title . $subtitle;
144
+			$name = $title.$subtitle;
145 145
 		}
146 146
 
147 147
 		// Set badge if exists
148 148
 		if ($badge = $this->data->getBadge()) {
149 149
 			$badge = Utils\Html::el('span')
150
-				->addAttributes(['class' => 'badge badge-' . $badge])
150
+				->addAttributes(['class' => 'badge badge-'.$badge])
151 151
 				->render();
152 152
 		}
153 153
 
154 154
 		// Set icon if exists
155 155
 		if ($icon = $this->data->getIcon()) {
156 156
 			$icon = Utils\Html::el('span')
157
-				->addAttributes(['class' => 'icon icon-' . $icon])
157
+				->addAttributes(['class' => 'icon icon-'.$icon])
158 158
 				->render();
159 159
 		}
160 160
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 			$dir = dirname($this->getReflection()->getFileName());
179 179
 
180 180
 			// ...try to get base component template file
181
-			$templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte';
181
+			$templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte';
182 182
 			$this->template->setFile($templateFile);
183 183
 		}
184 184
 	}
Please login to merge, or discard this patch.
src/IPub/Widgets/DI/WidgetsExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
 			// Register widget to manager and group
134 134
 			foreach ($groups as $group) {
135
-				$widgetsManager->addSetup('register', ['@' . $serviceName, $serviceName, $group]);
135
+				$widgetsManager->addSetup('register', ['@'.$serviceName, $serviceName, $group]);
136 136
 			}
137 137
 		}
138 138
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 		// Get all registered widgets decorators
143 143
 		foreach (array_keys($builder->findByTag(self::TAG_WIDGET_DECORATOR)) as $serviceName) {
144 144
 			// Register decorator to manager
145
-			$decoratorsManager->addSetup('register', ['@' . $serviceName, $serviceName]);
145
+			$decoratorsManager->addSetup('register', ['@'.$serviceName, $serviceName]);
146 146
 		}
147 147
 
148 148
 		// Get widgets filters manager
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 			$priority = 999;
154 154
 
155 155
 			// Register filter to manager
156
-			$filtersManager->addSetup('register', ['@' . $serviceName, $serviceName, $priority]);
156
+			$filtersManager->addSetup('register', ['@'.$serviceName, $serviceName, $priority]);
157 157
 		}
158 158
 
159 159
 		// Get widgets control provider
Please login to merge, or discard this patch.