Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function getYAxisRaw(Request $request) |
||
22 | { |
||
23 | $symbol=$request->symbol_query; |
||
24 | |||
25 | $query = DB::table('exchange_history')->select('values')->where('symbol','=',$symbol)->get(); |
||
26 | |||
27 | $query=$query[0]->values; |
||
28 | |||
29 | $query=json_encode($query); |
||
30 | |||
31 | $to_replace = array("[", "]"); |
||
32 | $query=str_replace($to_replace,"",$query); |
||
33 | |||
34 | return $query; |
||
35 | } |
||
36 | } |
||
37 |