mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
Merge pull request #124 from phanan/analysis-XlxQdX
Applied fixes from StyleCI
This commit is contained in:
commit
42c7651031
5 changed files with 11 additions and 11 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue