@@ -7,9 +7,6 @@ |
||
7 | 7 | |
8 | 8 | namespace App\Http\Controllers; |
9 | 9 | |
10 | -use App\Http\Requests; |
|
11 | -use Illuminate\Http\Request; |
|
12 | - |
|
13 | 10 | /** |
14 | 11 | * Class HomeController |
15 | 12 | * @package App\Http\Controllers |
@@ -54,7 +54,7 @@ |
||
54 | 54 | { |
55 | 55 | $router->group([ |
56 | 56 | 'namespace' => $this->namespace, 'middleware' => 'web', |
57 | - ], function ($router) { |
|
57 | + ], function($router) { |
|
58 | 58 | require app_path('Http/routes.php'); |
59 | 59 | }); |
60 | 60 | } |
@@ -11,6 +11,6 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Route::get('/', function () { |
|
14 | +Route::get('/', function() { |
|
15 | 15 | return view('welcome'); |
16 | 16 | }); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function __construct() |
39 | 39 | { |
40 | - $this->middleware($this->guestMiddleware(), ['except' => 'logout']); |
|
40 | + $this->middleware($this->guestMiddleware(), [ 'except' => 'logout' ]); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
@@ -64,9 +64,9 @@ discard block |
||
64 | 64 | protected function create(array $data) |
65 | 65 | { |
66 | 66 | return User::create([ |
67 | - 'name' => $data['name'], |
|
68 | - 'email' => $data['email'], |
|
69 | - 'password' => bcrypt($data['password']), |
|
67 | + 'name' => $data[ 'name' ], |
|
68 | + 'email' => $data[ 'email' ], |
|
69 | + 'password' => bcrypt($data[ 'password' ]), |
|
70 | 70 | ]); |
71 | 71 | } |
72 | 72 | } |
@@ -20,10 +20,10 @@ |
||
20 | 20 | return $response; |
21 | 21 | } |
22 | 22 | |
23 | - public function interactiveChart (Client $client, $company_symbol) |
|
23 | + public function interactiveChart(Client $client, $company_symbol) |
|
24 | 24 | { |
25 | 25 | |
26 | - $request_params="%7B\"Normalized\"%3Afalse%2C\"NumberOfDays\"%3A730%2C\"DataPeriod\"%3A\"Month\"%2C\"Elements\"%3A%5B%7B\"Symbol\"%3A".$company_symbol."%2C\"Type\"%3A\"price\"%2C\"Params\"%3A%5B\"c\"%5D%7D%5D%7D"; |
|
26 | + $request_params = "%7B\"Normalized\"%3Afalse%2C\"NumberOfDays\"%3A730%2C\"DataPeriod\"%3A\"Month\"%2C\"Elements\"%3A%5B%7B\"Symbol\"%3A".$company_symbol."%2C\"Type\"%3A\"price\"%2C\"Params\"%3A%5B\"c\"%5D%7D%5D%7D"; |
|
27 | 27 | |
28 | 28 | $response = $client->get("http://dev.markitondemand.com/MODApis/Api/v2/InteractiveChart/json?parameters=".$request_params); |
29 | 29 |