* or else the record will be left in a funky state.
* Best if all done inside a transaction.
*
- * @param $dbw Database
+ * @param $dbw DatabaseBase
* @return int The newly created page_id key, or false if the title already existed
* @private
*/
* suspicious or ambiguous input, instead of emulating some standard
* behaviour.
*
- * @param $fileName The archive file name
- * @param $callback The callback function. It will be called for each file
+ * @param $fileName string The archive file name
+ * @param $callback Array The callback function. It will be called for each file
* with a single associative array each time, with members:
*
* - name: The file name. Directories conventionally have a trailing
*
* - size: The uncompressed file size
*
- * @param $options An associative array of read options, with the option
+ * @param $options Array An associative array of read options, with the option
* name in the key. This may currently contain:
*
* - zip64: If this is set to true, then we will emulate a
* valid ZIP64 file, and working out what non-ZIP64 readers will make
* of such a file is not trivial.
*
- * @return A Status object. The following fatal errors are defined:
+ * @return Status object. The following fatal errors are defined:
*
* - zip-file-open-error: The file could not be opened.
*
/**
* Read the directory according to settings in $this.
+ *
+ * @return Status
*/
function execute() {
$this->file = fopen( $this->fileName, 'r' );
unset( $bar['TOOLBOX'] );
$barnumber = 1;
- foreach ( $bar as $heading => $browseLinks ) {
+ foreach ( $bar as $browseLinks ) {
if ( $barnumber > 1 ) {
$s .= "\n<hr class='sep' />";
}
// Add level 2 headline and verify output in the preview
public function testAddLevel2HeadLine() {
- $blnElementPresent = False;
- $blnTextPresent = False;
+ $blnElementPresent = false;
+ $blnTextPresent = false;
$this->getExistingPage();
$this->clickEditLink();
$this->loadWikiEditor();