mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 02:39:47 +02:00
Fix issue #1260
Fix coding guidelines incoherences. Code should match PSR1/2 now, and php-cs is set to check it on each commit. Also fixed the Git hook to take into account only added, modified, copied and renamed files (preventing errors when trying to check deleted files). Closes #1260.
This commit is contained in:
parent
178e53a82e
commit
2bb142eeb8
283 changed files with 1332 additions and 1347 deletions
|
@ -56,8 +56,8 @@ class AmpacheRSSView
|
|||
return false;
|
||||
}
|
||||
|
||||
Preference::insert('rssview_feed_url','RSS Feed url','','25','string','plugins',$this->name);
|
||||
Preference::insert('rssview_max_items','RSS Feed max items','5','25','integer','plugins',$this->name);
|
||||
Preference::insert('rssview_feed_url', 'RSS Feed url', '', '25', 'string', 'plugins', $this->name);
|
||||
Preference::insert('rssview_max_items', 'RSS Feed max items', '5', '25', 'integer', 'plugins', $this->name);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ class AmpacheRSSView
|
|||
if (strlen(trim($data['rssview_feed_url']))) {
|
||||
$this->feed_url = trim($data['rssview_feed_url']);
|
||||
} else {
|
||||
debug_event($this->name,'No rss feed url, home plugin skipped','3');
|
||||
debug_event($this->name, 'No rss feed url, home plugin skipped', '3');
|
||||
return false;
|
||||
}
|
||||
$this->maxitems = intval($data['rssview_max_items']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue