mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RSS
synced 2024-11-24 07:43:56 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 0.10.1
Change-Id: Ifafccf48234a036349ac41cc398171081398e1e7
This commit is contained in:
parent
0295df5de6
commit
b670afe90a
|
@ -182,7 +182,7 @@ class RSSParser {
|
||||||
/**
|
/**
|
||||||
* Retrieve the URL from the cache
|
* Retrieve the URL from the cache
|
||||||
* @param $key String: lookup key to associate with this item
|
* @param $key String: lookup key to associate with this item
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function loadFromCache( $key ) {
|
protected function loadFromCache( $key ) {
|
||||||
global $wgMemc, $wgRSSCacheCompare;
|
global $wgMemc, $wgRSSCacheCompare;
|
||||||
|
@ -218,7 +218,7 @@ class RSSParser {
|
||||||
/**
|
/**
|
||||||
* Store these objects (i.e. etag, lastModified, and RSS) in the cache.
|
* Store these objects (i.e. etag, lastModified, and RSS) in the cache.
|
||||||
* @param $key String: lookup key to associate with this item
|
* @param $key String: lookup key to associate with this item
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function storeInCache( $key ) {
|
protected function storeInCache( $key ) {
|
||||||
global $wgMemc, $wgRSSCacheAge;
|
global $wgMemc, $wgRSSCacheAge;
|
||||||
|
@ -575,7 +575,7 @@ class RSSParser {
|
||||||
* Determine if a given item should or should not be displayed
|
* Determine if a given item should or should not be displayed
|
||||||
*
|
*
|
||||||
* @param $item Array: associative array that RSSData produced for an <item>
|
* @param $item Array: associative array that RSSData produced for an <item>
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function canDisplay( array $item ) {
|
protected function canDisplay( array $item ) {
|
||||||
$check = '';
|
$check = '';
|
||||||
|
@ -602,7 +602,7 @@ class RSSParser {
|
||||||
* @param $text String: the text to examine
|
* @param $text String: the text to examine
|
||||||
* @param $filterType String: "filterOut" to check for matches in the filterOut member list.
|
* @param $filterType String: "filterOut" to check for matches in the filterOut member list.
|
||||||
* Otherwise, uses the filter member list.
|
* Otherwise, uses the filter member list.
|
||||||
* @return Boolean: decision to filter or not.
|
* @return bool Decision to filter or not.
|
||||||
*/
|
*/
|
||||||
protected function filter( $text, $filterType ) {
|
protected function filter( $text, $filterType ) {
|
||||||
if ( $filterType === 'filterOut' ) {
|
if ( $filterType === 'filterOut' ) {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"jakub-onderka/php-parallel-lint": "0.9.2",
|
"jakub-onderka/php-parallel-lint": "0.9.2",
|
||||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||||
"mediawiki/mediawiki-codesniffer": "0.10.0"
|
"mediawiki/mediawiki-codesniffer": "0.10.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"fix": "phpcbf",
|
"fix": "phpcbf",
|
||||||
|
|
|
@ -11,7 +11,5 @@
|
||||||
</rule>
|
</rule>
|
||||||
<file>.</file>
|
<file>.</file>
|
||||||
<arg name="extensions" value="php,php5,inc" />
|
<arg name="extensions" value="php,php5,inc" />
|
||||||
<arg name="encoding" value="utf8" />
|
<arg name="encoding" value="UTF-8" />
|
||||||
<exclude-pattern>vendor</exclude-pattern>
|
|
||||||
<exclude-pattern>node_modules</exclude-pattern>
|
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
Loading…
Reference in a new issue