style(legacy): fix code format with php-cs-fixer (#1674)
This commit is contained in:
parent
e1dc69af9e
commit
69d8eae845
111 changed files with 1163 additions and 1163 deletions
|
@ -27,7 +27,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
$offset = $this->_getParam('offset', 0);
|
||||
$limit = $this->_getParam('limit', $totalFileCount);
|
||||
|
||||
//Sorting parameters
|
||||
// Sorting parameters
|
||||
$sortColumn = $this->_getParam('sort', CcFilesPeer::ID);
|
||||
$sortDir = $this->_getParam('sort_dir', Criteria::ASC);
|
||||
|
||||
|
@ -38,7 +38,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
->setLimit($limit)
|
||||
->setOffset($offset)
|
||||
->orderBy($sortColumn, $sortDir);
|
||||
//->orderByDbId();
|
||||
// ->orderByDbId();
|
||||
|
||||
$queryCount = $query->count();
|
||||
$queryResult = $query->find();
|
||||
|
@ -114,8 +114,8 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
|
||||
public function postAction()
|
||||
{
|
||||
//If we do get an ID on a POST, then that doesn't make any sense
|
||||
//since POST is only for creating.
|
||||
// If we do get an ID on a POST, then that doesn't make any sense
|
||||
// since POST is only for creating.
|
||||
if ($id = $this->_getParam('id', false)) {
|
||||
$resp = $this->getResponse();
|
||||
$resp->setHttpResponseCode(400);
|
||||
|
|
|
@ -26,7 +26,7 @@ class Rest_PodcastController extends Zend_Rest_Controller
|
|||
$offset = $this->_getParam('offset', 0);
|
||||
$limit = $this->_getParam('limit', 0);
|
||||
|
||||
//Sorting parameters
|
||||
// Sorting parameters
|
||||
$sortColumn = $this->_getParam('sort', PodcastPeer::ID);
|
||||
$sortDir = $this->_getParam('sort_dir', Criteria::ASC);
|
||||
|
||||
|
@ -72,8 +72,8 @@ class Rest_PodcastController extends Zend_Rest_Controller
|
|||
|
||||
public function postAction()
|
||||
{
|
||||
//If we do get an ID on a POST, then that doesn't make any sense
|
||||
//since POST is only for creating.
|
||||
// If we do get an ID on a POST, then that doesn't make any sense
|
||||
// since POST is only for creating.
|
||||
if ($id = $this->_getParam('id', false)) {
|
||||
$resp = $this->getResponse();
|
||||
$resp->setHttpResponseCode(400);
|
||||
|
|
|
@ -42,7 +42,7 @@ class Rest_PodcastEpisodesController extends Zend_Rest_Controller
|
|||
$offset = $this->_getParam('offset', 0);
|
||||
$limit = $this->_getParam('limit', $totalPodcastEpisodesCount);
|
||||
|
||||
//Sorting parameters
|
||||
// Sorting parameters
|
||||
$sortColumn = $this->_getParam('sort', PodcastEpisodesPeer::ID);
|
||||
$sortDir = $this->_getParam('sort_dir', Criteria::ASC);
|
||||
|
||||
|
@ -90,8 +90,8 @@ class Rest_PodcastEpisodesController extends Zend_Rest_Controller
|
|||
|
||||
public function postAction()
|
||||
{
|
||||
//If we do get an episode ID on a POST, then that doesn't make any sense
|
||||
//since POST is only for creating.
|
||||
// If we do get an episode ID on a POST, then that doesn't make any sense
|
||||
// since POST is only for creating.
|
||||
if ($episodeId = $this->_getParam('episode_id', false)) {
|
||||
$resp = $this->getResponse();
|
||||
$resp->setHttpResponseCode(400);
|
||||
|
|
|
@ -60,7 +60,7 @@ class Rest_RouteController extends Zend_Controller_Router_Route
|
|||
$path = explode(self::URI_DELIMITER, $path);
|
||||
}
|
||||
|
||||
//Store path count for method mapping
|
||||
// Store path count for method mapping
|
||||
$pathElementCount = count($path);
|
||||
|
||||
// Determine Action
|
||||
|
|
|
@ -156,7 +156,7 @@ class Rest_ShowImageController extends Zend_Rest_Controller
|
|||
{
|
||||
$ownerId = RestAuth::getOwnerId();
|
||||
|
||||
//Only accept files with a file extension that we support.
|
||||
// Only accept files with a file extension that we support.
|
||||
$fileExtension = $this->getFileExtension($tempFilePath);
|
||||
|
||||
if (!in_array(strtolower($fileExtension), explode(',', 'jpg,png,gif,jpeg'))) {
|
||||
|
@ -250,11 +250,11 @@ class Rest_ShowImageController extends Zend_Rest_Controller
|
|||
Logging::info("copyFileToStor: moving file {$image_file} to {$image_stor}");
|
||||
|
||||
if (@rename($image_file, $image_stor) === false) {
|
||||
//something went wrong likely there wasn't enough space in .
|
||||
//the audio_stor to move the file too warn the user that .
|
||||
//the file wasn't uploaded and they should check if there .
|
||||
//is enough disk space .
|
||||
unlink($image_file); //remove the file after failed rename
|
||||
// something went wrong likely there wasn't enough space in .
|
||||
// the audio_stor to move the file too warn the user that .
|
||||
// the file wasn't uploaded and they should check if there .
|
||||
// is enough disk space .
|
||||
unlink($image_file); // remove the file after failed rename
|
||||
|
||||
throw new Exception('The file was not uploaded, this error can occur if the computer '
|
||||
. 'hard drive does not have enough disk space or the stor '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue