Update formatting in maintenance/ (3/4)
[lhc/web/wiklou.git] / maintenance / importTextFile.php
index c7df6c3..f73dd1c 100644 (file)
@@ -60,33 +60,29 @@ if ( count( $args ) < 1 || isset( $options['help'] ) ) {
                                        $content = ContentHandler::makeContent( $text, $title );
                                        $page->doEditContent( $content, $comment, $flags, false, $user );
                                        echo "done.\n";
-
                                } else {
                                        echo "invalid username.\n";
                                }
-
                        } else {
                                echo "page exists.\n";
                        }
-
                } else {
                        echo "invalid title.\n";
                }
-
        } else {
                echo "does not exist.\n";
        }
-
 }
 
 function titleFromFilename( $filename ) {
        $parts = explode( '/', $filename );
-       $parts = explode( '.', $parts[ count( $parts ) - 1 ] );
+       $parts = explode( '.', $parts[count( $parts ) - 1] );
+
        return $parts[0];
 }
 
 function showHelp() {
-print <<<EOF
+       print <<<EOF
 USAGE: php importTextFile.php <options> <filename>
 
 <filename> : Path to the file containing page content to import