mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
Code style improvements.
This commit is contained in:
parent
5edcde3a8d
commit
815b505e87
1 changed files with 3 additions and 3 deletions
|
@ -47,13 +47,13 @@ class GenerateTrackFilesCommand extends CommandBase
|
|||
private $autoPublish;
|
||||
private $sourceFile;
|
||||
|
||||
static $_losslessFormats = [
|
||||
protected static $_losslessFormats = [
|
||||
'flac',
|
||||
'pcm',
|
||||
'adpcm',
|
||||
];
|
||||
|
||||
public function __construct(Track $track, SplFileInfo $sourceFile, bool $autoPublish = false, int $reprocessTrackId = null)
|
||||
public function __construct(Track $track, SplFileInfo $sourceFile, bool $autoPublish = false)
|
||||
{
|
||||
$this->track = $track;
|
||||
$this->autoPublish = $autoPublish;
|
||||
|
@ -128,7 +128,7 @@ class GenerateTrackFilesCommand extends CommandBase
|
|||
$trackFile->format = $name;
|
||||
$trackFile->status = TrackFile::STATUS_PROCESSING_PENDING;
|
||||
|
||||
if (in_array($name, Track::$CacheableFormats) && $trackFile->is_master == false) {
|
||||
if (in_array($name, Track::$CacheableFormats) && !$trackFile->is_master) {
|
||||
$trackFile->is_cacheable = true;
|
||||
} else {
|
||||
$trackFile->is_cacheable = false;
|
||||
|
|
Loading…
Reference in a new issue