mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-03 14:03:18 -05:00 
			
		
		
		
	* Create PHP CS Fixer config and add to CI workflow * Run php cs fixer on project * Add newline at end of file * Update to use PHP CS Fixer v3 * Run v3 config on project * Run seperate config in CI
		
			
				
	
	
		
			24 lines
		
	
	
		
			418 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			418 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Crater\Http\Middleware;
 | 
						|
 | 
						|
use Fideloper\Proxy\TrustProxies as Middleware;
 | 
						|
use Illuminate\Http\Request;
 | 
						|
 | 
						|
class TrustProxies extends Middleware
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * The trusted proxies for this application.
 | 
						|
     *
 | 
						|
     * @var array
 | 
						|
     */
 | 
						|
    protected $proxies;
 | 
						|
 | 
						|
    /**
 | 
						|
     * The current proxy header mappings.
 | 
						|
     *
 | 
						|
     * @var array
 | 
						|
     */
 | 
						|
    protected $headers = Request::HEADER_X_FORWARDED_ALL;
 | 
						|
}
 |