X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfetchText.php;h=05470d307f24fcd324da66c33cdc4b3b9db9384f;hb=6006a8895bc113f3bf5535b8800ee0945bcd8834;hp=a705bccad0a79aaa764d284e11f5086b880947ea;hpb=67e23ec357d2265bc487bdd4b63e30fcaf5871c7;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fetchText.php b/maintenance/fetchText.php index a705bccad0..05470d307f 100644 --- a/maintenance/fetchText.php +++ b/maintenance/fetchText.php @@ -22,7 +22,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script used to fetch page text in a subprocess. @@ -45,7 +45,7 @@ class FetchText extends Maintenance { * * note that that the text string itself is *not* followed by newline */ - public function execute() { + public function execute() { $db = wfGetDB( DB_SLAVE ); $stdin = $this->getStdin(); while ( !feof( $stdin ) ) { @@ -56,12 +56,12 @@ class FetchText extends Maintenance { } $textId = intval( $line ); $text = $this->doGetText( $db, $textId ); - if ($text === false) { + if ( $text === false ) { # actual error, not zero-length text $textLen = "-1"; } else { - $textLen = strlen($text); + $textLen = strlen( $text ); } $this->output( $textId . "\n" . $textLen . "\n" . $text ); } @@ -88,4 +88,4 @@ class FetchText extends Maintenance { } $maintClass = "FetchText"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;