|  | @@ -8,7 +8,7 @@ use Illuminate\Contracts\Validation\DataAwareRule;
 | 
	
		
			
			| 8 | 8 |  class RegionLimitedRules implements Rule, DataAwareRule
 | 
	
		
			
			| 9 | 9 |  {
 | 
	
		
			
			| 10 | 10 |      protected $data = [];
 | 
	
		
			
			| 11 |  | -    
 | 
	
		
			
			|  | 11 | +
 | 
	
		
			
			| 12 | 12 |      /**
 | 
	
		
			
			| 13 | 13 |       * Create a new rule instance.
 | 
	
		
			
			| 14 | 14 |       *
 | 
	
	
		
			
			|  | @@ -30,21 +30,21 @@ class RegionLimitedRules implements Rule, DataAwareRule
 | 
	
		
			
			| 30 | 30 |      {
 | 
	
		
			
			| 31 | 31 |          //
 | 
	
		
			
			| 32 | 32 |          if (substr($value, 0, 2)=='TP'||substr($value, 0, 2)=='HS') {
 | 
	
		
			
			| 33 |  | -            
 | 
	
		
			
			|  | 33 | +
 | 
	
		
			
			| 34 | 34 |              if (is_null($this->data['registeredSession'])) {
 | 
	
		
			
			| 35 | 35 |                  return false;
 | 
	
		
			
			| 36 | 36 |              }
 | 
	
		
			
			| 37 |  | -            
 | 
	
		
			
			|  | 37 | +
 | 
	
		
			
			| 38 | 38 |              if (is_null($this->data['lunchOptions'])) {
 | 
	
		
			
			| 39 | 39 |                  return false;
 | 
	
		
			
			| 40 | 40 |              }
 | 
	
		
			
			| 41 | 41 |  
 | 
	
		
			
			| 42 |  | -            $pattern = '/09\d{2}-\d{3}-\d{3}/';
 | 
	
		
			
			|  | 42 | +            $pattern = '/09\d{2}\d{3}\d{3}/';
 | 
	
		
			
			| 43 | 43 |              $string = $this->data['phoneNumber'];
 | 
	
		
			
			| 44 | 44 |              if (!preg_match($pattern, $string, $matches)) {
 | 
	
		
			
			| 45 | 45 |                  return false;
 | 
	
		
			
			| 46 | 46 |              }
 | 
	
		
			
			| 47 |  | -            
 | 
	
		
			
			|  | 47 | +
 | 
	
		
			
			| 48 | 48 |          } elseif (substr($value, 0, 2)=='JP') {
 | 
	
		
			
			| 49 | 49 |  
 | 
	
		
			
			| 50 | 50 |              $pattern = '/^0[789]0-\d{4}-\d{4}/';
 | 
	
	
		
			
			|  | @@ -72,7 +72,7 @@ class RegionLimitedRules implements Rule, DataAwareRule
 | 
	
		
			
			| 72 | 72 |      public function setData($data)
 | 
	
		
			
			| 73 | 73 |      {
 | 
	
		
			
			| 74 | 74 |          $this->data = $data;
 | 
	
		
			
			| 75 |  | - 
 | 
	
		
			
			|  | 75 | +
 | 
	
		
			
			| 76 | 76 |          return $this;
 | 
	
		
			
			| 77 | 77 |      }
 | 
	
		
			
			| 78 | 78 |  
 |