Author: ts
Date: Fri Jan 25 14:10:01 2008
New Revision: 7247
Log:
- CS and doc fixes.
Modified:
trunk/ConsoleTools/src/dialog/validators/question_dialog_mapping.php
trunk/ConsoleTools/src/input.php
trunk/ConsoleTools/src/input/option.php
trunk/ConsoleTools/src/progressbar.php
Modified: trunk/ConsoleTools/src/dialog/validators/question_dialog_mapping.php
==============================================================================
--- trunk/ConsoleTools/src/dialog/validators/question_dialog_mapping.php
[iso-8859-1] (original)
+++ trunk/ConsoleTools/src/dialog/validators/question_dialog_mapping.php
[iso-8859-1] Fri Jan 25 14:10:01 2008
@@ -71,7 +71,7 @@
* @param array(string) $collection The collection of valid results.
* @param mixed $default Optional default value.
* @param int $conversion CONVERT_* constant.
- * @paran array(string=>string) $map
+ * @param array(string=>string) $map
* @return void
*/
public function __construct( array $collection, $default = null,
$conversion = self::CONVERT_NONE, $map = array() )
Modified: trunk/ConsoleTools/src/input.php
==============================================================================
--- trunk/ConsoleTools/src/input.php [iso-8859-1] (original)
+++ trunk/ConsoleTools/src/input.php [iso-8859-1] Fri Jan 25 14:10:01 2008
@@ -501,12 +501,12 @@
$this->preprocessLongOption( $args, $i );
}
// Check for parameter
- if ( substr( $args[$i], 0, 1) === '-' && $this->hasOption(
preg_replace( '/^-*/', '', $args[$i] ) ) !== false )
+ if ( substr( $args[$i], 0, 1 ) === '-' && $this->hasOption(
preg_replace( '/^-*/', '', $args[$i] ) ) !== false )
{
$this->processOptions( $args, $i );
}
// Looks like parameter, but is not available??
- elseif ( substr( $args[$i], 0, 1) === '-' && trim( $args[$i] ) !==
'--' )
+ elseif ( substr( $args[$i], 0, 1 ) === '-' && trim( $args[$i] )
!== '--' )
{
throw new ezcConsoleOptionNotExistsException( $args[$i] );
}
Modified: trunk/ConsoleTools/src/input/option.php
==============================================================================
--- trunk/ConsoleTools/src/input/option.php [iso-8859-1] (original)
+++ trunk/ConsoleTools/src/input/option.php [iso-8859-1] Fri Jan 25 14:10:01
2008
@@ -159,7 +159,8 @@
$arguments = true,
$mandatory = false,
$isHelpOption = false
- ) {
+ )
+ {
$this->properties['short'] = '';
$this->properties['long'] = '';
$this->properties['arguments'] = $arguments;
Modified: trunk/ConsoleTools/src/progressbar.php
==============================================================================
--- trunk/ConsoleTools/src/progressbar.php [iso-8859-1] (original)
+++ trunk/ConsoleTools/src/progressbar.php [iso-8859-1] Fri Jan 25 14:10:01 2008
@@ -413,7 +413,7 @@
$this->numSteps = ( int ) round( $this->max /
$this->properties['options']->step );
// Calculate measures
$this->measures['fixedCharSpace'] = strlen(
$this->stripEscapeSequences( $this->insertValues() ) );
- if ( strpos( $this->properties['options']->formatString,'%max%' ) !==
false )
+ if ( strpos( $this->properties['options']->formatString, '%max%' ) !==
false )
{
$this->measures['maxSpace'] = strlen( sprintf(
$this->properties['options']->maxFormat, $this->max ) );
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components