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