Like suggested in https://www.mediawiki.org/wiki/Manual:Coding_conventions#Line_continuation
Change-Id: I86db3c24ffc69737c6917cfc68300ff4695961cd
if ( !$this->multiHandle ) {
if ( !function_exists( 'curl_multi_init' ) ) {
throw new Exception( "PHP cURL function curl_multi_init missing. " .
- "Check https://www.mediawiki.org/wiki/Manual:CURL" );
+ "Check https://www.mediawiki.org/wiki/Manual:CURL" );
}
$cmh = curl_multi_init();
curl_multi_setopt( $cmh, CURLMOPT_PIPELINING, (int)$this->usePipelining );
* @return bool
*/
public function swapICCProfile( $filepath, array $colorSpaces,
- array $oldProfileStrings, $profileFilepath
+ array $oldProfileStrings, $profileFilepath
) {
global $wgExiftool;
'activeValue' => false,
'default' => $this->getUser()->getBoolOption( 'extendwatchlist' ),
'queryCallable' => function ( $specialClassName, $ctx, $dbr, &$tables,
- &$fields, &$conds, &$query_options, &$join_conds ) {
+ &$fields, &$conds, &$query_options, &$join_conds ) {
$nonRevisionTypes = [ RC_LOG ];
Hooks::run( 'SpecialWatchlistGetNonRevisionTypes', [ &$nonRevisionTypes ] );
if ( $nonRevisionTypes ) {
],
'default' => ChangesListStringOptionsFilterGroup::NONE,
'queryCallable' => function ( $specialPageClassName, $context, $dbr,
- &$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) {
+ &$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) {
if ( $selectedValues === [ 'seen' ] ) {
$conds[] = $dbr->makeList( [
'wl_notificationtimestamp IS NULL',
* @param array $flags
*/
function __construct( Language $langobj, $maincode,
- $variants = [],
- $variantfallbacks = [],
- $flags = [] ) {
+ $variants = [],
+ $variantfallbacks = [],
+ $flags = []
+ ) {
parent::__construct( $langobj, $maincode,
$variants, $variantfallbacks, $flags );
$variants = [],
$variantfallbacks = [],
$flags = [],
- $manualLevel = [] ) {
+ $manualLevel = []
+ ) {
$this->mDescCodeSep = ':';
$this->mDescVarSep = ';';
parent::__construct( $langobj, $maincode,
$variants,
$variantfallbacks,
$flags,
- $manualLevel );
+ $manualLevel
+ );
$names = [
'gan' => '原文',
'gan-hans' => '简体',
$this->mConverter = new GanConverter( $this, 'gan',
$variants, $variantfallbacks,
[],
- $ml );
+ $ml
+ );
}
/**
* @param array $flags
*/
function __construct( Language $langobj, $maincode,
- $variants = [],
- $variantfallbacks = [],
- $flags = [] ) {
+ $variants = [],
+ $variantfallbacks = [],
+ $flags = []
+ ) {
parent::__construct( $langobj, $maincode,
$variants, $variantfallbacks, $flags );
// is matched the word to front vowels?
// exclude a words matched to е, э, г, к, к, қ,
// them should be without hamza
- if ( preg_match( '/[' . $front . ']/u', $m[0] )
- && !preg_match( '/[' . $excludes . ']/u', $m[0] )
+ if ( preg_match( '/[' . $front . ']/u', $m[0] ) &&
+ !preg_match( '/[' . $excludes . ']/u', $m[0] )
) {
$ret .= preg_replace( '/[' . $letters . ']+/u', H_HAMZA . '$0', $m[0] );
} else {
* @param array $manualLevel
*/
function __construct( Language $langobj, $maincode,
- $variants = [],
- $variantfallbacks = [],
- $flags = [],
- $manualLevel = [] ) {
+ $variants = [],
+ $variantfallbacks = [],
+ $flags = [],
+ $manualLevel = []
+ ) {
$this->mDescCodeSep = ':';
$this->mDescVarSep = ';';
parent::__construct( $langobj, $maincode,
- $variants,
- $variantfallbacks,
- $flags,
- $manualLevel );
+ $variants,
+ $variantfallbacks,
+ $flags,
+ $manualLevel
+ );
$names = [
'zh' => '原文',
'zh-hans' => '简体',
];
$this->mConverter = new ZhConverter( $this, 'zh',
- $variants, $variantfallbacks,
- [],
- $ml );
+ $variants, $variantfallbacks,
+ [],
+ $ml
+ );
}
/**