1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00
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:
Phyks (Lucas Verney) 2016-06-17 12:20:43 +02:00
parent 178e53a82e
commit 2bb142eeb8
283 changed files with 1332 additions and 1347 deletions

View file

@ -51,8 +51,8 @@ class AmpacheDiscogs
if (Preference::exists('discogs_api_key')) {
return false;
}
Preference::insert('discogs_api_key','Discogs consumer key','','75','string','plugins',$this->name);
Preference::insert('discogs_secret_api_key','Discogs secret','','75','string','plugins',$this->name);
Preference::insert('discogs_api_key', 'Discogs consumer key', '', '75', 'string', 'plugins', $this->name);
Preference::insert('discogs_secret_api_key', 'Discogs secret', '', '75', 'string', 'plugins', $this->name);
return true;
} // install
@ -80,13 +80,13 @@ class AmpacheDiscogs
if (strlen(trim($data['discogs_api_key']))) {
$this->api_key = trim($data['discogs_api_key']);
} else {
debug_event($this->name,'No Discogs api key, metadata plugin skipped','3');
debug_event($this->name, 'No Discogs api key, metadata plugin skipped', '3');
return false;
}
if (strlen(trim($data['discogs_secret_api_key']))) {
$this->secret = trim($data['discogs_secret_api_key']);
} else {
debug_event($this->name,'No Discogs secret, metadata plugin skipped','3');
debug_event($this->name, 'No Discogs secret, metadata plugin skipped', '3');
return false;
}