Small tweaks

This commit is contained in:
Barry
2013-03-21 12:41:39 +01:00
parent 87eb29e2cb
commit 3d6af79bf7
2 changed files with 5 additions and 15 deletions
+4 -14
View File
@@ -1,4 +1,7 @@
<?php die('Only to be used as an helper for your IDE'); <?php
namespace {
die('Only to be used as an helper for your IDE');
}
namespace { namespace {
class Auth{ class Auth{
@@ -8472,19 +8475,6 @@ namespace {
return self::$root->limit($value, $limit, $end); return self::$root->limit($value, $limit, $end);
} }
/**
* Limit the number of words in a string.
*
* @static
* @param string $value
* @param int $words
* @param string $end
* @return string
*/
public static function words($value, $words = 100, $end = '...'){
return self::$root->words($value, $words, $end);
}
/** /**
* Get the plural form of an English word. * Get the plural form of an English word.
* *
@@ -92,7 +92,7 @@ class GeneratorCommand extends Command {
$d->setAllowInherited(true); $d->setAllowInherited(true);
$d->setMethodFilter(\ReflectionMethod::IS_PUBLIC); $d->setMethodFilter(\ReflectionMethod::IS_PUBLIC);
$output = "<?php die('Only to be used as an helper for your IDE');\n\n"; $output = "<?php\nnamespace {\n\tdie('Only to be used as an helper for your IDE');\n}\n\n";
foreach($aliases as $alias => $facade){ foreach($aliases as $alias => $facade){