X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatJson.php;h=e2c6b9ac94672548e7cc3e5c8b982175caa9a48b;hb=d5884183f4de9db480e11422b59716c5560b90fc;hp=15dc73b02c888e832979a634005aedeb792eb74b;hpb=4910f271f1daa800cdea61429ed9066e4ea8c9b8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatJson.php b/includes/api/ApiFormatJson.php index 15dc73b02c..e2c6b9ac94 100644 --- a/includes/api/ApiFormatJson.php +++ b/includes/api/ApiFormatJson.php @@ -32,7 +32,7 @@ class ApiFormatJson extends ApiFormatBase { private $mIsRaw; - public function __construct( $main, $format ) { + public function __construct( ApiMain $main, $format ) { parent::__construct( $main, $format ); $this->mIsRaw = ( $format === 'rawfm' ); } @@ -91,8 +91,8 @@ class ApiFormatJson extends ApiFormatBase { public function getDescription() { if ( $this->mIsRaw ) { return 'Output data with the debugging elements in JSON format' . parent::getDescription(); - } else { - return 'Output data in JSON format' . parent::getDescription(); } + + return 'Output data in JSON format' . parent::getDescription(); } }