Code style improvements.

This commit is contained in:
Peter Deltchev 2016-02-15 05:15:40 -08:00
parent 5edcde3a8d
commit 815b505e87

View file

@ -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;