Some typos I corrected in my local ezc co and two missing "public"s (I
believe):


Index: DatabaseSchema/src/handlers/common_sql_writer.php
===================================================================
--- DatabaseSchema/src/handlers/common_sql_writer.php   (Revision 8797)
+++ DatabaseSchema/src/handlers/common_sql_writer.php   (Arbeitskopie)
@@ -107,7 +107,7 @@
     }
 
     /**
-     * Creates SQL DDL statements from a schema definitin.
+     * Creates SQL DDL statements from a schema definition.
      *
      * Loops over the tables in the schema definition in $this->schema and
      * creates SQL SSL statements for this which it stores internally into 
the
@@ -224,7 +224,7 @@
     }
 
     /**
-     * Generates queries to upgrade a the table $tableName with the 
differences in $tableDiff.
+     * Generates queries to upgrade the table $tableName with the differences 
in $tableDiff.
      *
      * This method generates queries to migrate a table to a new version
      * with the changes that are stored in the $tableDiff property. It
Index: Template/src/parsers/source_to_tst/interfaces/source_to_tst_parser.php
===================================================================
--- Template/src/parsers/source_to_tst/interfaces/source_to_tst_parser.php      
(Revision 8797)
+++ Template/src/parsers/source_to_tst/interfaces/source_to_tst_parser.php      
(Arbeitskopie)
@@ -47,7 +47,7 @@
     /**
      * The main parser object which instigated the total parser operation.
      * This is used to create the various parser elements and to handle
-     * operor precedence.
+     * operator precedence.
      *
      * @var ezcTemplateParser
      */
@@ -161,7 +161,7 @@
      *                                            which case the current 
cursor
      *                                            if the parent is used.
      */
-    function __construct( ezcTemplateParser 
$parser, /*ezcTemplateSourceToTstParser*/ $parentParser,
+    public function __construct( ezcTemplateParser 
$parser, /*ezcTemplateSourceToTstParser*/ $parentParser,
                           /*ezcTemplateCursor*/ $startCursor )
     {
         $this->parser = $parser;
@@ -228,7 +228,7 @@
     }
 
     /**
-     * Figures out if the end as been reached and returns true if it has.
+     * Figures out if the end has been reached and returns true if it has.
      * This must be re-implemented by block parser which will utilize a
      * sub-parser which does a callback to this method.
      *
@@ -302,7 +302,7 @@
     }
 
     /**
-     * Parses an optional type?
+     * Parses an optional type.
      *
      * @param mixed $type
      * @param ezcTemplateCursor $startCursor
@@ -369,7 +369,7 @@
             $className = 'ezcTemplate' . $type . 'SourceToTstParser';
             if ( !ezcBaseFeatures::classExists( $className ) )
             {
-                throw new ezcTemplateInternalException( "Could instantiate 
sub-parser for type <$type>, the class <$className> does not exist" );
+                throw new ezcTemplateInternalException( "Could not 
instantiate sub-parser for type <$type>, the class <$className> does not 
exist" );
             }
 
             $this->subParser = new $className( $this->parser, $this, 
$startCursor );
@@ -416,7 +416,7 @@
      *
      * Note: If the parsing was successful it will call 
handleSuccessfulResult()
      *       which can be-reimplemented to perform cleanups or other tasks 
before
-     *       the control passed to the caller.
+     *       the control is passed back to the caller.
      * @return bool
      */
     public function parse()
Index: Template/src/parsers/source_to_tst/implementations/block.php
===================================================================
--- Template/src/parsers/source_to_tst/implementations/block.php        
(Revision 
8797)
+++ Template/src/parsers/source_to_tst/implementations/block.php        
(Arbeitskopie)
@@ -68,7 +68,7 @@
         $this->block = new ezcTemplateBlockTstNode( $this->parser->source, 
$this->startCursor, $cursor );
         $this->findNextElement();
 
-        // Test for and ending control structure.
+        // Test for an ending control structure.
         if ( !$cursor->atEnd() && $cursor->current() == '/' )
         {
             // got a closing block marker
Index: Template/src/parsers/source_to_tst/implementations/program.php
===================================================================
--- Template/src/parsers/source_to_tst/implementations/program.php      
(Revision 
8797)
+++ Template/src/parsers/source_to_tst/implementations/program.php      
(Arbeitskopie)
@@ -39,7 +39,7 @@
      * @param ezcTemplateSourceToTstParser $parentParser
      * @param ezcTemplateCursor $startCursor
      */
-    function __construct( ezcTemplateParser 
$parser, /*ezcTemplateSourceToTstParser*/ 
$parentParser, /*ezcTemplateCursor*/ $startCursor )
+    public function __construct( ezcTemplateParser 
$parser, /*ezcTemplateSourceToTstParser*/ 
$parentParser, /*ezcTemplateCursor*/ $startCursor )
     {
         parent::__construct( $parser, $parentParser, $startCursor );
         $this->program = null;
Index: Template/src/syntax_trees/tst/nodes/program.php
===================================================================
--- Template/src/syntax_trees/tst/nodes/program.php     (Revision 8797)
+++ Template/src/syntax_trees/tst/nodes/program.php     (Arbeitskopie)
@@ -47,7 +47,9 @@
     public function trimLine( ezcTemplateWhitespaceRemoval $removal )
     {
         if ( count( $this->children ) == 0 )
+        {
             return;
+        }
 
         // Tell the removal object to trim text blocks after the current 
block
         // and after all sub-blocks.
Index: Template/src/functions/functions.php
===================================================================
--- Template/src/functions/functions.php        (Revision 8797)
+++ Template/src/functions/functions.php        (Arbeitskopie)
@@ -191,7 +191,7 @@
     } 
 
     /**
-     * Creates a new instantance of the given $className string with the 
parameters $functionParameters.
+     * Creates a new instance of the given $className string with the 
parameters $functionParameters.
      *
      * If the class name is equal to "_array", it will just return the 
$functionParameters.
      *

Best regards,
-- 
Thomas Koch, Software Developer
http://www.koch.ro

Young Media Concepts GmbH
Sonnenstr. 4
CH-8280 Kreuzlingen
Switzerland

Tel    +41 (0)71 / 508 24 86
Fax    +41 (0)71 / 560 53 89
Mobile +49 (0)170 / 753 89 16
Web    www.ymc.ch
-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to