Passed
Branch php-cs-fixer (b9836a)
by Fabio
15:02
created
framework/Web/Services/TJsonService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
 					$service = Prado::createComponent($serviceConfig['class']);
118 118
 					if($service instanceof TJsonResponse)
119 119
 					{
120
-						$properties = isset($serviceConfig['properties'])?$serviceConfig['properties']:[];
120
+						$properties = isset($serviceConfig['properties']) ? $serviceConfig['properties'] : [];
121 121
 						$this->createJsonResponse($service, $properties, $serviceConfig);
122 122
 					}
123 123
 					else
Please login to merge, or discard this patch.
framework/Web/Javascripts/TJavaScriptLiteral.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
 	public function __toString()
49 49
 	{
50
-		return (string)$this->_s;
50
+		return (string) $this->_s;
51 51
 	}
52 52
 
53 53
 	public function toJavaScriptLiteral()
Please login to merge, or discard this patch.
framework/Web/THttpUtility.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
  */
21 21
 class THttpUtility
22 22
 {
23
-	private static $_encodeTable = ['<' => '&lt;','>' => '&gt;','"' => '&quot;'];
24
-	private static $_decodeTable = ['&lt;' => '<','&gt;' => '>','&quot;' => '"'];
25
-	private static $_stripTable = ['&lt;' => '','&gt;' => '','&quot;' => ''];
23
+	private static $_encodeTable = ['<' => '&lt;', '>' => '&gt;', '"' => '&quot;'];
24
+	private static $_decodeTable = ['&lt;' => '<', '&gt;' => '>', '&quot;' => '"'];
25
+	private static $_stripTable = ['&lt;' => '', '&gt;' => '', '&quot;' => ''];
26 26
 
27 27
 	/**
28 28
 	 * HTML-encodes a string.
Please login to merge, or discard this patch.
framework/Web/UI/TClientSideOptions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	 */
54 54
 	protected function getOption($name)
55 55
 	{
56
-		if ($this->_options)
56
+		if($this->_options)
57 57
 			return $this->_options->itemAt($name);
58 58
 		else
59 59
 			return null;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	 */
74 74
 	public function getOptions()
75 75
 	{
76
-		if (!$this->_options)
76
+		if(!$this->_options)
77 77
 			$this->_options = new TMap;
78 78
 		return $this->_options;
79 79
 	}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TTimeTriggeredCallback.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 			return;
57 57
 
58 58
 		$this->setViewState('Interval', $interval, 1);
59
-		if ($this->getActiveControl()->canUpdateClientSide()){
59
+		if($this->getActiveControl()->canUpdateClientSide()) {
60 60
 			$client = $this->getPage()->getCallbackClient();
61 61
 			$client->callClientFunction('Prado.WebUI.TTimeTriggeredCallback.setTimerInterval', [$this, $interval]);
62 62
 		}
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 		parent::render($writer);
118 118
 		$this->getActiveControl()->registerCallbackClientScript(
119 119
 			$this->getClientClassName(), $this->getTriggerOptions());
120
-		if($this->getStartTimerOnLoad()){
120
+		if($this->getStartTimerOnLoad()) {
121 121
 			$id = $this->getClientID();
122 122
 			$code = "Prado.WebUI.TTimeTriggeredCallback.start('{$id}');";
123 123
 			$cs = $this->getPage()->getClientScript();
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveDropDownList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 	{
108 108
 		parent::addAttributesToRender($writer);
109 109
 		$writer->addAttribute('id', $this->getClientID());
110
-		if ($this->getAutoPostBack())
110
+		if($this->getAutoPostBack())
111 111
 			$this->getActiveControl()->registerCallbackClientScript(
112 112
 				$this->getClientClassName(), $this->getPostBackOptions());
113 113
 	}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveCheckBoxList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 	 * updated later.
73 73
 	 *@return boolean always true
74 74
 	 */
75
-	protected function getSpanNeeded ()
75
+	protected function getSpanNeeded()
76 76
 	{
77 77
 	  return true;
78 78
 	}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActivePageAdapter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 	{
122 122
 		$id = $control->getUniqueID();
123 123
 		if(!isset($this->_controlsToRender[$id]))
124
-			$this->_controlsToRender[$id] = [$control,$writer];
124
+			$this->_controlsToRender[$id] = [$control, $writer];
125 125
 	}
126 126
 
127 127
 	/**
@@ -212,22 +212,22 @@  discard block
 block discarded – undo
212 212
 
213 213
 		// collect all stylesheet file references
214 214
 		$stylesheets = $cs->getStyleSheetUrls();
215
-		if (count($stylesheets) > 0)
215
+		if(count($stylesheets) > 0)
216 216
 		$this->appendContentPart($response, self::CALLBACK_STYLESHEETLIST_HEADER, TJavaScript::jsonEncode($stylesheets));
217 217
 
218 218
 		// collect all stylesheet snippets references
219 219
 		$stylesheets = $cs->getStyleSheetCodes();
220
-		if (count($stylesheets) > 0)
220
+		if(count($stylesheets) > 0)
221 221
 		$this->appendContentPart($response, self::CALLBACK_STYLESHEET_HEADER, TJavaScript::jsonEncode($stylesheets));
222 222
 
223 223
 		// collect all script file references
224 224
 		$scripts = $cs->getScriptUrls();
225
-		if (count($scripts) > 0)
225
+		if(count($scripts) > 0)
226 226
 		$this->appendContentPart($response, self::CALLBACK_SCRIPTLIST_HEADER, TJavaScript::jsonEncode($scripts));
227 227
 
228 228
 		// collect all hidden field references
229 229
 		$fields = $cs->getHiddenFields();
230
-		if (count($fields) > 0)
230
+		if(count($fields) > 0)
231 231
 		$this->appendContentPart($response, self::CALLBACK_HIDDENFIELDLIST_HEADER, TJavaScript::jsonEncode($fields));
232 232
 	}
233 233
 
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveCheckBoxColumn.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
 			$cell->getControls()->add($checkBox);
55 55
 			$cell->registerObject('CheckBox', $checkBox);
56 56
 			if($this->getDataField() !== '')
57
-				$checkBox->attachEventHandler('OnDataBinding', [$this,'dataBindColumn']);
57
+				$checkBox->attachEventHandler('OnDataBinding', [$this, 'dataBindColumn']);
58 58
 		}
59 59
 		else
60 60
 			parent::initializeCell($cell, $columnIndex, $itemType);
Please login to merge, or discard this patch.