From 2337078dd84a1e5332ef357f89f85c0abdd41eb3 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Mon, 17 Sep 2012 12:35:12 -0400 Subject: [PATCH] Cleaned up unused variables. Formatted some lines. --- airtime_mvc/application/controllers/ScheduleController.php | 1 - airtime_mvc/application/models/Soundcloud.php | 2 +- airtime_mvc/application/models/StoredFile.php | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php index 8d9382717..c567a510f 100644 --- a/airtime_mvc/application/controllers/ScheduleController.php +++ b/airtime_mvc/application/controllers/ScheduleController.php @@ -205,7 +205,6 @@ class ScheduleController extends Zend_Controller_Action public function uploadToSoundCloudAction() { - global $CC_CONFIG; $show_instance = $this->_getParam('id'); try { $show_inst = new Application_Model_ShowInstance($show_instance); diff --git a/airtime_mvc/application/models/Soundcloud.php b/airtime_mvc/application/models/Soundcloud.php index 1c4b94f9f..b6d8cedfc 100644 --- a/airtime_mvc/application/models/Soundcloud.php +++ b/airtime_mvc/application/models/Soundcloud.php @@ -33,7 +33,7 @@ class Application_Model_Soundcloud $tags = Application_Model_Preference::GetSoundCloudTags(); } - $downloadable = Application_Model_Preference::GetSoundCloudDownloadbleOption() == '1'?true:false; + $downloadable = Application_Model_Preference::GetSoundCloudDownloadbleOption() == '1'; $track_data = array( 'track[sharing]' => 'private', diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 006593314..3469c75c9 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -1170,7 +1170,9 @@ SQL; $release = $file->getDbYear(); try { $soundcloud = new Application_Model_Soundcloud(); - $soundcloud_res = $soundcloud->uploadTrack($this->getFilePath(), $this->getName(), $description, $tag, $release, $genre); + $soundcloud_res = $soundcloud->uploadTrack( + $this->getFilePath(), $this->getName(), $description, + $tag, $release, $genre); $this->setSoundCloudFileId($soundcloud_res['id']); $this->setSoundCloudLinkToFile($soundcloud_res['permalink_url']); $this->setSoundCloudUploadTime(new DateTime("now"), new DateTimeZone("UTC"));