Commit cc6c72f5 by Seldaek

* Removed php closing tags at the end of files

git-svn-id: svn://dwoo.org/dwoo/trunk@41 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent 87d1e680
......@@ -1763,5 +1763,3 @@ class Dwoo_Security_Policy
return $this->constHandling;
}
}
?>
\ No newline at end of file
......@@ -2501,7 +2501,6 @@ class Dwoo_Compiler implements Dwoo_ICompiler
}
}
/**
* dwoo compilation exception class
*
......@@ -2524,5 +2523,3 @@ class Dwoo_Compiler implements Dwoo_ICompiler
class Dwoo_Compilation_Exception extends Dwoo_Exception
{
}
?>
\ No newline at end of file
......@@ -174,5 +174,3 @@ class Dwoo_Data implements Dwoo_IDataProvider
$this->data[$name][] =& $val;
}
}
?>
\ No newline at end of file
......@@ -207,5 +207,3 @@ interface Dwoo_ICompiler
*/
public function setSecurityPolicy(Dwoo_Security_Policy $policy = null);
}
?>
......@@ -309,5 +309,3 @@ interface Dwoo_ICompilable
interface Dwoo_ICompilable_Block
{
}
?>
\ No newline at end of file
......@@ -499,5 +499,3 @@ else
{
class Dwoo_Smarty_Adapter extends Dwoo_Smarty__Adapter {}
}
?>
\ No newline at end of file
......@@ -204,5 +204,3 @@ class Dwoo_Template_File extends Dwoo_Template_String
return new Dwoo_Template_File($resourceId, $cacheTime, $cacheId, $compileId);
}
}
?>
\ No newline at end of file
......@@ -363,5 +363,3 @@ class Dwoo_Template_String implements Dwoo_ITemplate
return false;
}
}
?>
\ No newline at end of file
......@@ -35,5 +35,3 @@ class Dwoo_Plugin_block extends Dwoo_Block_Plugin implements Dwoo_ICompilable_Bl
return '';
}
}
?>
\ No newline at end of file
......@@ -44,5 +44,3 @@ class Dwoo_Plugin_capture extends Dwoo_Block_Plugin implements Dwoo_ICompilable_
return $out . "\n".'$this->globals[\'capture\']['.$params['name'].'] = $tmp;'.$append.Dwoo_Compiler::PHP_CLOSE;
}
}
?>
\ No newline at end of file
......@@ -51,5 +51,3 @@ class Dwoo_Plugin_else extends Dwoo_Block_Plugin implements Dwoo_ICompilable_Blo
return $params['postOutput'];
}
}
?>
\ No newline at end of file
......@@ -49,5 +49,3 @@ class Dwoo_Plugin_elseif extends Dwoo_Plugin_if implements Dwoo_ICompilable_Bloc
return $params['postOutput'];
}
}
?>
\ No newline at end of file
......@@ -116,5 +116,3 @@ class Dwoo_Plugin_for extends Dwoo_Block_Plugin implements Dwoo_ICompilable_Bloc
return $params['postOutput'];
}
}
?>
\ No newline at end of file
......@@ -115,5 +115,3 @@ class Dwoo_Plugin_foreach extends Dwoo_Block_Plugin implements Dwoo_ICompilable_
return $params['postOutput'];
}
}
?>
\ No newline at end of file
......@@ -45,5 +45,3 @@ class Dwoo_Plugin_foreachelse extends Dwoo_Block_Plugin implements Dwoo_ICompila
return Dwoo_Compiler::PHP_OPEN.'}'.Dwoo_Compiler::PHP_CLOSE;
}
}
?>
\ No newline at end of file
......@@ -45,5 +45,3 @@ class Dwoo_Plugin_forelse extends Dwoo_Block_Plugin implements Dwoo_ICompilable_
return Dwoo_Compiler::PHP_OPEN.'}'.Dwoo_Compiler::PHP_CLOSE;
}
}
?>
\ No newline at end of file
......@@ -170,5 +170,3 @@ class Dwoo_Plugin_if extends Dwoo_Block_Plugin implements Dwoo_ICompilable_Block
return $params['postOutput'];
}
}
?>
\ No newline at end of file
......@@ -97,5 +97,3 @@ class Dwoo_Plugin_loop extends Dwoo_Block_Plugin implements Dwoo_ICompilable_Blo
return $params['postOutput'];
}
}
?>
\ No newline at end of file
......@@ -58,5 +58,3 @@ class Dwoo_Plugin_smartyinterface extends Dwoo_Plugin
return $params['postOut'];
}
}
?>
\ No newline at end of file
......@@ -78,12 +78,9 @@ class Dwoo_Plugin_textformat extends Dwoo_Block_Plugin
);
}
if($this->assign !== '')
$this->dwoo->assignInScope(implode($this->wrapChar . $this->wrapChar, $pgs), $this->assign);
else
return implode($this->wrapChar . $this->wrapChar, $pgs);
}
}
?>
\ No newline at end of file
......@@ -34,5 +34,3 @@ final class Dwoo_Plugin_topLevelBlock extends Dwoo_Block_Plugin
return Dwoo_Compiler::PHP_OPEN.'return $this->buffer . ob_get_clean();';
}
}
?>
\ No newline at end of file
......@@ -44,5 +44,3 @@ class Dwoo_Plugin_with extends Dwoo_Block_Plugin implements Dwoo_ICompilable_Blo
return $params['postOutput'];
}
}
?>
\ No newline at end of file
......@@ -45,5 +45,3 @@ class Dwoo_Plugin_withelse extends Dwoo_Block_Plugin implements Dwoo_ICompilable
return Dwoo_Compiler::PHP_OPEN.'}'.Dwoo_Compiler::PHP_CLOSE;
}
}
?>
\ No newline at end of file
......@@ -187,5 +187,3 @@ class Dwoo_Filter_html_format extends Dwoo_Filter
return $result;
}
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_assign_compile(Dwoo_Compiler $compiler, $value, $var)
{
return '$this->assignInScope('.$value.', '.$var.')';
}
?>
\ No newline at end of file
......@@ -40,5 +40,3 @@ function Dwoo_Plugin_capitalize(Dwoo $dwoo, $value, $numwords=false)
return substr($out, 1);
}
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_cat_compile(Dwoo_Compiler $compiler, $value, array $rest)
{
return '('.$value.').('.implode(').(', $rest).')';
}
?>
\ No newline at end of file
......@@ -26,5 +26,3 @@ function Dwoo_Plugin_count_characters_compile(Dwoo_Compiler $compiler, $value, $
else
return 'mb_strlen('.$value.', $this->charset)';
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_count_paragraphs_compile(Dwoo_Compiler $compiler, $value)
{
return '(preg_match_all(\'#[\r\n]+#\', '.$value.', $tmp)+1)';
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_count_sentences_compile(Dwoo_Compiler $compiler, $value)
{
return "preg_match_all('#[\w\pL]\.(?![\w\pL])#u', $value, \$tmp)";
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_count_words_compile(Dwoo_Compiler $compiler, $value)
{
return 'preg_match_all(strcasecmp($this->charset, \'utf-8\')===0 ? \'#[\w\pL]+#u\' : \'#\w+#\', '.$value.', $tmp)';
}
?>
\ No newline at end of file
......@@ -67,5 +67,3 @@ class Dwoo_Plugin_counter extends Dwoo_Plugin
return $out;
}
}
?>
\ No newline at end of file
......@@ -62,5 +62,3 @@ class Dwoo_Plugin_cycle extends Dwoo_Plugin
return $out;
}
}
?>
\ No newline at end of file
......@@ -55,5 +55,3 @@ function Dwoo_Plugin_date_format(Dwoo $dwoo, $value, $format='%b %e, %Y', $defau
}
return strftime($format, $value);
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_default_compile(Dwoo_Compiler $compiler, $value, $default='
{
return '(($tmp = '.$value.')===null||$tmp===\'\' ? '.$default.' : $tmp)';
}
?>
\ No newline at end of file
......@@ -80,5 +80,3 @@ class Dwoo_Plugin_dump extends Dwoo_Plugin
}
}
}
?>
\ No newline at end of file
......@@ -57,5 +57,3 @@ function Dwoo_Plugin_escape(Dwoo $dwoo, $value='', $format='html', $charset=null
$dwoo->triggerError('Escape\'s format argument must be one of : html, htmlall, url, urlpathinfo, hex, hexentity, javascript or mail, "'.$format.'" given.', E_USER_WARNING);
}
}
?>
\ No newline at end of file
......@@ -33,5 +33,3 @@ function Dwoo_Plugin_eval(Dwoo $dwoo, $var, $assign = null)
else
return $out;
}
?>
\ No newline at end of file
......@@ -142,5 +142,3 @@ class Dwoo_Plugin_extends extends Dwoo_Plugin implements Dwoo_ICompilable
}
}
}
?>
\ No newline at end of file
......@@ -37,5 +37,3 @@ elseif($tpl === false)
$this->triggerError(\'Include : Extending "'.$resource.':'.$identifier.'" was not allowed for an unknown reason.\', E_USER_WARNING);
if($tpl->getUid() !== "'.substr($uid, 1, -1).'") { ob_end_clean(); return false; }';
}
?>
\ No newline at end of file
......@@ -50,5 +50,3 @@ function Dwoo_Plugin_fetch(Dwoo $dwoo, $file, $assign = null)
else
return $out;
}
?>
\ No newline at end of file
......@@ -81,5 +81,3 @@ function Dwoo_Plugin_include(Dwoo $dwoo, $file, $cache_time = null, $cache_id =
else
return $out;
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_indent_compile(Dwoo_Compiler $compiler, $value, $by=4, $cha
{
return "preg_replace('#^#m', '".str_repeat(substr($char, 1, -1), trim($by, '"\''))."', $value)";
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_isset_compile(Dwoo_Compiler $compiler, $var)
{
return '('.$var.' !== null)';
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_lower_compile(Dwoo_Compiler $compiler, $value)
{
return 'mb_strtolower((string) '.$value.', $this->charset)';
}
?>
\ No newline at end of file
......@@ -98,5 +98,3 @@ function Dwoo_Plugin_mailto(Dwoo $dwoo, $address, $text=null, $subject=null, $en
$dwoo->triggerError('Mailto: <em>encode</em> argument is invalid, it must be one of : <em>none (= no value), js, js_charcode or hex</em>', E_USER_WARNING);
}
}
?>
\ No newline at end of file
......@@ -125,5 +125,3 @@ function Dwoo_Plugin_math_compile(Dwoo_Compiler $compiler, $equation, $format=''
return '($this->assignInScope('.$out.', '.$assign.'))';
return '('.$out.')';
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_nl2br_compile(Dwoo_Compiler $compiler, $value)
{
return 'nl2br((string) '.$value.')';
}
?>
\ No newline at end of file
......@@ -31,5 +31,3 @@ function Dwoo_Plugin_regex_replace(Dwoo $dwoo, $value, $search, $replace)
return preg_replace($search, $replace, $value);
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_replace_compile(Dwoo_Compiler $compiler, $value, $search, $
{
return 'str_replace('.$search.', '.$replace.', '.$value.')';
}
?>
\ No newline at end of file
......@@ -26,5 +26,3 @@ function Dwoo_Plugin_reverse(Dwoo $dwoo, $value, $preserve_keys=false)
else
return implode('',array_reverse(str_split((string) $value,1)));
}
?>
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_spacify_compile(Dwoo_Compiler $compiler, $value, $space_cha
{
return 'implode('.$space_char.', str_split('.$value.', 1))';
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_string_format_compile(Dwoo_Compiler $compiler, $value, $for
{
return 'sprintf('.$format.','.$value.')';
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_strip_compile(Dwoo_Compiler $compiler, $value, $with=' ')
{
return "preg_replace('#\s+#'.(strcasecmp(\$this->charset, 'utf-8')===0?'u':''), $with, $value)";
}
?>
\ No newline at end of file
......@@ -26,5 +26,3 @@ function Dwoo_Plugin_strip_tags_compile(Dwoo_Compiler $compiler, $value, $addspa
else
return "strip_tags($value)";
}
?>
\ No newline at end of file
......@@ -38,5 +38,3 @@ function Dwoo_Plugin_truncate(Dwoo $dwoo, $value, $length=80, $etc='...', $break
return substr($value, 0, $length) . $etc;
return substr($value, 0, ceil($length/2)) . $etc . substr($value, -floor($length/2));
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_upper_compile(Dwoo_Compiler $compiler, $value)
{
return 'mb_strtoupper((string) '.$value.', $this->charset)';
}
?>
\ No newline at end of file
......@@ -23,5 +23,3 @@ function Dwoo_Plugin_wordwrap_compile(Dwoo_Compiler $compiler, $value, $length=8
{
return 'wordwrap('.$value.','.$length.','.$break.','.$cut.')';
}
?>
\ No newline at end of file
......@@ -30,5 +30,3 @@ function Dwoo_Plugin_array_compile(Dwoo_Compiler $compiler, array $rest=array())
return 'array('.implode(', ', $out).')';
}
?>
\ No newline at end of file
......@@ -128,5 +128,3 @@ class Dwoo_Processor_smarty_compat extends Dwoo_Processor
return $output;
}
}
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment