Passed
Push — functest_ga ( e036e1...011955 )
by Fabio
05:41
created
framework/Web/UI/WebControls/TFileUpload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
 	 */
296 296
 	public function getValidationPropertyValue()
297 297
 	{
298
-		return implode(',', array_map(function ($file) {
298
+		return implode(',', array_map(function($file) {
299 299
 			return $file->getFileName();
300 300
 		}, $this->_files));
301 301
 	}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/assets/captcha.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	$hexLength = strlen($hex);
63 63
 	$base = strlen($alphabet);
64 64
 	$result = '';
65
-	for ($i = 0;$i < $hexLength;$i += 6) {
65
+	for ($i = 0; $i < $hexLength; $i += 6) {
66 66
 		$number = hexdec(substr($hex, $i, 6));
67 67
 		while ($number) {
68 68
 			$result .= $alphabet[$number % $base];
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	}
107 107
 
108 108
 	$hasShadow = ($theme & THEME_SHADOWED_TEXT);
109
-	for ($i = 0;$i < $length;$i++) {
109
+	for ($i = 0; $i < $length; $i++) {
110 110
 		$color = imagecolorallocate($image, rand(150, 220), rand(150, 220), rand(150, 220));
111 111
 		$size = rand($fontWidth - 10, $fontWidth);
112 112
 		$angle = rand(-30, 30);
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
 
160 160
 function addNoise($image, $width, $height)
161 161
 {
162
-	for ($x = 0;$x < $width;++$x) {
163
-		for ($y = 0;$y < $height;++$y) {
162
+	for ($x = 0; $x < $width; ++$x) {
163
+		for ($y = 0; $y < $height; ++$y) {
164 164
 			if (rand(0, 100) < 25) {
165 165
 				$color = imagecolorallocate($image, rand(150, 220), rand(150, 220), rand(150, 220));
166 166
 				imagesetpixel($image, $x, $y, $color);
@@ -172,13 +172,13 @@  discard block
 block discarded – undo
172 172
 
173 173
 function addGrid($image, $width, $height)
174 174
 {
175
-	for ($i = 0;$i < $width;$i += rand(15, 25)) {
175
+	for ($i = 0; $i < $width; $i += rand(15, 25)) {
176 176
 		imagesetthickness($image, rand(2, 6));
177 177
 		$color = imagecolorallocate($image, rand(100, 180), rand(100, 180), rand(100, 180));
178 178
 		imageline($image, $i + rand(-10, 20), 0, $i + rand(-10, 20), $height, $color);
179 179
 		imagecolordeallocate($image, $color);
180 180
 	}
181
-	for ($i = 0;$i < $height;$i += rand(15, 25)) {
181
+	for ($i = 0; $i < $height; $i += rand(15, 25)) {
182 182
 		imagesetthickness($image, rand(2, 6));
183 183
 		$color = imagecolorallocate($image, rand(100, 180), rand(100, 180), rand(100, 180));
184 184
 		imageline($image, 0, $i + rand(-10, 20), $width, $i + rand(-10, 20), $color);
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
 
189 189
 function addScribble($image, $width, $height)
190 190
 {
191
-	for ($i = 0;$i < 8;$i++) {
191
+	for ($i = 0; $i < 8; $i++) {
192 192
 		$color = imagecolorallocate($image, rand(100, 180), rand(100, 180), rand(100, 180));
193 193
 		$points = [];
194
-		for ($j = 1;$j < rand(5, 10);$j++) {
194
+		for ($j = 1; $j < rand(5, 10); $j++) {
195 195
 			$points[] = rand(2 * (20 * ($i + 1)), 2 * (50 * ($i + 1)));
196 196
 			$points[] = rand(30, $height + 30);
197 197
 		}
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 {
206 206
 	$tempImage = imagecreatetruecolor($width, $height);
207 207
 	$chunk = rand(1, 5);
208
-	for ($x = $y = 0;$x < $width;$x += $chunk) {
208
+	for ($x = $y = 0; $x < $width; $x += $chunk) {
209 209
 		$chunk = rand(1, 5);
210 210
 		$y += rand(-1, 1);
211 211
 		if ($y >= $height) {
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 		}
217 217
 		imagecopy($tempImage, $image, $x, 0, $x, $y, $chunk, $height);
218 218
 	}
219
-	for ($x = $y = 0;$y < $height;$y += $chunk) {
219
+	for ($x = $y = 0; $y < $height; $y += $chunk) {
220 220
 		$chunk = rand(1, 5);
221 221
 		$x += rand(-1, 1);
222 222
 		if ($x >= $width) {
Please login to merge, or discard this patch.
framework/Data/SqlMap/Statements/TMappedStatement.php 1 patch
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -193,8 +193,7 @@  discard block
 block discarded – undo
193 193
 	public function runQueryForList($connection, $parameter, $sql, $result, $delegate = null)
194 194
 	{
195 195
 		$registry = $this->getManager()->getTypeHandlers();
196
-		$list = $result instanceof \ArrayAccess ? $result :
197
-							$this->_statement->createInstanceOfListClass($registry);
196
+		$list = $result instanceof \ArrayAccess ? $result : $this->_statement->createInstanceOfListClass($registry);
198 197
 		$connection->setActive(true);
199 198
 		$reader = $sql->query();
200 199
 		if ($delegate !== null) {
@@ -267,8 +266,7 @@  discard block
 block discarded – undo
267 266
 			foreach ($reader as $row) {
268 267
 				$obj = $this->applyResultMap($row);
269 268
 				$key = TPropertyAccess::get($obj, $keyProperty);
270
-				$value = ($valueProperty === null) ? $obj :
271
-							TPropertyAccess::get($obj, $valueProperty);
269
+				$value = ($valueProperty === null) ? $obj : TPropertyAccess::get($obj, $valueProperty);
272 270
 				$param = new TResultSetMapItemParameter($key, $value, $parameter, $map);
273 271
 				$this->raiseRowDelegate($delegate, $param);
274 272
 			}
@@ -276,8 +274,7 @@  discard block
 block discarded – undo
276 274
 			foreach ($reader as $row) {
277 275
 				$obj = $this->applyResultMap($row);
278 276
 				$key = TPropertyAccess::get($obj, $keyProperty);
279
-				$map[$key] = ($valueProperty === null) ? $obj :
280
-								TPropertyAccess::get($obj, $valueProperty);
277
+				$map[$key] = ($valueProperty === null) ? $obj : TPropertyAccess::get($obj, $valueProperty);
281 278
 			}
282 279
 		}
283 280
 		$this->onExecuteQuery($command);
Please login to merge, or discard this patch.
framework/TApplication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1257,6 +1257,6 @@
 block discarded – undo
1257 1257
 	{
1258 1258
 		$this->flushOutput(false); // flush all remaining content in the buffer
1259 1259
 		$this->raiseEvent('OnEndRequest', $this, null);
1260
-		$this->saveGlobals();  // save global state
1260
+		$this->saveGlobals(); // save global state
1261 1261
 	}
1262 1262
 }
Please login to merge, or discard this patch.
framework/Web/UI/TClientScriptManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 	 */
258 258
 	public function getScriptUrls()
259 259
 	{
260
-		$scripts = array_values(array_map(function ($v) {
260
+		$scripts = array_values(array_map(function($v) {
261 261
 			return $v->getUrl();
262 262
 		}, $this->_headScriptFiles));
263 263
 		$scripts = array_merge($scripts, array_values($this->_scriptFiles));
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
 	public function getStyleSheetUrls()
551 551
 	{
552 552
 		$stylesheets = array_values(
553
-			array_map(function ($e) {
553
+			array_map(function($e) {
554 554
 				return is_array($e) ? $e[0] : $e;
555 555
 			}, $this->_styleSheetFiles)
556 556
 		);
Please login to merge, or discard this patch.
framework/Web/UI/TControl.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -113,17 +113,17 @@  discard block
 block discarded – undo
113 113
 	 * Indexes for the rare fields.
114 114
 	 * In order to save memory, rare fields will only be created if they are needed.
115 115
 	 */
116
-	public const RF_CONTROLS = 0;			// child controls
117
-	public const RF_CHILD_STATE = 1;			// child state field
118
-	public const RF_NAMED_CONTROLS = 2;		// list of controls whose namingcontainer is this control
119
-	public const RF_NAMED_CONTROLS_ID = 3;	// counter for automatic id
120
-	public const RF_SKIN_ID = 4;				// skin ID
121
-	public const RF_DATA_BINDINGS = 5;		// data bindings
122
-	public const RF_EVENTS = 6;				// event handlers
123
-	public const RF_CONTROLSTATE = 7;		// controlstate
124
-	public const RF_NAMED_OBJECTS = 8;		// controls declared with ID on template
125
-	public const RF_ADAPTER = 9;				// adapter
126
-	public const RF_AUTO_BINDINGS = 10;		// auto data bindings
116
+	public const RF_CONTROLS = 0; // child controls
117
+	public const RF_CHILD_STATE = 1; // child state field
118
+	public const RF_NAMED_CONTROLS = 2; // list of controls whose namingcontainer is this control
119
+	public const RF_NAMED_CONTROLS_ID = 3; // counter for automatic id
120
+	public const RF_SKIN_ID = 4; // skin ID
121
+	public const RF_DATA_BINDINGS = 5; // data bindings
122
+	public const RF_EVENTS = 6; // event handlers
123
+	public const RF_CONTROLSTATE = 7; // controlstate
124
+	public const RF_NAMED_OBJECTS = 8; // controls declared with ID on template
125
+	public const RF_ADAPTER = 9; // adapter
126
+	public const RF_AUTO_BINDINGS = 10; // auto data bindings
127 127
 
128 128
 	/**
129 129
 	 * @var string control ID
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
 	public function getUniqueID()
414 414
 	{
415 415
 		if ($this->_uid === '' || $this->_uid === null) {	// need to build the UniqueID
416
-			$this->_uid = '';  // set to not-null, so that clearCachedUniqueID() may take action
416
+			$this->_uid = ''; // set to not-null, so that clearCachedUniqueID() may take action
417 417
 			if ($namingContainer = $this->getNamingContainer()) {
418 418
 				if ($this->getPage() === $namingContainer) {
419 419
 					return ($this->_uid = $this->_id);
Please login to merge, or discard this patch.
framework/Shell/TShellLoginBehavior.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 			}
111 111
 		}
112 112
 		$password = $this->_password;
113
-		$this->_password = '';	//Do not store the Password.
113
+		$this->_password = ''; //Do not store the Password.
114 114
 		if (!$this->getOwner()->login($this->_username, $password)) {
115 115
 			$writer->writeError("Could not Authenticate the user");
116 116
 			$writer->flush();
Please login to merge, or discard this patch.
framework/Util/Behaviors/TParameterizeBehavior.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
 			$owner = $this->getOwner();
134 134
 			if ($this->_localize) {
135 135
 				$_property = $this->_property;
136
-				$this->_paramBehavior = new TMapRouteBehavior($this->_parameter, function ($v) use ($owner, $_property) {
136
+				$this->_paramBehavior = new TMapRouteBehavior($this->_parameter, function($v) use ($owner, $_property) {
137 137
 					$owner->$_property = Prado::localize($v);
138 138
 				});
139 139
 			} else {
Please login to merge, or discard this patch.
framework/Util/Cron/TTimeScheduler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 					11 => '(?:november|noviembre|novembre|nov|Ноябрь|Ноя|नवम्बर|نوفمبر)',
117 117
 					12 => '(?:december|dezember|diciembre|décembre|dicembre|dec|dez|déc|dic|Декабрь|Дек|दिसम्बर|ديسمبر)',
118 118
 				],
119
-		self::DAY_OF_WEEK => [ //no Arabic as those are just numbered days of the week
119
+		self::DAY_OF_WEEK => [//no Arabic as those are just numbered days of the week
120 120
 					0 => '(?:sunday|sonntag|sun|son|su|so|domingo|do|d|dimanche|dim|domenica|dom|Воскресенье|Вск|Вс|रविवार|रवि)',
121 121
 					1 => '(?:monday|montag|mon|mo|lune|lu|l|lundi|lun|lunedì|Понедельник|Пнд|Пн|सोमवार|सोम)',
122 122
 					2 => '(?:tuesday|dienstag|die|tue|tu|di|martes|ma|m|k|mardi|mar|martedì|Вторник|Втр|Вт|मंगलवार|मंगल)',
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
 		$nhour = null;
644 644
 		$z = -1;
645 645
 		$s = (!$days[$lastdata['mday']] || !$months[$lastdata['mon']] || !$years[$year]) ? 0 : $lastdata['hours'];
646
-		for ($i = $s + $hextra, $dextra = 0; $i != $s + $hextra + $z ; $i++) {
646
+		for ($i = $s + $hextra, $dextra = 0; $i != $s + $hextra + $z; $i++) {
647 647
 			if ($i > 23) {
648 648
 				$dextra = 1;
649 649
 				$i = 0;
Please login to merge, or discard this patch.