From 815b505e87ee55ba96c421542b0d1d66100400b7 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Mon, 15 Feb 2016 05:15:40 -0800 Subject: [PATCH] Code style improvements. --- app/Commands/GenerateTrackFilesCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Commands/GenerateTrackFilesCommand.php b/app/Commands/GenerateTrackFilesCommand.php index 74156fdd..96ecc382 100644 --- a/app/Commands/GenerateTrackFilesCommand.php +++ b/app/Commands/GenerateTrackFilesCommand.php @@ -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;