Completed
Push — php-cs-fixer ( b6f93e )
by Fabio
07:29
created
framework/Util/TLogger.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -98,6 +98,7 @@
 block discarded – undo
98 98
 	 * @param integer level filter
99 99
 	 * @param array category filter
100 100
 	 * @param array control filter
101
+	 * @param integer $levels
101 102
 	 * @return array list of messages. Each array elements represents one message
102 103
 	 * with the following structure:
103 104
 	 * array(
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
 	{
72 72
 		if($ctl) {
73 73
 			if($ctl instanceof TControl)
74
-				$ctl = $ctl->ClientId;
74
+				$ctl=$ctl->ClientId;
75 75
 			elseif(!is_string($ctl))
76
-				$ctl = null;
76
+				$ctl=null;
77 77
 		} else
78
-			$ctl = null;
79
-		$this->_logs[]=[$message,$level,$category,microtime(true),memory_get_usage(),$ctl];
78
+			$ctl=null;
79
+		$this->_logs[]=[$message, $level, $category, microtime(true), memory_get_usage(), $ctl];
80 80
 	}
81 81
 
82 82
 	/**
@@ -118,17 +118,17 @@  discard block
 block discarded – undo
118 118
 		$this->_categories=$categories;
119 119
 		$this->_controls=$controls;
120 120
 		$this->_timestamp=$timestamp;
121
-		if(empty($levels) && empty($categories) && empty($controls) && null === $timestamp)
121
+		if(empty($levels) && empty($categories) && empty($controls) && null===$timestamp)
122 122
 			return $this->_logs;
123
-		$logs = $this->_logs;
123
+		$logs=$this->_logs;
124 124
 		if(!empty($levels))
125
-			$logs = array_values(array_filter(array_filter($logs, [$this,'filterByLevels'])));
125
+			$logs=array_values(array_filter(array_filter($logs, [$this, 'filterByLevels'])));
126 126
 		if(!empty($categories))
127
-			$logs = array_values(array_filter(array_filter($logs, [$this,'filterByCategories'])));
127
+			$logs=array_values(array_filter(array_filter($logs, [$this, 'filterByCategories'])));
128 128
 		if(!empty($controls))
129
-			$logs = array_values(array_filter(array_filter($logs, [$this,'filterByControl'])));
130
-		if(null !== $timestamp)
131
-			$logs = array_values(array_filter(array_filter($logs, [$this,'filterByTimeStamp'])));
129
+			$logs=array_values(array_filter(array_filter($logs, [$this, 'filterByControl'])));
130
+		if(null!==$timestamp)
131
+			$logs=array_values(array_filter(array_filter($logs, [$this, 'filterByTimeStamp'])));
132 132
 		return $logs;
133 133
 	}
134 134
 
@@ -162,21 +162,21 @@  discard block
 block discarded – undo
162 162
 		$this->_categories=$categories;
163 163
 		$this->_controls=$controls;
164 164
 		$this->_timestamp=$timestamp;
165
-		if(empty($levels) && empty($categories) && empty($controls) && null === $timestamp)
165
+		if(empty($levels) && empty($categories) && empty($controls) && null===$timestamp)
166 166
 		{
167 167
 			$this->_logs=[];
168 168
 			return;
169 169
 		}
170
-		$logs = $this->_logs;
170
+		$logs=$this->_logs;
171 171
 		if(!empty($levels))
172
-			$logs = array_filter(array_filter($logs, [$this,'filterByLevels']));
172
+			$logs=array_filter(array_filter($logs, [$this, 'filterByLevels']));
173 173
 		if(!empty($categories))
174
-			$logs = array_filter(array_filter($logs, [$this,'filterByCategories']));
174
+			$logs=array_filter(array_filter($logs, [$this, 'filterByCategories']));
175 175
 		if(!empty($controls))
176
-			$logs = array_filter(array_filter($logs, [$this,'filterByControl']));
177
-		if(null !== $timestamp)
178
-			$logs = array_filter(array_filter($logs, [$this,'filterByTimeStamp']));
179
-		$this->_logs = array_values(array_diff_key($this->_logs, $logs));
176
+			$logs=array_filter(array_filter($logs, [$this, 'filterByControl']));
177
+		if(null!==$timestamp)
178
+			$logs=array_filter(array_filter($logs, [$this, 'filterByTimeStamp']));
179
+		$this->_logs=array_values(array_diff_key($this->_logs, $logs));
180 180
 	}
181 181
 
182 182
 	/**
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 		foreach($this->_categories as $category)
189 189
 		{
190 190
 			// element 2 is the category
191
-			if($value[2]===$category || strpos($value[2], $category . '.')===0)
191
+			if($value[2]===$category || strpos($value[2], $category.'.')===0)
192 192
 				return $value;
193 193
 		}
194 194
 		return false;
Please login to merge, or discard this patch.
framework/Util/TRpcClient.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -105,6 +105,9 @@
 block discarded – undo
105 105
 	 * @param string RPC server URL
106 106
 	 * @param array payload data
107 107
 	 * @param string request mime type
108
+	 * @param string $serverUrl
109
+	 * @param string $mimeType
110
+	 * @return string
108 111
 	 */
109 112
 	protected function performRequest($serverUrl, $payload, $mimeType)
110 113
 	{
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	/**
59 59
 	 * @var boolean whether the request is a notification and therefore should not care about the result (default: false)
60 60
 	 */
61
-	private $_isNotification = false;
61
+	private $_isNotification=false;
62 62
 
63 63
 	// magics
64 64
 
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
 	 * @param string url to RPC server
67 67
 	 * @param boolean whether requests are considered to be notifications (completely ignoring the response) (default: false)
68 68
 	 */
69
-	public function __construct($serverUrl, $isNotification = false)
69
+	public function __construct($serverUrl, $isNotification=false)
70 70
 	{
71
-		$this->_serverUrl = $serverUrl;
72
-		$this->_isNotification = TPropertyValue::ensureBoolean($isNotification);
71
+		$this->_serverUrl=$serverUrl;
72
+		$this->_isNotification=TPropertyValue::ensureBoolean($isNotification);
73 73
 	}
74 74
 
75 75
 	// methods
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
 	 * @return TRpcClient instance
80 80
 	 * @throws TApplicationException if an unsupported RPC client type was specified
81 81
 	 */
82
-	public static function create($type, $serverUrl, $isNotification = false)
82
+	public static function create($type, $serverUrl, $isNotification=false)
83 83
 	{
84
-		if(($_handler = constant('TRpcClientTypesEnumerable::' . strtoupper($type))) === null)
84
+		if(($_handler=constant('TRpcClientTypesEnumerable::'.strtoupper($type)))===null)
85 85
 			throw new TApplicationException('rpcclient_unsupported_handler');
86 86
 
87 87
 		return new $_handler($serverUrl, $isNotification);
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
 	 */
112 112
 	protected function performRequest($serverUrl, $payload, $mimeType)
113 113
 	{
114
-		if(($_response = @file_get_contents($serverUrl, false, $this->createStreamContext($payload, $mimeType))) === false)
115
-			throw new TRpcClientRequestException('Request failed ("' . $http_response_header[0] . '")');
114
+		if(($_response=@file_get_contents($serverUrl, false, $this->createStreamContext($payload, $mimeType)))===false)
115
+			throw new TRpcClientRequestException('Request failed ("'.$http_response_header[0].'")');
116 116
 
117 117
 		return $_response;
118 118
 	}
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 */
133 133
 	public function setIsNotification($bool)
134 134
 	{
135
-		$this->_isNotification = TPropertyValue::ensureBoolean($bool);
135
+		$this->_isNotification=TPropertyValue::ensureBoolean($bool);
136 136
 	}
137 137
 
138 138
 	/**
@@ -148,6 +148,6 @@  discard block
 block discarded – undo
148 148
 	 */
149 149
 	public function setServerUrl($value)
150 150
 	{
151
-		$this->_serverUrl = $value;
151
+		$this->_serverUrl=$value;
152 152
 	}
153 153
 }
154 154
\ No newline at end of file
Please login to merge, or discard this patch.
framework/Web/THttpResponseAdapter.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -31,6 +31,7 @@
 block discarded – undo
31 31
 	/**
32 32
 	 * Constructor. Attach a response to be adapted.
33 33
 	 * @param THttpResponse the response object the adapter is to attach to.
34
+	 * @param THttpResponse $response
34 35
 	 */
35 36
 	public function __construct($response)
36 37
 	{
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveControlAdapter.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -175,6 +175,7 @@
 block discarded – undo
175 175
 
176 176
 	/**
177 177
 	 * @param string state tracker class.
178
+	 * @param string $value
178 179
 	 */
179 180
 	public function setStateTracker($value)
180 181
 	{
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,7 @@
 block discarded – undo
76 76
 				$this->_activeControlType = 'Prado\\Web\UI\\ActiveControls\\TBaseActiveCallbackControl';
77 77
 			else
78 78
 				$this->_activeControlType = 'Prado\\Web\UI\\ActiveControls\\TBaseActiveControl';
79
-		}
80
-		else
79
+		} else
81 80
 			$this->_activeControlType = $type;
82 81
 	}
83 82
 
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
 		if($type===null)
74 74
 		{
75 75
 			if($this->getControl() instanceof ICallbackEventHandler)
76
-				$this->_activeControlType = 'Prado\\Web\UI\\ActiveControls\\TBaseActiveCallbackControl';
76
+				$this->_activeControlType='Prado\\Web\UI\\ActiveControls\\TBaseActiveCallbackControl';
77 77
 			else
78
-				$this->_activeControlType = 'Prado\\Web\UI\\ActiveControls\\TBaseActiveControl';
78
+				$this->_activeControlType='Prado\\Web\UI\\ActiveControls\\TBaseActiveControl';
79 79
 		}
80 80
 		else
81
-			$this->_activeControlType = $type;
81
+			$this->_activeControlType=$type;
82 82
 	}
83 83
 
84 84
 	/**
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 		{
100 100
 			parent::render($writer);
101 101
 		} else {
102
-			$writer->write("<span id=\"" . $this->_control->getClientID() . "\" style=\"display:none\"></span>");
102
+			$writer->write("<span id=\"".$this->_control->getClientID()."\" style=\"display:none\"></span>");
103 103
 		}
104 104
 	}
105 105
 
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
 	{
119 119
 		if($this->_baseActiveControl===null)
120 120
 		{
121
-			$type = $this->_activeControlType;
122
-			$this->_baseActiveControl = new $type($this->getControl());
121
+			$type=$this->_activeControlType;
122
+			$this->_baseActiveControl=new $type($this->getControl());
123 123
 		}
124 124
 		return $this->_baseActiveControl;
125 125
 	}
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
 	{
132 132
 		if($this->getPage()->getIsCallback())
133 133
 		{
134
-			$target = $this->getPage()->getCallbackEventTarget();
134
+			$target=$this->getPage()->getCallbackEventTarget();
135 135
 			if($target instanceof ICallbackEventHandler)
136 136
 			{
137
-				$client = $target->getActiveControl()->getClientSide();
137
+				$client=$target->getActiveControl()->getClientSide();
138 138
 				return $client->getEnablePageStateUpdate();
139 139
 			}
140 140
 		}
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
 	{
149 149
 		if($this->getIsTrackingPageState())
150 150
 		{
151
-		  $stateTrackerClass = $this->_stateTrackerClass;
152
-			$this->_stateTracker = new $stateTrackerClass($this->getControl());
151
+		  $stateTrackerClass=$this->_stateTrackerClass;
152
+			$this->_stateTracker=new $stateTrackerClass($this->getControl());
153 153
 			$this->_stateTracker->trackChanges();
154 154
 		}
155 155
 		parent::onLoad($param);
@@ -182,6 +182,6 @@  discard block
 block discarded – undo
182 182
 	 */
183 183
 	public function setStateTracker($value)
184 184
 	{
185
-		$this->_stateTrackerClass = TPropertyValue::ensureString($value);
185
+		$this->_stateTrackerClass=TPropertyValue::ensureString($value);
186 186
 	}
187 187
 }
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveDropDownList.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 	/**
67 67
 	 * No client class for this control.
68 68
 	 * This method overrides the parent implementation.
69
-	 * @return null no javascript class name.
69
+	 * @return string no javascript class name.
70 70
 	 */
71 71
 	protected function getClientClassName()
72 72
 	{
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 */
87 87
 	protected function createListItemCollection()
88 88
 	{
89
-		$collection  = new TActiveListItemCollection;
89
+		$collection=new TActiveListItemCollection;
90 90
 		$collection->setControl($this);
91 91
 		return $collection;
92 92
 	}
@@ -107,7 +107,7 @@  discard block
 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/TActiveListBox.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 	/**
71 71
 	 * Javascript client class for this control.
72 72
 	 * This method overrides the parent implementation.
73
-	 * @return null no javascript class name.
73
+	 * @return string no javascript class name.
74 74
 	 */
75 75
 	protected function getClientClassName()
76 76
 	{
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	 */
67 67
 	protected function createListItemCollection()
68 68
 	{
69
-		$collection  = new TActiveListItemCollection;
69
+		$collection=new TActiveListItemCollection;
70 70
 		$collection->setControl($this);
71 71
 		return $collection;
72 72
 	}
@@ -89,15 +89,15 @@  discard block
 block discarded – undo
89 89
 	 */
90 90
 	public function setSelectionMode($value)
91 91
 	{
92
-		if(parent::getSelectionMode() === $value)
92
+		if(parent::getSelectionMode()===$value)
93 93
 			return;
94 94
 
95 95
 		parent::setSelectionMode($value);
96
-		$multiple = $this->getIsMultiSelect();
97
-		$id = $this->getUniqueID(); $multi_id = $id . '[]';
96
+		$multiple=$this->getIsMultiSelect();
97
+		$id=$this->getUniqueID(); $multi_id=$id.'[]';
98 98
 		if($this->getActiveControl()->canUpdateClientSide())
99 99
 		{
100
-			$client = $this->getPage()->getCallbackClient();
100
+			$client=$this->getPage()->getCallbackClient();
101 101
 			$client->setAttribute($this, 'multiple', $multiple ? 'multiple' : false);
102 102
 			$client->setAttribute($this, 'name', $multiple ? $multi_id : $id);
103 103
 		}
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	{
152 152
 		parent::addAttributesToRender($writer);
153 153
 		$writer->addAttribute('id', $this->getClientID());
154
-		if ($this->getAutoPostBack())
154
+		if($this->getAutoPostBack())
155 155
 			$this->getActiveControl()->registerCallbackClientScript(
156 156
 				$this->getClientClassName(), $this->getPostBackOptions());
157 157
 	}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TTriggeredCallback.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 	}
57 57
 
58 58
 	/**
59
-	 * @return array list of trigger callback options.
59
+	 * @return string list of trigger callback options.
60 60
 	 */
61 61
 	protected function getTriggerOptions()
62 62
 	{
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	 */
45 45
 	protected function getTargetControl()
46 46
 	{
47
-		$id = $this->getControlID();
47
+		$id=$this->getControlID();
48 48
 		if(($control=$this->findControl($id)) instanceof TControl)
49 49
 			return $control->getClientID();
50 50
 		if($id==='')
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
 	 */
61 61
 	protected function getTriggerOptions()
62 62
 	{
63
-		$options['ID'] = $this->getClientID();
64
-		$options['EventTarget'] = $this->getUniqueID();
65
-		$options['ControlID'] = $this->getTargetControl();
63
+		$options['ID']=$this->getClientID();
64
+		$options['EventTarget']=$this->getUniqueID();
65
+		$options['ControlID']=$this->getTargetControl();
66 66
 		return $options;
67 67
 	}
68 68
 }
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiDialog.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -158,6 +158,9 @@
 block discarded – undo
158 158
 		$this->triggerClientMethod('close');
159 159
 	}
160 160
 
161
+	/**
162
+	 * @param string $method
163
+	 */
161 164
 	private function triggerClientMethod($method)
162 165
 	{
163 166
 		$cs = $this->getPage()->getClientScript();
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -193,8 +193,7 @@
 block discarded – undo
193 193
 		{
194 194
 		  parent::renderContents($writer);
195 195
 			$this->getPage()->getCallbackClient()->replaceContent($this, $writer, false);
196
-		}
197
-		else
196
+		} else
198 197
 			parent::render($writer);
199 198
 	}
200 199
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	public function getOptions()
74 74
 	{
75
-		if (($options=$this->getViewState('JuiOptions'))===null)
75
+		if(($options=$this->getViewState('JuiOptions'))===null)
76 76
 		{
77 77
 		  $options=new TJuiControlOptions($this);
78 78
 		  $this->setViewState('JuiOptions', $options);
@@ -103,14 +103,14 @@  discard block
 block discarded – undo
103 103
 	 */
104 104
 	protected function getPostBackOptions()
105 105
 	{
106
-		$options = $this->getOptions()->toArray();
106
+		$options=$this->getOptions()->toArray();
107 107
 		// always make the dialog a child of the form, or its inner inputs won't be collected
108 108
 		if(!isset($options['appendTo']))
109
-			$options['appendTo'] = 'form:first';
109
+			$options['appendTo']='form:first';
110 110
 
111 111
 		foreach($this->getControls() as $control)
112 112
 			if($control instanceof TJuiDialogButton)
113
-				$options['buttons'][] = $control->getPostBackOptions();
113
+				$options['buttons'][]=$control->getPostBackOptions();
114 114
 
115 115
 		return $options;
116 116
 	}
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 		$writer->addAttribute('id', $this->getClientID());
127 127
 		$options=TJavaScript::encode($this->getPostBackOptions());
128 128
 		$cs=$this->getPage()->getClientScript();
129
-		$code="jQuery('#" . $this->getWidgetID() . "')." . $this->getWidget() . "(" . $options . ");";
129
+		$code="jQuery('#".$this->getWidgetID()."').".$this->getWidget()."(".$options.");";
130 130
 		$cs->registerEndScript(sprintf('%08X', crc32($code)), $code);
131 131
 	}
132 132
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 * Raises the OnCreate event
145 145
 	 * @param object $params event parameters
146 146
 	 */
147
-	public function onOpen ($params)
147
+	public function onOpen($params)
148 148
 	{
149 149
 		$this->raiseEvent('OnOpen', $this, $params);
150 150
 	}
@@ -167,8 +167,8 @@  discard block
 block discarded – undo
167 167
 
168 168
 	private function triggerClientMethod($method)
169 169
 	{
170
-		$cs = $this->getPage()->getClientScript();
171
-		$code = "jQuery(document).ready(function() { jQuery('#" . $this->getClientId() . "').dialog('" . $method . "'); })";
170
+		$cs=$this->getPage()->getClientScript();
171
+		$code="jQuery(document).ready(function() { jQuery('#".$this->getClientId()."').dialog('".$method."'); })";
172 172
 		$cs->registerEndScript(sprintf('%08X', crc32($code)), $code);
173 173
 	}
174 174
 
Please login to merge, or discard this patch.
framework/Web/UI/TTemplateControlInheritable.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 	/**
77 77
 	 * This method creates the template object for the given class
78 78
 	 *
79
-	 * @param string $p_class The class to create the template from
79
+	 * @param string $parentClass
80 80
 	 * @return void
81 81
 	 * @throws TConfigurationException if a template control directive is invalid
82 82
 	 */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 */
44 44
 	public function createChildControls()
45 45
 	{
46
-		if(null === ($_template = $this->getTemplate())) {
46
+		if(null===($_template=$this->getTemplate())) {
47 47
 			return $this->doCreateChildControlsFor(get_class($this));
48 48
 		}
49 49
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	 */
67 67
 	public function doCreateChildControlsFor($parentClass)
68 68
 	{
69
-		if(false !== ($_parentClass = get_parent_class($parentClass)) && 'TTemplateControl' != $_parentClass) {
69
+		if(false!==($_parentClass=get_parent_class($parentClass)) && 'TTemplateControl'!=$_parentClass) {
70 70
 			$this->doCreateChildControlsFor($_parentClass);
71 71
 		}
72 72
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 */
83 83
 	public function doTemplateForClass($parentClass)
84 84
 	{
85
-		if(null !== ($_template = $this->getService()->getTemplateManager()->getTemplateByClassName($parentClass))) {
85
+		if(null!==($_template=$this->getService()->getTemplateManager()->getTemplateByClassName($parentClass))) {
86 86
 			foreach($_template->getDirective() as $_name => $_value) {
87 87
 				if(!is_string($_value)) {
88 88
 					throw new TConfigurationException('templatecontrol_directive_invalid', get_class(this), $_name);
@@ -105,11 +105,11 @@  discard block
 block discarded – undo
105 105
 	 */
106 106
 	public function getIsSourceTemplateControl()
107 107
 	{
108
-		if(null !== ($_template = $this->getTemplate())) {
108
+		if(null!==($_template=$this->getTemplate())) {
109 109
 			return $_template->getIsSourceTemplate();
110 110
 		}
111 111
 
112
-		return ($_template = $this->getService()->getTemplateManager()->getTemplateByClassName(get_parent_class($this)))
112
+		return ($_template=$this->getService()->getTemplateManager()->getTemplateByClassName(get_parent_class($this)))
113 113
 			? $_template->getIsSourceTemplate()
114 114
 			: false;
115 115
 	}
Please login to merge, or discard this patch.