Test Setup Failed
Push — fix_683 ( 1369c9 )
by Fabio
08:32
created
framework/Collections/TPagedMapIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 	public function rewind()
56 56
 	{
57 57
 		$this->_iterator->rewind();
58
-		for ($i = 0;$i < $this->_startIndex;++$i) {
58
+		for ($i = 0; $i < $this->_startIndex; ++$i) {
59 59
 			$this->_iterator->next();
60 60
 		}
61 61
 		$this->_index = 0;
Please login to merge, or discard this patch.
framework/Util/TFileLogRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 	protected function rotateFiles()
150 150
 	{
151 151
 		$file = $this->getLogPath() . DIRECTORY_SEPARATOR . $this->getLogFile();
152
-		for ($i = $this->_maxLogFiles;$i > 0;--$i) {
152
+		for ($i = $this->_maxLogFiles; $i > 0; --$i) {
153 153
 			$rotateFile = $file . '.' . $i;
154 154
 			if (is_file($rotateFile)) {
155 155
 				if ($i === $this->_maxLogFiles) {
Please login to merge, or discard this patch.
framework/Util/TFirePhpLogRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
 		$first = $logs[0][3];
61 61
 		$c = count($logs);
62
-		for ($i = 0,$n = $c;$i < $n;++$i) {
62
+		for ($i = 0, $n = $c; $i < $n; ++$i) {
63 63
 			$message = $logs[$i][0];
64 64
 			$level = $logs[$i][1];
65 65
 			$category = $logs[$i][2];
Please login to merge, or discard this patch.
framework/Exceptions/TException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 		array_shift($args);
47 47
 		$n = count($args);
48 48
 		$tokens = [];
49
-		for ($i = 0;$i < $n;++$i) {
49
+		for ($i = 0; $i < $n; ++$i) {
50 50
 			$tokens['{' . $i . '}'] = TPropertyValue::ensureString($args[$i]);
51 51
 		}
52 52
 		parent::__construct(strtr($errorMessage, $tokens));
Please login to merge, or discard this patch.
framework/I18N/core/Gettext/TGettext.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 	public static function poFile2moFile($pofile, $mofile)
128 128
 	{
129 129
 		if (!is_file($pofile)) {
130
-			throw new Exception("File $pofile doesn't exist.");
130
+			throw new Exception("file $pofile doesn't exist.");
131 131
 		}
132 132
 
133 133
 		include_once __DIR__ . '/PO.php';
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 	 * @access  public
123 123
 	 * @param   string  $pofile path to GNU PO file
124 124
 	 * @param   string  $mofile path to GNU MO file
125
-	 * @return  mixed   Returns true on success or PEAR_Error on failure.
125
+	 * @return  boolean   Returns true on success or PEAR_Error on failure.
126 126
 	 */
127 127
 	public static function poFile2moFile($pofile, $mofile)
128 128
 	{
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 	 * toMO
263 263
 	 *
264 264
 	 * @access  protected
265
-	 * @return  object  File_Gettext_MO
265
+	 * @return  TGettext_MO  File_Gettext_MO
266 266
 	 */
267 267
 	public function toMO()
268 268
 	{
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 	 * toPO
277 277
 	 *
278 278
 	 * @access  protected
279
-	 * @return  object      File_Gettext_PO
279
+	 * @return  TGettext_PO      File_Gettext_PO
280 280
 	 */
281 281
 	public function toPO()
282 282
 	{
Please login to merge, or discard this patch.
framework/PradoBase.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@
 block discarded – undo
318 318
 				break;
319 319
 				default:
320 320
 					$s = '$args[1]';
321
-					for ($i = 2;$i < $n;++$i) {
321
+					for ($i = 2; $i < $n; ++$i) {
322 322
 						$s .= ",\$args[$i]";
323 323
 					}
324 324
 					eval("\$component=new $type($s);");
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
 	 * module of the Prado application to handle the exception.
202 202
 	 * If the application or the module does not exist, it simply echoes the
203 203
 	 * exception.
204
-	 * @param Exception $exception exception that is not caught
204
+	 * @param TPhpFatalErrorException $exception exception that is not caught
205 205
 	 */
206 206
 	public static function exceptionHandler($exception)
207 207
 	{
Please login to merge, or discard this patch.
framework/Data/SqlMap/DataMapper/TSqlMapException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 		array_shift($args);
31 31
 		$n = count($args);
32 32
 		$tokens = [];
33
-		for ($i = 0;$i < $n;++$i) {
33
+		for ($i = 0; $i < $n; ++$i) {
34 34
 			if ($args[$i] instanceof SimpleXMLElement) {
35 35
 				$tokens['{' . $i . '}'] = $this->implodeNode($args[$i]);
36 36
 			} else {
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
 	protected function setResultCollection(&$results, &$collections, $properties)
240 240
 	{
241 241
 		if (is_array($results) || $results instanceof \ArrayAccess) {
242
-			for ($i = 0,$k = count($results);$i < $k;$i++) {
242
+			for ($i = 0, $k = count($results); $i < $k; $i++) {
243 243
 				$this->setObjectProperty($results[$i], $properties, $collections);
244 244
 			}
245 245
 		} else {
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
 	private $_context;
31 31
 	private $_criteria;
32 32
 
33
+	/**
34
+	 * @param \Prado\Data\ActiveRecord\TActiveRecordCriteria $criteria
35
+	 */
33 36
 	public function __construct(TActiveRecordRelationContext $context, $criteria)
34 37
 	{
35 38
 		$this->_context = $context;
@@ -95,7 +98,7 @@  discard block
 block discarded – undo
95 98
 
96 99
 	/**
97 100
 	 * Fetch results for current relationship.
98
-	 * @param mixed $obj
101
+	 * @param TActiveRecord $obj
99 102
 	 * @return bool always true.
100 103
 	 */
101 104
 	public function fetchResultsInto($obj)
@@ -223,6 +226,7 @@  discard block
 block discarded – undo
223 226
 	 * @param array $properties source property names
224 227
 	 * @param array &$fkObjects foreign objects
225 228
 	 * @param array $fields foreign object field names.
229
+	 * @param TActiveRecord[] $fkObjects
226 230
 	 */
227 231
 	protected function populateResult(&$results, $properties, &$fkObjects, $fields)
228 232
 	{
Please login to merge, or discard this patch.
framework/Data/Common/Oracle/TOracleCommandBuilder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
 
148 148
 		************************* */
149 149
 		$offset = (int) $offset;
150
-		$toReg = $offset + $limit ;
150
+		$toReg = $offset + $limit;
151 151
 		$fullTableName = $this->getTableInfo()->getTableFullName();
152 152
 		if (empty($sORDERBY)) {
153 153
 			$sORDERBY = "ROWNUM";
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 	}
46 46
 	/**
47 47
 	 *
48
-	 * @param mixed $column
48
+	 * @param \Prado\Data\Common\TDbTableColumn $column
49 49
 	 * @return bool true if column can be used for LIKE searching.
50 50
 	 */
51 51
 	protected function isSearchableColumn($column)
Please login to merge, or discard this patch.