Format code using php-cs-fixer
This commit is contained in:
parent
43d7dc92cd
commit
d52c6184b9
352 changed files with 17473 additions and 17041 deletions
|
@ -1,21 +1,22 @@
|
|||
<?php
|
||||
|
||||
class CeleryServiceFactory {
|
||||
|
||||
class CeleryServiceFactory
|
||||
{
|
||||
/**
|
||||
* Given an identifying string, get a ThirdPartyCeleryService object of that type
|
||||
* Given an identifying string, get a ThirdPartyCeleryService object of that type.
|
||||
*
|
||||
* @param $serviceName string the name of the service to create
|
||||
*
|
||||
* @return Application_Service_ThirdPartyCeleryService|null
|
||||
* @return null|Application_Service_ThirdPartyCeleryService
|
||||
*/
|
||||
public static function getService($serviceName) {
|
||||
switch($serviceName) {
|
||||
public static function getService($serviceName)
|
||||
{
|
||||
switch ($serviceName) {
|
||||
case PODCAST_SERVICE_NAME:
|
||||
return new Application_Service_PodcastEpisodeService();
|
||||
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue