@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | |
8 | 8 | class DJsViewComposer { |
9 | 9 | |
10 | - protected $djs; |
|
10 | + protected $djs; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Bind data to the view. |
@@ -16,10 +16,10 @@ discard block |
||
16 | 16 | * @return void |
17 | 17 | */ |
18 | 18 | public function compose(View $view) |
19 | - { |
|
20 | - if ($this->djs == null) { |
|
21 | - $this->djs = DJ::orderBy('name', 'asc')->get(); |
|
22 | - } |
|
19 | + { |
|
20 | + if ($this->djs == null) { |
|
21 | + $this->djs = DJ::orderBy('name', 'asc')->get(); |
|
22 | + } |
|
23 | 23 | $view->with('djs', $this->djs); |
24 | 24 | } |
25 | 25 | } |
@@ -18,8 +18,8 @@ |
||
18 | 18 | */ |
19 | 19 | public function compose(View $view) |
20 | 20 | { |
21 | - $client = new Client(); |
|
22 | - try { |
|
21 | + $client = new Client(); |
|
22 | + try { |
|
23 | 23 | $response = $client->get('http://logger.witr.rit.edu/latest.json', [ |
24 | 24 | 'timeout' => 1, |
25 | 25 | ]); |