Replace tabs with spaces
Change-Id: Id034c34a294585f58dba58c26db466e0e39cb557
This commit is contained in:
parent
358fd2fed1
commit
51642e0aae
9 changed files with 9 additions and 9 deletions
|
|
@ -137,7 +137,7 @@ abstract class ContentHandler {
|
|||
* @throws MWException If model ID or format is not supported or if the text can not be
|
||||
* unserialized using the format.
|
||||
* @throws MWContentSerializationException
|
||||
* @return Content A Content object representing the text. *
|
||||
* @return Content A Content object representing the text.
|
||||
*/
|
||||
public static function makeContent( $text, Title $title = null,
|
||||
$modelId = null, $format = null ) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class Cookie {
|
|||
protected $path;
|
||||
protected $domain;
|
||||
protected $isSessionKey = true;
|
||||
// TO IMPLEMENT protected $secure
|
||||
// TO IMPLEMENT protected $secure
|
||||
// TO IMPLEMENT? protected $maxAge (add onto expires)
|
||||
// TO IMPLEMENT? protected $version
|
||||
// TO IMPLEMENT? protected $comment
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ abstract class GenericArrayObject extends ArrayObject {
|
|||
protected function setElement( $index, $value ) {
|
||||
if ( !$this->hasValidType( $value ) ) {
|
||||
throw new InvalidArgumentException(
|
||||
'Can only add ' . $this->getObjectType() . ' implementing objects to '
|
||||
'Can only add ' . $this->getObjectType() . ' implementing objects to '
|
||||
. static::class . '.'
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -853,7 +853,7 @@ class FSFileBackend extends FileBackendStore {
|
|||
// https://manpages.debian.org/buster/coreutils/mv.1.en.html
|
||||
// https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/move
|
||||
$encSrc = escapeshellarg( $this->cleanPathSlashes( $fsSrcPath ) );
|
||||
$encDst = escapeshellarg( $this->cleanPathSlashes( $fsDstPath ) );
|
||||
$encDst = escapeshellarg( $this->cleanPathSlashes( $fsDstPath ) );
|
||||
if ( $this->os === 'Windows' ) {
|
||||
$writeCmd = "MOVE /Y $encSrc $encDst 2>&1";
|
||||
$cmd = $ignoreMissing ? "IF EXIST $encSrc $writeCmd" : $writeCmd;
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ class MemcachedPhpBagOStuff extends MemcachedBagOStuff {
|
|||
protected function doCas( $casToken, $key, $value, $exptime = 0, $flags = 0 ) {
|
||||
$routeKey = $this->validateKeyAndPrependRoute( $key );
|
||||
|
||||
return $this->client->cas( $casToken, $routeKey, $value, $this->fixExpiry( $exptime ) );
|
||||
return $this->client->cas( $casToken, $routeKey, $value, $this->fixExpiry( $exptime ) );
|
||||
}
|
||||
|
||||
public function incr( $key, $value = 1, $flags = 0 ) {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class DateInputWidget extends \OOUI\TextInputWidget {
|
|||
* translated to the user's language. (default: 'YYYY-MM-DD' or 'YYYY-MM', depending on
|
||||
* `precision`)
|
||||
* - string $config['precision'] Date precision to use, 'day' or 'month' (default: 'day')
|
||||
* - string $config['mustBeAfter'] Validates the date to be after this.
|
||||
* - string $config['mustBeAfter'] Validates the date to be after this.
|
||||
* In the 'YYYY-MM-DD' or 'YYYY-MM' format, depending on `precision`.
|
||||
* - string $config['mustBeBefore'] Validates the date to be before this.
|
||||
* In the 'YYYY-MM-DD' or 'YYYY-MM' format, depending on `precision`.
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ class PagePropsTest extends MediaWikiLangTestCase {
|
|||
$this->createRowFromTitle( $this->title2 )
|
||||
];
|
||||
$resultWrapper = new FakeResultWrapper( $rows );
|
||||
$titles = TitleArray::newFromResult( $resultWrapper );
|
||||
$titles = TitleArray::newFromResult( $resultWrapper );
|
||||
$result = $pageProps->getProperties( $titles, "property1" );
|
||||
$this->assertArrayHasKey( $page1ID, $result, "Found page 1 property" );
|
||||
$this->assertArrayHasKey( $page2ID, $result, "Found page 2 property" );
|
||||
|
|
|
|||
|
|
@ -588,7 +588,7 @@ class UserGroupManagerTest extends MediaWikiIntegrationTestCase {
|
|||
}
|
||||
|
||||
public function provideGetUserAutopromoteEditCount() {
|
||||
yield 'Successfull promote' => [
|
||||
yield 'Successfull promote' => [
|
||||
5, true, 10, [ 'test_autoconfirmed' ]
|
||||
];
|
||||
yield 'Required edit count negative' => [
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class SkinFactoryTest extends \MediaWikiUnitTestCase {
|
|||
? new ObjectFactory( $service )
|
||||
: new ObjectFactory( $this->createMock( ContainerInterface::class ) );
|
||||
|
||||
return new SkinFactory( $objectFactory, $options );
|
||||
return new SkinFactory( $objectFactory, $options );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue