Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Commit

Permalink
fix per stringa troppo lunga
Browse files Browse the repository at this point in the history
  • Loading branch information
BroHPotato committed Apr 4, 2020
1 parent 867dfe6 commit fd9b951
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Providers/SensorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ public function findAll()
public function findAllFromDevice($deviceId)
{
try {
$response = json_decode($this->request->get('/devices/' . $deviceId . '/sensors', $this->setHeaders())->getBody());
$response = json_decode($this->request->get(
'/devices/' . $deviceId . '/sensors',
$this->setHeaders()
)->getBody());
$sensors = [];
foreach ($response as $d) {
$sensor = new Sensor();
Expand Down

0 comments on commit fd9b951

Please sign in to comment.