Passed
Branch php-cs-fixer (b9836a)
by Fabio
15:02
created
framework/Web/UI/ActiveControls/TActiveButtonColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 			$button->setCausesValidation($this->getCausesValidation());
50 50
 			$button->setValidationGroup($this->getValidationGroup());
51 51
 			if($this->getDataTextField() !== '' || ($buttonType === TButtonColumnType::ImageButton && $this->getDataImageUrlField() !== ''))
52
-				$button->attachEventHandler('OnDataBinding', [$this,'dataBindColumn']);
52
+				$button->attachEventHandler('OnDataBinding', [$this, 'dataBindColumn']);
53 53
 			$cell->getControls()->add($button);
54 54
 			$cell->registerObject('Button', $button);
55 55
 		}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveTableRow.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	 */
118 118
 	public function bubbleEvent($sender, $param)
119 119
 	{
120
-		if ($param instanceof TActiveTableCellEventParameter)
120
+		if($param instanceof TActiveTableCellEventParameter)
121 121
 		{
122 122
 			$this->raiseCallbackEvent($param);
123 123
 			return true;
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	{
148 148
 		parent::addAttributesToRender($writer);
149 149
 		$writer->addAttribute('id', $this->getClientID());
150
-		if ($this->hasEventHandler('OnRowSelected'))
150
+		if($this->hasEventHandler('OnRowSelected'))
151 151
 			$this->getActiveControl()->registerCallbackClientScript($this->getClientClassName(), $this->getPostBackOptions());
152 152
 	}
153 153
 
@@ -160,10 +160,10 @@  discard block
 block discarded – undo
160 160
 	 */
161 161
 	public function render($writer)
162 162
 	{
163
-		if ($this->getHasPreRendered())
163
+		if($this->getHasPreRendered())
164 164
 		{
165 165
 			parent::render($writer);
166
-			if ($this->getActiveControl()->canUpdateClientSide())
166
+			if($this->getActiveControl()->canUpdateClientSide())
167 167
 				$this->getPage()->getCallbackClient()->replaceContent($this, $writer);
168 168
 		}
169 169
 		else
@@ -171,9 +171,9 @@  discard block
 block discarded – undo
171 171
 			$this->getPage()->getAdapter()->registerControlToRender($this, $writer);
172 172
 			// If we update a TActiveTableRow on callback, we shouldn't update all childs,
173 173
 			// because the whole content will be replaced by the parent.
174
-			if ($this->getHasControls())
174
+			if($this->getHasControls())
175 175
 			{
176
-				foreach ($this->findControlsByType('Prado\Web\UI\ActiveControls\IActiveControl', false) as $control)
176
+				foreach($this->findControlsByType('Prado\Web\UI\ActiveControls\IActiveControl', false) as $control)
177 177
 					$control->getActiveControl()->setEnableUpdate(false);
178 178
 			}
179 179
 		}
@@ -199,8 +199,8 @@  discard block
 block discarded – undo
199 199
 	 */
200 200
 	public function getRowIndex()
201 201
 	{
202
-		foreach ($this->getTable()->getRows() as $key => $row)
203
-			if ($row == $this) return $key;
202
+		foreach($this->getTable()->getRows() as $key => $row)
203
+			if($row == $this) return $key;
204 204
 		throw new TConfigurationException('tactivetablerow_control_notincollection', get_class($this), $this->getUniqueID());
205 205
 	}
206 206
 
@@ -211,14 +211,14 @@  discard block
 block discarded – undo
211 211
 	 */
212 212
 	public function getTable()
213 213
 	{
214
-		if ($this->_table === null)
214
+		if($this->_table === null)
215 215
 		{
216 216
 			$table = $this->getParent();
217
-			while (!($table instanceof TTable) && $table !== null)
217
+			while(!($table instanceof TTable) && $table !== null)
218 218
 			{
219 219
 				$table = $table->getParent();
220 220
 			}
221
-			if ($table instanceof TTable) $this->_table = $table;
221
+			if($table instanceof TTable) $this->_table = $table;
222 222
 			else throw new TConfigurationException('tactivetablerow_control_outoftable', get_class($this), $this->getUniqueID());
223 223
 		}
224 224
 		return $this->_table;
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TBaseActiveCallbackControl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
 			{
115 115
 				$control = $this->getControl()->getSubProperty(substr($id, 0, $pos));
116 116
 				$newid = substr($id, $pos + 1);
117
-				if ($control !== null)
117
+				if($control !== null)
118 118
 					$control = $control->$newid;
119 119
 			}
120 120
 			else
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveTableCell.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	{
130 130
 		parent::addAttributesToRender($writer);
131 131
 		$writer->addAttribute('id', $this->getClientID());
132
-		if ($this->hasEventHandler('OnCellSelected'))
132
+		if($this->hasEventHandler('OnCellSelected'))
133 133
 			$this->getActiveControl()->registerCallbackClientScript($this->getClientClassName(), $this->getPostBackOptions());
134 134
 	}
135 135
 
@@ -142,19 +142,19 @@  discard block
 block discarded – undo
142 142
 	 */
143 143
 	public function render($writer)
144 144
 	{
145
-		if ($this->getHasPreRendered())
145
+		if($this->getHasPreRendered())
146 146
 		{
147 147
 			parent::render($writer);
148
-			if ($this->getActiveControl()->canUpdateClientSide())
148
+			if($this->getActiveControl()->canUpdateClientSide())
149 149
 				$this->getPage()->getCallbackClient()->replaceContent($this, $writer);
150 150
 		}
151 151
 		else {
152 152
 			$this->getPage()->getAdapter()->registerControlToRender($this, $writer);
153 153
 			// If we update a TActiveTableCell on callback, we shouldn't update all childs,
154 154
 			// because the whole content will be replaced by the parent.
155
-			if ($this->getHasControls())
155
+			if($this->getHasControls())
156 156
 			{
157
-				foreach ($this->findControlsByType('Prado\Web\UI\ActiveControls\IActiveControl', false) as $control)
157
+				foreach($this->findControlsByType('Prado\Web\UI\ActiveControls\IActiveControl', false) as $control)
158 158
 					$control->getActiveControl()->setEnableUpdate(false);
159 159
 			}
160 160
 		}
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
 	 */
181 181
 	public function getCellIndex()
182 182
 	{
183
-		foreach ($this->getRow()->getCells() as $key => $row)
184
-			if ($row == $this) return $key;
183
+		foreach($this->getRow()->getCells() as $key => $row)
184
+			if($row == $this) return $key;
185 185
 		throw new TConfigurationException('tactivetablecell_control_notincollection', get_class($this), $this->getUniqueID());
186 186
 	}
187 187
 
@@ -192,14 +192,14 @@  discard block
 block discarded – undo
192 192
 	 */
193 193
 	public function getRow()
194 194
 	{
195
-		if ($this->_row === null)
195
+		if($this->_row === null)
196 196
 		{
197 197
 			$row = $this->getParent();
198
-			while (!($row instanceof TTableRow) && $row !== null)
198
+			while(!($row instanceof TTableRow) && $row !== null)
199 199
 			{
200 200
 				$row = $row->getParent();
201 201
 			}
202
-			if ($row instanceof TTableRow) $this->_row = $row;
202
+			if($row instanceof TTableRow) $this->_row = $row;
203 203
 			else throw new TConfigurationException('tactivetablecell_control_outoftable', get_class($this), $this->getUniqueID());
204 204
 		}
205 205
 		return $this->_row;
Please login to merge, or discard this patch.
framework/Web/UI/TCompositeLiteral.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
 	public function evaluateDynamicContent()
81 81
 	{
82
-		$context = $this->_container === null?$this:$this->_container;
82
+		$context = $this->_container === null ? $this : $this->_container;
83 83
 		foreach($this->_expressions as $id => $expression)
84 84
 			$this->_items[$id] = $context->evaluateExpression($expression);
85 85
 		foreach($this->_statements as $id => $statement)
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	 */
93 93
 	public function dataBind()
94 94
 	{
95
-		$context = $this->_container === null?$this:$this->_container;
95
+		$context = $this->_container === null ? $this : $this->_container;
96 96
 		foreach($this->_bindings as $id => $binding)
97 97
 			$this->_items[$id] = $context->evaluateExpression($binding);
98 98
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiEventParameter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 	{
55 55
 		$control = null;
56 56
 		$service = Prado::getApplication()->getService();
57
-		if ($service instanceof TPageService)
57
+		if($service instanceof TPageService)
58 58
 		{
59 59
 			// Find the control
60 60
 			// Warning, this will not work if you have a '_' in your control Id !
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TWizardNavigationButtonStyle.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 */
91 91
 	public function getImageUrl()
92 92
 	{
93
-		return $this->_imageUrl === null?'':$this->_imageUrl;
93
+		return $this->_imageUrl === null ? '' : $this->_imageUrl;
94 94
 	}
95 95
 
96 96
 	/**
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	 */
107 107
 	public function getButtonText()
108 108
 	{
109
-		return $this->_buttonText === null?'':$this->_buttonText;
109
+		return $this->_buttonText === null ? '' : $this->_buttonText;
110 110
 	}
111 111
 
112 112
 	/**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 	 */
123 123
 	public function getButtonType()
124 124
 	{
125
-		return $this->_buttonType === null? TWizardNavigationButtonType::Button :$this->_buttonType;
125
+		return $this->_buttonType === null ? TWizardNavigationButtonType::Button : $this->_buttonType;
126 126
 	}
127 127
 
128 128
 	/**
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TInlineFrame.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -247,16 +247,16 @@
 block discarded – undo
247 247
 		elseif($scrollBars === TInlineFrameScrollBars::Both)
248 248
 			$writer->addAttribute('scrolling', 'yes');
249 249
 
250
-		if (!$this->getShowBorder())
250
+		if(!$this->getShowBorder())
251 251
 			$writer->addAttribute('frameborder', '0');
252 252
 
253 253
 		if(($longdesc = $this->getDescriptionUrl()) !== '')
254 254
 			$writer->addAttribute('longdesc', $longdesc);
255 255
 		
256
-		if (($width = $this->getWidth()) !== -1)
256
+		if(($width = $this->getWidth()) !== -1)
257 257
 		  $writer->addAttribute('width', $width);
258 258
 		
259
-		if (($height = $this->getHeight()) !== -1)
259
+		if(($height = $this->getHeight()) !== -1)
260 260
 		  $writer->addAttribute('height', $height);
261 261
 
262 262
 		if(($marginheight = $this->getMarginHeight()) !== -1)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TTemplateColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
 					$control->setItemType($itemType);
215 215
 				}
216 216
 				if($control instanceof \Prado\IDataRenderer)
217
-					$control->attachEventHandler('OnDataBinding', [$this,'dataBindColumn']);
217
+					$control->attachEventHandler('OnDataBinding', [$this, 'dataBindColumn']);
218 218
 			}
219 219
 			elseif($template !== null)
220 220
 				$template->instantiateIn($cell);
Please login to merge, or discard this patch.