@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Http\Request; |
| 6 | -use App\Http\Requests; |
|
| 7 | 6 | use MJErwin\Clockwork\ClockworkClient; |
| 8 | 7 | use MJErwin\Clockwork\Message; |
| 9 | 8 | |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | 5 | use GuzzleHttp\Client; |
| 6 | -use App\Http\Requests; |
|
| 7 | 6 | |
| 8 | 7 | class NytController extends Controller |
| 9 | 8 | { |
@@ -27,9 +27,9 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function __construct() |
| 29 | 29 | { |
| 30 | - $this->baseUrl = self::API_URL; |
|
| 31 | - $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
| 32 | - $this->setGetResponse($this->getRelativeUrl()); |
|
| 30 | + $this->baseUrl = self::API_URL; |
|
| 31 | + $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
| 32 | + $this->setGetResponse($this->getRelativeUrl()); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Http\Request; |
| 6 | 6 | use App\User; |
| 7 | -use App\Http\Requests; |
|
| 8 | 7 | use Illuminate\Contracts\Auth\Guard; |
| 9 | 8 | use Laravel\Socialite\Contracts\Factory as Socialite; |
| 10 | 9 | use Session; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | -use App\Http\Requests; |
|
| 6 | 5 | use Goutte\Client; |
| 7 | 6 | |
| 8 | 7 | class WebScrapingController extends Controller |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | 5 | use GuzzleHttp\Client; |
| 6 | -use App\Http\Requests; |
|
| 7 | 6 | |
| 8 | 7 | class YahooController extends Controller |
| 9 | 8 | { |
@@ -25,13 +25,13 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function __construct() |
| 27 | 27 | { |
| 28 | - $this->baseUrl = self::YAHOO_API; |
|
| 29 | - $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
| 28 | + $this->baseUrl = self::YAHOO_API; |
|
| 29 | + $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
| 30 | 30 | |
| 31 | - $query = "SELECT * FROM weather.forecast WHERE (location = 10007)"; |
|
| 31 | + $query = "SELECT * FROM weather.forecast WHERE (location = 10007)"; |
|
| 32 | 32 | |
| 33 | - $relativeUrl = '?q=' . $query . '&format=json'; |
|
| 34 | - $this->setGetResponse($relativeUrl); |
|
| 33 | + $relativeUrl = '?q=' . $query . '&format=json'; |
|
| 34 | + $this->setGetResponse($relativeUrl); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -62,10 +62,10 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | |
| 65 | - /** |
|
| 66 | - * Return all data to the Yahoo API dashboard |
|
| 67 | - * @return mixed |
|
| 68 | - */ |
|
| 65 | + /** |
|
| 66 | + * Return all data to the Yahoo API dashboard |
|
| 67 | + * @return mixed |
|
| 68 | + */ |
|
| 69 | 69 | public function getPage() |
| 70 | 70 | { |
| 71 | 71 | $data = $this->getData(); |
@@ -29,19 +29,19 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | protected $response; |
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * Initialize the Controller with necessary arguments |
|
| 34 | - */ |
|
| 32 | + /** |
|
| 33 | + * Initialize the Controller with necessary arguments |
|
| 34 | + */ |
|
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
| 37 | 37 | $this->baseUrl = self::LINKEDIN_API; |
| 38 | 38 | $this->client = new Client(['base_uri' => $this->baseUrl]); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - /** |
|
| 42 | - * Set options for making the Client request |
|
| 43 | - * @return void |
|
| 44 | - */ |
|
| 41 | + /** |
|
| 42 | + * Set options for making the Client request |
|
| 43 | + * @return void |
|
| 44 | + */ |
|
| 45 | 45 | private function setRequestOptions() |
| 46 | 46 | { |
| 47 | 47 | $authBearer = 'Bearer '. Auth::user()->getAccessToken(); |