Index: trunk/phase3/includes/MimeMagic.php |
— | — | @@ -424,6 +424,10 @@ |
425 | 425 | /** |
426 | 426 | * Returns true if the mime type is known to represent an image format |
427 | 427 | * supported by the PHP GD library. |
| 428 | + * |
| 429 | + * @param $mime string |
| 430 | + * |
| 431 | + * @return bool |
428 | 432 | */ |
429 | 433 | public function isPHPImageType( $mime ) { |
430 | 434 | // As defined by imagegetsize and image_type_to_mime |
Index: trunk/phase3/includes/parser/Preprocessor_Hash.php |
— | — | @@ -39,6 +39,10 @@ |
40 | 40 | return new PPCustomFrame_Hash( $this, $args ); |
41 | 41 | } |
42 | 42 | |
| 43 | + /** |
| 44 | + * @param $values array |
| 45 | + * @return PPNode_Hash_Array |
| 46 | + */ |
43 | 47 | function newPartNodeArray( $values ) { |
44 | 48 | $list = array(); |
45 | 49 | |
— | — | @@ -86,7 +90,7 @@ |
87 | 91 | * cache may be implemented at a later date which takes further advantage of these strict |
88 | 92 | * dependency requirements. |
89 | 93 | * |
90 | | - * @private |
| 94 | + * @return PPNode_Hash_Tree |
91 | 95 | */ |
92 | 96 | function preprocessToObj( $text, $flags = 0 ) { |
93 | 97 | wfProfileIn( __METHOD__ ); |
— | — | @@ -424,9 +428,7 @@ |
425 | 429 | extract( $stack->getFlags() ); |
426 | 430 | $i += $count; |
427 | 431 | } |
428 | | - } |
429 | | - |
430 | | - elseif ( $found == 'line-end' ) { |
| 432 | + } elseif ( $found == 'line-end' ) { |
431 | 433 | $piece = $stack->top; |
432 | 434 | // A heading must be open, otherwise \n wouldn't have been in the search list |
433 | 435 | assert( $piece->open == "\n" ); |
— | — | @@ -488,9 +490,7 @@ |
489 | 491 | // another heading. Infinite loops are avoided because the next iteration MUST |
490 | 492 | // hit the heading open case above, which unconditionally increments the |
491 | 493 | // input pointer. |
492 | | - } |
493 | | - |
494 | | - elseif ( $found == 'open' ) { |
| 494 | + } elseif ( $found == 'open' ) { |
495 | 495 | # count opening brace characters |
496 | 496 | $count = strspn( $text, $curChar, $i ); |
497 | 497 | |
— | — | @@ -512,9 +512,7 @@ |
513 | 513 | $accum->addLiteral( str_repeat( $curChar, $count ) ); |
514 | 514 | } |
515 | 515 | $i += $count; |
516 | | - } |
517 | | - |
518 | | - elseif ( $found == 'close' ) { |
| 516 | + } elseif ( $found == 'close' ) { |
519 | 517 | $piece = $stack->top; |
520 | 518 | # lets check if there are enough characters for closing brace |
521 | 519 | $maxCount = $piece->count; |
— | — | @@ -654,16 +652,12 @@ |
655 | 653 | } else { |
656 | 654 | $accum->addAccum( $element ); |
657 | 655 | } |
658 | | - } |
659 | | - |
660 | | - elseif ( $found == 'pipe' ) { |
| 656 | + } elseif ( $found == 'pipe' ) { |
661 | 657 | $findEquals = true; // shortcut for getFlags() |
662 | 658 | $stack->addPart(); |
663 | 659 | $accum =& $stack->getAccum(); |
664 | 660 | ++$i; |
665 | | - } |
666 | | - |
667 | | - elseif ( $found == 'equals' ) { |
| 661 | + } elseif ( $found == 'equals' ) { |
668 | 662 | $findEquals = false; // shortcut for getFlags() |
669 | 663 | $accum->addNodeWithText( 'equals', '=' ); |
670 | 664 | $stack->getCurrentPart()->eqpos = $accum->lastNode; |
— | — | @@ -724,6 +718,8 @@ |
725 | 719 | |
726 | 720 | /** |
727 | 721 | * Get the accumulator that would result if the close is not found. |
| 722 | + * |
| 723 | + * @return PPDAccum_Hash |
728 | 724 | */ |
729 | 725 | function breakSyntax( $openingCount = false ) { |
730 | 726 | if ( $this->open == "\n" ) { |
— | — | @@ -874,6 +870,11 @@ |
875 | 871 | /** |
876 | 872 | * Create a new child frame |
877 | 873 | * $args is optionally a multi-root PPNode or array containing the template arguments |
| 874 | + * |
| 875 | + * @param $args PPNode_Hash_Array|array |
| 876 | + * @param $title Title|false |
| 877 | + * |
| 878 | + * @return PPTemplateFrame_Hash |
878 | 879 | */ |
879 | 880 | function newChild( $args = false, $title = false ) { |
880 | 881 | $namedArgs = array(); |
— | — | @@ -904,6 +905,12 @@ |
905 | 906 | return new PPTemplateFrame_Hash( $this->preprocessor, $this, $numberedArgs, $namedArgs, $title ); |
906 | 907 | } |
907 | 908 | |
| 909 | + /** |
| 910 | + * @throws MWException |
| 911 | + * @param $root |
| 912 | + * @param $flags int |
| 913 | + * @return string |
| 914 | + */ |
908 | 915 | function expand( $root, $flags = 0 ) { |
909 | 916 | static $expansionDepth = 0; |
910 | 917 | if ( is_string( $root ) ) { |
— | — | @@ -1073,6 +1080,11 @@ |
1074 | 1081 | return $outStack[0]; |
1075 | 1082 | } |
1076 | 1083 | |
| 1084 | + /** |
| 1085 | + * @param $sep |
| 1086 | + * @param $flags |
| 1087 | + * @return string |
| 1088 | + */ |
1077 | 1089 | function implodeWithFlags( $sep, $flags /*, ... */ ) { |
1078 | 1090 | $args = array_slice( func_get_args(), 2 ); |
1079 | 1091 | |
— | — | @@ -1100,6 +1112,7 @@ |
1101 | 1113 | /** |
1102 | 1114 | * Implode with no flags specified |
1103 | 1115 | * This previously called implodeWithFlags but has now been inlined to reduce stack depth |
| 1116 | + * @return string |
1104 | 1117 | */ |
1105 | 1118 | function implode( $sep /*, ... */ ) { |
1106 | 1119 | $args = array_slice( func_get_args(), 1 ); |
— | — | @@ -1128,6 +1141,8 @@ |
1129 | 1142 | /** |
1130 | 1143 | * Makes an object that, when expand()ed, will be the same as one obtained |
1131 | 1144 | * with implode() |
| 1145 | + * |
| 1146 | + * @return PPNode_Hash_Array |
1132 | 1147 | */ |
1133 | 1148 | function virtualImplode( $sep /*, ... */ ) { |
1134 | 1149 | $args = array_slice( func_get_args(), 1 ); |
— | — | @@ -1155,6 +1170,8 @@ |
1156 | 1171 | |
1157 | 1172 | /** |
1158 | 1173 | * Virtual implode with brackets |
| 1174 | + * |
| 1175 | + * @return PPNode_Hash_Array |
1159 | 1176 | */ |
1160 | 1177 | function virtualBracketedImplode( $start, $sep, $end /*, ... */ ) { |
1161 | 1178 | $args = array_slice( func_get_args(), 3 ); |
— | — | @@ -1185,6 +1202,10 @@ |
1186 | 1203 | return 'frame{}'; |
1187 | 1204 | } |
1188 | 1205 | |
| 1206 | + /** |
| 1207 | + * @param $level bool |
| 1208 | + * @return array|bool|String |
| 1209 | + */ |
1189 | 1210 | function getPDBK( $level = false ) { |
1190 | 1211 | if ( $level === false ) { |
1191 | 1212 | return $this->title->getPrefixedDBkey(); |
— | — | @@ -1193,25 +1214,40 @@ |
1194 | 1215 | } |
1195 | 1216 | } |
1196 | 1217 | |
| 1218 | + /** |
| 1219 | + * @return array |
| 1220 | + */ |
1197 | 1221 | function getArguments() { |
1198 | 1222 | return array(); |
1199 | 1223 | } |
1200 | 1224 | |
| 1225 | + /** |
| 1226 | + * @return array |
| 1227 | + */ |
1201 | 1228 | function getNumberedArguments() { |
1202 | 1229 | return array(); |
1203 | 1230 | } |
1204 | 1231 | |
| 1232 | + /** |
| 1233 | + * @return array |
| 1234 | + */ |
1205 | 1235 | function getNamedArguments() { |
1206 | 1236 | return array(); |
1207 | 1237 | } |
1208 | 1238 | |
1209 | 1239 | /** |
1210 | 1240 | * Returns true if there are no arguments in this frame |
| 1241 | + * |
| 1242 | + * @return bool |
1211 | 1243 | */ |
1212 | 1244 | function isEmpty() { |
1213 | 1245 | return true; |
1214 | 1246 | } |
1215 | 1247 | |
| 1248 | + /** |
| 1249 | + * @param $name |
| 1250 | + * @return bool |
| 1251 | + */ |
1216 | 1252 | function getArgument( $name ) { |
1217 | 1253 | return false; |
1218 | 1254 | } |
— | — | @@ -1220,6 +1256,8 @@ |
1221 | 1257 | * Returns true if the infinite loop check is OK, false if a loop is detected |
1222 | 1258 | * |
1223 | 1259 | * @param $title Title |
| 1260 | + * |
| 1261 | + * @return bool |
1224 | 1262 | */ |
1225 | 1263 | function loopCheck( $title ) { |
1226 | 1264 | return !isset( $this->loopCheckHash[$title->getPrefixedDBkey()] ); |
— | — | @@ -1227,6 +1265,8 @@ |
1228 | 1266 | |
1229 | 1267 | /** |
1230 | 1268 | * Return true if the frame is a template frame |
| 1269 | + * |
| 1270 | + * @return bool |
1231 | 1271 | */ |
1232 | 1272 | function isTemplate() { |
1233 | 1273 | return false; |
— | — | @@ -1326,6 +1366,10 @@ |
1327 | 1367 | return $arguments; |
1328 | 1368 | } |
1329 | 1369 | |
| 1370 | + /** |
| 1371 | + * @param $index |
| 1372 | + * @return array|bool |
| 1373 | + */ |
1330 | 1374 | function getNumberedArgument( $index ) { |
1331 | 1375 | if ( !isset( $this->numberedArgs[$index] ) ) { |
1332 | 1376 | return false; |
— | — | @@ -1337,6 +1381,10 @@ |
1338 | 1382 | return $this->numberedExpansionCache[$index]; |
1339 | 1383 | } |
1340 | 1384 | |
| 1385 | + /** |
| 1386 | + * @param $name |
| 1387 | + * @return bool |
| 1388 | + */ |
1341 | 1389 | function getNamedArgument( $name ) { |
1342 | 1390 | if ( !isset( $this->namedArgs[$name] ) ) { |
1343 | 1391 | return false; |
— | — | @@ -1349,6 +1397,10 @@ |
1350 | 1398 | return $this->namedExpansionCache[$name]; |
1351 | 1399 | } |
1352 | 1400 | |
| 1401 | + /** |
| 1402 | + * @param $name |
| 1403 | + * @return array|bool |
| 1404 | + */ |
1353 | 1405 | function getArgument( $name ) { |
1354 | 1406 | $text = $this->getNumberedArgument( $name ); |
1355 | 1407 | if ( $text === false ) { |
— | — | @@ -1359,6 +1411,8 @@ |
1360 | 1412 | |
1361 | 1413 | /** |
1362 | 1414 | * Return true if the frame is a template frame |
| 1415 | + * |
| 1416 | + * @return bool |
1363 | 1417 | */ |
1364 | 1418 | function isTemplate() { |
1365 | 1419 | return true; |
— | — | @@ -1393,10 +1447,17 @@ |
1394 | 1448 | return $s; |
1395 | 1449 | } |
1396 | 1450 | |
| 1451 | + /** |
| 1452 | + * @return bool |
| 1453 | + */ |
1397 | 1454 | function isEmpty() { |
1398 | 1455 | return !count( $this->args ); |
1399 | 1456 | } |
1400 | 1457 | |
| 1458 | + /** |
| 1459 | + * @param $index |
| 1460 | + * @return bool |
| 1461 | + */ |
1401 | 1462 | function getArgument( $index ) { |
1402 | 1463 | if ( !isset( $this->args[$index] ) ) { |
1403 | 1464 | return false; |
— | — | @@ -1433,6 +1494,11 @@ |
1434 | 1495 | } |
1435 | 1496 | } |
1436 | 1497 | |
| 1498 | + /** |
| 1499 | + * @param $name |
| 1500 | + * @param $text |
| 1501 | + * @return PPNode_Hash_Tree |
| 1502 | + */ |
1437 | 1503 | static function newWithText( $name, $text ) { |
1438 | 1504 | $obj = new self( $name ); |
1439 | 1505 | $obj->addChild( new PPNode_Hash_Text( $text ) ); |
— | — | @@ -1448,6 +1514,9 @@ |
1449 | 1515 | } |
1450 | 1516 | } |
1451 | 1517 | |
| 1518 | + /** |
| 1519 | + * @return PPNode_Hash_Array |
| 1520 | + */ |
1452 | 1521 | function getChildren() { |
1453 | 1522 | $children = array(); |
1454 | 1523 | for ( $child = $this->firstChild; $child; $child = $child->nextSibling ) { |
— | — | @@ -1474,9 +1543,24 @@ |
1475 | 1544 | return $children; |
1476 | 1545 | } |
1477 | 1546 | |
1478 | | - function getLength() { return false; } |
1479 | | - function item( $i ) { return false; } |
| 1547 | + /** |
| 1548 | + * @return bool |
| 1549 | + */ |
| 1550 | + function getLength() { |
| 1551 | + return false; |
| 1552 | + } |
1480 | 1553 | |
| 1554 | + /** |
| 1555 | + * @param $i |
| 1556 | + * @return bool |
| 1557 | + */ |
| 1558 | + function item( $i ) { |
| 1559 | + return false; |
| 1560 | + } |
| 1561 | + |
| 1562 | + /** |
| 1563 | + * @return string |
| 1564 | + */ |
1481 | 1565 | function getName() { |
1482 | 1566 | return $this->name; |
1483 | 1567 | } |
— | — | @@ -1486,6 +1570,8 @@ |
1487 | 1571 | * name PPNode name |
1488 | 1572 | * index String index |
1489 | 1573 | * value PPNode value |
| 1574 | + * |
| 1575 | + * @return array |
1490 | 1576 | */ |
1491 | 1577 | function splitArg() { |
1492 | 1578 | $bits = array(); |
— | — | @@ -1517,6 +1603,8 @@ |
1518 | 1604 | /** |
1519 | 1605 | * Split an <ext> node into an associative array containing name, attr, inner and close |
1520 | 1606 | * All values in the resulting array are PPNodes. Inner and close are optional. |
| 1607 | + * |
| 1608 | + * @return array |
1521 | 1609 | */ |
1522 | 1610 | function splitExt() { |
1523 | 1611 | $bits = array(); |
— | — | @@ -1542,6 +1630,8 @@ |
1543 | 1631 | |
1544 | 1632 | /** |
1545 | 1633 | * Split an <h> node |
| 1634 | + * |
| 1635 | + * @return array |
1546 | 1636 | */ |
1547 | 1637 | function splitHeading() { |
1548 | 1638 | if ( $this->name !== 'h' ) { |
— | — | @@ -1566,6 +1656,8 @@ |
1567 | 1657 | |
1568 | 1658 | /** |
1569 | 1659 | * Split a <template> or <tplarg> node |
| 1660 | + * |
| 1661 | + * @return array |
1570 | 1662 | */ |
1571 | 1663 | function splitTemplate() { |
1572 | 1664 | $parts = array(); |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -262,6 +262,10 @@ |
263 | 263 | * Returns the array of attributes used when linking to the Title $target |
264 | 264 | * |
265 | 265 | * @param $target Title |
| 266 | + * @param $attribs |
| 267 | + * @param $options |
| 268 | + * |
| 269 | + * @return array |
266 | 270 | */ |
267 | 271 | private static function linkAttribs( $target, $attribs, $options ) { |
268 | 272 | wfProfileIn( __METHOD__ ); |
— | — | @@ -834,7 +838,7 @@ |
835 | 839 | * This will make a broken link if $file is false. |
836 | 840 | * |
837 | 841 | * @param $title Title object. |
838 | | - * @param $file mixed File object or false |
| 842 | + * @param $file File|false mixed File object or false |
839 | 843 | * @param $text String: pre-sanitized HTML |
840 | 844 | * @return String: HTML |
841 | 845 | * |
— | — | @@ -857,12 +861,16 @@ |
858 | 862 | } |
859 | 863 | |
860 | 864 | /** |
861 | | - * Make a link to a special page given its name and, optionally, |
| 865 | + * Make a link to a special page given its name and, optionally, |
862 | 866 | * a message key from the link text. |
863 | 867 | * Usage example: $skin->specialLink( 'recentchanges' ) |
| 868 | + * |
| 869 | + * @return bool |
864 | 870 | */ |
865 | 871 | static function specialLink( $name, $key = '' ) { |
866 | | - if ( $key == '' ) { $key = strtolower( $name ); } |
| 872 | + if ( $key == '' ) { |
| 873 | + $key = strtolower( $name ); |
| 874 | + } |
867 | 875 | |
868 | 876 | return self::linkKnown( SpecialPage::getTitleFor( $name ) , wfMsg( $key ) ); |
869 | 877 | } |
— | — | @@ -1103,6 +1111,10 @@ |
1104 | 1112 | return $comment; |
1105 | 1113 | } |
1106 | 1114 | |
| 1115 | + /** |
| 1116 | + * @param $match |
| 1117 | + * @return string |
| 1118 | + */ |
1107 | 1119 | private static function formatAutocommentsCallback( $match ) { |
1108 | 1120 | $title = self::$autocommentTitle; |
1109 | 1121 | $local = self::$autocommentLocal; |
— | — | @@ -1149,6 +1161,9 @@ |
1150 | 1162 | return $comment; |
1151 | 1163 | } |
1152 | 1164 | |
| 1165 | + /** |
| 1166 | + * @var Title |
| 1167 | + */ |
1153 | 1168 | static $commentContextTitle; |
1154 | 1169 | static $commentLocal; |
1155 | 1170 | |
— | — | @@ -1174,6 +1189,10 @@ |
1175 | 1190 | return $html; |
1176 | 1191 | } |
1177 | 1192 | |
| 1193 | + /** |
| 1194 | + * @param $match |
| 1195 | + * @return mixed |
| 1196 | + */ |
1178 | 1197 | protected static function formatLinksInCommentCallback( $match ) { |
1179 | 1198 | global $wgContLang; |
1180 | 1199 | |
— | — | @@ -1369,6 +1388,10 @@ |
1370 | 1389 | return $block; |
1371 | 1390 | } |
1372 | 1391 | |
| 1392 | + /** |
| 1393 | + * @param $size |
| 1394 | + * @return string |
| 1395 | + */ |
1373 | 1396 | public static function formatRevisionSize( $size ) { |
1374 | 1397 | if ( $size == 0 ) { |
1375 | 1398 | $stxt = wfMsgExt( 'historyempty', 'parsemag' ); |
— | — | @@ -1383,6 +1406,8 @@ |
1384 | 1407 | |
1385 | 1408 | /** |
1386 | 1409 | * Add another level to the Table of Contents |
| 1410 | + * |
| 1411 | + * @return string |
1387 | 1412 | */ |
1388 | 1413 | static function tocIndent() { |
1389 | 1414 | return "\n<ul>"; |
— | — | @@ -1390,6 +1415,8 @@ |
1391 | 1416 | |
1392 | 1417 | /** |
1393 | 1418 | * Finish one or more sublevels on the Table of Contents |
| 1419 | + * |
| 1420 | + * @return string |
1394 | 1421 | */ |
1395 | 1422 | static function tocUnindent( $level ) { |
1396 | 1423 | return "</li>\n" . str_repeat( "</ul>\n</li>\n", $level > 0 ? $level : 0 ); |
— | — | @@ -1397,11 +1424,14 @@ |
1398 | 1425 | |
1399 | 1426 | /** |
1400 | 1427 | * parameter level defines if we are on an indentation level |
| 1428 | + * |
| 1429 | + * @return string |
1401 | 1430 | */ |
1402 | 1431 | static function tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex = false ) { |
1403 | 1432 | $classes = "toclevel-$level"; |
1404 | | - if ( $sectionIndex !== false ) |
| 1433 | + if ( $sectionIndex !== false ) { |
1405 | 1434 | $classes .= " tocsection-$sectionIndex"; |
| 1435 | + } |
1406 | 1436 | return "\n<li class=\"$classes\"><a href=\"#" . |
1407 | 1437 | $anchor . '"><span class="tocnumber">' . |
1408 | 1438 | $tocnumber . '</span> <span class="toctext">' . |
Index: trunk/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -917,7 +917,7 @@ |
918 | 918 | * |
919 | 919 | * @param $table Array |
920 | 920 | * @param $field String |
921 | | - * @return ORAField |
| 921 | + * @return ORAField|ORAResult |
922 | 922 | */ |
923 | 923 | private function fieldInfoMulti( $table, $field ) { |
924 | 924 | $field = strtoupper( $field ); |
Index: trunk/phase3/includes/filerepo/File.php |
— | — | @@ -287,6 +287,8 @@ |
288 | 288 | * |
289 | 289 | * STUB |
290 | 290 | * Overridden by LocalFile, UnregisteredLocalFile |
| 291 | + * |
| 292 | + * @return false|number |
291 | 293 | */ |
292 | 294 | public function getHeight( $page = 1 ) { |
293 | 295 | return false; |
— | — | @@ -297,8 +299,10 @@ |
298 | 300 | * STUB |
299 | 301 | * |
300 | 302 | * @param $type string 'text' or 'id' |
| 303 | + * |
| 304 | + * @return string|int |
301 | 305 | */ |
302 | | - public function getUser( $type='text' ) { |
| 306 | + public function getUser( $type = 'text' ) { |
303 | 307 | return null; |
304 | 308 | } |
305 | 309 | |
— | — | @@ -317,9 +321,9 @@ |
318 | 322 | } |
319 | 323 | |
320 | 324 | /** |
321 | | - * Return true if the file is vectorized |
| 325 | + * Return true if the file is vectorized |
322 | 326 | * |
323 | | - * @retur bool |
| 327 | + * @return bool |
324 | 328 | */ |
325 | 329 | public function isVectorized() { |
326 | 330 | $handler = $this->getHandler(); |
— | — | @@ -335,7 +339,9 @@ |
336 | 340 | * Overridden by LocalFile, UnregisteredLocalFile |
337 | 341 | * STUB |
338 | 342 | */ |
339 | | - public function getMetadata() { return false; } |
| 343 | + public function getMetadata() { |
| 344 | + return false; |
| 345 | + } |
340 | 346 | |
341 | 347 | /** |
342 | 348 | * get versioned metadata |
— | — | @@ -362,14 +368,18 @@ |
363 | 369 | * Overridden by LocalFile |
364 | 370 | * STUB |
365 | 371 | */ |
366 | | - public function getBitDepth() { return 0; } |
| 372 | + public function getBitDepth() { |
| 373 | + return 0; |
| 374 | + } |
367 | 375 | |
368 | 376 | /** |
369 | 377 | * Return the size of the image file, in bytes |
370 | 378 | * Overridden by LocalFile, UnregisteredLocalFile |
371 | 379 | * STUB |
372 | 380 | */ |
373 | | - public function getSize() { return false; } |
| 381 | + public function getSize() { |
| 382 | + return false; |
| 383 | + } |
374 | 384 | |
375 | 385 | /** |
376 | 386 | * Returns the mime type of the file. |
— | — | @@ -378,7 +388,9 @@ |
379 | 389 | * |
380 | 390 | * @return string |
381 | 391 | */ |
382 | | - function getMimeType() { return 'unknown/unknown'; } |
| 392 | + function getMimeType() { |
| 393 | + return 'unknown/unknown'; |
| 394 | + } |
383 | 395 | |
384 | 396 | /** |
385 | 397 | * Return the type of the media in the file. |
— | — | @@ -457,12 +469,20 @@ |
458 | 470 | return $this->isSafeFile; |
459 | 471 | } |
460 | 472 | |
461 | | - /** Accessor for __get() */ |
| 473 | + /** |
| 474 | + * Accessor for __get() |
| 475 | + * |
| 476 | + * @return bool |
| 477 | + */ |
462 | 478 | protected function getIsSafeFile() { |
463 | 479 | return $this->isSafeFile(); |
464 | 480 | } |
465 | 481 | |
466 | | - /** Uncached accessor */ |
| 482 | + /** |
| 483 | + * Uncached accessor |
| 484 | + * |
| 485 | + * @return bool |
| 486 | + */ |
467 | 487 | protected function _getIsSafeFile() { |
468 | 488 | if ( $this->allowInlineDisplay() ) { |
469 | 489 | return true; |
— | — | @@ -890,7 +910,7 @@ |
891 | 911 | * @return string |
892 | 912 | */ |
893 | 913 | function getArchivePath( $suffix = false ) { |
894 | | - return $this->repo->getZonePath('public') . '/' . $this->getArchiveRel( $suffix ); |
| 914 | + return $this->repo->getZonePath( 'public' ) . '/' . $this->getArchiveRel( $suffix ); |
895 | 915 | } |
896 | 916 | |
897 | 917 | /** |
— | — | @@ -901,7 +921,7 @@ |
902 | 922 | * @return string |
903 | 923 | */ |
904 | 924 | function getThumbPath( $suffix = false ) { |
905 | | - $path = $this->repo->getZonePath('thumb') . '/' . $this->getRel(); |
| 925 | + $path = $this->repo->getZonePath( 'thumb' ) . '/' . $this->getRel(); |
906 | 926 | if ( $suffix !== false ) { |
907 | 927 | $path .= '/' . $suffix; |
908 | 928 | } |
— | — | @@ -943,7 +963,7 @@ |
944 | 964 | /** |
945 | 965 | * Get the virtual URL for an archive file or directory |
946 | 966 | * |
947 | | - * @param $suffix string |
| 967 | + * @param bool|string $suffix |
948 | 968 | * |
949 | 969 | * @return string |
950 | 970 | */ |
— | — | @@ -994,6 +1014,9 @@ |
995 | 1015 | return $this->repo->isHashed(); |
996 | 1016 | } |
997 | 1017 | |
| 1018 | + /** |
| 1019 | + * @throws MWException |
| 1020 | + */ |
998 | 1021 | function readOnlyError() { |
999 | 1022 | throw new MWException( get_class($this) . ': write operations are not supported' ); |
1000 | 1023 | } |
Index: trunk/phase3/includes/installer/OracleUpdater.php |
— | — | @@ -13,6 +13,14 @@ |
14 | 14 | * @since 1.17 |
15 | 15 | */ |
16 | 16 | class OracleUpdater extends DatabaseUpdater { |
| 17 | + |
| 18 | + /** |
| 19 | + * Handle to the database subclass |
| 20 | + * |
| 21 | + * @var DatabaseOracle |
| 22 | + */ |
| 23 | + protected $db; |
| 24 | + |
17 | 25 | protected function getCoreUpdateList() { |
18 | 26 | return array( |
19 | 27 | // 1.16 |
Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -1176,9 +1176,9 @@ |
1177 | 1177 | } |
1178 | 1178 | |
1179 | 1179 | /** |
1180 | | - * @param $signature |
1181 | | - * @param $alldata |
1182 | | - * @return |
| 1180 | + * @param $signature string |
| 1181 | + * @param $alldata array |
| 1182 | + * @return string |
1183 | 1183 | */ |
1184 | 1184 | static function cleanSignature( $signature, $alldata ) { |
1185 | 1185 | global $wgParser; |