Applied fixes from StyleCI

This commit is contained in:
Phan An 2016-01-31 09:00:15 -05:00 committed by StyleCI Bot
parent 4864759407
commit 9dc423f430
3 changed files with 4 additions and 4 deletions

View file

@ -3,9 +3,9 @@
namespace App\Http\Controllers\API;
use App\Http\Streamers\PHPStreamer;
use App\Http\Streamers\TranscodingStreamer;
use App\Http\Streamers\XAccelRedirectStreamer;
use App\Http\Streamers\XSendFileStreamer;
use App\Http\Streamers\TranscodingStreamer;
use App\Models\Song;
class SongController extends Controller

View file

@ -25,7 +25,7 @@ class TranscodingStreamer extends BaseStreamer implements StreamerInterface
// Since we can't really know the content length of a file while it's still being transcoded,
// "calculating" it (like below) will be much likely to result in net::ERR_CONTENT_LENGTH_MISMATCH errors.
// Better comment these for now.
//
//
// header('Accept-Ranges: bytes');
// $bytes = round(($this->song->length * $bitRate * 1024) / 8);
// header("Content-Length: $bytes");

View file

@ -27,7 +27,7 @@ class ApplicationTest extends TestCase
{
putenv('CDN_URL');
$manifestFile = dirname(__FILE__) . '/blobs/rev-manifest.json';
$manifestFile = dirname(__FILE__).'/blobs/rev-manifest.json';
$this->assertEquals(App::rev('foo.css', $manifestFile), '/public/build/foo00.css');
putenv('CDN_URL=http://cdn.bar');
@ -37,7 +37,7 @@ class ApplicationTest extends TestCase
public function testGetLatestVersion()
{
$mock = new MockHandler([
new Response(200, [], file_get_contents(dirname(__FILE__) . '/blobs/github-tags.json')),
new Response(200, [], file_get_contents(dirname(__FILE__).'/blobs/github-tags.json')),
]);
$client = new Client(['handler' => HandlerStack::create($mock)]);