mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 21:18:00 +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 $autoPublish;
|
||||||
private $sourceFile;
|
private $sourceFile;
|
||||||
|
|
||||||
static $_losslessFormats = [
|
protected static $_losslessFormats = [
|
||||||
'flac',
|
'flac',
|
||||||
'pcm',
|
'pcm',
|
||||||
'adpcm',
|
'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->track = $track;
|
||||||
$this->autoPublish = $autoPublish;
|
$this->autoPublish = $autoPublish;
|
||||||
|
@ -128,7 +128,7 @@ class GenerateTrackFilesCommand extends CommandBase
|
||||||
$trackFile->format = $name;
|
$trackFile->format = $name;
|
||||||
$trackFile->status = TrackFile::STATUS_PROCESSING_PENDING;
|
$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;
|
$trackFile->is_cacheable = true;
|
||||||
} else {
|
} else {
|
||||||
$trackFile->is_cacheable = false;
|
$trackFile->is_cacheable = false;
|
||||||
|
|
Loading…
Reference in a new issue