mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:07:32 -05:00 
			
		
		
		
	Fix for travis tests
This commit is contained in:
		
							parent
							
								
									2fcb1d66a5
								
							
						
					
					
						commit
						2a6876a902
					
				@ -1,30 +0,0 @@
 | 
				
			|||||||
<?php namespace App\Http\Requests;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
use App\Http\Requests\Request;
 | 
					 | 
				
			||||||
use Illuminate\Validation\Factory;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
class CreatePaymentTermRequest extends Request
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * Determine if the user is authorized to make this request.
 | 
					 | 
				
			||||||
     *
 | 
					 | 
				
			||||||
     * @return bool
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    public function authorize()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        return true;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * Get the validation rules that apply to the request.
 | 
					 | 
				
			||||||
     *
 | 
					 | 
				
			||||||
     * @return array
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    public function rules()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        return [
 | 
					 | 
				
			||||||
            'num_days' => 'required',
 | 
					 | 
				
			||||||
            'name' => 'required',
 | 
					 | 
				
			||||||
        ];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -1,30 +0,0 @@
 | 
				
			|||||||
<?php namespace App\Http\Requests;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
use App\Http\Requests\Request;
 | 
					 | 
				
			||||||
use Illuminate\Validation\Factory;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
class UpdateExpenseRequest extends Request
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * Determine if the user is authorized to make this request.
 | 
					 | 
				
			||||||
     *
 | 
					 | 
				
			||||||
     * @return bool
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    public function authorize()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        return true;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * Get the validation rules that apply to the request.
 | 
					 | 
				
			||||||
     *
 | 
					 | 
				
			||||||
     * @return array
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    public function rules()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        return [
 | 
					 | 
				
			||||||
            'amount' => 'required|positive',
 | 
					 | 
				
			||||||
        ];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user