Permalink
Browse files

removed erroneous relative include

minor style changes


git-svn-id: http://svn.php.net/repository/pear/packages/Text_LanguageDetect/trunk@204583 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
Nicholas Pisarro
Nicholas Pisarro committed Jan 5, 2006
1 parent 094a72c commit 05c915d9c33744f2a46d11a3f279fd8ef507f03b
Showing with 5 additions and 5 deletions.
  1. +5 −5 docs/example_clui.php
View
@@ -7,24 +7,24 @@
* @version CVS: $Id$
*/
-require_once '../Text/LanguageDetect.php';
+require_once 'Text/LanguageDetect.php';
$l = new Text_LanguageDetect;
-$stdin = fopen('php://stdin','r');
+$stdin = fopen('php://stdin', 'r');
-echo "supported languages:\n";
+echo "Supported languages:\n";
$langs = $l->getLanguages();
if (PEAR::isError($langs)) {
die($langs->getMessage());
}
sort($langs);
-echo join(', ',$langs);
+echo join(', ', $langs);
echo "\ntotal ", count($langs), "\n\n";
while ($line = fgets($stdin)) {
- print_r($l->detect($line,4));
+ print_r($l->detect($line, 4));
}
fclose($stdin);

0 comments on commit 05c915d

Please sign in to comment.