@@ -28,13 +28,13 @@ discard block |
||
| 28 | 28 | try { |
| 29 | 29 | $draft = $this->app['phpdraft.DraftRepository']->Create($draft); |
| 30 | 30 | |
| 31 | - if($draft->using_depth_charts) { |
|
| 31 | + if ($draft->using_depth_charts) { |
|
| 32 | 32 | $depth_charts = $this->app['phpdraft.DepthChartPositionRepository']->Save($depthChartModel, $draft->draft_id); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | $response->success = true; |
| 36 | 36 | $response->draft = $draft; |
| 37 | - } catch(\Exception $e) { |
|
| 37 | + } catch (\Exception $e) { |
|
| 38 | 38 | $response->success = false; |
| 39 | 39 | $response->errors = array($e->getMessage()); |
| 40 | 40 | } |
@@ -48,14 +48,14 @@ discard block |
||
| 48 | 48 | try { |
| 49 | 49 | $draft = $this->app['phpdraft.DraftRepository']->Update($draft); |
| 50 | 50 | |
| 51 | - if($draft->using_depth_charts == 1) { |
|
| 51 | + if ($draft->using_depth_charts == 1) { |
|
| 52 | 52 | $this->app['phpdraft.DepthChartPositionRepository']->DeleteAllDepthChartPositions($draft->draft_id); |
| 53 | 53 | $depth_charts = $this->app['phpdraft.DepthChartPositionRepository']->Save($depthChartModel, $draft->draft_id); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | $response->success = true; |
| 57 | 57 | $response->draft = $draft; |
| 58 | - } catch(\Exception $e) { |
|
| 58 | + } catch (\Exception $e) { |
|
| 59 | 59 | $response->success = false; |
| 60 | 60 | $response->errors = array($e->getMessage()); |
| 61 | 61 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | $response->success = true; |
| 87 | 87 | $response->draft = $draft; |
| 88 | - } catch(\Exception $e) { |
|
| 88 | + } catch (\Exception $e) { |
|
| 89 | 89 | $response->success = false; |
| 90 | 90 | $response->errors = array($e->getMessage()); |
| 91 | 91 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * @global string LOGFILE_NAME |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -if($app['debug'] == true) { |
|
| 11 | +if ($app['debug'] == true) { |
|
| 12 | 12 | $app->register(new Silex\Provider\MonologServiceProvider(), array( |
| 13 | 13 | 'monolog.logfile' => __DIR__ . '/logs/' . LOGFILE_NAME, |
| 14 | 14 | )); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | public function GenerateSaltForUrl() { |
| 17 | 17 | $salt = $this->GenerateSalt(); |
| 18 | 18 | |
| 19 | - while(strpos($salt, '/') != 0) { |
|
| 19 | + while (strpos($salt, '/') != 0) { |
|
| 20 | 20 | $salt = $this->GenerateSalt(); |
| 21 | 21 | } |
| 22 | 22 | |