break after throw is not executed
return; at end of function is not needed
Change-Id: I7c1c1799f78da11b7607a753d4f215c4547f0428
* @param $newname mixed File name. May be a string or an array with one element
*/
function closeRenameAndReopen( $newname ) {
* @param $newname mixed File name. May be a string or an array with one element
*/
function closeRenameAndReopen( $newname ) {
* @param $open bool If true, a new file with the old filename will be opened again for writing (default: false)
*/
function closeAndRename( $newname, $open = false ) {
* @param $open bool If true, a new file with the old filename will be opened again for writing (default: false)
*/
function closeAndRename( $newname, $open = false ) {
public function free() {
unset( $this->mRows );
public function free() {
unset( $this->mRows );
default:
//this should be impossible to get to
throw new MWException( "Invalid BOM" );
default:
//this should be impossible to get to
throw new MWException( "Invalid BOM" );
} else {
// standard specifically says, if no bom assume utf-8
$this->charset = 'UTF-8';
} else {
// standard specifically says, if no bom assume utf-8
$this->charset = 'UTF-8';
* @param $elm String Namespace of element followed by a space and then tag name of element.
*/
private function endElementModeIgnore ( $elm ) {
* @param $elm String Namespace of element followed by a space and then tag name of element.
*/
private function endElementModeIgnore ( $elm ) {
if ( $this->curItem[0] === $elm ) {
array_shift( $this->curItem );
array_shift( $this->mode );
}
if ( $this->curItem[0] === $elm ) {
array_shift( $this->curItem );
array_shift( $this->mode );
}
break;
default:
throw new MWException( 'StartElement in unknown mode: ' . $this->mode[0] );
break;
default:
throw new MWException( 'StartElement in unknown mode: ' . $this->mode[0] );