ParseError thrown

watch syntax error, unexpected 'if' (T_IF), expecting ',' or ')'

source site