Ejemplo n.º 1
0
 private function patternDidntChange(Pattern $pattern, array $newData)
 {
     return $pattern->regex->text == $newData['regex'] && arrays_have_same_values($pattern->sections()->lists('id')->all(), $newData['section_ids']) && arrays_have_same_values($pattern->prefixes()->lists('id')->all(), $newData['prefix_ids']);
 }