Completed
Push — namespace2 ( fc6e2b...8a6673 )
by Fabio
08:49
created
framework/I18N/core/DateFormat.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -87,6 +87,7 @@  discard block
 block discarded – undo
87 87
 	 * Initialize a new DateFormat.
88 88
 	 * @param mixed either, null, a CultureInfo instance,
89 89
 	 * a DateTimeFormatInfo instance, or a locale.
90
+	 * @param string $formatInfo
90 91
 	 * @return DateFormat instance
91 92
 	 */
92 93
 	function __construct($formatInfo=null)
@@ -106,6 +107,7 @@  discard block
 block discarded – undo
106 107
 	/**
107 108
 	 * Format a date according to the pattern.
108 109
 	 * @param mixed the time as integer or string in strtotime format.
110
+	 * @param string $time
109 111
 	 * @return string formatted date time.
110 112
 	 */
111 113
 	public function format($time, $pattern='F', $charset='UTF-8')
@@ -179,6 +181,7 @@  discard block
 block discarded – undo
179 181
 	 * DateTimeFormatInfo::formatDateTime
180 182
 	 * See the tutorial documentation for futher details on the patterns.
181 183
 	 * @param mixed a pattern.
184
+	 * @param string $pattern
182 185
 	 * @return string a pattern.
183 186
 	 * @see DateTimeFormatInfo::formatDateTime()
184 187
 	 */
@@ -269,6 +272,7 @@  discard block
 block discarded – undo
269 272
 	 * Any substrings, starting and ending with a single quote (')
270 273
 	 * will be treated as a single token.
271 274
 	 * @param string pattern.
275
+	 * @param string $pattern
272 276
 	 * @return array string tokens in an array.
273 277
 	 */
274 278
 	protected function getTokens($pattern)
Please login to merge, or discard this patch.
framework/I18N/core/MessageSource_MySQL.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -271,7 +271,9 @@
 block discarded – undo
271 271
 
272 272
 	/**
273 273
 	 * Update the catalogue last modified time.
274
-	 * @return boolean true if updated, false otherwise.
274
+	 * @param integer $cat_id
275
+	 * @param string $variant
276
+	 * @return resource true if updated, false otherwise.
275 277
 	 */
276 278
 	private function updateCatalogueTime($cat_id, $variant)
277 279
 	{
Please login to merge, or discard this patch.
framework/I18N/core/NumberFormat.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,6 +86,7 @@  discard block
 block discarded – undo
86 86
 	 * a CultureInfo or NumberFormatInfo instance will instantiated a instance
87 87
 	 * for that particular culture.
88 88
 	 * @param mixed either null, a CultureInfo, a NumberFormatInfo, or string
89
+	 * @param string $formatInfo
89 90
 	 * @return NumberFormat
90 91
 	 */
91 92
 	function __construct($formatInfo=null)
@@ -111,6 +112,7 @@  discard block
 block discarded – undo
111 112
 	 * 3 decimal places.
112 113
 	 * @param string 3-letter ISO 4217 code. For example, the code
113 114
 	 * "USD" represents the US Dollar and "EUR" represents the Euro currency.
115
+	 * @param string $number
114 116
 	 * @return string formatted number string
115 117
 	 */
116 118
 	function format($number, $pattern='d', $currency='USD', $charset='UTF-8')
@@ -232,7 +234,7 @@  discard block
 block discarded – undo
232 234
 
233 235
 	/**
234 236
 	 * Format the decimal places.
235
-	 * @param string the decimal number in string form.
237
+	 * @param string string decimal number in string form.
236 238
 	 * @return string formatted decimal places.
237 239
 	 */
238 240
 	protected function formatDecimal($string)
@@ -280,6 +282,7 @@  discard block
 block discarded – undo
280 282
 	 * Set the pattern to format against. The default patterns
281 283
 	 * are retrieved from the NumberFormatInfo instance.
282 284
 	 * @param string the requested patterns.
285
+	 * @param string $pattern
283 286
 	 * @return string a number format pattern.
284 287
 	 */
285 288
 	protected function setPattern($pattern)
Please login to merge, or discard this patch.
framework/I18N/TGlobalization.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 	}
91 91
 
92 92
 	/**
93
-	 * @return string default culture
93
+	 * @return boolean default culture
94 94
 	 */
95 95
 	public function getTranslateDefaultCulture()
96 96
 	{
Please login to merge, or discard this patch.
framework/Security/TSecurityManager.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 	}
183 183
 
184 184
 	/**
185
-	 * @return mixed the algorithm used to encrypt/decrypt data. Defaults to the string 'rijndael-256'.
185
+	 * @return string the algorithm used to encrypt/decrypt data. Defaults to the string 'rijndael-256'.
186 186
 	 */
187 187
 	public function getCryptAlgorithm()
188 188
 	{
@@ -201,6 +201,7 @@  discard block
 block discarded – undo
201 201
 	/**
202 202
 	 * Encrypts data with {@link getEncryptionKey EncryptionKey}.
203 203
 	 * @param string data to be encrypted.
204
+	 * @param string $data
204 205
 	 * @return string the encrypted data
205 206
 	 * @throws TNotSupportedException if PHP Mcrypt extension is not loaded
206 207
 	 */
@@ -220,6 +221,7 @@  discard block
 block discarded – undo
220 221
 	/**
221 222
 	 * Decrypts data with {@link getEncryptionKey EncryptionKey}.
222 223
 	 * @param string data to be decrypted.
224
+	 * @param string $data
223 225
 	 * @return string the decrypted data
224 226
 	 * @throws TNotSupportedException if PHP Mcrypt extension is not loaded
225 227
 	 */
Please login to merge, or discard this patch.
framework/Security/TUser.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -73,6 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
 	/**
75 75
 	 * @param string username
76
+	 * @param string $value
76 77
 	 */
77 78
 	public function setName($value)
78 79
 	{
@@ -89,6 +90,7 @@  discard block
 block discarded – undo
89 90
 
90 91
 	/**
91 92
 	 * @param boolean if the user is a guest
93
+	 * @param boolean $value
92 94
 	 */
93 95
 	public function setIsGuest($value)
94 96
 	{
@@ -170,6 +172,7 @@  discard block
 block discarded – undo
170 172
 	 *
171 173
 	 * @param string variable name
172 174
 	 * @param mixed default value
175
+	 * @param string $key
173 176
 	 * @return mixed the value of the variable. If it doesn't exist, the provided default value will be returned
174 177
 	 * @see setState
175 178
 	 */
@@ -190,6 +193,7 @@  discard block
 block discarded – undo
190 193
 	 * @param string variable name
191 194
 	 * @param mixed variable value
192 195
 	 * @param mixed default value. If $value===$defaultValue, the variable will be removed from persistent storage.
196
+	 * @param string $key
193 197
 	 * @see getState
194 198
 	 */
195 199
 	protected function setState($key,$value,$defaultValue=null)
Please login to merge, or discard this patch.
framework/Util/TSimpleDateFormatter.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -93,6 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
 	/**
95 95
 	 * @param string formatting charset.
96
+	 * @param string $charset
96 97
 	 */
97 98
 	public function setCharset($charset)
98 99
 	{
@@ -313,6 +314,7 @@  discard block
 block discarded – undo
313 314
 
314 315
 	/**
315 316
 	 * Calculate the length of a string, may be consider iconv_strlen?
317
+	 * @param string $string
316 318
 	 */
317 319
 	private function length($string)
318 320
 	{
@@ -338,6 +340,9 @@  discard block
 block discarded – undo
338 340
 
339 341
 	/**
340 342
 	 * Returns true if char at position equals a particular char.
343
+	 * @param string $string
344
+	 * @param integer $pos
345
+	 * @param string $char
341 346
 	 */
342 347
 	private function charEqual($string, $pos, $char)
343 348
 	{
@@ -350,6 +355,10 @@  discard block
 block discarded – undo
350 355
 	 * @param int starting position
351 356
 	 * @param int minimum integer length
352 357
 	 * @param int maximum integer length
358
+	 * @param string $str
359
+	 * @param integer $i
360
+	 * @param integer|null $minlength
361
+	 * @param integer|null $maxlength
353 362
 	 * @return string integer portion of the string, null otherwise
354 363
 	 */
355 364
 	private function getInteger($str,$i,$minlength,$maxlength)
Please login to merge, or discard this patch.
framework/Web/TAssetManager.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -215,6 +215,7 @@  discard block
 block discarded – undo
215 215
 	 * This method does not perform any publishing. It merely tells you
216 216
 	 * if the file path is published, what the URL will be to access it.
217 217
 	 * @param string directory or file path being published
218
+	 * @param string $path
218 219
 	 * @return string the published URL for the file path
219 220
 	 */
220 221
 	public function getPublishedUrl($path)
@@ -230,6 +231,7 @@  discard block
 block discarded – undo
230 231
 	 * Generate a CRC32 hash for the directory path. Collisions are higher
231 232
 	 * than MD5 but generates a much smaller hash string.
232 233
 	 * @param string string to be hashed.
234
+	 * @param string $dir
233 235
 	 * @return string hashed string.
234 236
 	 */
235 237
 	protected function hash($dir)
@@ -243,6 +245,8 @@  discard block
 block discarded – undo
243 245
 	 * or has an older file modification time.
244 246
 	 * @param string source file path
245 247
 	 * @param string destination directory (if not exists, it will be created)
248
+	 * @param string $src
249
+	 * @param string $dst
246 250
 	 */
247 251
 	protected function copyFile($src,$dst)
248 252
 	{
@@ -265,6 +269,8 @@  discard block
 block discarded – undo
265 269
 	 * File modification time is used to ensure the copied files are latest.
266 270
 	 * @param string the source directory
267 271
 	 * @param string the destination directory
272
+	 * @param string $src
273
+	 * @param string $dst
268 274
 	 * @todo a generic solution to ignore certain directories and files
269 275
 	 */
270 276
 	public function copyDirectory($src,$dst)
@@ -306,6 +312,8 @@  discard block
 block discarded – undo
306 312
 	 * @param string tar filename
307 313
 	 * @param string MD5 checksum for the corresponding tar file.
308 314
 	 * @param boolean Wether or not to check the time stamp of the file for publishing. Defaults to false.
315
+	 * @param string $tarfile
316
+	 * @param string $md5sum
309 317
 	 * @return string URL path to the directory where the tar file was extracted.
310 318
 	 */
311 319
 	public function publishTarFile($tarfile, $md5sum, $checkTimestamp=false)
@@ -336,6 +344,7 @@  discard block
 block discarded – undo
336 344
 	 * N.B Tar file must not be compressed.
337 345
 	 * @param string tar file
338 346
 	 * @param string path where the contents of tar file are to be extracted
347
+	 * @param string $destination
339 348
 	 * @return boolean true if extract successful, false otherwise.
340 349
 	 */
341 350
 	protected function deployTarFile($path,$destination)
Please login to merge, or discard this patch.
bin/prado-cli.php 1 patch
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -145,6 +145,10 @@  discard block
 block discarded – undo
145 145
 	 */
146 146
 	public abstract function performAction($args);
147 147
 
148
+	/**
149
+	 * @param string $dir
150
+	 * @param integer $mask
151
+	 */
148 152
 	protected function createDirectory($dir, $mask)
149 153
 	{
150 154
 		if(!is_dir($dir))
@@ -156,6 +160,9 @@  discard block
 block discarded – undo
156 160
 			chmod($dir, $mask);
157 161
 	}
158 162
 
163
+	/**
164
+	 * @param string $filename
165
+	 */
159 166
 	protected function createFile($filename, $content)
160 167
 	{
161 168
 		if(!is_file($filename))
@@ -304,6 +311,9 @@  discard block
 block discarded – undo
304 311
 ';
305 312
 	}
306 313
 
314
+	/**
315
+	 * @param string $appName
316
+	 */
307 317
 	protected function renderConfigFile($appName)
308 318
 	{
309 319
 		return <<<EOD
@@ -500,6 +510,9 @@  discard block
 block discarded – undo
500 510
 		require_once($TEST_TOOLS.'/simpletest/reporter.php');
501 511
 	}
502 512
 
513
+	/**
514
+	 * @param string $dir
515
+	 */
503 516
 	protected function runUnitTests($dir, $args)
504 517
 	{
505 518
 		$app_dir = $this->getAppDir($dir);
@@ -538,6 +551,9 @@  discard block
 block discarded – undo
538 551
 		return realpath($dir.'/tests/unit/');
539 552
 	}
540 553
 
554
+	/**
555
+	 * @param string $dir
556
+	 */
541 557
 	protected function getUnitTestCases($dir,$args)
542 558
 	{
543 559
 		$matches = null;
@@ -565,6 +581,9 @@  discard block
 block discarded – undo
565 581
 		closedir($dir);
566 582
 	}
567 583
 
584
+	/**
585
+	 * @param string $entry
586
+	 */
568 587
 	protected function hasMatch($match,$entry)
569 588
 	{
570 589
 		$file = strtolower(substr($entry,0,strrpos($entry,'.')));
@@ -630,6 +649,9 @@  discard block
 block discarded – undo
630 649
 		return false;
631 650
 	}
632 651
 
652
+	/**
653
+	 * @param string $app_dir
654
+	 */
633 655
 	protected function getActiveRecordConfig($app_dir)
634 656
 	{
635 657
 		if(false === ($xml=$this->getXmlFile($app_dir)))
@@ -645,6 +667,9 @@  discard block
 block discarded – undo
645 667
 		return false;
646 668
 	}
647 669
 
670
+	/**
671
+	 * @param string $app_dir
672
+	 */
648 673
 	protected function getOutputFile($app_dir, $namespace)
649 674
 	{
650 675
 		if(is_file($namespace) && strpos($namespace, $app_dir)===0)
@@ -706,6 +731,9 @@  discard block
 block discarded – undo
706 731
 		return $prop;
707 732
 	}
708 733
 
734
+	/**
735
+	 * @param string $class
736
+	 */
709 737
 	protected function generateClass($properties, $tablename, $class)
710 738
 	{
711 739
 		$props = implode("\n", $properties);
@@ -799,6 +827,9 @@  discard block
 block discarded – undo
799 827
         return false;
800 828
     }
801 829
 
830
+    /**
831
+     * @param string $app_dir
832
+     */
802 833
     protected function getActiveRecordConfig($app_dir) {
803 834
         if (false === ($xml = $this->getXmlFile($app_dir)))
804 835
             return false;
@@ -842,6 +873,9 @@  discard block
 block discarded – undo
842 873
 			}
843 874
 	    }
844 875
 
876
+	    /**
877
+	     * @param string $l
878
+	     */
845 879
 	    public function generate($l)
846 880
 	    {
847 881
 			$input = explode(" ", trim($l));
Please login to merge, or discard this patch.