Siebrand Mazeland
49b4cc0028
Declare functions with access modifiers
...
Change-Id: I047d3dc6642de07130a43ad4c2fd4a8106450aac
2016-03-05 16:10:52 +01:00
Thiemo Mättig
bdece37fe3
Simplify LanguageNameSearch code
...
A more efficient "startsWith" lookup.
And simplifying redundant modulo code.
Change-Id: I87ab0ff70d26fc058fc40bd20745b9b6effb7ddd
2014-12-08 19:00:32 +01:00
Siebrand Mazeland
b19b89374d
Refactor getCodepoint() to more consistently handle return values
...
Change-Id: Ida90e6c78be41e8527eaefd14feb45c57413945e
2013-08-05 09:29:41 +02:00
jenkins-bot
3e54cd9de8
Merge "Refactor complex ternary operation"
2013-08-05 07:22:36 +00:00
Siebrand Mazeland
622e388a6a
Refactor complex ternary operation
...
Change-Id: I1b6cc1cf0348bc7e19f9f327c7a3d6d936cfaaf2
2013-08-05 09:06:19 +02:00
Siebrand Mazeland
102f257427
Fix CodeSniffer errors and warnings
...
More fixes will be submitted upstream.
Change-Id: Ib22997f8756537b063fd6eed3f1f74f3eda315d7
2013-08-05 05:55:03 +02:00
Niklas Laxström
da255cdc77
Fix Undefined offset notice
...
Also removed some dead code that never ran, there is no variable named
"$buckets" so it'll never have an offset.
Bug: 45327
Change-Id: I1f70ef0ec4f2434f9f072e718140ff8050b81ba3
2013-04-26 14:29:08 +00:00
Siebrand Mazeland
e1a4f7f0cb
After training the PHPStorm code formatter.
...
See https://github.com/siebrand/MediaWiki-PHPStorm
Issue remains with anonymous functions in JavaScript.
Change-Id: I2b520f8df127452acf02deb659277a6465e6ca59
2012-09-17 17:10:59 -07:00
Reedy
0f0732f865
Fixup a few minor documentation issues
...
Added some newlines
Left a FIXME in LanguageNameIndexer.php
Losslessly compressed display.png
Change-Id: I884b423d3812ddb964a6a70f75a6331a73371165
2012-08-19 01:19:46 +01:00
Siebrand Mazeland
72d2519c4d
Fix some issues pointed out by IDE.
...
* Update .gitignore to ignore .idea.
* Removed unused local variables.
* use local context and Message class instead of deprecated wfMsg* methods.
* Remove redundant px in CSS where possible.
* Combine CSS statements where possible.
* Replace b by strong.
Change-Id: I9d5ed7b7ce585a1c101044254bcbdfc33d42afc1
2012-08-15 17:32:49 +02:00
Santhosh Thottingal
76f9038aff
Allow typo in search key
...
* Introduce Levenshtein algorithm
* New API param 'typos' to give number of typos allowed
* test cases
Change-Id: I22bf34d08a910d1509d7eab5adc292eadc9a7c7d
2012-08-03 07:33:12 +00:00
Santhosh Thottingal
3d9807e7f2
Fix php warnings.
...
Change-Id: Icd1302f7db425157def4771ffe0d7c816164eb23
2012-07-31 16:03:52 +05:30
Santhosh Thottingal
08c14dafa4
Cross-language language name search
...
Implementation of Also Written As language name
search algorithm.
See http://etherpad.wikimedia.org/l10n-uls-language-search
Change-Id: Iff84408c531b650a44d031b63d5c823737cceafc
2012-07-30 14:08:26 +05:30