Format code using php-cs-fixer
This commit is contained in:
parent
43d7dc92cd
commit
d52c6184b9
352 changed files with 17473 additions and 17041 deletions
|
@ -13,8 +13,6 @@
|
|||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
* @package propel.generator.airtime
|
||||
*/
|
||||
class CloudFile extends BaseCloudFile
|
||||
{
|
||||
|
@ -30,11 +28,11 @@ class CloudFile extends BaseCloudFile
|
|||
if ($this->proxyStorageBackend == null) {
|
||||
$this->proxyStorageBackend = new ProxyStorageBackend($this->getStorageBackend());
|
||||
}
|
||||
|
||||
return $this->proxyStorageBackend->getDownloadURLs($this->getResourceId(), $this->getFilename());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Returns a url to the file's object on Amazon S3.
|
||||
*/
|
||||
public function getAbsoluteFilePath()
|
||||
|
@ -42,9 +40,10 @@ class CloudFile extends BaseCloudFile
|
|||
if ($this->proxyStorageBackend == null) {
|
||||
$this->proxyStorageBackend = new ProxyStorageBackend($this->getStorageBackend());
|
||||
}
|
||||
|
||||
return $this->proxyStorageBackend->getAbsoluteFilePath($this->getResourceId());
|
||||
}
|
||||
|
||||
|
||||
public function getFilename()
|
||||
{
|
||||
$filename = $this->getDbFilepath();
|
||||
|
@ -56,7 +55,7 @@ class CloudFile extends BaseCloudFile
|
|||
|
||||
return $info['filename'] . $extension;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Checks if the file is a regular file that can be previewed and downloaded.
|
||||
*/
|
||||
|
@ -68,10 +67,9 @@ class CloudFile extends BaseCloudFile
|
|||
// does not get imported into the Airtime library.
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes the file from cloud storage
|
||||
* Deletes the file from cloud storage.
|
||||
*/
|
||||
public function deletePhysicalFile()
|
||||
{
|
||||
|
@ -80,12 +78,11 @@ class CloudFile extends BaseCloudFile
|
|||
}
|
||||
$this->proxyStorageBackend->deletePhysicalFile($this->getResourceId());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Deletes the cc_file and cloud_file entries from the database.
|
||||
*/
|
||||
public function delete(PropelPDO $con = NULL)
|
||||
public function delete(PropelPDO $con = null)
|
||||
{
|
||||
CcFilesQuery::create()->findPk($this->getCcFileId())->delete();
|
||||
parent::delete();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue