@@ -2,7 +2,6 @@ |
||
| 2 | 2 | namespace PhpDraft\Domain\Services; |
| 3 | 3 | |
| 4 | 4 | use Silex\Application; |
| 5 | -use Symfony\Component\HttpFoundation\Request; |
|
| 6 | 5 | use phpFastCache\CacheManager; |
| 7 | 6 | |
| 8 | 7 | //A wrapper service for the PHP-based caching to save on several MySQL reads |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | public function GetCachedItem($itemKey) { |
| 28 | 28 | $cachedItem = $this->_LoadCacheObject($itemKey); |
| 29 | 29 | |
| 30 | - if(!$cachedItem->isHit()) { |
|
| 30 | + if (!$cachedItem->isHit()) { |
|
| 31 | 31 | return null; |
| 32 | 32 | } |
| 33 | 33 | |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | //Validators |
| 8 | 8 | //Validators are for ensuring that request data is valid, and ensures save data |
| 9 | 9 | //does not result in corrupt data. |
| 10 | -$app['phpdraft.LoginUserValidator'] = function () use ($app) { |
|
| 10 | +$app['phpdraft.LoginUserValidator'] = function() use ($app) { |
|
| 11 | 11 | return new \PhpDraft\Domain\Validators\LoginUserValidator($app); |
| 12 | 12 | }; |
| 13 | 13 | |
@@ -15,26 +15,26 @@ discard block |
||
| 15 | 15 | return new \PhpDraft\Domain\Validators\DraftValidator($app); |
| 16 | 16 | }; |
| 17 | 17 | |
| 18 | -$app['phpdraft.RoundTimeValidator'] = function () use ($app) { |
|
| 18 | +$app['phpdraft.RoundTimeValidator'] = function() use ($app) { |
|
| 19 | 19 | return new \PhpDraft\Domain\Validators\RoundTimeValidator($app); |
| 20 | 20 | }; |
| 21 | 21 | |
| 22 | -$app['phpdraft.ManagerValidator'] = function () use ($app) { |
|
| 22 | +$app['phpdraft.ManagerValidator'] = function() use ($app) { |
|
| 23 | 23 | return new \PhpDraft\Domain\Validators\ManagerValidator($app); |
| 24 | 24 | }; |
| 25 | 25 | |
| 26 | -$app['phpdraft.TradeValidator'] = function () use ($app) { |
|
| 26 | +$app['phpdraft.TradeValidator'] = function() use ($app) { |
|
| 27 | 27 | return new \PhpDraft\Domain\Validators\TradeValidator($app); |
| 28 | 28 | }; |
| 29 | 29 | |
| 30 | -$app['phpdraft.PickValidator'] = function () use ($app) { |
|
| 30 | +$app['phpdraft.PickValidator'] = function() use ($app) { |
|
| 31 | 31 | return new \PhpDraft\Domain\Validators\PickValidator($app); |
| 32 | 32 | }; |
| 33 | 33 | |
| 34 | -$app['phpdraft.ProPlayerValidator'] = function () use ($app) { |
|
| 34 | +$app['phpdraft.ProPlayerValidator'] = function() use ($app) { |
|
| 35 | 35 | return new \PhpDraft\Domain\Validators\ProPlayerValidator($app); |
| 36 | 36 | }; |
| 37 | 37 | |
| 38 | -$app['phpdraft.DepthChartPositionValidator'] = function () use ($app) { |
|
| 38 | +$app['phpdraft.DepthChartPositionValidator'] = function() use ($app) { |
|
| 39 | 39 | return new \PhpDraft\Domain\Validators\DepthChartPositionValidator($app); |
| 40 | 40 | }; |
| 41 | 41 | \ No newline at end of file |
@@ -16,42 +16,42 @@ |
||
| 16 | 16 | return new \PhpDraft\Domain\Services\EmailService($app); |
| 17 | 17 | }; |
| 18 | 18 | |
| 19 | -$app['phpdraft.LoginUserService'] = function () use ($app) { |
|
| 19 | +$app['phpdraft.LoginUserService'] = function() use ($app) { |
|
| 20 | 20 | return new \PhpDraft\Domain\Services\LoginUserService($app); |
| 21 | 21 | }; |
| 22 | 22 | |
| 23 | -$app['phpdraft.DraftService'] = function () use ($app) { |
|
| 23 | +$app['phpdraft.DraftService'] = function() use ($app) { |
|
| 24 | 24 | return new \PhpDraft\Domain\Services\DraftService($app); |
| 25 | 25 | }; |
| 26 | 26 | |
| 27 | -$app['phpdraft.RoundTimeService'] = function () use ($app) { |
|
| 27 | +$app['phpdraft.RoundTimeService'] = function() use ($app) { |
|
| 28 | 28 | return new \PhpDraft\Domain\Services\RoundTimeService($app); |
| 29 | 29 | }; |
| 30 | 30 | |
| 31 | -$app['phpdraft.ManagerService'] = function () use ($app) { |
|
| 31 | +$app['phpdraft.ManagerService'] = function() use ($app) { |
|
| 32 | 32 | return new \PhpDraft\Domain\Services\ManagerService($app); |
| 33 | 33 | }; |
| 34 | 34 | |
| 35 | -$app['phpdraft.ProPlayerService'] = function () use ($app) { |
|
| 35 | +$app['phpdraft.ProPlayerService'] = function() use ($app) { |
|
| 36 | 36 | return new \PhpDraft\Domain\Services\ProPlayerService($app); |
| 37 | 37 | }; |
| 38 | 38 | |
| 39 | -$app['phpdraft.TradeService'] = function () use ($app) { |
|
| 39 | +$app['phpdraft.TradeService'] = function() use ($app) { |
|
| 40 | 40 | return new \PhpDraft\Domain\Services\TradeService($app); |
| 41 | 41 | }; |
| 42 | 42 | |
| 43 | -$app['phpdraft.PickService'] = function () use ($app) { |
|
| 43 | +$app['phpdraft.PickService'] = function() use ($app) { |
|
| 44 | 44 | return new \PhpDraft\Domain\Services\PickService($app); |
| 45 | 45 | }; |
| 46 | 46 | |
| 47 | -$app['phpdraft.UtilityService'] = function () use ($app) { |
|
| 47 | +$app['phpdraft.UtilityService'] = function() use ($app) { |
|
| 48 | 48 | return new \PhpDraft\Domain\Services\UtilityService($app); |
| 49 | 49 | }; |
| 50 | 50 | |
| 51 | -$app['phpdraft.DepthChartPositionService'] = function () use ($app) { |
|
| 51 | +$app['phpdraft.DepthChartPositionService'] = function() use ($app) { |
|
| 52 | 52 | return new \PhpDraft\Domain\Services\DepthChartPositionService($app); |
| 53 | 53 | }; |
| 54 | 54 | |
| 55 | -$app['phpdraft.DatabaseCacheService'] = function () use ($app) { |
|
| 55 | +$app['phpdraft.DatabaseCacheService'] = function() use ($app) { |
|
| 56 | 56 | return new \PhpDraft\Domain\Services\DatabaseCacheService($app); |
| 57 | 57 | }; |
| 58 | 58 | \ No newline at end of file |