Apply git patch
git apply --reject --whitespace=fix path/to/file.patch
<?php | |
namespace App\Support; | |
use Davidhsianturi\Compass\Authenticators\CredentialResult; | |
use Davidhsianturi\Compass\Authenticators\UserProvider; | |
use Davidhsianturi\Compass\Contracts\AuthenticatorRepository; | |
use Illuminate\Support\Arr; | |
use Illuminate\Support\Facades\Cache; |
[ | |
{ | |
"id": "uuid-1", | |
"name": "Webprovise Corp", | |
"cost": 42389, | |
"children": [ | |
{ | |
"id": "uuid-2", | |
"name": "Stamm LLC", | |
"cost": 2587, |
<?php | |
namespace App\Helpers; | |
use GuzzleHttp\MessageFormatter as Formatter; | |
use GuzzleHttp\Psr7\MultipartStream; | |
use Illuminate\Support\Str; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\ResponseInterface; |
<?php | |
use Aws\AwsClient; | |
use Aws\Result; | |
use Carbon\Carbon; | |
use phpseclib3\Math\BigInteger; | |
class AwsCognitoIdentitySRP | |
{ | |
const N_HEX = 'FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1'. |
<?php | |
namespace App\Logging; | |
use GuzzleHttp\MessageFormatter; | |
use Illuminate\Support\Arr; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\ResponseInterface; | |
class GuzzleMessageFormatter extends MessageFormatter |
<?php | |
namespace App\Support\Flash; | |
use Illuminate\Contracts\Session\Session; | |
use Illuminate\Support\Arr; | |
use Illuminate\Support\Traits\Macroable; | |
class Flash | |
{ |
"peacock.favoriteColors": [ | |
{ | |
"name": "Angular Red", | |
"value": "#b52e31" | |
}, | |
{ | |
"name": "Auth0 Orange", | |
"value": "#eb5424" | |
}, | |
{ |
<?php | |
namespace App\Support\Traits; | |
use Illuminate\Support\Str; | |
trait ExplodesFormRequestData | |
{ | |
/** | |
* Prepare the data for validation. |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Support\Arr; | |
use Illuminate\Support\Facades\Cache; | |
class Idempotency | |
{ |
Apply git patch
git apply --reject --whitespace=fix path/to/file.patch