r78908 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78907‎ | r78908 | r78909 >
Date:18:35, 23 December 2010
Author:hashar
Status:deferred
Tags:
Comment:
update find-long-functions usage + some comment
Modified paths:
  • /trunk/tools/code-utils/find-long-functions.php (modified) (history)

Diff [purge]

Index: trunk/tools/code-utils/find-long-functions.php
@@ -32,7 +32,7 @@
3333 while( $tokens->valid() ) {
3434 $token = $tokens->current();
3535
36 - # handles braces returned by token_get_all() as strings
 36+ # handles braces returned as strings by token_get_all()
3737 if( is_string( $token ) ) {
3838 if( $token == '{' ) {
3939 $state['depth']++;
@@ -122,7 +122,7 @@
123123 }
124124
125125 /**
126 - * Skip tokens until we reach the wanted token. Return it.
 126+ * Skip tokens until we reach the wanted token, return it.
127127 */
128128 function nextOfKind( $wanted_token_index ) {
129129 $found = false;
@@ -175,7 +175,7 @@
176176
177177 # Print usage when no source file given
178178 if( $argc == 1 ) {
179 - die( "Usage: $argv[0] <PHP_source_file>\n" );
 179+ die( "Usage: $argv[0] <PHP_source_file> [<PHP_source_file> [...]]\n" );
180180 }
181181 array_shift( $argv ); // skip script name
182182

Status & tagging log