Lines Matching defs:data
14 * @param string|array $data
17 * @throws Exception when no data is passed
21 public function buildRegex($user = null, $style = null, $data = null)
26 $data = (array)$data;
31 $data = array_filter(array_map('trim', $data));
40 $data = array_map('preg_quote_cb', $data);
45 $data = implode('|', $data);
47 // any data at all?
48 if ($user . $style . $data === '') {
49 throw new Exception('no data passed');
62 if ($data === '') {
63 $data = '\S+';
68 return "/^($user)(?:\\s+($style))$sopt(?:\\s+($data))$dopt$/";