mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-23 20:24:56 +02:00
style: Fix coding styles
This commit is contained in:
parent
d8f5aa3c79
commit
ff83410534
26 changed files with 109 additions and 114 deletions
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
function validateData(&$data,$parameters){
|
||||
function validateData(&$data, $parameters){
|
||||
$validateTextValue = function($value, $pattern = null){
|
||||
if(!is_null($pattern)){
|
||||
$filteredValue = filter_var($value
|
||||
, FILTER_VALIDATE_REGEXP
|
||||
, array('options' => array(
|
||||
$filteredValue = filter_var($value,
|
||||
FILTER_VALIDATE_REGEXP,
|
||||
array('options' => array(
|
||||
'regexp' => '/^' . $pattern . '$/'
|
||||
))
|
||||
);
|
||||
)
|
||||
));
|
||||
} else {
|
||||
$filteredValue = filter_var($value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue