$this->dieUsageMsg( array( 'missingparam', 'token' ) );
}
- if ( !$this->getUser()->matchEditToken( $moduleParams['token'], $salt, $this->getContext()->getRequest() ) ) {
+ if ( !$this->getUser()->matchEditToken(
+ $moduleParams['token'],
+ $salt,
+ $this->getContext()->getRequest() )
+ ) {
$this->dieUsageMsg( 'sessionfailure' );
}
}
}
// Check permissions
- if ( isset( $show['patrolled'] ) || isset( $show['!patrolled'] ) || isset( $show['unpatrolled'] ) ) {
+ if ( isset( $show['patrolled'] )
+ || isset( $show['!patrolled'] )
+ || isset( $show['unpatrolled'] )
+ ) {
if ( !$user->useRCPatrol() && !$user->useNPPatrol() ) {
$this->dieUsage(
'You need the patrol right to request the patrolled flag',
* @ingroup Content
*/
class TextContentHandler extends ContentHandler {
+ // @codingStandardsIgnoreStart bug 57585
public function __construct( $modelId = CONTENT_MODEL_TEXT,
$formats = array( CONTENT_FORMAT_TEXT )
) {
parent::__construct( $modelId, $formats );
}
+ // @codingStandardsIgnoreEnd
/**
* Returns the content's text as-is.
/** @var string Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1 */
protected $articleUrl;
- /** @var bool Whether to fetch commons image description pages and display them on the local wiki */
+ /** @var bool Whether to fetch commons image description pages and display
+ * them on the local wiki */
public $fetchDescription;
/** @var bool Equivalent to $wgCapitalLinks (or $wgCapitalLinkOverrides[NS_FILE],