lhc/web/wiklou.git
8 years agoRemove an unnecessary condition from Ukrainian grammar rules
Amir E. Aharoni [Sun, 27 Sep 2015 12:28:43 +0000 (15:28 +0300)]
Remove an unnecessary condition from Ukrainian grammar rules

Change-Id: I04953ed9d1a0788a691b35cef2119bd34474ceec

8 years agoUpdate Ukrainian grammar rules and tests
Amir E. Aharoni [Sun, 27 Sep 2015 12:21:49 +0000 (15:21 +0300)]
Update Ukrainian grammar rules and tests

* Fix the '-ти' rule to match the name of Wikiquote.
* Add tests for '-ти' and '-ник' rules.
* Remove the '-ь' and '-ка' rules, which were copied from Russian
  and are not used in Ukrainian, and remove their tests as well.
* Remove non-implemented ("stub") cases.
* Cleanup the code of commafy().

Change-Id: I98647ceb8806d845f3c8150b92a5d9f7fe5866f2

8 years agoUpdate grammar rules and test for Ukrainian
Amir E. Aharoni [Sun, 27 Sep 2015 07:34:25 +0000 (10:34 +0300)]
Update grammar rules and test for Ukrainian

The grammar rules for Ukrainian have several mistakes.
This is the first in a series of commits that fix this.

* Add grammar tests for PHP. There weren't any tests at all,
  and now there are some. Not tests are added for rules that
  are wrong and irrelevant and will be removed in subsequent commits.
* Add tests for JavaScript, and update a grammar rule that was
  incorrectly copied from Russian.

Change-Id: I6de4581e2908eba39b33a13b07d048a34a3bd803

8 years agoRe-enable WhiteSpace.SpaceBeforeSingleLineComment sniff
Vivek Ghaisas [Sat, 26 Sep 2015 23:29:00 +0000 (04:59 +0530)]
Re-enable WhiteSpace.SpaceBeforeSingleLineComment sniff

Enable only the SingleSpaceBeforeSingleLineComment part, not the
EmptyComment part.

Change-Id: I98f2d6d401745d8aaacaca115789eb15b81c6813

8 years agoAdd space after "//" to pass SpaceBeforeSingleLineComment sniff
Vivek Ghaisas [Sat, 26 Sep 2015 23:42:27 +0000 (05:12 +0530)]
Add space after "//" to pass SpaceBeforeSingleLineComment sniff

Change-Id: I3a6f100220dfa168dd97b0b066f3d4789d8c9bf5

8 years agoMerge "Fix issues identified by SpaceBeforeSingleLineComment sniff"
jenkins-bot [Sat, 26 Sep 2015 23:18:06 +0000 (23:18 +0000)]
Merge "Fix issues identified by SpaceBeforeSingleLineComment sniff"

8 years agoFix issues identified by SpaceBeforeSingleLineComment sniff
Vivek Ghaisas [Fri, 11 Sep 2015 13:44:59 +0000 (19:14 +0530)]
Fix issues identified by SpaceBeforeSingleLineComment sniff

Change-Id: I048ccb1fa260e4b7152ca5f09b053defdd72d8f9

8 years agoMerge "Add 'hash' object cache for installer"
jenkins-bot [Sat, 26 Sep 2015 23:05:34 +0000 (23:05 +0000)]
Merge "Add 'hash' object cache for installer"

8 years agoAdd 'hash' object cache for installer
Florian [Sat, 26 Sep 2015 22:43:27 +0000 (00:43 +0200)]
Add 'hash' object cache for installer

It's used to e.g. cache less files in ResourceLoader, which would throw
an exception if the installer is used (while it requests the installer
styles), if the object cache isn't defined.

Follow up: I1ff61153ddb9

Bug: T113843
Change-Id: I1c1938b3fac395dda5b42dd68b675a67bdd30261

8 years agoDisable EmptyComment and SingleSpaceBeforeSingleLineComment code sniffers
Reedy [Sat, 26 Sep 2015 22:37:27 +0000 (23:37 +0100)]
Disable EmptyComment and SingleSpaceBeforeSingleLineComment code sniffers

Lots of warnings to be fixed in core

Change-Id: I9041ead57c2225cd618501d4998ceb85e9cb3c1b

8 years agoMerge "Remove excess newlines at the end of files"
jenkins-bot [Sat, 26 Sep 2015 22:25:48 +0000 (22:25 +0000)]
Merge "Remove excess newlines at the end of files"

8 years agoMerge "Add RELEASE-NOTES entries for PHP library upgrades and additions"
jenkins-bot [Sat, 26 Sep 2015 22:18:18 +0000 (22:18 +0000)]
Merge "Add RELEASE-NOTES entries for PHP library upgrades and additions"

8 years agoMerge "Update mediawiki-codesniffer dependency"
jenkins-bot [Sat, 26 Sep 2015 22:18:13 +0000 (22:18 +0000)]
Merge "Update mediawiki-codesniffer dependency"

8 years agoMerge "Add ignoreList for valid global variable name sniff in phpcs.xml"
jenkins-bot [Sat, 26 Sep 2015 22:16:51 +0000 (22:16 +0000)]
Merge "Add ignoreList for valid global variable name sniff in phpcs.xml"

8 years agoMerge "Add ignoreList for prefixed functions sniff in phpcs.xml"
jenkins-bot [Sat, 26 Sep 2015 22:07:30 +0000 (22:07 +0000)]
Merge "Add ignoreList for prefixed functions sniff in phpcs.xml"

8 years agoUpdate mediawiki-codesniffer dependency
Vivek Ghaisas [Sat, 26 Sep 2015 22:00:39 +0000 (03:30 +0530)]
Update mediawiki-codesniffer dependency

composer.json: mediawiki/mediawiki-codesniffer 0.3.0 →  0.4.0

Change-Id: I8cd0e6060496de54db325c1cf4c494b51e3a51d2

8 years agoRemove excess newlines at the end of files
Ricordisamoa [Sat, 26 Sep 2015 22:02:05 +0000 (00:02 +0200)]
Remove excess newlines at the end of files

Many of them added with commit 776c865077ea38ca1f9205ad778a600b41332d60

Change-Id: I481b15c45ead1f5f482e120cb40ea8f3297543cf

8 years agoMerge "Wrap some long strings in tests/"
jenkins-bot [Sat, 26 Sep 2015 21:52:43 +0000 (21:52 +0000)]
Merge "Wrap some long strings in tests/"

8 years agoAdd ignoreList for valid global variable name sniff in phpcs.xml
Vivek Ghaisas [Thu, 10 Sep 2015 05:29:32 +0000 (10:59 +0530)]
Add ignoreList for valid global variable name sniff in phpcs.xml

The list of variables to ignore was hardcoded in the sniff. Moving it to
the phpcs.xml file allows setting it on a per-project basis, and hence,
should be set in core's phpcs.xml.

Bug: T104501
Change-Id: I6909b1d3845ba72d867fe01e86bd4a8f6bef198f

8 years agoAdd ignoreList for prefixed functions sniff in phpcs.xml
Vivek Ghaisas [Wed, 9 Sep 2015 21:12:15 +0000 (02:42 +0530)]
Add ignoreList for prefixed functions sniff in phpcs.xml

Certain unprefixed global functions have been in the codebase from a
long time and prefixing them could cause errors. The prefixed functions
sniff allows an ignoreList to be set in phpcs.xml.

Bug: T104501
Change-Id: Ie094f78781b2d6f7af1a0f1eea1f7ea4d0b9c69c

8 years agoMerge "Fixed spacing"
jenkins-bot [Sat, 26 Sep 2015 21:02:39 +0000 (21:02 +0000)]
Merge "Fixed spacing"

8 years agoFixed spacing
umherirrender [Sat, 26 Sep 2015 20:32:31 +0000 (22:32 +0200)]
Fixed spacing

- Removed space after cast
- Removed spaces in array index
- Removed double spaces
- Added spaces around string concat
- Fixed mixed tabs and spaces at begin of line

Change-Id: I38e849723f055d2d4c05cba72f5c245a28e8d5da

8 years agoAdd curly braces to if statement
umherirrender [Sat, 26 Sep 2015 20:38:25 +0000 (22:38 +0200)]
Add curly braces to if statement

Change-Id: I827eb48ee030c338336d91dbfd016c22c5e3cb6b

8 years agoFix a spelling mistake in a test description
Amir E. Aharoni [Sat, 26 Sep 2015 20:29:07 +0000 (23:29 +0300)]
Fix a spelling mistake in a test description

Change-Id: Ic9a95e417bff0eb17df3f5b87c430e0329043b44

8 years agoMerge "Wrap some long lines..."
jenkins-bot [Sat, 26 Sep 2015 20:12:06 +0000 (20:12 +0000)]
Merge "Wrap some long lines..."

8 years agoWrap some long strings in tests/
Reedy [Sat, 26 Sep 2015 19:48:17 +0000 (20:48 +0100)]
Wrap some long strings in tests/

Change-Id: I89d53c5051e5ee4bd8624df8ee2b25993090a7df

8 years agoRevert "Swap leading spaces to tabs in backup phpunit tests"
Reedy [Sat, 26 Sep 2015 19:53:09 +0000 (19:53 +0000)]
Revert "Swap leading spaces to tabs in backup phpunit tests"

This reverts commit 9ac7cc130041e0b98c40749d66223ae5aa5a4367.

Change-Id: I5e05df8d3ab83820008f833f1512689594b81c8a

8 years agoWrap some long lines...
Reedy [Sat, 26 Sep 2015 19:34:18 +0000 (20:34 +0100)]
Wrap some long lines...

Change-Id: Ib3a5d39e3c51caa187d4b1a6f1b736546a43f8cd

8 years agoMake lines shorter to pass phpcs in thumb.php
Amir E. Aharoni [Sat, 26 Sep 2015 18:51:35 +0000 (21:51 +0300)]
Make lines shorter to pass phpcs in thumb.php

Bug: T102614
Change-Id: I01158675db267832a03385945d3dcdf422ddc467

8 years agoMerge "API: Correct 'from_namespace' logic in ApiQueryBacklinksprop"
jenkins-bot [Sat, 26 Sep 2015 19:04:19 +0000 (19:04 +0000)]
Merge "API: Correct 'from_namespace' logic in ApiQueryBacklinksprop"

8 years agoMerge "Make lines short to pass phpcs in six files under includes/"
jenkins-bot [Sat, 26 Sep 2015 19:04:13 +0000 (19:04 +0000)]
Merge "Make lines short to pass phpcs in six files under includes/"

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 26 Sep 2015 18:56:44 +0000 (18:56 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoMerge "Fixed DatabaseBase references in IDatabase docs"
jenkins-bot [Sat, 26 Sep 2015 18:53:28 +0000 (18:53 +0000)]
Merge "Fixed DatabaseBase references in IDatabase docs"

8 years agoMerge "Swap leading spaces to tabs in backup phpunit tests"
jenkins-bot [Sat, 26 Sep 2015 18:53:22 +0000 (18:53 +0000)]
Merge "Swap leading spaces to tabs in backup phpunit tests"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 26 Sep 2015 18:50:52 +0000 (20:50 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If14c9f2c908b47b278bdcc455f024b055a9ec47c

8 years agoMerge "Make lines shorter to pass phpcs under includes/libs"
jenkins-bot [Sat, 26 Sep 2015 18:45:48 +0000 (18:45 +0000)]
Merge "Make lines shorter to pass phpcs under includes/libs"

8 years agoMerge "Make line shorter to pass phpcs in LinkerTest.php"
jenkins-bot [Sat, 26 Sep 2015 18:45:44 +0000 (18:45 +0000)]
Merge "Make line shorter to pass phpcs in LinkerTest.php"

8 years agoMake lines short to pass phpcs in six files under includes/
Amir E. Aharoni [Sat, 26 Sep 2015 18:19:00 +0000 (21:19 +0300)]
Make lines short to pass phpcs in six files under includes/

Bug: T102614
Change-Id: I91a2d4f4bf86a22c8bb466da0e2f95ea27c571a3

8 years agoMerge "Make lines shorter to pass phpcs in some files under includes/parser"
jenkins-bot [Sat, 26 Sep 2015 18:36:07 +0000 (18:36 +0000)]
Merge "Make lines shorter to pass phpcs in some files under includes/parser"

8 years agoFixed DatabaseBase references in IDatabase docs
Aaron Schulz [Sat, 26 Sep 2015 18:32:30 +0000 (11:32 -0700)]
Fixed DatabaseBase references in IDatabase docs

Change-Id: I5538de58ec5f10426260e3de468a8aff03144976

8 years agoMerge "Database: Remove resultObject() from the public interface"
Aaron Schulz [Sat, 26 Sep 2015 18:25:01 +0000 (18:25 +0000)]
Merge "Database: Remove resultObject() from the public interface"

8 years agoMake lines shorter to pass phpcs under includes/libs
Amir E. Aharoni [Sat, 26 Sep 2015 18:06:36 +0000 (21:06 +0300)]
Make lines shorter to pass phpcs under includes/libs

Bug: T102614
Change-Id: I40ca85dbc5849d6ff7ee584c82a8b56d07e095b6

8 years agoMake line shorter to pass phpcs in LinkerTest.php
Amir E. Aharoni [Sat, 26 Sep 2015 18:09:08 +0000 (21:09 +0300)]
Make line shorter to pass phpcs in LinkerTest.php

There are other linkes here ythat will require a different treatment.

Bug: T102614
Change-Id: Ia0c75d11a85a931d37941471f9c9bdc16fda28e1

8 years agoMerge "Updated key WANObjectCache::delete() callers to avoid races"
Aaron Schulz [Sat, 26 Sep 2015 18:19:38 +0000 (18:19 +0000)]
Merge "Updated key WANObjectCache::delete() callers to avoid races"

8 years agoMake lines shorter to pass phpcs in some files under includes/parser
Amir E. Aharoni [Sat, 26 Sep 2015 17:17:49 +0000 (20:17 +0300)]
Make lines shorter to pass phpcs in some files under includes/parser

This doesn't fix all the files under includes/parser -
some of them deserve their own patches.

Bug: T102614
Change-Id: I2fcbc19ee337e1b7db4635b5e5f324c651b4d144

8 years agoMerge "Use a constructive button on Special:MovePage"
jenkins-bot [Sat, 26 Sep 2015 18:16:54 +0000 (18:16 +0000)]
Merge "Use a constructive button on Special:MovePage"

8 years agoDatabase: Remove resultObject() from the public interface
Kevin Israel [Sat, 26 Sep 2015 10:31:05 +0000 (06:31 -0400)]
Database: Remove resultObject() from the public interface

It has not been necessary to call this method outside the Database classes
since 1.11 (r23756 / 9382bc7a858c).

This is a breaking change and should not be merged before the following
changes to extensions:

* Disambiguator: Ibef942fd
* Maps: Ic90bd0ad
* OAI: Idbbe08d6
* Oversight: I63071e65
* Video: Id71914cd

Change-Id: Idfe7cd6f516f0aca850878282c47e7914accc6d8

8 years agoUpdated key WANObjectCache::delete() callers to avoid races
Aaron Schulz [Thu, 24 Sep 2015 22:25:44 +0000 (15:25 -0700)]
Updated key WANObjectCache::delete() callers to avoid races

* They now issue the delete() write before COMMIT of
  the relevant DB (or immediately if no trx is active)
* This can avoid some stale write race conditions
* Updated the WAN cache delete() docs

Change-Id: Id54887976051120b76528070d5f2ceb357d57897

8 years agoSwap leading spaces to tabs in backup phpunit tests
Reedy [Sat, 26 Sep 2015 17:54:50 +0000 (18:54 +0100)]
Swap leading spaces to tabs in backup phpunit tests

Change-Id: I821e71ab5c459d11b942f09853dbf4560fbe4d19

8 years agoRemoved used of resultObject() in QueryPage
Aaron Schulz [Sat, 26 Sep 2015 17:54:43 +0000 (10:54 -0700)]
Removed used of resultObject() in QueryPage

Change-Id: I7aa6902a7e1a0c93e28b209de995976d5891cdfb

8 years agoMerge "Re-enable MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect"
jenkins-bot [Sat, 26 Sep 2015 17:46:21 +0000 (17:46 +0000)]
Merge "Re-enable MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect"

8 years agoMerge "Add wfWaitForSlaves() call in DatabaseUpdater::runUpdates()"
jenkins-bot [Sat, 26 Sep 2015 17:35:07 +0000 (17:35 +0000)]
Merge "Add wfWaitForSlaves() call in DatabaseUpdater::runUpdates()"

8 years agoRe-enable MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect
Reedy [Sat, 26 Sep 2015 17:04:00 +0000 (18:04 +0100)]
Re-enable MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect

Change-Id: I1b756909a1080108c5147d46950f826871ef6dc1

8 years agoMerge "WebStart.php: Make lines shorter to make phpcs happier"
jenkins-bot [Sat, 26 Sep 2015 17:30:53 +0000 (17:30 +0000)]
Merge "WebStart.php: Make lines shorter to make phpcs happier"

8 years agoMerge "Make long lines shorter to pass phpcs in 6 files"
jenkins-bot [Sat, 26 Sep 2015 17:30:49 +0000 (17:30 +0000)]
Merge "Make long lines shorter to pass phpcs in 6 files"

8 years agoMerge "Linker.php: Make long lines shorter to pass phpcs"
jenkins-bot [Sat, 26 Sep 2015 17:21:52 +0000 (17:21 +0000)]
Merge "Linker.php: Make long lines shorter to pass phpcs"

8 years agoMerge "Fix LineLength in includes/media"
jenkins-bot [Sat, 26 Sep 2015 17:21:48 +0000 (17:21 +0000)]
Merge "Fix LineLength in includes/media"

8 years agoMake long lines shorter to pass phpcs in 6 files
Amir E. Aharoni [Sat, 26 Sep 2015 16:58:43 +0000 (19:58 +0300)]
Make long lines shorter to pass phpcs in 6 files

Bug: T102614
Change-Id: I3159c33ddd16bded94a70f363258a294f407fc58

8 years agoLinker.php: Make long lines shorter to pass phpcs
Amir E. Aharoni [Sat, 26 Sep 2015 16:31:24 +0000 (19:31 +0300)]
Linker.php: Make long lines shorter to pass phpcs

Bug: T102614
Change-Id: Ia014b8f89058fe9a4cf22ed63a0042ab1c66e97a

8 years agoMerge "Re-enable Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed"
jenkins-bot [Sat, 26 Sep 2015 17:05:49 +0000 (17:05 +0000)]
Merge "Re-enable Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed"

8 years agoFix LineLength in includes/media
Amir E. Aharoni [Sat, 26 Sep 2015 15:53:53 +0000 (18:53 +0300)]
Fix LineLength in includes/media

Bug: T102614
Change-Id: Id46d9040e264cd2af1174938dde58ea7d9c0bb5e

8 years agoMerge "Re-enable Squiz.WhiteSpace.SemicolonSpacing.Incorrect"
jenkins-bot [Sat, 26 Sep 2015 17:01:07 +0000 (17:01 +0000)]
Merge "Re-enable Squiz.WhiteSpace.SemicolonSpacing.Incorrect"

8 years agoMerge "Re-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenth...
jenkins-bot [Sat, 26 Sep 2015 16:53:03 +0000 (16:53 +0000)]
Merge "Re-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis"

8 years agoRe-enable Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
Reedy [Sat, 26 Sep 2015 16:45:29 +0000 (17:45 +0100)]
Re-enable Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed

Change-Id: I07b4043163e5d00709f72dbbb3e2a46b17414d1c

8 years agoRe-enable Squiz.WhiteSpace.SemicolonSpacing.Incorrect
Reedy [Sat, 26 Sep 2015 16:41:22 +0000 (17:41 +0100)]
Re-enable Squiz.WhiteSpace.SemicolonSpacing.Incorrect

Change-Id: Ie86c512fbca07f41b252d95de3ab92da3a050e72

8 years agoMerge "Re-enable Squiz.WhiteSpace.ScopeClosingBrace.Indent"
jenkins-bot [Sat, 26 Sep 2015 16:39:22 +0000 (16:39 +0000)]
Merge "Re-enable Squiz.WhiteSpace.ScopeClosingBrace.Indent"

8 years agoRe-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis
Reedy [Sat, 26 Sep 2015 16:16:19 +0000 (17:16 +0100)]
Re-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis

Change-Id: I8482f5dd9d79e4946e862b0ac03bd027d62e8646

8 years agoRe-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceAfterOpenParenthesis
Reedy [Sat, 26 Sep 2015 15:48:10 +0000 (16:48 +0100)]
Re-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceAfterOpenParenthesis

Fixed some SingleSpaceBeforeCloseParenthesis too

Change-Id: I1695c706a9b23ab98074ff7d6a3687eb5cdce6e7

8 years agoRe-enable Squiz.WhiteSpace.ScopeClosingBrace.Indent
Reedy [Sat, 26 Sep 2015 15:53:01 +0000 (16:53 +0100)]
Re-enable Squiz.WhiteSpace.ScopeClosingBrace.Indent

Change-Id: I743c4ce019321d631c0a11ee2112fe9aa8ba4c5d

8 years agoRe-enable PSR2.Methods.MethodDeclaration.AbstractAfterVisibility
Reedy [Sat, 26 Sep 2015 15:04:33 +0000 (16:04 +0100)]
Re-enable PSR2.Methods.MethodDeclaration.AbstractAfterVisibility

Change-Id: I50a987edf03cb19bfd707cd00c143c3665eba94f

8 years agoMerge "Re-enable PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter"
jenkins-bot [Sat, 26 Sep 2015 15:28:00 +0000 (15:28 +0000)]
Merge "Re-enable PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter"

8 years agoMerge "Re-enable Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines"
jenkins-bot [Sat, 26 Sep 2015 15:20:18 +0000 (15:20 +0000)]
Merge "Re-enable Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines"

8 years agoMerge "Re-enable PSR2.Methods.MethodDeclaration.StaticBeforeVisibility"
jenkins-bot [Sat, 26 Sep 2015 15:19:16 +0000 (15:19 +0000)]
Merge "Re-enable PSR2.Methods.MethodDeclaration.StaticBeforeVisibility"

8 years agoRe-enable PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter
Reedy [Sat, 26 Sep 2015 15:09:27 +0000 (16:09 +0100)]
Re-enable PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter

Change-Id: I39f71dde31f3ec18ab06904692f6a4ffd454d4d1

8 years agoMerge "Re-enable Generic.Files.EndFileNewline.NotFound"
jenkins-bot [Sat, 26 Sep 2015 15:14:24 +0000 (15:14 +0000)]
Merge "Re-enable Generic.Files.EndFileNewline.NotFound"

8 years agoMerge "Re-enable MediaWiki.VariableAnalysis.UnusedGlobalVariables"
jenkins-bot [Sat, 26 Sep 2015 15:06:38 +0000 (15:06 +0000)]
Merge "Re-enable MediaWiki.VariableAnalysis.UnusedGlobalVariables"

8 years agoRe-enable PSR2.Methods.MethodDeclaration.StaticBeforeVisibility
Reedy [Sat, 26 Sep 2015 15:02:57 +0000 (16:02 +0100)]
Re-enable PSR2.Methods.MethodDeclaration.StaticBeforeVisibility

Change-Id: Id3e4bc5d7e4d1b8003f9f6b324e2321b5af1771f

8 years agoRe-enable Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines
Reedy [Sat, 26 Sep 2015 15:00:56 +0000 (16:00 +0100)]
Re-enable Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines

Add extra whitespace line too

Change-Id: Ia33c9b63c36f121e5e9283c6d4a2b024a1821a43

8 years agoRe-enable Generic.Files.EndFileNewline.NotFound
Reedy [Sat, 26 Sep 2015 14:58:53 +0000 (15:58 +0100)]
Re-enable Generic.Files.EndFileNewline.NotFound

Change-Id: Ib84ce8dc973f7e3fe688435a72f7936342b6f2dd

8 years agoRe-enable MediaWiki.VariableAnalysis.UnusedGlobalVariables
Reedy [Sat, 26 Sep 2015 14:51:52 +0000 (15:51 +0100)]
Re-enable MediaWiki.VariableAnalysis.UnusedGlobalVariables

Globals are used in included file, so ignore warning in this case

Change-Id: I50315425827cc49eac3ca943a5a8952d0292ce23

8 years agoSpecialSearchTest.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 13:06:47 +0000 (16:06 +0300)]
SpecialSearchTest.php: Make lines shorter to make phpcs happier

Also fixes a "Single space expected before closing parenthesis" failure.

Change-Id: Id35e490e7d17ee58b643e9f74583afcef62145c2

8 years agoMediaWikiTestCase.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 11:26:35 +0000 (14:26 +0300)]
MediaWikiTestCase.php: Make lines shorter to make phpcs happier

Change-Id: I92ef73509e09c34f8b44a576e113a94f713b7d0d

8 years agoWebRequest.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 09:51:03 +0000 (12:51 +0300)]
WebRequest.php: Make lines shorter to make phpcs happier

Change-Id: Icdc91bc32c526065009b18ece34205aa765cfd46

8 years agoStatusTest.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 13:09:05 +0000 (16:09 +0300)]
StatusTest.php: Make lines shorter to make phpcs happier

Change-Id: Ibe2034fb8d1849f3c0f98d4c4c3ffcb8277e416b

8 years agoImagePage.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 09:58:36 +0000 (12:58 +0300)]
ImagePage.php: Make lines shorter to make phpcs happier

Change-Id: I7207bef25bdc82c92dd4adc669468513f367eda6

8 years agophpunit.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 11:15:11 +0000 (14:15 +0300)]
phpunit.php: Make lines shorter to make phpcs happier

Change-Id: Ide48ca85912ab55184588a1144f9fdca7ad48227

8 years agoMerge "phpcs: Disable failing sniffs in phpcs.xml"
jenkins-bot [Sat, 26 Sep 2015 13:43:01 +0000 (13:43 +0000)]
Merge "phpcs: Disable failing sniffs in phpcs.xml"

8 years agophpcs: Disable failing sniffs in phpcs.xml
Kunal Mehta [Fri, 25 Sep 2015 17:14:45 +0000 (10:14 -0700)]
phpcs: Disable failing sniffs in phpcs.xml

This allows us to make PHPCS voting, and enable the failing rules
individually when once their issues are fixed.

Bug: T102609
Change-Id: I6731d2d07bbd89d424a660ceb7aee4c0392500d3

8 years agoMaintenanceTest.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 11:19:17 +0000 (14:19 +0300)]
MaintenanceTest.php: Make lines shorter to make phpcs happier

Change-Id: I76c23b1acdd50dc8dd423ef651a2fd1d7e5acba3

8 years agoAdd RELEASE-NOTES entries for PHP library upgrades and additions
Kunal Mehta [Thu, 3 Sep 2015 06:12:41 +0000 (23:12 -0700)]
Add RELEASE-NOTES entries for PHP library upgrades and additions

Change-Id: I75570bc8f5e98b4498f109fe322e6be57f53c42f

8 years agoMerge "mediawiki.widgets: Create TitleSearchWidget"
jenkins-bot [Sat, 26 Sep 2015 12:01:45 +0000 (12:01 +0000)]
Merge "mediawiki.widgets: Create TitleSearchWidget"

8 years agoWebStart.php: Make lines shorter to make phpcs happier
Amir E. Aharoni [Sat, 26 Sep 2015 09:45:52 +0000 (12:45 +0300)]
WebStart.php: Make lines shorter to make phpcs happier

Change-Id: Ifbcf572a08837e9572cc4ed9bd274d4e5ad676ab

8 years agoAssorted WANObjectCache doc tweaks
Aaron Schulz [Thu, 24 Sep 2015 20:47:28 +0000 (13:47 -0700)]
Assorted WANObjectCache doc tweaks

Change-Id: If207fc64279e344218d3b617eae7e69f88b23b27

8 years agoMerge "Include phpunit license for backported classes"
jenkins-bot [Sat, 26 Sep 2015 04:26:08 +0000 (04:26 +0000)]
Merge "Include phpunit license for backported classes"

8 years agoresourceloader: Include exception log id in error message
Timo Tijhof [Wed, 23 Sep 2015 16:36:10 +0000 (17:36 +0100)]
resourceloader: Include exception log id in error message

This changes the current:

> Internal error.

To be:

> [89466ede] 2015-09-23 16:40: Fatal exception of type Less_Exception

This matches how exceptions are reported on HTML pages by MediaWiki
(via MWException::getHTML in OutputPage).

The IDs are okay to be public and exposed on HTML pages even when
$wgShowExceptionDetails is disabled.

Follows-up d478ffde100. Ref T110659.

Change-Id: I501eaa629161184ba89d44e53cdac20b39cb0903

8 years agomediawiki.widgets: Create TitleSearchWidget
Ed Sanders [Fri, 25 Sep 2015 20:39:01 +0000 (21:39 +0100)]
mediawiki.widgets: Create TitleSearchWidget

TitleSearchWidget inherits from SearchWidget instead of TextInputWidget,
showing search results even when blurred.

To avoid duplication, much of the logic from TitleInputWidget has been
moved into the TitleWidget mixin.

Bug: T101169
Change-Id: I335bd912d4f5139646ba05a6a85a0d9ff3d772fa

8 years agoMade wfIsBadImage() use APC
Aaron Schulz [Fri, 25 Sep 2015 04:59:25 +0000 (21:59 -0700)]
Made wfIsBadImage() use APC

* Article 404s spend are large chunk of their time
  there and the method is also hit on page save

Change-Id: I26043f596195a8fe322bc154bf375a6c5d39c968

8 years agoMerge "Turn $wgSearchRunSuggestedQueryPercent into $wgSearchRunSuggestedQuery"
jenkins-bot [Fri, 25 Sep 2015 22:24:37 +0000 (22:24 +0000)]
Merge "Turn $wgSearchRunSuggestedQueryPercent into $wgSearchRunSuggestedQuery"

8 years agoMerge "ResourceLoaderEditToolbarModule::cssSerializeString() → CSSMin::serializeStrin...
jenkins-bot [Fri, 25 Sep 2015 21:57:16 +0000 (21:57 +0000)]
Merge "ResourceLoaderEditToolbarModule::cssSerializeString() → CSSMin::serializeStringValue()"

8 years agoTurn $wgSearchRunSuggestedQueryPercent into $wgSearchRunSuggestedQuery
Max Semenik [Fri, 25 Sep 2015 21:01:00 +0000 (14:01 -0700)]
Turn $wgSearchRunSuggestedQueryPercent into $wgSearchRunSuggestedQuery

Deciding how to behave randomly is useful for testing, yet misleading
for general usage. Now that testing is over, make it a boolean switch.

Change-Id: I3e4d02aa57c853c20152c9071c444e09da57fb35