Test Setup Failed
Push — master ( e52644...983e55 )
by Adam
08:37
created
src/IPub/Widgets/Components/Control.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 				$dir = dirname($this->getReflection()->getFileName());
167 167
 
168 168
 				// ...try to get base component template file
169
-				$templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte';
169
+				$templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte';
170 170
 				$this->template->setFile($templateFile);
171 171
 			}
172 172
 
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 		$widget = $factory->create($data);
309 309
 
310 310
 		// Add widget component to container/position
311
-		$positionContainer->addComponent($widget, ($widget->getName() . spl_object_hash($data)));
311
+		$positionContainer->addComponent($widget, ($widget->getName().spl_object_hash($data)));
312 312
 
313 313
 		return $widget;
314 314
 	}
Please login to merge, or discard this patch.
src/IPub/Widgets/Widgets/Widget.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 				->render();
126 126
 
127 127
 			// Modify widget name
128
-			$name = $title . mb_substr($name, $pos);
128
+			$name = $title.mb_substr($name, $pos);
129 129
 		}
130 130
 
131 131
 		// If widget name has subtitle...
@@ -142,19 +142,19 @@  discard block
 block discarded – undo
142 142
 				->render();
143 143
 
144 144
 			// Split name to title & subtitle
145
-			$name = $title . $subtitle;
145
+			$name = $title.$subtitle;
146 146
 		}
147 147
 
148 148
 		// Set badge if exists
149 149
 		if ($badge = $this->data->getBadge()) {
150 150
 			$badge = Utils\Html::el('i')
151
-				->addAttributes(['class' => 'badge badge-' . $badge]);
151
+				->addAttributes(['class' => 'badge badge-'.$badge]);
152 152
 		}
153 153
 
154 154
 		// Set icon if exists
155 155
 		if ($icon = $this->data->getIcon()) {
156 156
 			$icon = Utils\Html::el('i')
157
-				->addAttributes(['class' => 'ipub-icon ipub-icon-' . $icon]);
157
+				->addAttributes(['class' => 'ipub-icon ipub-icon-'.$icon]);
158 158
 		}
159 159
 
160 160
 		// Assign basic widget data to template
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 			$dir = dirname($this->getReflection()->getFileName());
184 184
 
185 185
 			// ...try to get base component template file
186
-			$templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte';
186
+			$templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte';
187 187
 			$this->template->setFile($templateFile);
188 188
 		}
189 189
 	}
Please login to merge, or discard this patch.