X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/vendor/illuminate/support
home
/
gfecatvj
/
sites
/
vendor
/
illuminate
/
support
/
📁
..
📄
AggregateServiceProvider.php
(995 B)
📄
Arr.php
(15.7 KB)
📄
Carbon.php
(115 B)
📄
Collection.php
(31.57 KB)
📄
Composer.php
(2.33 KB)
📄
ConfigurationUrlParser.php
(4.23 KB)
📄
DateFactory.php
(7.83 KB)
📄
Enumerable.php
(21.56 KB)
📄
Env.php
(2.63 KB)
📁
Facades
📄
Fluent.php
(3.79 KB)
📄
HigherOrderCollectionProxy.php
(1.38 KB)
📄
HigherOrderTapProxy.php
(665 B)
📄
HigherOrderWhenProxy.php
(1.28 KB)
📄
HtmlString.php
(877 B)
📄
InteractsWithTime.php
(1.55 KB)
📄
LICENSE.md
(1.05 KB)
📄
LazyCollection.php
(31.83 KB)
📄
Manager.php
(3.98 KB)
📄
MessageBag.php
(9.52 KB)
📄
NamespacedItemResolver.php
(3.19 KB)
📄
Optional.php
(2.58 KB)
📄
Pluralizer.php
(3.13 KB)
📄
ProcessUtils.php
(2 KB)
📄
Reflector.php
(1.34 KB)
📄
ServiceProvider.php
(9.29 KB)
📄
Str.php
(17.95 KB)
📄
Stringable.php
(15.12 KB)
📁
Testing
📁
Traits
📄
ViewErrorBag.php
(2.56 KB)
📄
composer.json
(1.5 KB)
📄
helpers.php
(13.22 KB)
Editing: Pluralizer.php
<?php namespace Illuminate\Support; use Doctrine\Inflector\CachedWordInflector; use Doctrine\Inflector\Inflector; use Doctrine\Inflector\Rules\English; use Doctrine\Inflector\RulesetInflector; class Pluralizer { /** * Uncountable word forms. * * @var array */ public static $uncountable = [ 'audio', 'bison', 'cattle', 'chassis', 'compensation', 'coreopsis', 'data', 'deer', 'education', 'emoji', 'equipment', 'evidence', 'feedback', 'firmware', 'fish', 'furniture', 'gold', 'hardware', 'information', 'jedi', 'kin', 'knowledge', 'love', 'metadata', 'money', 'moose', 'news', 'nutrition', 'offspring', 'plankton', 'pokemon', 'police', 'rain', 'recommended', 'related', 'rice', 'series', 'sheep', 'software', 'species', 'swine', 'traffic', 'wheat', ]; /** * Get the plural form of an English word. * * @param string $value * @param int $count * @return string */ public static function plural($value, $count = 2) { if ((int) abs($count) === 1 || static::uncountable($value)) { return $value; } $plural = static::inflector()->pluralize($value); return static::matchCase($plural, $value); } /** * Get the singular form of an English word. * * @param string $value * @return string */ public static function singular($value) { $singular = static::inflector()->singularize($value); return static::matchCase($singular, $value); } /** * Determine if the given value is uncountable. * * @param string $value * @return bool */ protected static function uncountable($value) { return in_array(strtolower($value), static::$uncountable); } /** * Attempt to match the case on two strings. * * @param string $value * @param string $comparison * @return string */ protected static function matchCase($value, $comparison) { $functions = ['mb_strtolower', 'mb_strtoupper', 'ucfirst', 'ucwords']; foreach ($functions as $function) { if ($function($comparison) === $comparison) { return $function($value); } } return $value; } /** * Get the inflector instance. * * @return \Doctrine\Inflector\Inflector */ public static function inflector() { static $inflector; if (is_null($inflector)) { $inflector = new Inflector( new CachedWordInflector(new RulesetInflector( English\Rules::getSingularRuleset() )), new CachedWordInflector(new RulesetInflector( English\Rules::getPluralRuleset() )) ); } return $inflector; } }
Upload File
Create Folder