Completed
Push — master ( 0bfa91...708b33 )
by Adam
09:52
created
src/IPub/Widgets/Exceptions/UnexpectedValueException.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\Widgets\Exceptions;
16 16
 
17
-class UnexpectedValueException extends \UnexpectedValueException implements IException {}
18 17
\ No newline at end of file
18
+class UnexpectedValueException extends \UnexpectedValueException implements IException
19
+{
20
+}
19 21
\ No newline at end of file
Please login to merge, or discard this patch.
src/IPub/Widgets/Exceptions/WidgetNotRegisteredException.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\Widgets\Exceptions;
16 16
 
17
-class WidgetNotRegisteredException extends InvalidStateException {}
17
+class WidgetNotRegisteredException extends InvalidStateException
18
+{
19
+}
Please login to merge, or discard this patch.
src/IPub/Widgets/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\Widgets\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/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/DI/WidgetsExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
 			// Register widget to manager and group
106 106
 			foreach ($groups as $group) {
107
-				$service->addSetup('register', ['@' . $serviceName, $serviceName, $group]);
107
+				$service->addSetup('register', ['@'.$serviceName, $serviceName, $group]);
108 108
 			}
109 109
 		}
110 110
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 		// Get all registered widgets decorators
115 115
 		foreach (array_keys($builder->findByTag(self::TAG_WIDGET_DECORATOR)) as $serviceName) {
116 116
 			// Register decorator to manager
117
-			$service->addSetup('register', ['@' . $serviceName, $serviceName]);
117
+			$service->addSetup('register', ['@'.$serviceName, $serviceName]);
118 118
 		}
119 119
 
120 120
 		// Get widgets control provider
Please login to merge, or discard this patch.