Passed
Push — functest_ga ( e036e1...011955 )
by Fabio
05:41
created
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/Data/ActiveRecord/TActiveRecordInvalidFinderResult.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
  */
29 29
 class TActiveRecordInvalidFinderResult extends \Prado\TEnumerable
30 30
 {
31
-	public const Null = 'Null';
31
+	public const null = 'Null';
32 32
 	public const Exception = 'Exception';
33 33
 }
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/TShellWriter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 	public const CYAN = 36;
46 46
 	public const LIGHT_GRAY = 37;
47 47
 	// '256' => '38', //  38:2:<red>:<green>:<blue> or 38:5:<256-color>
48
-	public const DEFAULT = 39;
48
+	public const default = 39;
49 49
 	
50 50
 	public const DARK_GRAY = 90;
51 51
 	public const LIGHT_RED = 91;
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/TDbParameterModule.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 		
199 199
 		$where = ($this->_autoLoadField ? " WHERE {$this->_autoLoadField}={$this->_autoLoadValue}" : '');
200 200
 		$cmd = $db->createCommand(
201
-			"SELECT {$this->_keyField} as keyField, {$this->_valueField}  as valueField FROM {$this->_tableName}{$where}"
201
+			"select {$this->_keyField} as keyField, {$this->_valueField}  as valueField FROM {$this->_tableName}{$where}"
202 202
 		);
203 203
 		$results = $cmd->query();
204 204
 		
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
 		
346 346
 		$db = $this->getDbConnection();
347 347
 		$cmd = $db->createCommand(
348
-			"SELECT {$this->_valueField} as valueField FROM {$this->_tableName} WHERE {$this->_keyField}=:key LIMIT 1"
348
+			"select {$this->_valueField} as valueField FROM {$this->_tableName} WHERE {$this->_keyField}=:key LIMIT 1"
349 349
 		);
350 350
 		$cmd->bindParameter(":key", $key, PDO::PARAM_STR);
351 351
 		$results = $cmd->queryRow();
Please login to merge, or discard this patch.
framework/Util/Cron/TShellCronAction.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 				}
66 66
 			}
67 67
 			if (!$this->_cron) {
68
-				$this->_outWriter->writeError("A {$moduleClass} is not found");
68
+				$this->_outWriter->writeError("a {$moduleClass} is not found");
69 69
 				return null;
70 70
 			}
71 71
 		}
Please login to merge, or discard this patch.
framework/Util/Cron/TDbCronCleanLogTask.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 			$count = $cron->clearCronLog($this->getTimePeriod());
50 50
 			
51 51
 			if ($cron->asa(TCronModule::SHELL_LOG_BEHAVIOR)) {
52
-				$cron->getOutputWriter()->writeLine("Cleared {$count} Cron Task Logs", TShellWriter::GREEN);
52
+				$cron->getOutputWriter()->writeLine("cleared {$count} Cron Task Logs", TShellWriter::GREEN);
53 53
 			}
54 54
 		} elseif (is_object($cron) && $cron->asa(TCronModule::SHELL_LOG_BEHAVIOR)) {
55 55
 			/** @var TCronModule $cron */
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/TActiveRecordConfig.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 	 * @var string|TActiveRecordInvalidFinderResult
101 101
 	 * @since 3.1.5
102 102
 	 */
103
-	private $_invalidFinderResult = TActiveRecordInvalidFinderResult::Null;
103
+	private $_invalidFinderResult = TActiveRecordInvalidFinderResult::null;
104 104
 
105 105
 	/**
106 106
 	 * Initialize the active record manager.
Please login to merge, or discard this patch.