| @@ -19,7 +19,7 @@ | ||
| 19 | 19 | */ | 
| 20 | 20 | public function register() | 
| 21 | 21 |      { | 
| 22 | -        $this->getContainer()->add('Ramsey\Uuid\Uuid', function () { | |
| 22 | +        $this->getContainer()->add('Ramsey\Uuid\Uuid', function() { | |
| 23 | 23 | $uuid = Uuid::Uuid4(); | 
| 24 | 24 | return $uuid; | 
| 25 | 25 | }); | 
| @@ -18,7 +18,7 @@ | ||
| 18 | 18 | $obj = [ | 
| 19 | 19 | 'id' => (string) $data->outfit_id, // Bigint | 
| 20 | 20 | 'name' => (string) $data->name, | 
| 21 | - 'tag' => (! empty($data->alias)) ? (string) $data->alias : null, | |
| 21 | + 'tag' => (!empty($data->alias)) ? (string) $data->alias : null, | |
| 22 | 22 | 'faction' => (int) $data->leader->faction_id, | 
| 23 | 23 | 'count' => (int) $data->member_count, | 
| 24 | 24 | 'leader' => (string) $data->leader_character_id, | 
| @@ -15,7 +15,7 @@ | ||
| 15 | 15 | */ | 
| 16 | 16 | public function transform($data) | 
| 17 | 17 |      { | 
| 18 | -        if (! isset($data['playerOutfit'])) { | |
| 18 | +        if (!isset($data['playerOutfit'])) { | |
| 19 | 19 | $outfit = null; | 
| 20 | 20 |          } else { | 
| 21 | 21 | $outfit = $data['playerOutfit']; | 
| @@ -191,7 +191,7 @@ discard block | ||
| 191 | 191 |          $key = "ps2alerts:api:profiles:outfit:players:{$data['outfitID']}"; | 
| 192 | 192 | |
| 193 | 193 | // If we have this cached already | 
| 194 | -        if (! empty($redis->exists($key))) { | |
| 194 | +        if (!empty($redis->exists($key))) { | |
| 195 | 195 | return json_decode($redis->get($key), true); | 
| 196 | 196 | } | 
| 197 | 197 | |
| @@ -227,7 +227,7 @@ discard block | ||
| 227 | 227 |          $key = "ps2alerts:api:profiles:outfit:census:members:{$data['outfitID']}:{$offset}"; | 
| 228 | 228 | |
| 229 | 229 | // If we have this cached already | 
| 230 | -        if (! empty($redis->exists($key))) { | |
| 230 | +        if (!empty($redis->exists($key))) { | |
| 231 | 231 | return json_decode($redis->get($key)); | 
| 232 | 232 | } | 
| 233 | 233 | |
| @@ -148,7 +148,7 @@ | ||
| 148 | 148 | /** | 
| 149 | 149 | * Admin | 
| 150 | 150 | */ | 
| 151 | -$route->group('/admin', function ($route) { | |
| 151 | +$route->group('/admin', function($route) { | |
| 152 | 152 | $route->post( | 
| 153 | 153 | '/v2/admin/createAlert', | 
| 154 | 154 | 'Ps2alerts\Api\Controller\Endpoint\Admin\AdminEndpointController::createAlert' | 
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | |
| 32 | 32 |          $this->getContainer()->share('Zend\Diactoros\Response\SapiEmitter'); | 
| 33 | 33 | |
| 34 | -        $this->getContainer()->share('Zend\Diactoros\ServerRequest', function () { | |
| 34 | +        $this->getContainer()->share('Zend\Diactoros\ServerRequest', function() { | |
| 35 | 35 | return ServerRequestFactory::fromGlobals(); | 
| 36 | 36 | }); | 
| 37 | 37 | } | 
| @@ -27,13 +27,13 @@ | ||
| 27 | 27 |          $config = $this->getContainer()->get('config'); | 
| 28 | 28 | $globals = [ | 
| 29 | 29 | 'base_url' => $config['base_url'], | 
| 30 | - 'asset_url' => $config['base_url'] . '/assets', | |
| 30 | + 'asset_url' => $config['base_url'].'/assets', | |
| 31 | 31 | 'env' => $config['environment'] | 
| 32 | 32 | ]; | 
| 33 | 33 | |
| 34 | 34 | // Register the singleton with the container | 
| 35 | -        $this->getContainer()->share('Twig_Environment', function () use ($globals, $config) { | |
| 36 | - $loader = new Twig_Loader_Filesystem(__DIR__ . '/../../template'); | |
| 35 | +        $this->getContainer()->share('Twig_Environment', function() use ($globals, $config) { | |
| 36 | + $loader = new Twig_Loader_Filesystem(__DIR__.'/../../template'); | |
| 37 | 37 | $twig = new Twig_Environment($loader, [ | 
| 38 | 38 | 'cache' => false, | 
| 39 | 39 | 'debug' => $config['environment'] === 'development' ? true : false | 
| @@ -18,7 +18,7 @@ | ||
| 18 | 18 | */ | 
| 19 | 19 | public function register() | 
| 20 | 20 |      { | 
| 21 | -        $this->getContainer()->share('config', function () { | |
| 21 | +        $this->getContainer()->share('config', function() { | |
| 22 | 22 | return [ | 
| 23 | 23 | 'environment' => $_ENV['ENV'], | 
| 24 | 24 | 'base_url' => $_ENV['BASE_URL'], | 
| @@ -23,7 +23,7 @@ discard block | ||
| 23 | 23 | */ | 
| 24 | 24 | public function register() | 
| 25 | 25 |      { | 
| 26 | -        $this->getContainer()->share('Database', function () { | |
| 26 | +        $this->getContainer()->share('Database', function() { | |
| 27 | 27 |              $config = $this->getContainer()->get('config')['database']; | 
| 28 | 28 | |
| 29 | 29 | $pdo = new ExtendedPdo( | 
| @@ -35,7 +35,7 @@ discard block | ||
| 35 | 35 | return $pdo; | 
| 36 | 36 | }); | 
| 37 | 37 | |
| 38 | -        $this->getContainer()->share('Database\Data', function () { | |
| 38 | +        $this->getContainer()->share('Database\Data', function() { | |
| 39 | 39 |              $config = $this->getContainer()->get('config')['database_data']; | 
| 40 | 40 | |
| 41 | 41 | $pdo = new ExtendedPdo( | 
| @@ -47,7 +47,7 @@ discard block | ||
| 47 | 47 | return $pdo; | 
| 48 | 48 | }); | 
| 49 | 49 | |
| 50 | -        $this->getContainer()->share('Database\Archive', function () { | |
| 50 | +        $this->getContainer()->share('Database\Archive', function() { | |
| 51 | 51 |              $config = $this->getContainer()->get('config')['database_archive']; | 
| 52 | 52 | |
| 53 | 53 | $pdo = new ExtendedPdo( | 
| @@ -59,7 +59,7 @@ discard block | ||
| 59 | 59 | return $pdo; | 
| 60 | 60 | }); | 
| 61 | 61 | |
| 62 | -        $this->getContainer()->add('Aura\SqlQuery\QueryFactory', function () { | |
| 62 | +        $this->getContainer()->add('Aura\SqlQuery\QueryFactory', function() { | |
| 63 | 63 |              return new QueryFactory('mysql'); | 
| 64 | 64 | }); | 
| 65 | 65 | } |