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 {
|
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){
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user