mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Small tweaks
This commit is contained in:
+4
-14
@@ -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 {
|
||||
class Auth{
|
||||
@@ -8472,19 +8475,6 @@ namespace {
|
||||
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.
|
||||
*
|
||||
|
||||
@@ -92,7 +92,7 @@ class GeneratorCommand extends Command {
|
||||
$d->setAllowInherited(true);
|
||||
$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){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user