Completed
Push — remove_deprecates ( 1de955...c03db3 )
by Fabio
16:32 queued 07:25
created
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/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/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.
framework/Caching/TCache.php 1 patch
Doc Comments   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
 	/**
111 111
 	 * @param string a key identifying a value to be cached
112
-	 * @return sring a key generated from the provided key which ensures the uniqueness across applications
112
+	 * @return string a key generated from the provided key which ensures the uniqueness across applications
113 113
 	 */
114 114
 	protected function generateUniqueKey($key)
115 115
 	{
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	 * @param mixed the value to be cached
144 144
 	 * @param integer the number of seconds in which the cached value will expire. 0 means never expire.
145 145
 	 * @param ICacheDependency dependency of the cached item. If the dependency changes, the item is labeled invalid.
146
-	 * @return boolean true if the value is successfully stored into cache, false otherwise
146
+	 * @return null|boolean true if the value is successfully stored into cache, false otherwise
147 147
 	 */
148 148
 	public function set($id,$value,$expire=0,$dependency=null)
149 149
 	{
@@ -201,6 +201,7 @@  discard block
 block discarded – undo
201 201
 	 * in {@link get()} already. So only the implementation of data retrieval
202 202
 	 * is needed.
203 203
 	 * @param string a unique key identifying the cached value
204
+	 * @param string $key
204 205
 	 * @return string the value stored in cache, false if the value is not in the cache or expired.
205 206
 	 */
206 207
 	abstract protected function getValue($key);
@@ -215,6 +216,8 @@  discard block
 block discarded – undo
215 216
 	 * @param string the key identifying the value to be cached
216 217
 	 * @param string the value to be cached
217 218
 	 * @param integer the number of seconds in which the cached value will expire. 0 means never expire.
219
+	 * @param string $key
220
+	 * @param integer $expire
218 221
 	 * @return boolean true if the value is successfully stored into cache, false otherwise
219 222
 	 */
220 223
 	abstract protected function setValue($key,$value,$expire);
@@ -229,6 +232,8 @@  discard block
 block discarded – undo
229 232
 	 * @param string the key identifying the value to be cached
230 233
 	 * @param string the value to be cached
231 234
 	 * @param integer the number of seconds in which the cached value will expire. 0 means never expire.
235
+	 * @param string $key
236
+	 * @param integer $expire
232 237
 	 * @return boolean true if the value is successfully stored into cache, false otherwise
233 238
 	 */
234 239
 	abstract protected function addValue($key,$value,$expire);
@@ -237,6 +242,7 @@  discard block
 block discarded – undo
237 242
 	 * Deletes a value with the specified key from cache
238 243
 	 * This method should be implemented by child classes to delete the data from actual cache storage.
239 244
 	 * @param string the key of the value to be deleted
245
+	 * @param string $key
240 246
 	 * @return boolean if no error happens during deletion
241 247
 	 */
242 248
 	abstract protected function deleteValue($key);
@@ -280,7 +286,7 @@  discard block
 block discarded – undo
280 286
 	 * Deletes the value with the specified key from cache
281 287
 	 * This method is required by the interface \ArrayAccess.
282 288
 	 * @param string the key of the value to be deleted
283
-	 * @return boolean if no error happens during deletion
289
+	 * @return boolean|null if no error happens during deletion
284 290
 	 */
285 291
 	public function offsetUnset($id)
286 292
 	{
Please login to merge, or discard this patch.
framework/Caching/TDirectoryCacheDependency.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -123,6 +123,7 @@  discard block
 block discarded – undo
123 123
 	 * By default, it always returns true, meaning the file should be checked.
124 124
 	 * You may override this method to check only certain files.
125 125
 	 * @param string the name of the file that may be checked for dependency.
126
+	 * @param string $fileName
126 127
 	 * @return boolean whether this file should be checked.
127 128
 	 */
128 129
 	protected function validateFile($fileName)
@@ -136,6 +137,7 @@  discard block
 block discarded – undo
136 137
 	 * By default, it always returns true, meaning the subdirectory should be checked.
137 138
 	 * You may override this method to check only certain subdirectories.
138 139
 	 * @param string the name of the subdirectory that may be checked for dependency.
140
+	 * @param string $directory
139 141
 	 * @return boolean whether this subdirectory should be checked.
140 142
 	 */
141 143
 	protected function validateDirectory($directory)
@@ -149,6 +151,7 @@  discard block
 block discarded – undo
149 151
 	 * {@link setRecursiveCheck RecursiveCheck} is set true.
150 152
 	 * @param string the directory name
151 153
 	 * @param int level of the recursion
154
+	 * @param string $directory
152 155
 	 * @return array list of file modification time indexed by the file path
153 156
 	 */
154 157
 	protected function generateTimestamps($directory,$level=0)
Please login to merge, or discard this patch.
framework/Collections/TDummyDataSource.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 	}
49 49
 
50 50
 	/**
51
-	 * @return Iterator iterator
51
+	 * @return TDummyDataSourceIterator iterator
52 52
 	 */
53 53
 	public function getIterator()
54 54
 	{
Please login to merge, or discard this patch.
framework/Collections/TList.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,6 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
 	/**
83 83
 	 * @param boolean whether this list is read-only or not
84
+	 * @param boolean $value
84 85
 	 */
85 86
 	protected function setReadOnly($value)
86 87
 	{
@@ -90,7 +91,7 @@  discard block
 block discarded – undo
90 91
 	/**
91 92
 	 * Returns an iterator for traversing the items in the list.
92 93
 	 * This method is required by the interface \IteratorAggregate.
93
-	 * @return Iterator an iterator for traversing the items in the list.
94
+	 * @return \ArrayIterator an iterator for traversing the items in the list.
94 95
 	 */
95 96
 	public function getIterator()
96 97
 	{
@@ -283,7 +284,7 @@  discard block
 block discarded – undo
283 284
 	 * Finds the base item.  If found, the item is inserted after it.
284 285
 	 * @param mixed the base item which comes before the second parameter when added to the list
285 286
 	 * @param mixed the item
286
-	 * @return int the index where the item is inserted
287
+	 * @return double the index where the item is inserted
287 288
 	 * @throws TInvalidDataValueException if the base item is not within this list
288 289
 	 * @throws TInvalidOperationException if the list is read-only
289 290
 	 * @since 3.2a
@@ -334,6 +335,7 @@  discard block
 block discarded – undo
334 335
 	 * Merges iterable data into the map.
335 336
 	 * New data will be appended to the end of the existing data.
336 337
 	 * @param mixed the data to be merged with, must be an array or object implementing Traversable
338
+	 * @param \Prado\Web\UI\WebControls\TDataGridColumnCollection|null $data
337 339
 	 * @throws TInvalidDataTypeException If data is neither an array nor an iterator.
338 340
 	 */
339 341
 	public function mergeWith($data)
Please login to merge, or discard this patch.
framework/Collections/TMap.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,6 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
 	/**
88 88
 	 * @param boolean whether this list is read-only or not
89
+	 * @param boolean $value
89 90
 	 */
90 91
 	protected function setReadOnly($value)
91 92
 	{
@@ -95,7 +96,7 @@  discard block
 block discarded – undo
95 96
 	/**
96 97
 	 * Returns an iterator for traversing the items in the list.
97 98
 	 * This method is required by the interface \IteratorAggregate.
98
-	 * @return Iterator an iterator for traversing the items in the list.
99
+	 * @return \ArrayIterator an iterator for traversing the items in the list.
99 100
 	 */
100 101
 	public function getIterator()
101 102
 	{
Please login to merge, or discard this patch.
framework/Collections/TPagedDataSource.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -68,6 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
 	/**
70 70
 	 * @param mixed original data source
71
+	 * @param \Traversable $value
71 72
 	 */
72 73
 	public function setDataSource($value)
73 74
 	{
@@ -93,6 +94,7 @@  discard block
 block discarded – undo
93 94
 
94 95
 	/**
95 96
 	 * @param integer number of items in each page
97
+	 * @param integer $value
96 98
 	 */
97 99
 	public function setPageSize($value)
98 100
 	{
@@ -112,6 +114,7 @@  discard block
 block discarded – undo
112 114
 
113 115
 	/**
114 116
 	 * @param integer current page index
117
+	 * @param integer $value
115 118
 	 */
116 119
 	public function setCurrentPageIndex($value)
117 120
 	{
@@ -130,6 +133,7 @@  discard block
 block discarded – undo
130 133
 
131 134
 	/**
132 135
 	 * @param boolean whether to allow paging
136
+	 * @param boolean $value
133 137
 	 */
134 138
 	public function setAllowPaging($value)
135 139
 	{
@@ -146,6 +150,7 @@  discard block
 block discarded – undo
146 150
 
147 151
 	/**
148 152
 	 * @param boolean whether to allow custom paging
153
+	 * @param boolean $value
149 154
 	 */
150 155
 	public function setAllowCustomPaging($value)
151 156
 	{
@@ -162,6 +167,7 @@  discard block
 block discarded – undo
162 167
 
163 168
 	/**
164 169
 	 * @param integer user-assigned number of items in data source
170
+	 * @param integer $value
165 171
 	 */
166 172
 	public function setVirtualItemCount($value)
167 173
 	{
Please login to merge, or discard this patch.