Permalink
Browse files

1+)New Filter NewLines: Request by Michael Mayer (michael at liquidby…

…tes.net).

   Allows to include an extra line before/after some contents. Please, use with
   case, because is a preliminary release.
2+)New Functions in PHP_Beautifier to support PHP_Beautifier_Files_NewLines:
   2.1) setBeforeNewLine()
   2.2) setNoDeletePreviousSpaceHack() : an ominous hack. 
        Children, don't do it at home!
3*)The new "RFC Header Comment Blocks" is a success, so all the headers are
   changed to adjust. A new license is available on licences, for PEAR Filter.
4-)Bug fix [3257]: Comments between if and elseif screws up formatting.
  • Loading branch information...
1 parent a92c23c commit 22c4cf7f7e63bc4cc20974bee64fabe1a717530d @clbustos committed Feb 4, 2005
Showing with 1,055 additions and 20,975 deletions.
  1. +94 −53 Beautifier.php
  2. +29 −24 Beautifier/Batch.php
  3. +26 −21 Beautifier/Batch/Output.php
  4. +26 −22 Beautifier/Batch/Output/Directory.php
  5. +28 −23 Beautifier/Batch/Output/DirectoryBz2.php
  6. +28 −23 Beautifier/Batch/Output/DirectoryGz.php
  7. +32 −26 Beautifier/Batch/Output/DirectoryTar.php
  8. +26 −21 Beautifier/Batch/Output/Files.php
  9. +26 −23 Beautifier/Batch/Output/FilesBz2.php
  10. +29 −26 Beautifier/Batch/Output/FilesGz.php
  11. +25 −23 Beautifier/Batch/Output/FilesTar.php
  12. +32 −23 Beautifier/Common.php
  13. +26 −22 Beautifier/Decorator.php
  14. +23 −1 Beautifier/Exception.php
  15. +25 −25 Beautifier/Filter.php
  16. +25 −22 Beautifier/Filter/ArrayNested.filter.php
  17. +27 −22 Beautifier/Filter/Default.filter.php
  18. +24 −22 Beautifier/Filter/IndentStyles.filter.php
  19. +25 −20 Beautifier/Filter/ListClassFunction.filter.php
  20. +73 −0 Beautifier/Filter/NewLines.filter.php
  21. +26 −23 Beautifier/Filter/Pear.filter.php
  22. +27 −20 Beautifier/StreamWrapper.php
  23. +28 −21 Beautifier/StreamWrapper/Tarz.php
  24. +24 −20 Beautifier/Tokenizer.php
  25. +0 −666 docs/PHP_Beautifier/Batch/PHP_Beautifier_Batch.html
  26. +0 −465 docs/PHP_Beautifier/Batch/PHP_Beautifier_Batch_Output.html
  27. +0 −199 docs/PHP_Beautifier/Batch/PHP_Beautifier_Batch_Output_Directory.html
  28. +0 −108 docs/PHP_Beautifier/Batch/PHP_Beautifier_Batch_Output_DirectoryBz2.html
  29. +0 −108 docs/PHP_Beautifier/Batch/PHP_Beautifier_Batch_Output_DirectoryGz.html
  30. +0 −197 docs/PHP_Beautifier/Batch/PHP_Beautifier_Batch_Output_DirectoryTar.html
  31. +0 −199 docs/PHP_Beautifier/Batch/PHP_Beautifier_Batch_Output_Files.html
  32. +0 −178 docs/PHP_Beautifier/Batch/PHP_Beautifier_Batch_Output_FilesBz2.html
  33. +0 −178 docs/PHP_Beautifier/Batch/PHP_Beautifier_Batch_Output_FilesGz.html
  34. +0 −365 docs/PHP_Beautifier/Batch/PHP_Beautifier_Batch_Output_FilesTar.html
  35. +0 −93 docs/PHP_Beautifier/Batch/_usr_local_php5_lib_php_PHP_Beautifier_Batch_Output_DirectoryBz2_php.html
  36. +0 −93 docs/PHP_Beautifier/Batch/_usr_local_php5_lib_php_PHP_Beautifier_Batch_Output_DirectoryGz_php.html
  37. +0 −93 docs/PHP_Beautifier/Batch/_usr_local_php5_lib_php_PHP_Beautifier_Batch_Output_DirectoryTar_php.html
  38. +0 −64 docs/PHP_Beautifier/Batch/_usr_local_php5_lib_php_PHP_Beautifier_Batch_Output_Directory_php.html
  39. +0 −93 docs/PHP_Beautifier/Batch/_usr_local_php5_lib_php_PHP_Beautifier_Batch_Output_FilesBz2_php.html
  40. +0 −93 docs/PHP_Beautifier/Batch/_usr_local_php5_lib_php_PHP_Beautifier_Batch_Output_FilesGz_php.html
  41. +0 −93 docs/PHP_Beautifier/Batch/_usr_local_php5_lib_php_PHP_Beautifier_Batch_Output_FilesTar_php.html
  42. +0 −64 docs/PHP_Beautifier/Batch/_usr_local_php5_lib_php_PHP_Beautifier_Batch_Output_Files_php.html
  43. +0 −63 docs/PHP_Beautifier/Batch/_usr_local_php5_lib_php_PHP_Beautifier_Batch_Output_php.html
  44. +0 −111 docs/PHP_Beautifier/Batch/_usr_local_php5_lib_php_PHP_Beautifier_Batch_php.html
  45. +0 −71 docs/PHP_Beautifier/Batch/tutorial_Batch.cls.html
  46. +0 −48 docs/PHP_Beautifier/Exception_PHP_Beautifier_Filter.html
  47. +0 −974 docs/PHP_Beautifier/Filter/PHP_Beautifier_Filter.html
  48. +0 −290 docs/PHP_Beautifier/Filter/PHP_Beautifier_Filter_ArrayNested.html
  49. +0 −1,436 docs/PHP_Beautifier/Filter/PHP_Beautifier_Filter_Default.html
  50. +0 −615 docs/PHP_Beautifier/Filter/PHP_Beautifier_Filter_IndentStyles.html
  51. +0 −505 docs/PHP_Beautifier/Filter/PHP_Beautifier_Filter_ListClassFunction.html
  52. +0 −408 docs/PHP_Beautifier/Filter/PHP_Beautifier_Filter_Pear.html
  53. +0 −64 docs/PHP_Beautifier/Filter/_usr_local_php5_lib_php_PHP_Beautifier_Filter_ArrayNested_filter_php.html
  54. +0 −63 docs/PHP_Beautifier/Filter/_usr_local_php5_lib_php_PHP_Beautifier_Filter_Default_filter_php.html
  55. +0 −64 .../PHP_Beautifier/Filter/_usr_local_php5_lib_php_PHP_Beautifier_Filter_IndentStyles_filter_php.html
  56. +0 −64 ...Beautifier/Filter/_usr_local_php5_lib_php_PHP_Beautifier_Filter_ListClassFunction_filter_php.html
  57. +0 −93 docs/PHP_Beautifier/Filter/_usr_local_php5_lib_php_PHP_Beautifier_Filter_Pear_filter_php.html
  58. +0 −65 docs/PHP_Beautifier/Filter/_usr_local_php5_lib_php_PHP_Beautifier_Filter_php.html
  59. +0 −130 docs/PHP_Beautifier/Filter/tutorial_Filter.create.pkg.html
  60. +0 −102 docs/PHP_Beautifier/Filter/tutorial_Filter.pkg.html
  61. +0 −104 docs/PHP_Beautifier/Filter/tutorial_Filter2.pkg.html
  62. +0 −2,490 docs/PHP_Beautifier/PHP_Beautifier.html
  63. +0 −353 docs/PHP_Beautifier/PHP_Beautifier_Common.html
  64. +0 −237 docs/PHP_Beautifier/PHP_Beautifier_Decorator.html
  65. +0 −208 docs/PHP_Beautifier/PHP_Beautifier_Interface.html
  66. +0 −466 docs/PHP_Beautifier/StreamWrapper/PHP_Beautifier_StreamWrapper_Interface.html
  67. +0 −781 docs/PHP_Beautifier/StreamWrapper/PHP_Beautifier_StreamWrapper_Tarz.html
  68. +0 −92 docs/PHP_Beautifier/StreamWrapper/_usr_local_php5_lib_php_PHP_Beautifier_StreamWrapper_Tarz_php.html
  69. +0 −91 docs/PHP_Beautifier/StreamWrapper/_usr_local_php5_lib_php_PHP_Beautifier_StreamWrapper_php.html
  70. +0 −137 docs/PHP_Beautifier/Tokenizer/PHP_Beautifier_Tokeniker_Interface.html
  71. +0 −63 docs/PHP_Beautifier/Tokenizer/_usr_local_php5_lib_php_PHP_Beautifier_Tokenizer_php.html
  72. +0 −76 docs/PHP_Beautifier/_usr_local_php5_lib_php_PHP_Beautifier_Common_php.html
  73. +0 −63 docs/PHP_Beautifier/_usr_local_php5_lib_php_PHP_Beautifier_Decorator_php.html
  74. +0 −65 docs/PHP_Beautifier/_usr_local_php5_lib_php_PHP_Beautifier_Exception_php.html
  75. +0 −178 docs/PHP_Beautifier/_usr_local_php5_lib_php_PHP_Beautifier_php.html
  76. +0 −102 docs/PHP_Beautifier/tutorial_Filter.pkg.html
  77. +0 −183 docs/PHP_Beautifier/tutorial_PHP_Beautifier.callbacks.pkg.html
  78. +0 −257 docs/PHP_Beautifier/tutorial_PHP_Beautifier.howtouse.commandline.pkg.html
  79. +0 −79 docs/PHP_Beautifier/tutorial_PHP_Beautifier.howtouse.pkg.html
  80. +0 −104 docs/PHP_Beautifier/tutorial_PHP_Beautifier.howtouse.script.pkg.html
  81. +0 −108 docs/PHP_Beautifier/tutorial_PHP_Beautifier.pkg.html
  82. +0 −76 docs/classtrees_PHP_Beautifier.html
  83. +0 −2,488 docs/elementindex.html
  84. +0 −2,485 docs/elementindex_PHP_Beautifier.html
  85. +0 −25 docs/errors.html
  86. +0 −24 docs/index.html
  87. +0 −176 docs/li_PHP_Beautifier.html
  88. +0 −33 docs/media/banner.css
  89. BIN docs/media/images/AbstractClass.png
  90. BIN docs/media/images/AbstractClass_logo.png
  91. BIN docs/media/images/AbstractMethod.png
  92. BIN docs/media/images/AbstractPrivateClass.png
  93. BIN docs/media/images/AbstractPrivateClass_logo.png
  94. BIN docs/media/images/AbstractPrivateMethod.png
  95. BIN docs/media/images/Class.png
  96. BIN docs/media/images/Class_logo.png
  97. BIN docs/media/images/Constant.png
  98. BIN docs/media/images/Constructor.png
  99. BIN docs/media/images/Destructor.png
  100. BIN docs/media/images/Function.png
  101. BIN docs/media/images/Global.png
  102. BIN docs/media/images/I.png
  103. BIN docs/media/images/Index.png
  104. BIN docs/media/images/L.png
  105. BIN docs/media/images/Lminus.png
  106. BIN docs/media/images/Lplus.png
  107. BIN docs/media/images/Method.png
  108. BIN docs/media/images/Page.png
  109. BIN docs/media/images/Page_logo.png
  110. BIN docs/media/images/PrivateClass.png
  111. BIN docs/media/images/PrivateClass_logo.png
  112. BIN docs/media/images/PrivateMethod.png
  113. BIN docs/media/images/PrivateVariable.png
  114. BIN docs/media/images/T.png
  115. BIN docs/media/images/Tminus.png
  116. BIN docs/media/images/Tplus.png
  117. BIN docs/media/images/Variable.png
  118. BIN docs/media/images/blank.png
  119. BIN docs/media/images/class_folder.png
  120. BIN docs/media/images/empty.png
  121. BIN docs/media/images/file.png
  122. BIN docs/media/images/folder.png
  123. BIN docs/media/images/function_folder.png
  124. BIN docs/media/images/next_button.png
  125. BIN docs/media/images/next_button_disabled.png
  126. BIN docs/media/images/package.png
  127. BIN docs/media/images/package_folder.png
  128. BIN docs/media/images/previous_button.png
  129. BIN docs/media/images/previous_button_disabled.png
  130. BIN docs/media/images/private_class_logo.png
  131. BIN docs/media/images/tutorial.png
  132. BIN docs/media/images/tutorial_folder.png
  133. BIN docs/media/images/up_button.png
  134. +0 −146 docs/media/stylesheet.css
  135. +0 −29 docs/packages.html
  136. +0 −33 docs/todolist.html
  137. +47 −0 licenses/pear.txt
  138. +252 −177 package.xml
  139. +0 −4 svn-commit.tmp
  140. +2 −1 test.php
View
@@ -1,36 +1,29 @@
<?php
- /* vim: set expandtab tabstop=4 shiftwidth=4: */
- // +----------------------------------------------------------------------+
- // | PHP version 5 |
- // +----------------------------------------------------------------------+
- // | Copyright (c) 1997-2004 The PHP Group |
- // +----------------------------------------------------------------------+
- // | This source file is subject to version 3.0 of the PHP license, |
- // | that is bundled with this package in the file LICENSE, and is |
- // | available through the world-wide-web at the following url: |
- // | http://www.php.net/license/3_0.txt. |
- // | If you did not receive a copy of the PHP license and are unable to |
- // | obtain it through the world-wide-web, please send a note to |
- // | license@php.net so we can mail you a copy immediately. |
- // +----------------------------------------------------------------------+
- // | Authors: Claudio Bustos <cdx@users.sourceforge.net> |
- // | Jens Bierkandt <schtorch@users.sourceforge.net> |
- // +----------------------------------------------------------------------+
- //
- // $Id:
-
+ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
- * Php Beautifier: Class to beautify php source code
+ * Contents Php_Beautifier class and make some tests
+ *
+ * PHP version 5
*
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt. If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ * @category PHP
* @package PHP_Beautifier
- * @author Claudio Bustos <cdx@users.sourceforge.net>
- * @author Jens Bierkandt <jens@bierkandt.org>
- * @link http://clbustos.dotgeek.org
+ * @author Claudio Bustos <clbustos@dotgeek.org>
+ * @copyright 2004-2005 Claudio Bustos
+ * @link http://pear.php.net/package/PHP_Beautifier
+ * @link http://clbustos.dotgeek.org
+ * @license http://www.php.net/license/3_0.txt PHP License 3.0
+ * @version CVS: $Id:$
*/
+
error_reporting(E_ALL);
// Before all, test the tokenizer extension
- if(!extension_loaded('tokenizer')) {
- throw(new Exception("Compile php with tokenizer extension. Use --enable-tokenizer or don't use --disable-all on configure."));
+ if (!extension_loaded('tokenizer')) {
+ throw (new Exception("Compile php with tokenizer extension. Use --enable-tokenizer or don't use --disable-all on configure."));
}
/**
* Require PHP_Beautifier_Filter
@@ -76,8 +69,14 @@
* $oToken->show();
* </code>
* @todo create a web interface.
+ * @category PHP
* @package PHP_Beautifier
- * @link http://clbustos.dotgeek.org
+ * @author Claudio Bustos <clbustos@dotgeek.org>
+ * @copyright 2004-2005 Claudio Bustos
+ * @link http://pear.php.net/package/PHP_Beautifier
+ * @link http://clbustos.dotgeek.org
+ * @license http://www.php.net/license/3_0.txt PHP License 3.0
+ * @version Release: @package_version@
*/
class PHP_Beautifier implements PHP_Beautifier_Interface {
// public
@@ -216,6 +215,10 @@ class PHP_Beautifier implements PHP_Beautifier_Interface {
private $bBeautify = true;
/** Log */
private $oLog;
+ /** Before new line holder */
+ private $sBeforeNewLine = null;
+ /** Activate or deactivate 'no delete previous space' */
+ private $bNdps = false;
// Methods
/**
@@ -334,14 +337,15 @@ public function __construct()
$this->oLog = PHP_Beautifier_Common::getLog();
}
/**
- * Start the log for debug
+ * Start the log for debug
* @param string filename
* @param int debug level. See {@link Log}
*/
- public function startLog($sFile='php_beautifier.log', $iLevel=PEAR_LOG_DEBUG) {
- @unlink($sFile);
- $oLogFile = Log::factory('file', $sFile, 'php_beautifier', array() , PEAR_LOG_DEBUG);
- $this->oLog->addChild($oLogFile);
+ public function startLog($sFile = 'php_beautifier.log', $iLevel = PEAR_LOG_DEBUG)
+ {
+ @unlink($sFile);
+ $oLogFile = Log::factory('file', $sFile, 'php_beautifier', array() , PEAR_LOG_DEBUG);
+ $this->oLog->addChild($oLogFile);
}
/**
* Add a filter directory
@@ -700,11 +704,10 @@ public function process()
} // ~for
// generate the last assoc
if (count($this->aOut) == 0) {
- if($this->sFile) {
- throw (new Exception("Nothing on output for ".$this->sFile."!"));
-
+ if ($this->sFile) {
+ throw (new Exception("Nothing on output for ".$this->sFile."!"));
} else {
- throw (new Exception("Nothing on output!"));
+ throw (new Exception("Nothing on output!"));
}
}
$this->aAssocs[$iPrevAssoc]['length'] = (count($this->aOut) -1) -$this->aAssocs[$iPrevAssoc]['offset'];
@@ -982,12 +985,30 @@ public function show()
echo $this->get();
}
/**
- * Returns the beutified code
+ * Activate or deactivate this ominous hack
+ * If you need to maintain some special whitespace
+ * you can activate this hack and use (delete the space between * and /)
+ * <code>/*ndps* /</code>
+ * in {@link get()}, this text will be erased.
+ * @see removeWhitespace()
+ * @see PHP_Beautifier_Filter_NewLines
+ */
+ function setNoDeletePreviousSpaceHack($bFlag = true)
+ {
+ $this->bNdps = $bFlag;
+ }
+ /**
+ * Returns the beautified code
+ * @see setNoDeletePreviousSpaceHack()
* @return string
*/
public function get()
{
- return implode('', $this->aOut);
+ if (!$this->bNdps) {
+ return implode('', $this->aOut);
+ } else {
+ return str_replace('/**ndps**/', '', implode('', $this->aOut));
+ }
}
/**
* Returns the value of a settings
@@ -1072,14 +1093,6 @@ public function pop($iReps = 1)
return $sLast;
}
/**
- * Add a new line to the output
- * @see $sNewLine
- */
- public function addNewLine()
- {
- $this->aOut[] = $this->sNewLine;
- }
- /**
* Add Indent to the output
* @see $sIndentChar
* @see $iIndentNumber
@@ -1090,6 +1103,27 @@ public function addIndent()
$this->aOut[] = str_repeat($this->sIndentChar, $this->iIndent);
}
/**
+ * Set a string to put before a new line
+ * You could use this to put a standard comment after some sentences
+ * or to add extra newlines
+ */
+ public function setBeforeNewLine($sText)
+ {
+ $this->sBeforeNewLine = $sText;
+ }
+ /**
+ * Add a new line to the output
+ * @see $sNewLine
+ */
+ public function addNewLine()
+ {
+ if (!is_null($this->sBeforeNewLine)) {
+ $this->aOut[] = $this->sBeforeNewLine;
+ $this->sBeforeNewLine = null;
+ }
+ $this->aOut[] = $this->sNewLine;
+ }
+ /**
* Add a new line and a indent to output
* @see $sIndentChar
* @see $iIndentNumber
@@ -1098,6 +1132,10 @@ public function addIndent()
*/
public function addNewLineIndent()
{
+ if (!is_null($this->sBeforeNewLine)) {
+ $this->aOut[] = $this->sBeforeNewLine;
+ $this->sBeforeNewLine = null;
+ }
$this->aOut[] = $this->sNewLine;
$this->aOut[] = str_repeat($this->sIndentChar, $this->iIndent);
}
@@ -1309,16 +1347,19 @@ public function removeWhitespace()
// - a short comment
// - heredoc
// don't remove whitespace!
- if ($this->isPreviousTokenConstant(T_COMMENT) and preg_match("/^(\/\/|#)/", $this->getPreviousTokenContent())) {
+ //
+ if ($this->isPreviousTokenConstant(T_COMMENT) and preg_match("/^(\/\/|#)/", $this->getPreviousTokenContent())) { // Here for short comment
return false;
- } elseif ($this->getPreviousTokenConstant(2) == T_END_HEREDOC) {
+ } elseif ($this->getPreviousTokenConstant(2) == T_END_HEREDOC) { // And here for heredoc
return false;
}
- for ($i = count($this->aOut) -1;$i >= 0;$i--) {
- if (strlen(trim($this->aOut[$i])) == 0) {
- array_pop($this->aOut);
- } else {
- $this->aOut[$i] = rtrim($this->aOut[$i]);
+ for ($i = count($this->aOut) -1;$i >= 0;$i--) { // go backwards
+ $cNow = &$this->aOut[$i];
+ if (strlen(trim($cNow)) == 0) { // only space
+ array_pop($this->aOut); // delete it!
+
+ } else { // we find something!
+ $cNow = rtrim($cNow); // rtrim out
break;
}
}
View
@@ -1,34 +1,32 @@
<?php
- /* vim: set expandtab tabstop=4 shiftwidth=4: */
- // +----------------------------------------------------------------------+
- // | PHP version 5 |
- // +----------------------------------------------------------------------+
- // | Copyright (c) 1997-2004 The PHP Group |
- // +----------------------------------------------------------------------+
- // | This source file is subject to version 3.0 of the PHP license, |
- // | that is bundled with this package in the file LICENSE, and is |
- // | available through the world-wide-web at the following url: |
- // | http://www.php.net/license/3_0.txt. |
- // | If you did not receive a copy of the PHP license and are unable to |
- // | obtain it through the world-wide-web, please send a note to |
- // | license@php.net so we can mail you a copy immediately. |
- // +----------------------------------------------------------------------+
- // | Authors: Claudio Bustos <cdx@users.sourceforge.net> |
- // | Jens Bierkandt <schtorch@users.sourceforge.net> |
- // +----------------------------------------------------------------------+
- //
- // $Id:
-
+ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* Definition of PHP_Beautifier_Batch
+ *
+ * PHP version 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt. If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ * @category PHP
* @package PHP_Beautifier
* @subpackage Batch
- * @author Claudio Bustos <cdx@users.sourceforge.net>
+ * @author Claudio Bustos <clbustos@dotgeek.org>
+ * @copyright 2004-2005 Claudio Bustos
+ * @link http://pear.php.net/package/PHP_Beautifier
+ * @link http://clbustos.dotgeek.org
+ * @license http://www.php.net/license/3_0.txt PHP License 3.0
+ * @version CVS: $Id:$
*/
/**
* Require PHP_Beautifier_Decorator
*/
require_once ('Decorator.php');
+ /**
+ * Require PHP_Beautifier_Batch_Output
+ */
require_once ('Batch/Output.php');
// ArrayNested->off();
// ArrayNested->on();
@@ -54,9 +52,16 @@
* $oBatch->process();
* $oBatch->show();
* </code>
- * @package PHP_Beautifier
- * @subpackage Batch
- * @author Claudio Bustos <cdx@users.sourceforge.net>
+ *
+ * @category PHP
+ * @package PHP_Beautifier
+ * @subpackage Batch
+ * @author Claudio Bustos <clbustos@dotgeek.org>
+ * @copyright 2004-2005 Claudio Bustos
+ * @link http://pear.php.net/package/PHP_Beautifier
+ * @link http://clbustos.dotgeek.org
+ * @license http://www.php.net/license/3_0.txt PHP License 3.0
+ * @version Release: @package_version@
*/
class PHP_Beautifier_Batch extends PHP_Beautifier_Decorator {
/**
@@ -1,31 +1,36 @@
<?php
- /* vim: set expandtab tabstop=4 shiftwidth=4: */
- // +----------------------------------------------------------------------+
- // | PHP version 5 |
- // +----------------------------------------------------------------------+
- // | Copyright (c) 1997-2004 The PHP Group |
- // +----------------------------------------------------------------------+
- // | This source file is subject to version 3.0 of the PHP license, |
- // | that is bundled with this package in the file LICENSE, and is |
- // | available through the world-wide-web at the following url: |
- // | http://www.php.net/license/3_0.txt. |
- // | If you did not receive a copy of the PHP license and are unable to |
- // | obtain it through the world-wide-web, please send a note to |
- // | license@php.net so we can mail you a copy immediately. |
- // +----------------------------------------------------------------------+
- // | Authors: Claudio Bustos <cdx@users.sourceforge.net> |
- // | Jens Bierkandt <schtorch@users.sourceforge.net> |
- // +----------------------------------------------------------------------+
- //
- // $Id:
+ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
+ * Abstract class to superclass all batch class
+ *
+ * PHP version 5
+ *
+ * LICENSE: This source file is subject to version 3.0 of the PHP license
+ * that is available through the world-wide-web at the following URI:
+ * http://www.php.net/license/3_0.txt. If you did not receive a copy of
+ * the PHP License and are unable to obtain it through the web, please
+ * send a note to license@php.net so we can mail you a copy immediately.
+ * @category PHP
* @package PHP_Beautifier
* @subpackage Batch
+ * @author Claudio Bustos <clbustos@dotgeek.org>
+ * @copyright 2004-2005 Claudio Bustos
+ * @link http://pear.php.net/package/PHP_Beautifier
+ * @link http://clbustos.dotgeek.org
+ * @license http://www.php.net/license/3_0.txt PHP License 3.0
+ * @version CVS: $Id:$
*/
/**
- * PHP_Beautifier_Batch_Output
+ * Abstract class to superclass all batch class
+ *
+ * @category PHP
* @package PHP_Beautifier
- * @subpackage Batch
+ * @author Claudio Bustos <clbustos@dotgeek.org>
+ * @copyright 2004-2005 Claudio Bustos
+ * @link http://pear.php.net/package/PHP_Beautifier
+ * @link http://clbustos.dotgeek.org
+ * @license http://www.php.net/license/3_0.txt PHP License 3.0
+ * @version Release: @package_version@
*/
abstract class PHP_Beautifier_Batch_Output {
protected $oBatch;
Oops, something went wrong.

0 comments on commit 22c4cf7

Please sign in to comment.