mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 02:24:35 +02:00
[phpcs] enforce single quotes (#732)
* [phpcs] Add rule to enforce single quoted strings
This commit is contained in:
parent
5ea79ac1fc
commit
193ca87afa
43 changed files with 283 additions and 279 deletions
|
@ -18,10 +18,10 @@ class WhydBridge extends BridgeAbstract {
|
|||
|
||||
public function collectData(){
|
||||
$html = '';
|
||||
if(strlen(preg_replace("/[^0-9a-f]/", '', $this->getInput('u'))) == 24) {
|
||||
if(strlen(preg_replace('/[^0-9a-f]/', '', $this->getInput('u'))) == 24) {
|
||||
// is input the userid ?
|
||||
$html = getSimpleHTMLDOM(
|
||||
self::URI . 'u/' . preg_replace("/[^0-9a-f]/", '', $this->getInput('u'))
|
||||
self::URI . 'u/' . preg_replace('/[^0-9a-f]/', '', $this->getInput('u'))
|
||||
) or returnServerError('No results for this query.');
|
||||
} else { // input may be the username
|
||||
$html = getSimpleHTMLDOM(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue