Merge pull request #124 from phanan/analysis-XlxQdX

Applied fixes from StyleCI
This commit is contained in:
Phan An 2015-12-20 20:30:43 +08:00
commit 42c7651031
5 changed files with 11 additions and 11 deletions

View file

@ -2,10 +2,10 @@
namespace App\Http\Controllers\API; namespace App\Http\Controllers\API;
use App\Services\Lastfm;
use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\Auth\Guard;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Routing\Redirector; use Illuminate\Routing\Redirector;
use App\Services\Lastfm;
class LastfmController extends Controller class LastfmController extends Controller
{ {

View file

@ -202,7 +202,7 @@ class Lastfm extends RESTfulService
$params['method'] = 'track.scrobble'; $params['method'] = 'track.scrobble';
try { try {
return !!$this->post('/', $this->buildAuthCallParams($params), false); return (bool) $this->post('/', $this->buildAuthCallParams($params), false);
} catch (\Exception $e) { } catch (\Exception $e) {
Log::error($e); Log::error($e);

View file

@ -1,15 +1,15 @@
<?php <?php
use App\Http\Controllers\API\LastfmController;
use App\Models\User;
use App\Services\Lastfm; use App\Services\Lastfm;
use GuzzleHttp\Client; use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Response; use GuzzleHttp\Psr7\Response;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Foundation\Testing\WithoutMiddleware;
use App\Models\User; use Illuminate\Http\Request;
use App\Http\Controllers\API\LastfmController;
use Illuminate\Routing\Redirector; use Illuminate\Routing\Redirector;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Http\Request;;
use Mockery as m; use Mockery as m;
class LastfmTest extends TestCase class LastfmTest extends TestCase