Passed
Branch master (c4215b)
by Fabio
02:00
created
framework/Web/UI/TTemplate.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
 		$c = 0;
477 477
 		$this->_directive = null;
478 478
 		try {
479
-			for ($i = 0;$i < $n;++$i) {
479
+			for ($i = 0; $i < $n; ++$i) {
480 480
 				$match = &$matches[$i];
481 481
 				$str = $match[0][0];
482 482
 				$matchStart = $match[0][1];
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
 		$pattern = '/([\w\.\-]+)\s*=\s*(\'.*?\'|".*?"|<%.*?%>)/msS';
705 705
 		$attributes = [];
706 706
 		$n = preg_match_all($pattern, $str, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);
707
-		for ($i = 0;$i < $n;++$i) {
707
+		for ($i = 0; $i < $n; ++$i) {
708 708
 			$match = &$matches[$i];
709 709
 			$name = strtolower($match[1][0]);
710 710
 			if (isset($attributes[$name])) {
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
 			$isDataBind = false;
746 746
 			$textStart = 0;
747 747
 			$expr = '';
748
-			for ($i = 0;$i < $n;++$i) {
748
+			for ($i = 0; $i < $n; ++$i) {
749 749
 				$match = $matches[0][$i];
750 750
 				$token = $match[0];
751 751
 				$offset = $match[1];
@@ -811,7 +811,7 @@  discard block
 block discarded – undo
811 811
 					}
812 812
 				} else {
813 813
 					// a simple property
814
-					if (! ($class->hasMethod('set' . $name) || $class->hasMethod('setjs' . $name) || $this->isClassBehaviorMethod($class, 'set' . $name))) {
814
+					if (!($class->hasMethod('set' . $name) || $class->hasMethod('setjs' . $name) || $this->isClassBehaviorMethod($class, 'set' . $name))) {
815 815
 						if ($class->hasMethod('get' . $name) || $class->hasMethod('getjs' . $name)) {
816 816
 							throw new TConfigurationException('template_property_readonly', $type, $name);
817 817
 						} else {
@@ -877,7 +877,7 @@  discard block
 block discarded – undo
877 877
 		$srcFile = $this->_tplFile;
878 878
 
879 879
 		if (($n = count($this->_includedFiles)) > 0) { // need to adjust error row number and file name
880
-			for ($i = $n - 1;$i >= 0;--$i) {
880
+			for ($i = $n - 1; $i >= 0; --$i) {
881 881
 				if ($this->_includeAtLine[$i] <= $line) {
882 882
 					if ($line < $this->_includeAtLine[$i] + $this->_includeLines[$i]) {
883 883
 						$line = $line - $this->_includeAtLine[$i] + 1;
@@ -907,7 +907,7 @@  discard block
 block discarded – undo
907 907
 	protected function preprocess($input)
908 908
 	{
909 909
 		if ($n = preg_match_all('/<%include(.*?)%>/', $input, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) {
910
-			for ($i = 0;$i < $n;++$i) {
910
+			for ($i = 0; $i < $n; ++$i) {
911 911
 				$filePath = Prado::getPathOfNamespace(trim($matches[$i][1][0]), TTemplateManager::TEMPLATE_FILE_EXT);
912 912
 				if ($filePath !== null && is_file($filePath)) {
913 913
 					$this->_includedFiles[] = $filePath;
@@ -917,7 +917,7 @@  discard block
 block discarded – undo
917 917
 				}
918 918
 			}
919 919
 			$base = 0;
920
-			for ($i = 0;$i < $n;++$i) {
920
+			for ($i = 0; $i < $n; ++$i) {
921 921
 				$ext = file_get_contents($this->_includedFiles[$i]);
922 922
 				$length = strlen($matches[$i][0][0]);
923 923
 				$offset = $base + $matches[$i][0][1];
Please login to merge, or discard this patch.
framework/Web/UI/TPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -894,7 +894,7 @@
 block discarded – undo
894 894
 					}
895 895
 				} elseif ($control instanceof IPostBackEventHandler &&
896 896
 					empty($this->_postData[self::FIELD_POSTBACK_TARGET])) {
897
-					$this->_postData->add(self::FIELD_POSTBACK_TARGET, $key);  // not calling setPostBackEventTarget() because the control may be removed later
897
+					$this->_postData->add(self::FIELD_POSTBACK_TARGET, $key); // not calling setPostBackEventTarget() because the control may be removed later
898 898
 				}
899 899
 				unset($this->_controlsRequiringPostData[$key]);
900 900
 			} elseif ($beforeLoad) {
Please login to merge, or discard this patch.
framework/Web/UI/TClientScriptManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -542,7 +542,7 @@
 block discarded – undo
542 542
 	public function getStyleSheetUrls()
543 543
 	{
544 544
 		$stylesheets = array_values(
545
-			array_map(function ($e) {
545
+			array_map(function($e) {
546 546
 				return is_array($e) ? $e[0] : $e;
547 547
 			}, $this->_styleSheetFiles)
548 548
 		);
Please login to merge, or discard this patch.