Minor fixes here and there

This commit is contained in:
Phan An 2018-08-23 08:58:17 +02:00
parent 02d36c692e
commit f409c5bc47
3 changed files with 4 additions and 4 deletions

View file

@ -5,6 +5,7 @@ namespace Tests;
use App\Models\User;
use Artisan;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Application;
trait CreatesApplication
{
@ -21,7 +22,7 @@ trait CreatesApplication
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
* @return Application
*/
public function createApplication()
{

View file

@ -1,8 +1,7 @@
<?php
namespace App\Services\Streamers {
function file_exists()
{
function file_exists() {
return true;
}
}

View file

@ -17,7 +17,7 @@ trait InteractsWithIoc
*/
protected function mockIocDependency($abstract, ...$args)
{
return tap(Mockery::mock($abstract, ...$args), function ($mocked) use ($abstract) {
return tap(Mockery::mock($abstract, ...$args), static function ($mocked) use ($abstract) {
app()->instance($abstract, $mocked);
});
}