File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
generator/cybersource-php-template Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -156,14 +156,6 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
156156
157157 { {/isContainer} }
158158 { {/isEnum} }
159- { {#hasValidation} }
160- { {#pattern} }
161- if ({ {^required} }!is_null($this->container['{ {name} }']) && { {/required} }!preg_match("{ {{pattern} }}", $this->container['{ {name} }'])) {
162- $invalid_properties [] = " invalid value for '{{name}}', must be conform to the pattern {{{pattern}}}." ;
163- }
164-
165- { {/pattern} }
166- { {/hasValidation} }
167159 { {/vars} }
168160 return $invalid_properties;
169161 }
@@ -196,13 +188,6 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
196188 }
197189 { {/isContainer} }
198190 { {/isEnum} }
199- { {#hasValidation} }
200- { {#pattern} }
201- if (!preg_match("{ {{pattern} }}", $this->container['{ {name} }'])) {
202- return false ;
203- }
204- { {/pattern} }
205- { {/hasValidation} }
206191 { {/vars} }
207192 return true;
208193 }
You can’t perform that action at this time.
0 commit comments