From 9be4e0d0a2a01849d560e4c6d8f4083bc5398a31 Mon Sep 17 00:00:00 2001 From: Logan Lindquist Date: Thu, 2 Nov 2017 21:03:55 -0500 Subject: [PATCH 1/2] removing vendor --- github/vendor/autoload.php | 7 - github/vendor/composer/ClassLoader.php | 413 ----- github/vendor/composer/LICENSE | 21 - github/vendor/composer/autoload_classmap.php | 9 - github/vendor/composer/autoload_files.php | 12 - .../vendor/composer/autoload_namespaces.php | 10 - github/vendor/composer/autoload_psr4.php | 11 - github/vendor/composer/autoload_real.php | 59 - github/vendor/composer/installed.json | 277 ---- github/vendor/doctrine/inflector/.gitignore | 4 - github/vendor/doctrine/inflector/.travis.yml | 21 - github/vendor/doctrine/inflector/LICENSE | 19 - github/vendor/doctrine/inflector/README.md | 6 - .../vendor/doctrine/inflector/composer.json | 29 - .../Doctrine/Common/Inflector/Inflector.php | 482 ------ .../doctrine/inflector/phpunit.xml.dist | 31 - .../Tests/Common/Inflector/InflectorTest.php | 309 ---- .../tests/Doctrine/Tests/DoctrineTestCase.php | 10 - .../tests/Doctrine/Tests/TestInit.php | 27 - .../contracts/Auth/Access/Authorizable.php | 15 - .../illuminate/contracts/Auth/Access/Gate.php | 104 -- .../contracts/Auth/Authenticatable.php | 49 - .../contracts/Auth/CanResetPassword.php | 21 - .../illuminate/contracts/Auth/Factory.php | 22 - .../illuminate/contracts/Auth/Guard.php | 50 - .../contracts/Auth/PasswordBroker.php | 76 - .../contracts/Auth/PasswordBrokerFactory.php | 14 - .../contracts/Auth/StatefulGuard.php | 63 - .../contracts/Auth/SupportsBasicAuth.php | 24 - .../contracts/Auth/UserProvider.php | 49 - .../contracts/Broadcasting/Broadcaster.php | 33 - .../contracts/Broadcasting/Factory.php | 14 - .../Broadcasting/ShouldBroadcast.php | 13 - .../Broadcasting/ShouldBroadcastNow.php | 8 - .../illuminate/contracts/Bus/Dispatcher.php | 31 - .../contracts/Bus/QueueingDispatcher.php | 14 - .../illuminate/contracts/Cache/Factory.php | 14 - .../illuminate/contracts/Cache/Repository.php | 117 -- .../illuminate/contracts/Cache/Store.php | 92 -- .../contracts/Config/Repository.php | 57 - .../contracts/Console/Application.php | 22 - .../illuminate/contracts/Console/Kernel.php | 47 - .../Container/BindingResolutionException.php | 10 - .../contracts/Container/Container.php | 151 -- .../Container/ContextualBindingBuilder.php | 22 - .../illuminate/contracts/Cookie/Factory.php | 43 - .../contracts/Cookie/QueueingFactory.php | 28 - .../contracts/Database/ModelIdentifier.php | 35 - .../contracts/Debug/ExceptionHandler.php | 34 - .../contracts/Encryption/DecryptException.php | 10 - .../contracts/Encryption/EncryptException.php | 10 - .../contracts/Encryption/Encrypter.php | 24 - .../contracts/Events/Dispatcher.php | 82 - .../illuminate/contracts/Filesystem/Cloud.php | 14 - .../contracts/Filesystem/Factory.php | 14 - .../Filesystem/FileNotFoundException.php | 10 - .../contracts/Filesystem/Filesystem.php | 175 -- .../contracts/Foundation/Application.php | 92 -- .../illuminate/contracts/Hashing/Hasher.php | 34 - .../illuminate/contracts/Http/Kernel.php | 37 - .../illuminate/contracts/Logging/Log.php | 98 -- .../illuminate/contracts/Mail/MailQueue.php | 29 - .../illuminate/contracts/Mail/Mailable.php | 33 - .../illuminate/contracts/Mail/Mailer.php | 32 - .../contracts/Notifications/Dispatcher.php | 24 - .../contracts/Notifications/Factory.php | 32 - .../Pagination/LengthAwarePaginator.php | 29 - .../contracts/Pagination/Paginator.php | 110 -- .../illuminate/contracts/Pipeline/Hub.php | 15 - .../contracts/Pipeline/Pipeline.php | 40 - .../Queue/EntityNotFoundException.php | 22 - .../contracts/Queue/EntityResolver.php | 15 - .../illuminate/contracts/Queue/Factory.php | 14 - .../vendor/illuminate/contracts/Queue/Job.php | 94 -- .../illuminate/contracts/Queue/Monitor.php | 30 - .../illuminate/contracts/Queue/Queue.php | 99 -- .../contracts/Queue/QueueableCollection.php | 20 - .../contracts/Queue/QueueableEntity.php | 13 - .../contracts/Queue/ShouldQueue.php | 8 - .../illuminate/contracts/Redis/Factory.php | 14 - .../contracts/Routing/BindingRegistrar.php | 23 - .../contracts/Routing/Registrar.php | 105 -- .../contracts/Routing/ResponseFactory.php | 126 -- .../contracts/Routing/UrlGenerator.php | 71 - .../contracts/Routing/UrlRoutable.php | 20 - .../illuminate/contracts/Session/Session.php | 165 -- .../contracts/Support/Arrayable.php | 13 - .../illuminate/contracts/Support/Htmlable.php | 13 - .../illuminate/contracts/Support/Jsonable.php | 14 - .../contracts/Support/MessageBag.php | 100 -- .../contracts/Support/MessageProvider.php | 13 - .../contracts/Support/Renderable.php | 13 - .../contracts/Translation/Translator.php | 42 - .../contracts/Validation/Factory.php | 46 - .../Validation/ValidatesWhenResolved.php | 13 - .../contracts/Validation/Validator.php | 40 - .../illuminate/contracts/View/Factory.php | 79 - .../vendor/illuminate/contracts/View/View.php | 24 - .../vendor/illuminate/contracts/composer.json | 33 - .../support/AggregateServiceProvider.php | 52 - github/vendor/illuminate/support/Arr.php | 519 ------ .../vendor/illuminate/support/Collection.php | 1471 ----------------- github/vendor/illuminate/support/Composer.php | 100 -- .../illuminate/support/Debug/Dumper.php | 26 - .../illuminate/support/Debug/HtmlDumper.php | 29 - .../vendor/illuminate/support/Facades/App.php | 31 - .../illuminate/support/Facades/Artisan.php | 27 - .../illuminate/support/Facades/Auth.php | 48 - .../illuminate/support/Facades/Blade.php | 19 - .../illuminate/support/Facades/Broadcast.php | 21 - .../vendor/illuminate/support/Facades/Bus.php | 32 - .../illuminate/support/Facades/Cache.php | 20 - .../illuminate/support/Facades/Config.php | 19 - .../illuminate/support/Facades/Cookie.php | 42 - .../illuminate/support/Facades/Crypt.php | 19 - .../vendor/illuminate/support/Facades/DB.php | 20 - .../illuminate/support/Facades/Event.php | 31 - .../illuminate/support/Facades/Facade.php | 223 --- .../illuminate/support/Facades/File.php | 19 - .../illuminate/support/Facades/Gate.php | 21 - .../illuminate/support/Facades/Hash.php | 19 - .../illuminate/support/Facades/Input.php | 33 - .../illuminate/support/Facades/Lang.php | 19 - .../vendor/illuminate/support/Facades/Log.php | 21 - .../illuminate/support/Facades/Mail.php | 31 - .../support/Facades/Notification.php | 32 - .../illuminate/support/Facades/Password.php | 54 - .../illuminate/support/Facades/Queue.php | 32 - .../illuminate/support/Facades/Redirect.php | 19 - .../illuminate/support/Facades/Redis.php | 20 - .../illuminate/support/Facades/Request.php | 19 - .../illuminate/support/Facades/Response.php | 21 - .../illuminate/support/Facades/Route.php | 31 - .../illuminate/support/Facades/Schema.php | 30 - .../illuminate/support/Facades/Session.php | 20 - .../illuminate/support/Facades/Storage.php | 19 - .../vendor/illuminate/support/Facades/URL.php | 19 - .../illuminate/support/Facades/Validator.php | 19 - .../illuminate/support/Facades/View.php | 19 - github/vendor/illuminate/support/Fluent.php | 192 --- .../support/HigherOrderCollectionProxy.php | 60 - .../vendor/illuminate/support/HtmlString.php | 46 - github/vendor/illuminate/support/Manager.php | 139 -- .../vendor/illuminate/support/MessageBag.php | 387 ----- .../support/NamespacedItemResolver.php | 106 -- .../vendor/illuminate/support/Pluralizer.php | 113 -- .../illuminate/support/ServiceProvider.php | 277 ---- github/vendor/illuminate/support/Str.php | 590 ------- .../support/Testing/Fakes/BusFake.php | 113 -- .../support/Testing/Fakes/EventFake.php | 197 --- .../support/Testing/Fakes/MailFake.php | 168 -- .../Testing/Fakes/NotificationFake.php | 165 -- .../support/Testing/Fakes/PendingMailFake.php | 53 - .../support/Testing/Fakes/QueueFake.php | 237 --- .../support/Traits/CapsuleManagerTrait.php | 69 - .../illuminate/support/Traits/Macroable.php | 83 - .../illuminate/support/ViewErrorBag.php | 107 -- .../vendor/illuminate/support/composer.json | 48 - github/vendor/illuminate/support/helpers.php | 939 ----------- github/vendor/paragonie/random_compat/LICENSE | 22 - .../paragonie/random_compat/build-phar.sh | 5 - .../paragonie/random_compat/composer.json | 35 - .../dist/random_compat.phar.pubkey | 5 - .../dist/random_compat.phar.pubkey.asc | 11 - .../random_compat/lib/byte_safe_strings.php | 181 -- .../random_compat/lib/cast_to_int.php | 71 - .../random_compat/lib/error_polyfill.php | 49 - .../paragonie/random_compat/lib/random.php | 215 --- .../lib/random_bytes_com_dotnet.php | 83 - .../lib/random_bytes_dev_urandom.php | 150 -- .../lib/random_bytes_libsodium.php | 88 - .../lib/random_bytes_libsodium_legacy.php | 88 - .../random_compat/lib/random_bytes_mcrypt.php | 77 - .../random_compat/lib/random_int.php | 191 --- .../random_compat/other/build_phar.php | 57 - github/vendor/raveren/kint/.gitignore | 3 - github/vendor/raveren/kint/Kint.class.php | 836 ---------- github/vendor/raveren/kint/LICENCE | 20 - github/vendor/raveren/kint/README.md | 141 -- github/vendor/raveren/kint/composer.json | 29 - github/vendor/raveren/kint/config.default.php | 94 -- .../vendor/raveren/kint/decorators/plain.php | 335 ---- .../vendor/raveren/kint/decorators/rich.php | 319 ---- .../vendor/raveren/kint/examples/overview.php | 176 -- .../raveren/kint/inc/kintObject.class.php | 19 - .../raveren/kint/inc/kintParser.class.php | 608 ------- .../kint/inc/kintVariableData.class.php | 102 -- .../kint/parsers/custom/classmethods.php | 150 -- .../kint/parsers/custom/classstatics.php | 49 - .../raveren/kint/parsers/custom/color.php | 400 ----- .../raveren/kint/parsers/custom/fspath.php | 69 - .../raveren/kint/parsers/custom/json.php | 19 - .../raveren/kint/parsers/custom/microtime.php | 60 - .../kint/parsers/custom/objectiterateable.php | 22 - .../kint/parsers/custom/splobjectstorage.php | 24 - .../raveren/kint/parsers/custom/timestamp.php | 29 - .../raveren/kint/parsers/custom/xml.php | 25 - .../raveren/kint/parsers/objects/closure.php | 47 - .../raveren/kint/parsers/objects/smarty.php | 35 - .../kint/parsers/objects/splfileinfo.php | 70 - github/vendor/raveren/kint/view/base.js | 437 ----- github/vendor/raveren/kint/view/base.less | 413 ----- .../kint/view/compiled/aante-light.css | 397 ----- .../vendor/raveren/kint/view/compiled/kint.js | 10 - .../raveren/kint/view/compiled/original.css | 1 - .../kint/view/compiled/solarized-dark.css | 1 - .../raveren/kint/view/compiled/solarized.css | 1 - .../raveren/kint/view/themes/aante-light.less | 154 -- .../raveren/kint/view/themes/original.less | 43 - .../kint/view/themes/solarized-dark.less | 39 - .../raveren/kint/view/themes/solarized.less | 29 - 211 files changed, 19144 deletions(-) delete mode 100644 github/vendor/autoload.php delete mode 100644 github/vendor/composer/ClassLoader.php delete mode 100644 github/vendor/composer/LICENSE delete mode 100644 github/vendor/composer/autoload_classmap.php delete mode 100644 github/vendor/composer/autoload_files.php delete mode 100644 github/vendor/composer/autoload_namespaces.php delete mode 100644 github/vendor/composer/autoload_psr4.php delete mode 100644 github/vendor/composer/autoload_real.php delete mode 100644 github/vendor/composer/installed.json delete mode 100644 github/vendor/doctrine/inflector/.gitignore delete mode 100644 github/vendor/doctrine/inflector/.travis.yml delete mode 100644 github/vendor/doctrine/inflector/LICENSE delete mode 100644 github/vendor/doctrine/inflector/README.md delete mode 100644 github/vendor/doctrine/inflector/composer.json delete mode 100644 github/vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php delete mode 100644 github/vendor/doctrine/inflector/phpunit.xml.dist delete mode 100644 github/vendor/doctrine/inflector/tests/Doctrine/Tests/Common/Inflector/InflectorTest.php delete mode 100644 github/vendor/doctrine/inflector/tests/Doctrine/Tests/DoctrineTestCase.php delete mode 100644 github/vendor/doctrine/inflector/tests/Doctrine/Tests/TestInit.php delete mode 100644 github/vendor/illuminate/contracts/Auth/Access/Authorizable.php delete mode 100644 github/vendor/illuminate/contracts/Auth/Access/Gate.php delete mode 100644 github/vendor/illuminate/contracts/Auth/Authenticatable.php delete mode 100644 github/vendor/illuminate/contracts/Auth/CanResetPassword.php delete mode 100644 github/vendor/illuminate/contracts/Auth/Factory.php delete mode 100644 github/vendor/illuminate/contracts/Auth/Guard.php delete mode 100644 github/vendor/illuminate/contracts/Auth/PasswordBroker.php delete mode 100644 github/vendor/illuminate/contracts/Auth/PasswordBrokerFactory.php delete mode 100644 github/vendor/illuminate/contracts/Auth/StatefulGuard.php delete mode 100644 github/vendor/illuminate/contracts/Auth/SupportsBasicAuth.php delete mode 100644 github/vendor/illuminate/contracts/Auth/UserProvider.php delete mode 100644 github/vendor/illuminate/contracts/Broadcasting/Broadcaster.php delete mode 100644 github/vendor/illuminate/contracts/Broadcasting/Factory.php delete mode 100644 github/vendor/illuminate/contracts/Broadcasting/ShouldBroadcast.php delete mode 100644 github/vendor/illuminate/contracts/Broadcasting/ShouldBroadcastNow.php delete mode 100644 github/vendor/illuminate/contracts/Bus/Dispatcher.php delete mode 100644 github/vendor/illuminate/contracts/Bus/QueueingDispatcher.php delete mode 100644 github/vendor/illuminate/contracts/Cache/Factory.php delete mode 100644 github/vendor/illuminate/contracts/Cache/Repository.php delete mode 100644 github/vendor/illuminate/contracts/Cache/Store.php delete mode 100644 github/vendor/illuminate/contracts/Config/Repository.php delete mode 100644 github/vendor/illuminate/contracts/Console/Application.php delete mode 100644 github/vendor/illuminate/contracts/Console/Kernel.php delete mode 100644 github/vendor/illuminate/contracts/Container/BindingResolutionException.php delete mode 100644 github/vendor/illuminate/contracts/Container/Container.php delete mode 100644 github/vendor/illuminate/contracts/Container/ContextualBindingBuilder.php delete mode 100644 github/vendor/illuminate/contracts/Cookie/Factory.php delete mode 100644 github/vendor/illuminate/contracts/Cookie/QueueingFactory.php delete mode 100644 github/vendor/illuminate/contracts/Database/ModelIdentifier.php delete mode 100644 github/vendor/illuminate/contracts/Debug/ExceptionHandler.php delete mode 100644 github/vendor/illuminate/contracts/Encryption/DecryptException.php delete mode 100644 github/vendor/illuminate/contracts/Encryption/EncryptException.php delete mode 100644 github/vendor/illuminate/contracts/Encryption/Encrypter.php delete mode 100644 github/vendor/illuminate/contracts/Events/Dispatcher.php delete mode 100644 github/vendor/illuminate/contracts/Filesystem/Cloud.php delete mode 100644 github/vendor/illuminate/contracts/Filesystem/Factory.php delete mode 100644 github/vendor/illuminate/contracts/Filesystem/FileNotFoundException.php delete mode 100644 github/vendor/illuminate/contracts/Filesystem/Filesystem.php delete mode 100644 github/vendor/illuminate/contracts/Foundation/Application.php delete mode 100644 github/vendor/illuminate/contracts/Hashing/Hasher.php delete mode 100644 github/vendor/illuminate/contracts/Http/Kernel.php delete mode 100644 github/vendor/illuminate/contracts/Logging/Log.php delete mode 100644 github/vendor/illuminate/contracts/Mail/MailQueue.php delete mode 100644 github/vendor/illuminate/contracts/Mail/Mailable.php delete mode 100644 github/vendor/illuminate/contracts/Mail/Mailer.php delete mode 100644 github/vendor/illuminate/contracts/Notifications/Dispatcher.php delete mode 100644 github/vendor/illuminate/contracts/Notifications/Factory.php delete mode 100644 github/vendor/illuminate/contracts/Pagination/LengthAwarePaginator.php delete mode 100644 github/vendor/illuminate/contracts/Pagination/Paginator.php delete mode 100644 github/vendor/illuminate/contracts/Pipeline/Hub.php delete mode 100644 github/vendor/illuminate/contracts/Pipeline/Pipeline.php delete mode 100644 github/vendor/illuminate/contracts/Queue/EntityNotFoundException.php delete mode 100644 github/vendor/illuminate/contracts/Queue/EntityResolver.php delete mode 100644 github/vendor/illuminate/contracts/Queue/Factory.php delete mode 100644 github/vendor/illuminate/contracts/Queue/Job.php delete mode 100644 github/vendor/illuminate/contracts/Queue/Monitor.php delete mode 100644 github/vendor/illuminate/contracts/Queue/Queue.php delete mode 100644 github/vendor/illuminate/contracts/Queue/QueueableCollection.php delete mode 100644 github/vendor/illuminate/contracts/Queue/QueueableEntity.php delete mode 100644 github/vendor/illuminate/contracts/Queue/ShouldQueue.php delete mode 100644 github/vendor/illuminate/contracts/Redis/Factory.php delete mode 100644 github/vendor/illuminate/contracts/Routing/BindingRegistrar.php delete mode 100644 github/vendor/illuminate/contracts/Routing/Registrar.php delete mode 100644 github/vendor/illuminate/contracts/Routing/ResponseFactory.php delete mode 100644 github/vendor/illuminate/contracts/Routing/UrlGenerator.php delete mode 100644 github/vendor/illuminate/contracts/Routing/UrlRoutable.php delete mode 100644 github/vendor/illuminate/contracts/Session/Session.php delete mode 100755 github/vendor/illuminate/contracts/Support/Arrayable.php delete mode 100644 github/vendor/illuminate/contracts/Support/Htmlable.php delete mode 100755 github/vendor/illuminate/contracts/Support/Jsonable.php delete mode 100644 github/vendor/illuminate/contracts/Support/MessageBag.php delete mode 100755 github/vendor/illuminate/contracts/Support/MessageProvider.php delete mode 100755 github/vendor/illuminate/contracts/Support/Renderable.php delete mode 100644 github/vendor/illuminate/contracts/Translation/Translator.php delete mode 100644 github/vendor/illuminate/contracts/Validation/Factory.php delete mode 100644 github/vendor/illuminate/contracts/Validation/ValidatesWhenResolved.php delete mode 100644 github/vendor/illuminate/contracts/Validation/Validator.php delete mode 100644 github/vendor/illuminate/contracts/View/Factory.php delete mode 100644 github/vendor/illuminate/contracts/View/View.php delete mode 100644 github/vendor/illuminate/contracts/composer.json delete mode 100644 github/vendor/illuminate/support/AggregateServiceProvider.php delete mode 100755 github/vendor/illuminate/support/Arr.php delete mode 100644 github/vendor/illuminate/support/Collection.php delete mode 100644 github/vendor/illuminate/support/Composer.php delete mode 100644 github/vendor/illuminate/support/Debug/Dumper.php delete mode 100644 github/vendor/illuminate/support/Debug/HtmlDumper.php delete mode 100755 github/vendor/illuminate/support/Facades/App.php delete mode 100755 github/vendor/illuminate/support/Facades/Artisan.php delete mode 100755 github/vendor/illuminate/support/Facades/Auth.php delete mode 100755 github/vendor/illuminate/support/Facades/Blade.php delete mode 100644 github/vendor/illuminate/support/Facades/Broadcast.php delete mode 100644 github/vendor/illuminate/support/Facades/Bus.php delete mode 100755 github/vendor/illuminate/support/Facades/Cache.php delete mode 100755 github/vendor/illuminate/support/Facades/Config.php delete mode 100755 github/vendor/illuminate/support/Facades/Cookie.php delete mode 100755 github/vendor/illuminate/support/Facades/Crypt.php delete mode 100755 github/vendor/illuminate/support/Facades/DB.php delete mode 100755 github/vendor/illuminate/support/Facades/Event.php delete mode 100755 github/vendor/illuminate/support/Facades/Facade.php delete mode 100755 github/vendor/illuminate/support/Facades/File.php delete mode 100644 github/vendor/illuminate/support/Facades/Gate.php delete mode 100755 github/vendor/illuminate/support/Facades/Hash.php delete mode 100755 github/vendor/illuminate/support/Facades/Input.php delete mode 100755 github/vendor/illuminate/support/Facades/Lang.php delete mode 100755 github/vendor/illuminate/support/Facades/Log.php delete mode 100755 github/vendor/illuminate/support/Facades/Mail.php delete mode 100644 github/vendor/illuminate/support/Facades/Notification.php delete mode 100755 github/vendor/illuminate/support/Facades/Password.php delete mode 100755 github/vendor/illuminate/support/Facades/Queue.php delete mode 100755 github/vendor/illuminate/support/Facades/Redirect.php delete mode 100755 github/vendor/illuminate/support/Facades/Redis.php delete mode 100755 github/vendor/illuminate/support/Facades/Request.php delete mode 100755 github/vendor/illuminate/support/Facades/Response.php delete mode 100755 github/vendor/illuminate/support/Facades/Route.php delete mode 100755 github/vendor/illuminate/support/Facades/Schema.php delete mode 100755 github/vendor/illuminate/support/Facades/Session.php delete mode 100644 github/vendor/illuminate/support/Facades/Storage.php delete mode 100755 github/vendor/illuminate/support/Facades/URL.php delete mode 100755 github/vendor/illuminate/support/Facades/Validator.php delete mode 100755 github/vendor/illuminate/support/Facades/View.php delete mode 100755 github/vendor/illuminate/support/Fluent.php delete mode 100644 github/vendor/illuminate/support/HigherOrderCollectionProxy.php delete mode 100644 github/vendor/illuminate/support/HtmlString.php delete mode 100755 github/vendor/illuminate/support/Manager.php delete mode 100755 github/vendor/illuminate/support/MessageBag.php delete mode 100755 github/vendor/illuminate/support/NamespacedItemResolver.php delete mode 100755 github/vendor/illuminate/support/Pluralizer.php delete mode 100755 github/vendor/illuminate/support/ServiceProvider.php delete mode 100644 github/vendor/illuminate/support/Str.php delete mode 100644 github/vendor/illuminate/support/Testing/Fakes/BusFake.php delete mode 100644 github/vendor/illuminate/support/Testing/Fakes/EventFake.php delete mode 100644 github/vendor/illuminate/support/Testing/Fakes/MailFake.php delete mode 100644 github/vendor/illuminate/support/Testing/Fakes/NotificationFake.php delete mode 100644 github/vendor/illuminate/support/Testing/Fakes/PendingMailFake.php delete mode 100644 github/vendor/illuminate/support/Testing/Fakes/QueueFake.php delete mode 100644 github/vendor/illuminate/support/Traits/CapsuleManagerTrait.php delete mode 100644 github/vendor/illuminate/support/Traits/Macroable.php delete mode 100644 github/vendor/illuminate/support/ViewErrorBag.php delete mode 100644 github/vendor/illuminate/support/composer.json delete mode 100755 github/vendor/illuminate/support/helpers.php delete mode 100644 github/vendor/paragonie/random_compat/LICENSE delete mode 100755 github/vendor/paragonie/random_compat/build-phar.sh delete mode 100644 github/vendor/paragonie/random_compat/composer.json delete mode 100644 github/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey delete mode 100644 github/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey.asc delete mode 100644 github/vendor/paragonie/random_compat/lib/byte_safe_strings.php delete mode 100644 github/vendor/paragonie/random_compat/lib/cast_to_int.php delete mode 100644 github/vendor/paragonie/random_compat/lib/error_polyfill.php delete mode 100644 github/vendor/paragonie/random_compat/lib/random.php delete mode 100644 github/vendor/paragonie/random_compat/lib/random_bytes_com_dotnet.php delete mode 100644 github/vendor/paragonie/random_compat/lib/random_bytes_dev_urandom.php delete mode 100644 github/vendor/paragonie/random_compat/lib/random_bytes_libsodium.php delete mode 100644 github/vendor/paragonie/random_compat/lib/random_bytes_libsodium_legacy.php delete mode 100644 github/vendor/paragonie/random_compat/lib/random_bytes_mcrypt.php delete mode 100644 github/vendor/paragonie/random_compat/lib/random_int.php delete mode 100644 github/vendor/paragonie/random_compat/other/build_phar.php delete mode 100644 github/vendor/raveren/kint/.gitignore delete mode 100644 github/vendor/raveren/kint/Kint.class.php delete mode 100644 github/vendor/raveren/kint/LICENCE delete mode 100644 github/vendor/raveren/kint/README.md delete mode 100644 github/vendor/raveren/kint/composer.json delete mode 100644 github/vendor/raveren/kint/config.default.php delete mode 100644 github/vendor/raveren/kint/decorators/plain.php delete mode 100644 github/vendor/raveren/kint/decorators/rich.php delete mode 100644 github/vendor/raveren/kint/examples/overview.php delete mode 100644 github/vendor/raveren/kint/inc/kintObject.class.php delete mode 100644 github/vendor/raveren/kint/inc/kintParser.class.php delete mode 100644 github/vendor/raveren/kint/inc/kintVariableData.class.php delete mode 100644 github/vendor/raveren/kint/parsers/custom/classmethods.php delete mode 100644 github/vendor/raveren/kint/parsers/custom/classstatics.php delete mode 100644 github/vendor/raveren/kint/parsers/custom/color.php delete mode 100644 github/vendor/raveren/kint/parsers/custom/fspath.php delete mode 100644 github/vendor/raveren/kint/parsers/custom/json.php delete mode 100644 github/vendor/raveren/kint/parsers/custom/microtime.php delete mode 100644 github/vendor/raveren/kint/parsers/custom/objectiterateable.php delete mode 100644 github/vendor/raveren/kint/parsers/custom/splobjectstorage.php delete mode 100644 github/vendor/raveren/kint/parsers/custom/timestamp.php delete mode 100644 github/vendor/raveren/kint/parsers/custom/xml.php delete mode 100644 github/vendor/raveren/kint/parsers/objects/closure.php delete mode 100644 github/vendor/raveren/kint/parsers/objects/smarty.php delete mode 100644 github/vendor/raveren/kint/parsers/objects/splfileinfo.php delete mode 100644 github/vendor/raveren/kint/view/base.js delete mode 100644 github/vendor/raveren/kint/view/base.less delete mode 100644 github/vendor/raveren/kint/view/compiled/aante-light.css delete mode 100644 github/vendor/raveren/kint/view/compiled/kint.js delete mode 100644 github/vendor/raveren/kint/view/compiled/original.css delete mode 100644 github/vendor/raveren/kint/view/compiled/solarized-dark.css delete mode 100644 github/vendor/raveren/kint/view/compiled/solarized.css delete mode 100644 github/vendor/raveren/kint/view/themes/aante-light.less delete mode 100644 github/vendor/raveren/kint/view/themes/original.less delete mode 100644 github/vendor/raveren/kint/view/themes/solarized-dark.less delete mode 100644 github/vendor/raveren/kint/view/themes/solarized.less diff --git a/github/vendor/autoload.php b/github/vendor/autoload.php deleted file mode 100644 index cfb7b44..0000000 --- a/github/vendor/autoload.php +++ /dev/null @@ -1,7 +0,0 @@ - - * Jordi Boggiano - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Composer\Autoload; - -/** - * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. - * - * $loader = new \Composer\Autoload\ClassLoader(); - * - * // register classes with namespaces - * $loader->add('Symfony\Component', __DIR__.'/component'); - * $loader->add('Symfony', __DIR__.'/framework'); - * - * // activate the autoloader - * $loader->register(); - * - * // to enable searching the include path (eg. for PEAR packages) - * $loader->setUseIncludePath(true); - * - * In this example, if you try to use a class in the Symfony\Component - * namespace or one of its children (Symfony\Component\Console for instance), - * the autoloader will first look for the class under the component/ - * directory, and it will then fallback to the framework/ directory if not - * found before giving up. - * - * This class is loosely based on the Symfony UniversalClassLoader. - * - * @author Fabien Potencier - * @author Jordi Boggiano - * @see http://www.php-fig.org/psr/psr-0/ - * @see http://www.php-fig.org/psr/psr-4/ - */ -class ClassLoader -{ - // PSR-4 - private $prefixLengthsPsr4 = array(); - private $prefixDirsPsr4 = array(); - private $fallbackDirsPsr4 = array(); - - // PSR-0 - private $prefixesPsr0 = array(); - private $fallbackDirsPsr0 = array(); - - private $useIncludePath = false; - private $classMap = array(); - - private $classMapAuthoritative = false; - - public function getPrefixes() - { - if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', $this->prefixesPsr0); - } - - return array(); - } - - public function getPrefixesPsr4() - { - return $this->prefixDirsPsr4; - } - - public function getFallbackDirs() - { - return $this->fallbackDirsPsr0; - } - - public function getFallbackDirsPsr4() - { - return $this->fallbackDirsPsr4; - } - - public function getClassMap() - { - return $this->classMap; - } - - /** - * @param array $classMap Class to filename map - */ - public function addClassMap(array $classMap) - { - if ($this->classMap) { - $this->classMap = array_merge($this->classMap, $classMap); - } else { - $this->classMap = $classMap; - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, either - * appending or prepending to the ones previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories - */ - public function add($prefix, $paths, $prepend = false) - { - if (!$prefix) { - if ($prepend) { - $this->fallbackDirsPsr0 = array_merge( - (array) $paths, - $this->fallbackDirsPsr0 - ); - } else { - $this->fallbackDirsPsr0 = array_merge( - $this->fallbackDirsPsr0, - (array) $paths - ); - } - - return; - } - - $first = $prefix[0]; - if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = (array) $paths; - - return; - } - if ($prepend) { - $this->prefixesPsr0[$first][$prefix] = array_merge( - (array) $paths, - $this->prefixesPsr0[$first][$prefix] - ); - } else { - $this->prefixesPsr0[$first][$prefix] = array_merge( - $this->prefixesPsr0[$first][$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, either - * appending or prepending to the ones previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories - * - * @throws \InvalidArgumentException - */ - public function addPsr4($prefix, $paths, $prepend = false) - { - if (!$prefix) { - // Register directories for the root namespace. - if ($prepend) { - $this->fallbackDirsPsr4 = array_merge( - (array) $paths, - $this->fallbackDirsPsr4 - ); - } else { - $this->fallbackDirsPsr4 = array_merge( - $this->fallbackDirsPsr4, - (array) $paths - ); - } - } elseif (!isset($this->prefixDirsPsr4[$prefix])) { - // Register directories for a new namespace. - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } elseif ($prepend) { - // Prepend directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - (array) $paths, - $this->prefixDirsPsr4[$prefix] - ); - } else { - // Append directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - $this->prefixDirsPsr4[$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, - * replacing any others previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 base directories - */ - public function set($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr0 = (array) $paths; - } else { - $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, - * replacing any others previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * - * @throws \InvalidArgumentException - */ - public function setPsr4($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr4 = (array) $paths; - } else { - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } - } - - /** - * Turns on searching the include path for class files. - * - * @param bool $useIncludePath - */ - public function setUseIncludePath($useIncludePath) - { - $this->useIncludePath = $useIncludePath; - } - - /** - * Can be used to check if the autoloader uses the include path to check - * for classes. - * - * @return bool - */ - public function getUseIncludePath() - { - return $this->useIncludePath; - } - - /** - * Turns off searching the prefix and fallback directories for classes - * that have not been registered with the class map. - * - * @param bool $classMapAuthoritative - */ - public function setClassMapAuthoritative($classMapAuthoritative) - { - $this->classMapAuthoritative = $classMapAuthoritative; - } - - /** - * Should class lookup fail if not found in the current class map? - * - * @return bool - */ - public function isClassMapAuthoritative() - { - return $this->classMapAuthoritative; - } - - /** - * Registers this instance as an autoloader. - * - * @param bool $prepend Whether to prepend the autoloader or not - */ - public function register($prepend = false) - { - spl_autoload_register(array($this, 'loadClass'), true, $prepend); - } - - /** - * Unregisters this instance as an autoloader. - */ - public function unregister() - { - spl_autoload_unregister(array($this, 'loadClass')); - } - - /** - * Loads the given class or interface. - * - * @param string $class The name of the class - * @return bool|null True if loaded, null otherwise - */ - public function loadClass($class) - { - if ($file = $this->findFile($class)) { - includeFile($file); - - return true; - } - } - - /** - * Finds the path to the file where the class is defined. - * - * @param string $class The name of the class - * - * @return string|false The path if found, false otherwise - */ - public function findFile($class) - { - // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731 - if ('\\' == $class[0]) { - $class = substr($class, 1); - } - - // class map lookup - if (isset($this->classMap[$class])) { - return $this->classMap[$class]; - } - if ($this->classMapAuthoritative) { - return false; - } - - $file = $this->findFileWithExtension($class, '.php'); - - // Search for Hack files if we are running on HHVM - if ($file === null && defined('HHVM_VERSION')) { - $file = $this->findFileWithExtension($class, '.hh'); - } - - if ($file === null) { - // Remember that this class does not exist. - return $this->classMap[$class] = false; - } - - return $file; - } - - private function findFileWithExtension($class, $ext) - { - // PSR-4 lookup - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; - - $first = $class[0]; - if (isset($this->prefixLengthsPsr4[$first])) { - foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { - if (0 === strpos($class, $prefix)) { - foreach ($this->prefixDirsPsr4[$prefix] as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { - return $file; - } - } - } - } - } - - // PSR-4 fallback dirs - foreach ($this->fallbackDirsPsr4 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { - return $file; - } - } - - // PSR-0 lookup - if (false !== $pos = strrpos($class, '\\')) { - // namespaced class name - $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) - . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); - } else { - // PEAR-like class name - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; - } - - if (isset($this->prefixesPsr0[$first])) { - foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { - if (0 === strpos($class, $prefix)) { - foreach ($dirs as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - } - } - } - - // PSR-0 fallback dirs - foreach ($this->fallbackDirsPsr0 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - - // PSR-0 include paths. - if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { - return $file; - } - } -} - -/** - * Scope isolated include. - * - * Prevents access to $this/self from included files. - */ -function includeFile($file) -{ - include $file; -} diff --git a/github/vendor/composer/LICENSE b/github/vendor/composer/LICENSE deleted file mode 100644 index 1a28124..0000000 --- a/github/vendor/composer/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - -Copyright (c) 2016 Nils Adermann, Jordi Boggiano - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - diff --git a/github/vendor/composer/autoload_classmap.php b/github/vendor/composer/autoload_classmap.php deleted file mode 100644 index 7a91153..0000000 --- a/github/vendor/composer/autoload_classmap.php +++ /dev/null @@ -1,9 +0,0 @@ - $vendorDir . '/paragonie/random_compat/lib/random.php', - '72579e7bd17821bb1321b87411366eae' => $vendorDir . '/illuminate/support/helpers.php', - '6bc45d0537e6858fd179bdbc31d62c79' => $vendorDir . '/raveren/kint/Kint.class.php', -); diff --git a/github/vendor/composer/autoload_namespaces.php b/github/vendor/composer/autoload_namespaces.php deleted file mode 100644 index 79cbf89..0000000 --- a/github/vendor/composer/autoload_namespaces.php +++ /dev/null @@ -1,10 +0,0 @@ - array($vendorDir . '/doctrine/inflector/lib'), -); diff --git a/github/vendor/composer/autoload_psr4.php b/github/vendor/composer/autoload_psr4.php deleted file mode 100644 index 589dd0c..0000000 --- a/github/vendor/composer/autoload_psr4.php +++ /dev/null @@ -1,11 +0,0 @@ - array($vendorDir . '/illuminate/support'), - 'Illuminate\\Contracts\\' => array($vendorDir . '/illuminate/contracts'), -); diff --git a/github/vendor/composer/autoload_real.php b/github/vendor/composer/autoload_real.php deleted file mode 100644 index ad622d3..0000000 --- a/github/vendor/composer/autoload_real.php +++ /dev/null @@ -1,59 +0,0 @@ - $path) { - $loader->set($namespace, $path); - } - - $map = require __DIR__ . '/autoload_psr4.php'; - foreach ($map as $namespace => $path) { - $loader->setPsr4($namespace, $path); - } - - $classMap = require __DIR__ . '/autoload_classmap.php'; - if ($classMap) { - $loader->addClassMap($classMap); - } - - $loader->register(true); - - $includeFiles = require __DIR__ . '/autoload_files.php'; - foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire98f477d082ee1b6b756da398bbb55da1($fileIdentifier, $file); - } - - return $loader; - } -} - -function composerRequire98f477d082ee1b6b756da398bbb55da1($fileIdentifier, $file) -{ - if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { - require $file; - - $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; - } -} diff --git a/github/vendor/composer/installed.json b/github/vendor/composer/installed.json deleted file mode 100644 index c3a0732..0000000 --- a/github/vendor/composer/installed.json +++ /dev/null @@ -1,277 +0,0 @@ -[ - { - "name": "paragonie/random_compat", - "version": "v2.0.4", - "version_normalized": "2.0.4.0", - "source": { - "type": "git", - "url": "https://github.com/paragonie/random_compat.git", - "reference": "a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e", - "reference": "a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e", - "shasum": "" - }, - "require": { - "php": ">=5.2.0" - }, - "require-dev": { - "phpunit/phpunit": "4.*|5.*" - }, - "suggest": { - "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." - }, - "time": "2016-11-07 23:38:38", - "type": "library", - "installation-source": "dist", - "autoload": { - "files": [ - "lib/random.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Paragon Initiative Enterprises", - "email": "security@paragonie.com", - "homepage": "https://paragonie.com" - } - ], - "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", - "keywords": [ - "csprng", - "pseudorandom", - "random" - ] - }, - { - "name": "illuminate/contracts", - "version": "v5.4.9", - "version_normalized": "5.4.9.0", - "source": { - "type": "git", - "url": "https://github.com/illuminate/contracts.git", - "reference": "4ec919d294aca396d172e644b243b49885cd2cc7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/4ec919d294aca396d172e644b243b49885cd2cc7", - "reference": "4ec919d294aca396d172e644b243b49885cd2cc7", - "shasum": "" - }, - "require": { - "php": ">=5.6.4" - }, - "time": "2017-01-18 20:23:54", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.4-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Illuminate\\Contracts\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Taylor Otwell", - "email": "taylor@laravel.com" - } - ], - "description": "The Illuminate Contracts package.", - "homepage": "https://laravel.com" - }, - { - "name": "doctrine/inflector", - "version": "v1.1.0", - "version_normalized": "1.1.0.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/inflector.git", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "phpunit/phpunit": "4.*" - }, - "time": "2015-11-06 14:35:42", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-0": { - "Doctrine\\Common\\Inflector\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - } - ], - "description": "Common String Manipulations with regard to casing and singular/plural rules.", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "inflection", - "pluralize", - "singularize", - "string" - ] - }, - { - "name": "illuminate/support", - "version": "v5.4.9", - "version_normalized": "5.4.9.0", - "source": { - "type": "git", - "url": "https://github.com/illuminate/support.git", - "reference": "5544aaf67b7e57559d58c01a9030c82ca01872a6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/5544aaf67b7e57559d58c01a9030c82ca01872a6", - "reference": "5544aaf67b7e57559d58c01a9030c82ca01872a6", - "shasum": "" - }, - "require": { - "doctrine/inflector": "~1.0", - "ext-mbstring": "*", - "illuminate/contracts": "5.4.*", - "paragonie/random_compat": "~1.4|~2.0", - "php": ">=5.6.4" - }, - "replace": { - "tightenco/collect": "self.version" - }, - "suggest": { - "illuminate/filesystem": "Required to use the composer class (5.2.*).", - "symfony/process": "Required to use the composer class (~3.2).", - "symfony/var-dumper": "Required to use the dd function (~3.2)." - }, - "time": "2017-02-02 13:32:18", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.4-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Illuminate\\Support\\": "" - }, - "files": [ - "helpers.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Taylor Otwell", - "email": "taylor@laravel.com" - } - ], - "description": "The Illuminate Support package.", - "homepage": "https://laravel.com" - }, - { - "name": "raveren/kint", - "version": "1.0.10", - "version_normalized": "1.0.10.0", - "source": { - "type": "git", - "url": "https://github.com/raveren/kint.git", - "reference": "c8423b9928bd35bf6ad14c688ab9c6d17d97d0eb" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/raveren/kint/zipball/c8423b9928bd35bf6ad14c688ab9c6d17d97d0eb", - "reference": "c8423b9928bd35bf6ad14c688ab9c6d17d97d0eb", - "shasum": "" - }, - "require": { - "php": ">=5.1.0" - }, - "time": "2015-09-16 14:09:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "Kint.class.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Rokas Šleinius", - "homepage": "https://github.com/raveren" - }, - { - "name": "Contributors", - "homepage": "https://github.com/raveren/kint/contributors" - } - ], - "description": "Kint - debugging helper for PHP developers", - "homepage": "https://github.com/raveren/kint", - "keywords": [ - "debug", - "kint", - "php" - ] - } -] diff --git a/github/vendor/doctrine/inflector/.gitignore b/github/vendor/doctrine/inflector/.gitignore deleted file mode 100644 index f2cb7f8..0000000 --- a/github/vendor/doctrine/inflector/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -vendor/ -composer.lock -composer.phar -phpunit.xml diff --git a/github/vendor/doctrine/inflector/.travis.yml b/github/vendor/doctrine/inflector/.travis.yml deleted file mode 100644 index 9ec68f7..0000000 --- a/github/vendor/doctrine/inflector/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: php - -sudo: false - -cache: - directory: - - $HOME/.composer/cache - -php: - - 5.3 - - 5.4 - - 5.5 - - 5.6 - - 7.0 - - hhvm - -install: - - composer install -n - -script: - - phpunit diff --git a/github/vendor/doctrine/inflector/LICENSE b/github/vendor/doctrine/inflector/LICENSE deleted file mode 100644 index 8c38cc1..0000000 --- a/github/vendor/doctrine/inflector/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2006-2015 Doctrine Project - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/github/vendor/doctrine/inflector/README.md b/github/vendor/doctrine/inflector/README.md deleted file mode 100644 index acb55a0..0000000 --- a/github/vendor/doctrine/inflector/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Doctrine Inflector - -Doctrine Inflector is a small library that can perform string manipulations -with regard to upper-/lowercase and singular/plural forms of words. - -[![Build Status](https://travis-ci.org/doctrine/inflector.svg?branch=master)](https://travis-ci.org/doctrine/inflector) diff --git a/github/vendor/doctrine/inflector/composer.json b/github/vendor/doctrine/inflector/composer.json deleted file mode 100644 index 7e5b2ef..0000000 --- a/github/vendor/doctrine/inflector/composer.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "doctrine/inflector", - "type": "library", - "description": "Common String Manipulations with regard to casing and singular/plural rules.", - "keywords": ["string", "inflection", "singularize", "pluralize"], - "homepage": "http://www.doctrine-project.org", - "license": "MIT", - "authors": [ - {"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"}, - {"name": "Roman Borschel", "email": "roman@code-factory.org"}, - {"name": "Benjamin Eberlei", "email": "kontakt@beberlei.de"}, - {"name": "Jonathan Wage", "email": "jonwage@gmail.com"}, - {"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"} - ], - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "phpunit/phpunit": "4.*" - }, - "autoload": { - "psr-0": { "Doctrine\\Common\\Inflector\\": "lib/" } - }, - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - } -} diff --git a/github/vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php b/github/vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php deleted file mode 100644 index a53828a..0000000 --- a/github/vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php +++ /dev/null @@ -1,482 +0,0 @@ -. - */ - -namespace Doctrine\Common\Inflector; - -/** - * Doctrine inflector has static methods for inflecting text. - * - * The methods in these classes are from several different sources collected - * across several different php projects and several different authors. The - * original author names and emails are not known. - * - * Pluralize & Singularize implementation are borrowed from CakePHP with some modifications. - * - * @link www.doctrine-project.org - * @since 1.0 - * @author Konsta Vesterinen - * @author Jonathan H. Wage - */ -class Inflector -{ - /** - * Plural inflector rules. - * - * @var array - */ - private static $plural = array( - 'rules' => array( - '/(s)tatus$/i' => '\1\2tatuses', - '/(quiz)$/i' => '\1zes', - '/^(ox)$/i' => '\1\2en', - '/([m|l])ouse$/i' => '\1ice', - '/(matr|vert|ind)(ix|ex)$/i' => '\1ices', - '/(x|ch|ss|sh)$/i' => '\1es', - '/([^aeiouy]|qu)y$/i' => '\1ies', - '/(hive)$/i' => '\1s', - '/(?:([^f])fe|([lr])f)$/i' => '\1\2ves', - '/sis$/i' => 'ses', - '/([ti])um$/i' => '\1a', - '/(p)erson$/i' => '\1eople', - '/(m)an$/i' => '\1en', - '/(c)hild$/i' => '\1hildren', - '/(f)oot$/i' => '\1eet', - '/(buffal|her|potat|tomat|volcan)o$/i' => '\1\2oes', - '/(alumn|bacill|cact|foc|fung|nucle|radi|stimul|syllab|termin|vir)us$/i' => '\1i', - '/us$/i' => 'uses', - '/(alias)$/i' => '\1es', - '/(analys|ax|cris|test|thes)is$/i' => '\1es', - '/s$/' => 's', - '/^$/' => '', - '/$/' => 's', - ), - 'uninflected' => array( - '.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox', '.*sheep', 'people', 'cookie' - ), - 'irregular' => array( - 'atlas' => 'atlases', - 'axe' => 'axes', - 'beef' => 'beefs', - 'brother' => 'brothers', - 'cafe' => 'cafes', - 'chateau' => 'chateaux', - 'child' => 'children', - 'cookie' => 'cookies', - 'corpus' => 'corpuses', - 'cow' => 'cows', - 'criterion' => 'criteria', - 'curriculum' => 'curricula', - 'demo' => 'demos', - 'domino' => 'dominoes', - 'echo' => 'echoes', - 'foot' => 'feet', - 'fungus' => 'fungi', - 'ganglion' => 'ganglions', - 'genie' => 'genies', - 'genus' => 'genera', - 'graffito' => 'graffiti', - 'hippopotamus' => 'hippopotami', - 'hoof' => 'hoofs', - 'human' => 'humans', - 'iris' => 'irises', - 'leaf' => 'leaves', - 'loaf' => 'loaves', - 'man' => 'men', - 'medium' => 'media', - 'memorandum' => 'memoranda', - 'money' => 'monies', - 'mongoose' => 'mongooses', - 'motto' => 'mottoes', - 'move' => 'moves', - 'mythos' => 'mythoi', - 'niche' => 'niches', - 'nucleus' => 'nuclei', - 'numen' => 'numina', - 'occiput' => 'occiputs', - 'octopus' => 'octopuses', - 'opus' => 'opuses', - 'ox' => 'oxen', - 'penis' => 'penises', - 'person' => 'people', - 'plateau' => 'plateaux', - 'runner-up' => 'runners-up', - 'sex' => 'sexes', - 'soliloquy' => 'soliloquies', - 'son-in-law' => 'sons-in-law', - 'syllabus' => 'syllabi', - 'testis' => 'testes', - 'thief' => 'thieves', - 'tooth' => 'teeth', - 'tornado' => 'tornadoes', - 'trilby' => 'trilbys', - 'turf' => 'turfs', - 'volcano' => 'volcanoes', - ) - ); - - /** - * Singular inflector rules. - * - * @var array - */ - private static $singular = array( - 'rules' => array( - '/(s)tatuses$/i' => '\1\2tatus', - '/^(.*)(menu)s$/i' => '\1\2', - '/(quiz)zes$/i' => '\\1', - '/(matr)ices$/i' => '\1ix', - '/(vert|ind)ices$/i' => '\1ex', - '/^(ox)en/i' => '\1', - '/(alias)(es)*$/i' => '\1', - '/(buffal|her|potat|tomat|volcan)oes$/i' => '\1o', - '/(alumn|bacill|cact|foc|fung|nucle|radi|stimul|syllab|termin|viri?)i$/i' => '\1us', - '/([ftw]ax)es/i' => '\1', - '/(analys|ax|cris|test|thes)es$/i' => '\1is', - '/(shoe|slave)s$/i' => '\1', - '/(o)es$/i' => '\1', - '/ouses$/' => 'ouse', - '/([^a])uses$/' => '\1us', - '/([m|l])ice$/i' => '\1ouse', - '/(x|ch|ss|sh)es$/i' => '\1', - '/(m)ovies$/i' => '\1\2ovie', - '/(s)eries$/i' => '\1\2eries', - '/([^aeiouy]|qu)ies$/i' => '\1y', - '/([lr])ves$/i' => '\1f', - '/(tive)s$/i' => '\1', - '/(hive)s$/i' => '\1', - '/(drive)s$/i' => '\1', - '/([^fo])ves$/i' => '\1fe', - '/(^analy)ses$/i' => '\1sis', - '/(analy|diagno|^ba|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i' => '\1\2sis', - '/([ti])a$/i' => '\1um', - '/(p)eople$/i' => '\1\2erson', - '/(m)en$/i' => '\1an', - '/(c)hildren$/i' => '\1\2hild', - '/(f)eet$/i' => '\1oot', - '/(n)ews$/i' => '\1\2ews', - '/eaus$/' => 'eau', - '/^(.*us)$/' => '\\1', - '/s$/i' => '', - ), - 'uninflected' => array( - '.*[nrlm]ese', - '.*deer', - '.*fish', - '.*measles', - '.*ois', - '.*pox', - '.*sheep', - '.*ss', - ), - 'irregular' => array( - 'criteria' => 'criterion', - 'curves' => 'curve', - 'emphases' => 'emphasis', - 'foes' => 'foe', - 'hoaxes' => 'hoax', - 'media' => 'medium', - 'neuroses' => 'neurosis', - 'waves' => 'wave', - 'oases' => 'oasis', - ) - ); - - /** - * Words that should not be inflected. - * - * @var array - */ - private static $uninflected = array( - 'Amoyese', 'bison', 'Borghese', 'bream', 'breeches', 'britches', 'buffalo', 'cantus', - 'carp', 'chassis', 'clippers', 'cod', 'coitus', 'Congoese', 'contretemps', 'corps', - 'debris', 'diabetes', 'djinn', 'eland', 'elk', 'equipment', 'Faroese', 'flounder', - 'Foochowese', 'gallows', 'Genevese', 'Genoese', 'Gilbertese', 'graffiti', - 'headquarters', 'herpes', 'hijinks', 'Hottentotese', 'information', 'innings', - 'jackanapes', 'Kiplingese', 'Kongoese', 'Lucchese', 'mackerel', 'Maltese', '.*?media', - 'mews', 'moose', 'mumps', 'Nankingese', 'news', 'nexus', 'Niasese', - 'Pekingese', 'Piedmontese', 'pincers', 'Pistoiese', 'pliers', 'Portuguese', - 'proceedings', 'rabies', 'rice', 'rhinoceros', 'salmon', 'Sarawakese', 'scissors', - 'sea[- ]bass', 'series', 'Shavese', 'shears', 'siemens', 'species', 'staff', 'swine', - 'testes', 'trousers', 'trout', 'tuna', 'Vermontese', 'Wenchowese', 'whiting', - 'wildebeest', 'Yengeese' - ); - - /** - * Method cache array. - * - * @var array - */ - private static $cache = array(); - - /** - * The initial state of Inflector so reset() works. - * - * @var array - */ - private static $initialState = array(); - - /** - * Converts a word into the format for a Doctrine table name. Converts 'ModelName' to 'model_name'. - * - * @param string $word The word to tableize. - * - * @return string The tableized word. - */ - public static function tableize($word) - { - return strtolower(preg_replace('~(?<=\\w)([A-Z])~', '_$1', $word)); - } - - /** - * Converts a word into the format for a Doctrine class name. Converts 'table_name' to 'TableName'. - * - * @param string $word The word to classify. - * - * @return string The classified word. - */ - public static function classify($word) - { - return str_replace(" ", "", ucwords(strtr($word, "_-", " "))); - } - - /** - * Camelizes a word. This uses the classify() method and turns the first character to lowercase. - * - * @param string $word The word to camelize. - * - * @return string The camelized word. - */ - public static function camelize($word) - { - return lcfirst(self::classify($word)); - } - - /** - * Uppercases words with configurable delimeters between words. - * - * Takes a string and capitalizes all of the words, like PHP's built-in - * ucwords function. This extends that behavior, however, by allowing the - * word delimeters to be configured, rather than only separating on - * whitespace. - * - * Here is an example: - * - * - * - * - * @param string $string The string to operate on. - * @param string $delimiters A list of word separators. - * - * @return string The string with all delimeter-separated words capitalized. - */ - public static function ucwords($string, $delimiters = " \n\t\r\0\x0B-") - { - return preg_replace_callback( - '/[^' . preg_quote($delimiters, '/') . ']+/', - function($matches) { - return ucfirst($matches[0]); - }, - $string - ); - } - - /** - * Clears Inflectors inflected value caches, and resets the inflection - * rules to the initial values. - * - * @return void - */ - public static function reset() - { - if (empty(self::$initialState)) { - self::$initialState = get_class_vars('Inflector'); - - return; - } - - foreach (self::$initialState as $key => $val) { - if ($key != 'initialState') { - self::${$key} = $val; - } - } - } - - /** - * Adds custom inflection $rules, of either 'plural' or 'singular' $type. - * - * ### Usage: - * - * {{{ - * Inflector::rules('plural', array('/^(inflect)or$/i' => '\1ables')); - * Inflector::rules('plural', array( - * 'rules' => array('/^(inflect)ors$/i' => '\1ables'), - * 'uninflected' => array('dontinflectme'), - * 'irregular' => array('red' => 'redlings') - * )); - * }}} - * - * @param string $type The type of inflection, either 'plural' or 'singular' - * @param array $rules An array of rules to be added. - * @param boolean $reset If true, will unset default inflections for all - * new rules that are being defined in $rules. - * - * @return void - */ - public static function rules($type, $rules, $reset = false) - { - foreach ($rules as $rule => $pattern) { - if ( ! is_array($pattern)) { - continue; - } - - if ($reset) { - self::${$type}[$rule] = $pattern; - } else { - self::${$type}[$rule] = ($rule === 'uninflected') - ? array_merge($pattern, self::${$type}[$rule]) - : $pattern + self::${$type}[$rule]; - } - - unset($rules[$rule], self::${$type}['cache' . ucfirst($rule)]); - - if (isset(self::${$type}['merged'][$rule])) { - unset(self::${$type}['merged'][$rule]); - } - - if ($type === 'plural') { - self::$cache['pluralize'] = self::$cache['tableize'] = array(); - } elseif ($type === 'singular') { - self::$cache['singularize'] = array(); - } - } - - self::${$type}['rules'] = $rules + self::${$type}['rules']; - } - - /** - * Returns a word in plural form. - * - * @param string $word The word in singular form. - * - * @return string The word in plural form. - */ - public static function pluralize($word) - { - if (isset(self::$cache['pluralize'][$word])) { - return self::$cache['pluralize'][$word]; - } - - if (!isset(self::$plural['merged']['irregular'])) { - self::$plural['merged']['irregular'] = self::$plural['irregular']; - } - - if (!isset(self::$plural['merged']['uninflected'])) { - self::$plural['merged']['uninflected'] = array_merge(self::$plural['uninflected'], self::$uninflected); - } - - if (!isset(self::$plural['cacheUninflected']) || !isset(self::$plural['cacheIrregular'])) { - self::$plural['cacheUninflected'] = '(?:' . implode('|', self::$plural['merged']['uninflected']) . ')'; - self::$plural['cacheIrregular'] = '(?:' . implode('|', array_keys(self::$plural['merged']['irregular'])) . ')'; - } - - if (preg_match('/(.*)\\b(' . self::$plural['cacheIrregular'] . ')$/i', $word, $regs)) { - self::$cache['pluralize'][$word] = $regs[1] . substr($word, 0, 1) . substr(self::$plural['merged']['irregular'][strtolower($regs[2])], 1); - - return self::$cache['pluralize'][$word]; - } - - if (preg_match('/^(' . self::$plural['cacheUninflected'] . ')$/i', $word, $regs)) { - self::$cache['pluralize'][$word] = $word; - - return $word; - } - - foreach (self::$plural['rules'] as $rule => $replacement) { - if (preg_match($rule, $word)) { - self::$cache['pluralize'][$word] = preg_replace($rule, $replacement, $word); - - return self::$cache['pluralize'][$word]; - } - } - } - - /** - * Returns a word in singular form. - * - * @param string $word The word in plural form. - * - * @return string The word in singular form. - */ - public static function singularize($word) - { - if (isset(self::$cache['singularize'][$word])) { - return self::$cache['singularize'][$word]; - } - - if (!isset(self::$singular['merged']['uninflected'])) { - self::$singular['merged']['uninflected'] = array_merge( - self::$singular['uninflected'], - self::$uninflected - ); - } - - if (!isset(self::$singular['merged']['irregular'])) { - self::$singular['merged']['irregular'] = array_merge( - self::$singular['irregular'], - array_flip(self::$plural['irregular']) - ); - } - - if (!isset(self::$singular['cacheUninflected']) || !isset(self::$singular['cacheIrregular'])) { - self::$singular['cacheUninflected'] = '(?:' . join('|', self::$singular['merged']['uninflected']) . ')'; - self::$singular['cacheIrregular'] = '(?:' . join('|', array_keys(self::$singular['merged']['irregular'])) . ')'; - } - - if (preg_match('/(.*)\\b(' . self::$singular['cacheIrregular'] . ')$/i', $word, $regs)) { - self::$cache['singularize'][$word] = $regs[1] . substr($word, 0, 1) . substr(self::$singular['merged']['irregular'][strtolower($regs[2])], 1); - - return self::$cache['singularize'][$word]; - } - - if (preg_match('/^(' . self::$singular['cacheUninflected'] . ')$/i', $word, $regs)) { - self::$cache['singularize'][$word] = $word; - - return $word; - } - - foreach (self::$singular['rules'] as $rule => $replacement) { - if (preg_match($rule, $word)) { - self::$cache['singularize'][$word] = preg_replace($rule, $replacement, $word); - - return self::$cache['singularize'][$word]; - } - } - - self::$cache['singularize'][$word] = $word; - - return $word; - } -} diff --git a/github/vendor/doctrine/inflector/phpunit.xml.dist b/github/vendor/doctrine/inflector/phpunit.xml.dist deleted file mode 100644 index ef07faa..0000000 --- a/github/vendor/doctrine/inflector/phpunit.xml.dist +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - ./tests/Doctrine/ - - - - - - ./lib/Doctrine/ - - - - - - performance - - - diff --git a/github/vendor/doctrine/inflector/tests/Doctrine/Tests/Common/Inflector/InflectorTest.php b/github/vendor/doctrine/inflector/tests/Doctrine/Tests/Common/Inflector/InflectorTest.php deleted file mode 100644 index 4198d22..0000000 --- a/github/vendor/doctrine/inflector/tests/Doctrine/Tests/Common/Inflector/InflectorTest.php +++ /dev/null @@ -1,309 +0,0 @@ -assertEquals( - $singular, - Inflector::singularize($plural), - "'$plural' should be singularized to '$singular'" - ); - } - - /** - * testInflectingPlurals method - * - * @dataProvider dataSampleWords - * @return void - */ - public function testInflectingPlurals($singular, $plural) - { - $this->assertEquals( - $plural, - Inflector::pluralize($singular), - "'$singular' should be pluralized to '$plural'" - ); - } - - /** - * testCustomPluralRule method - * - * @return void - */ - public function testCustomPluralRule() - { - Inflector::reset(); - Inflector::rules('plural', array('/^(custom)$/i' => '\1izables')); - - $this->assertEquals(Inflector::pluralize('custom'), 'customizables'); - - Inflector::rules('plural', array('uninflected' => array('uninflectable'))); - - $this->assertEquals(Inflector::pluralize('uninflectable'), 'uninflectable'); - - Inflector::rules('plural', array( - 'rules' => array('/^(alert)$/i' => '\1ables'), - 'uninflected' => array('noflect', 'abtuse'), - 'irregular' => array('amaze' => 'amazable', 'phone' => 'phonezes') - )); - - $this->assertEquals(Inflector::pluralize('noflect'), 'noflect'); - $this->assertEquals(Inflector::pluralize('abtuse'), 'abtuse'); - $this->assertEquals(Inflector::pluralize('alert'), 'alertables'); - $this->assertEquals(Inflector::pluralize('amaze'), 'amazable'); - $this->assertEquals(Inflector::pluralize('phone'), 'phonezes'); - } - - /** - * testCustomSingularRule method - * - * @return void - */ - public function testCustomSingularRule() - { - Inflector::reset(); - Inflector::rules('singular', array('/(eple)r$/i' => '\1', '/(jente)r$/i' => '\1')); - - $this->assertEquals(Inflector::singularize('epler'), 'eple'); - $this->assertEquals(Inflector::singularize('jenter'), 'jente'); - - Inflector::rules('singular', array( - 'rules' => array('/^(bil)er$/i' => '\1', '/^(inflec|contribu)tors$/i' => '\1ta'), - 'uninflected' => array('singulars'), - 'irregular' => array('spins' => 'spinor') - )); - - $this->assertEquals(Inflector::singularize('inflectors'), 'inflecta'); - $this->assertEquals(Inflector::singularize('contributors'), 'contributa'); - $this->assertEquals(Inflector::singularize('spins'), 'spinor'); - $this->assertEquals(Inflector::singularize('singulars'), 'singulars'); - } - - /** - * test that setting new rules clears the inflector caches. - * - * @return void - */ - public function testRulesClearsCaches() - { - Inflector::reset(); - - $this->assertEquals(Inflector::singularize('Bananas'), 'Banana'); - $this->assertEquals(Inflector::pluralize('Banana'), 'Bananas'); - - Inflector::rules('singular', array( - 'rules' => array('/(.*)nas$/i' => '\1zzz') - )); - - $this->assertEquals('Banazzz', Inflector::singularize('Bananas'), 'Was inflected with old rules.'); - - Inflector::rules('plural', array( - 'rules' => array('/(.*)na$/i' => '\1zzz'), - 'irregular' => array('corpus' => 'corpora') - )); - - $this->assertEquals(Inflector::pluralize('Banana'), 'Banazzz', 'Was inflected with old rules.'); - $this->assertEquals(Inflector::pluralize('corpus'), 'corpora', 'Was inflected with old irregular form.'); - } - - /** - * Test resetting inflection rules. - * - * @return void - */ - public function testCustomRuleWithReset() - { - Inflector::reset(); - - $uninflected = array('atlas', 'lapis', 'onibus', 'pires', 'virus', '.*x'); - $pluralIrregular = array('as' => 'ases'); - - Inflector::rules('singular', array( - 'rules' => array('/^(.*)(a|e|o|u)is$/i' => '\1\2l'), - 'uninflected' => $uninflected, - ), true); - - Inflector::rules('plural', array( - 'rules' => array( - '/^(.*)(a|e|o|u)l$/i' => '\1\2is', - ), - 'uninflected' => $uninflected, - 'irregular' => $pluralIrregular - ), true); - - $this->assertEquals(Inflector::pluralize('Alcool'), 'Alcoois'); - $this->assertEquals(Inflector::pluralize('Atlas'), 'Atlas'); - $this->assertEquals(Inflector::singularize('Alcoois'), 'Alcool'); - $this->assertEquals(Inflector::singularize('Atlas'), 'Atlas'); - } - - /** - * Test basic ucwords functionality. - * - * @return void - */ - public function testUcwords() - { - $this->assertSame('Top-O-The-Morning To All_of_you!', Inflector::ucwords( 'top-o-the-morning to all_of_you!')); - } - - /** - * Test ucwords functionality with custom delimeters. - * - * @return void - */ - public function testUcwordsWithCustomDelimeters() - { - $this->assertSame('Top-O-The-Morning To All_Of_You!', Inflector::ucwords( 'top-o-the-morning to all_of_you!', '-_ ')); - } -} - diff --git a/github/vendor/doctrine/inflector/tests/Doctrine/Tests/DoctrineTestCase.php b/github/vendor/doctrine/inflector/tests/Doctrine/Tests/DoctrineTestCase.php deleted file mode 100644 index e8323d2..0000000 --- a/github/vendor/doctrine/inflector/tests/Doctrine/Tests/DoctrineTestCase.php +++ /dev/null @@ -1,10 +0,0 @@ -id = $id; - $this->class = $class; - } -} diff --git a/github/vendor/illuminate/contracts/Debug/ExceptionHandler.php b/github/vendor/illuminate/contracts/Debug/ExceptionHandler.php deleted file mode 100644 index e3f18a5..0000000 --- a/github/vendor/illuminate/contracts/Debug/ExceptionHandler.php +++ /dev/null @@ -1,34 +0,0 @@ -=5.6.4" - }, - "autoload": { - "psr-4": { - "Illuminate\\Contracts\\": "" - } - }, - "extra": { - "branch-alias": { - "dev-master": "5.4-dev" - } - }, - "config": { - "sort-packages": true - }, - "minimum-stability": "dev" -} diff --git a/github/vendor/illuminate/support/AggregateServiceProvider.php b/github/vendor/illuminate/support/AggregateServiceProvider.php deleted file mode 100644 index d7425c5..0000000 --- a/github/vendor/illuminate/support/AggregateServiceProvider.php +++ /dev/null @@ -1,52 +0,0 @@ -instances = []; - - foreach ($this->providers as $provider) { - $this->instances[] = $this->app->register($provider); - } - } - - /** - * Get the services provided by the provider. - * - * @return array - */ - public function provides() - { - $provides = []; - - foreach ($this->providers as $provider) { - $instance = $this->app->resolveProvider($provider); - - $provides = array_merge($provides, $instance->provides()); - } - - return $provides; - } -} diff --git a/github/vendor/illuminate/support/Arr.php b/github/vendor/illuminate/support/Arr.php deleted file mode 100755 index f24de4f..0000000 --- a/github/vendor/illuminate/support/Arr.php +++ /dev/null @@ -1,519 +0,0 @@ -all(); - } elseif (! is_array($values)) { - continue; - } - - $results = array_merge($results, $values); - } - - return $results; - } - - /** - * Divide an array into two arrays. One with keys and the other with values. - * - * @param array $array - * @return array - */ - public static function divide($array) - { - return [array_keys($array), array_values($array)]; - } - - /** - * Flatten a multi-dimensional associative array with dots. - * - * @param array $array - * @param string $prepend - * @return array - */ - public static function dot($array, $prepend = '') - { - $results = []; - - foreach ($array as $key => $value) { - if (is_array($value) && ! empty($value)) { - $results = array_merge($results, static::dot($value, $prepend.$key.'.')); - } else { - $results[$prepend.$key] = $value; - } - } - - return $results; - } - - /** - * Get all of the given array except for a specified array of items. - * - * @param array $array - * @param array|string $keys - * @return array - */ - public static function except($array, $keys) - { - static::forget($array, $keys); - - return $array; - } - - /** - * Determine if the given key exists in the provided array. - * - * @param \ArrayAccess|array $array - * @param string|int $key - * @return bool - */ - public static function exists($array, $key) - { - if ($array instanceof ArrayAccess) { - return $array->offsetExists($key); - } - - return array_key_exists($key, $array); - } - - /** - * Return the first element in an array passing a given truth test. - * - * @param array $array - * @param callable|null $callback - * @param mixed $default - * @return mixed - */ - public static function first($array, callable $callback = null, $default = null) - { - if (is_null($callback)) { - if (empty($array)) { - return value($default); - } - - foreach ($array as $item) { - return $item; - } - } - - foreach ($array as $key => $value) { - if (call_user_func($callback, $value, $key)) { - return $value; - } - } - - return value($default); - } - - /** - * Return the last element in an array passing a given truth test. - * - * @param array $array - * @param callable|null $callback - * @param mixed $default - * @return mixed - */ - public static function last($array, callable $callback = null, $default = null) - { - if (is_null($callback)) { - return empty($array) ? value($default) : end($array); - } - - return static::first(array_reverse($array, true), $callback, $default); - } - - /** - * Flatten a multi-dimensional array into a single level. - * - * @param array $array - * @param int $depth - * @return array - */ - public static function flatten($array, $depth = INF) - { - return array_reduce($array, function ($result, $item) use ($depth) { - $item = $item instanceof Collection ? $item->all() : $item; - - if (! is_array($item)) { - return array_merge($result, [$item]); - } elseif ($depth === 1) { - return array_merge($result, array_values($item)); - } else { - return array_merge($result, static::flatten($item, $depth - 1)); - } - }, []); - } - - /** - * Remove one or many array items from a given array using "dot" notation. - * - * @param array $array - * @param array|string $keys - * @return void - */ - public static function forget(&$array, $keys) - { - $original = &$array; - - $keys = (array) $keys; - - if (count($keys) === 0) { - return; - } - - foreach ($keys as $key) { - // if the exact key exists in the top-level, remove it - if (static::exists($array, $key)) { - unset($array[$key]); - - continue; - } - - $parts = explode('.', $key); - - // clean up before each pass - $array = &$original; - - while (count($parts) > 1) { - $part = array_shift($parts); - - if (isset($array[$part]) && is_array($array[$part])) { - $array = &$array[$part]; - } else { - continue 2; - } - } - - unset($array[array_shift($parts)]); - } - } - - /** - * Get an item from an array using "dot" notation. - * - * @param \ArrayAccess|array $array - * @param string $key - * @param mixed $default - * @return mixed - */ - public static function get($array, $key, $default = null) - { - if (! static::accessible($array)) { - return value($default); - } - - if (is_null($key)) { - return $array; - } - - if (static::exists($array, $key)) { - return $array[$key]; - } - - foreach (explode('.', $key) as $segment) { - if (static::accessible($array) && static::exists($array, $segment)) { - $array = $array[$segment]; - } else { - return value($default); - } - } - - return $array; - } - - /** - * Check if an item or items exist in an array using "dot" notation. - * - * @param \ArrayAccess|array $array - * @param string|array $keys - * @return bool - */ - public static function has($array, $keys) - { - if (is_null($keys)) { - return false; - } - - $keys = (array) $keys; - - if (! $array) { - return false; - } - - if ($keys === []) { - return false; - } - - foreach ($keys as $key) { - $subKeyArray = $array; - - if (static::exists($array, $key)) { - continue; - } - - foreach (explode('.', $key) as $segment) { - if (static::accessible($subKeyArray) && static::exists($subKeyArray, $segment)) { - $subKeyArray = $subKeyArray[$segment]; - } else { - return false; - } - } - } - - return true; - } - - /** - * Determines if an array is associative. - * - * An array is "associative" if it doesn't have sequential numerical keys beginning with zero. - * - * @param array $array - * @return bool - */ - public static function isAssoc(array $array) - { - $keys = array_keys($array); - - return array_keys($keys) !== $keys; - } - - /** - * Get a subset of the items from the given array. - * - * @param array $array - * @param array|string $keys - * @return array - */ - public static function only($array, $keys) - { - return array_intersect_key($array, array_flip((array) $keys)); - } - - /** - * Pluck an array of values from an array. - * - * @param array $array - * @param string|array $value - * @param string|array|null $key - * @return array - */ - public static function pluck($array, $value, $key = null) - { - $results = []; - - list($value, $key) = static::explodePluckParameters($value, $key); - - foreach ($array as $item) { - $itemValue = data_get($item, $value); - - // If the key is "null", we will just append the value to the array and keep - // looping. Otherwise we will key the array using the value of the key we - // received from the developer. Then we'll return the final array form. - if (is_null($key)) { - $results[] = $itemValue; - } else { - $itemKey = data_get($item, $key); - - $results[$itemKey] = $itemValue; - } - } - - return $results; - } - - /** - * Explode the "value" and "key" arguments passed to "pluck". - * - * @param string|array $value - * @param string|array|null $key - * @return array - */ - protected static function explodePluckParameters($value, $key) - { - $value = is_string($value) ? explode('.', $value) : $value; - - $key = is_null($key) || is_array($key) ? $key : explode('.', $key); - - return [$value, $key]; - } - - /** - * Push an item onto the beginning of an array. - * - * @param array $array - * @param mixed $value - * @param mixed $key - * @return array - */ - public static function prepend($array, $value, $key = null) - { - if (is_null($key)) { - array_unshift($array, $value); - } else { - $array = [$key => $value] + $array; - } - - return $array; - } - - /** - * Get a value from the array, and remove it. - * - * @param array $array - * @param string $key - * @param mixed $default - * @return mixed - */ - public static function pull(&$array, $key, $default = null) - { - $value = static::get($array, $key, $default); - - static::forget($array, $key); - - return $value; - } - - /** - * Set an array item to a given value using "dot" notation. - * - * If no key is given to the method, the entire array will be replaced. - * - * @param array $array - * @param string $key - * @param mixed $value - * @return array - */ - public static function set(&$array, $key, $value) - { - if (is_null($key)) { - return $array = $value; - } - - $keys = explode('.', $key); - - while (count($keys) > 1) { - $key = array_shift($keys); - - // If the key doesn't exist at this depth, we will just create an empty array - // to hold the next value, allowing us to create the arrays to hold final - // values at the correct depth. Then we'll keep digging into the array. - if (! isset($array[$key]) || ! is_array($array[$key])) { - $array[$key] = []; - } - - $array = &$array[$key]; - } - - $array[array_shift($keys)] = $value; - - return $array; - } - - /** - * Shuffle the given array and return the result. - * - * @param array $array - * @return array - */ - public static function shuffle($array) - { - shuffle($array); - - return $array; - } - - /** - * Sort the array using the given callback or "dot" notation. - * - * @param array $array - * @param callable|string $callback - * @return array - */ - public static function sort($array, $callback) - { - return Collection::make($array)->sortBy($callback)->all(); - } - - /** - * Recursively sort an array by keys and values. - * - * @param array $array - * @return array - */ - public static function sortRecursive($array) - { - foreach ($array as &$value) { - if (is_array($value)) { - $value = static::sortRecursive($value); - } - } - - if (static::isAssoc($array)) { - ksort($array); - } else { - sort($array); - } - - return $array; - } - - /** - * Filter the array using the given callback. - * - * @param array $array - * @param callable $callback - * @return array - */ - public static function where($array, callable $callback) - { - return array_filter($array, $callback, ARRAY_FILTER_USE_BOTH); - } -} diff --git a/github/vendor/illuminate/support/Collection.php b/github/vendor/illuminate/support/Collection.php deleted file mode 100644 index 93bf117..0000000 --- a/github/vendor/illuminate/support/Collection.php +++ /dev/null @@ -1,1471 +0,0 @@ -items = $this->getArrayableItems($items); - } - - /** - * Create a new collection instance if the value isn't one already. - * - * @param mixed $items - * @return static - */ - public static function make($items = []) - { - return new static($items); - } - - /** - * Get all of the items in the collection. - * - * @return array - */ - public function all() - { - return $this->items; - } - - /** - * Get the average value of a given key. - * - * @param callable|string|null $callback - * @return mixed - */ - public function avg($callback = null) - { - if ($count = $this->count()) { - return $this->sum($callback) / $count; - } - } - - /** - * Alias for the "avg" method. - * - * @param callable|string|null $callback - * @return mixed - */ - public function average($callback = null) - { - return $this->avg($callback); - } - - /** - * Get the median of a given key. - * - * @param null $key - * @return mixed - */ - public function median($key = null) - { - $count = $this->count(); - - if ($count == 0) { - return; - } - - $values = with(isset($key) ? $this->pluck($key) : $this) - ->sort()->values(); - - $middle = (int) ($count / 2); - - if ($count % 2) { - return $values->get($middle); - } - - return (new static([ - $values->get($middle - 1), $values->get($middle), - ]))->average(); - } - - /** - * Get the mode of a given key. - * - * @param mixed $key - * @return array|null - */ - public function mode($key = null) - { - $count = $this->count(); - - if ($count == 0) { - return; - } - - $collection = isset($key) ? $this->pluck($key) : $this; - - $counts = new self; - - $collection->each(function ($value) use ($counts) { - $counts[$value] = isset($counts[$value]) ? $counts[$value] + 1 : 1; - }); - - $sorted = $counts->sort(); - - $highestValue = $sorted->last(); - - return $sorted->filter(function ($value) use ($highestValue) { - return $value == $highestValue; - })->sort()->keys()->all(); - } - - /** - * Collapse the collection of items into a single array. - * - * @return static - */ - public function collapse() - { - return new static(Arr::collapse($this->items)); - } - - /** - * Determine if an item exists in the collection. - * - * @param mixed $key - * @param mixed $operator - * @param mixed $value - * @return bool - */ - public function contains($key, $operator = null, $value = null) - { - if (func_num_args() == 1) { - if ($this->useAsCallable($key)) { - return ! is_null($this->first($key)); - } - - return in_array($key, $this->items); - } - - if (func_num_args() == 2) { - $value = $operator; - - $operator = '='; - } - - return $this->contains($this->operatorForWhere($key, $operator, $value)); - } - - /** - * Determine if an item exists in the collection using strict comparison. - * - * @param mixed $key - * @param mixed $value - * @return bool - */ - public function containsStrict($key, $value = null) - { - if (func_num_args() == 2) { - return $this->contains(function ($item) use ($key, $value) { - return data_get($item, $key) === $value; - }); - } - - if ($this->useAsCallable($key)) { - return ! is_null($this->first($key)); - } - - return in_array($key, $this->items, true); - } - - /** - * Get the items in the collection that are not present in the given items. - * - * @param mixed $items - * @return static - */ - public function diff($items) - { - return new static(array_diff($this->items, $this->getArrayableItems($items))); - } - - /** - * Get the items in the collection whose keys are not present in the given items. - * - * @param mixed $items - * @return static - */ - public function diffKeys($items) - { - return new static(array_diff_key($this->items, $this->getArrayableItems($items))); - } - - /** - * Execute a callback over each item. - * - * @param callable $callback - * @return $this - */ - public function each(callable $callback) - { - foreach ($this->items as $key => $item) { - if ($callback($item, $key) === false) { - break; - } - } - - return $this; - } - - /** - * Determine if all items in the collection pass the given test. - * - * @param string|callable $key - * @param mixed $operator - * @param mixed $value - * @return bool - */ - public function every($key, $operator = null, $value = null) - { - if (func_num_args() == 1) { - $callback = $this->valueRetriever($key); - - foreach ($this->items as $k => $v) { - if (! $callback($v, $k)) { - return false; - } - } - - return true; - } - - if (func_num_args() == 2) { - $value = $operator; - - $operator = '='; - } - - return $this->every($this->operatorForWhere($key, $operator, $value)); - } - - /** - * Get all items except for those with the specified keys. - * - * @param mixed $keys - * @return static - */ - public function except($keys) - { - $keys = is_array($keys) ? $keys : func_get_args(); - - return new static(Arr::except($this->items, $keys)); - } - - /** - * Run a filter over each of the items. - * - * @param callable|null $callback - * @return static - */ - public function filter(callable $callback = null) - { - if ($callback) { - return new static(Arr::where($this->items, $callback)); - } - - return new static(array_filter($this->items)); - } - - /** - * Filter items by the given key value pair. - * - * @param string $key - * @param mixed $operator - * @param mixed $value - * @return static - */ - public function where($key, $operator, $value = null) - { - if (func_num_args() == 2) { - $value = $operator; - - $operator = '='; - } - - return $this->filter($this->operatorForWhere($key, $operator, $value)); - } - - /** - * Get an operator checker callback. - * - * @param string $key - * @param string $operator - * @param mixed $value - * @return \Closure - */ - protected function operatorForWhere($key, $operator, $value) - { - return function ($item) use ($key, $operator, $value) { - $retrieved = data_get($item, $key); - - switch ($operator) { - default: - case '=': - case '==': return $retrieved == $value; - case '!=': - case '<>': return $retrieved != $value; - case '<': return $retrieved < $value; - case '>': return $retrieved > $value; - case '<=': return $retrieved <= $value; - case '>=': return $retrieved >= $value; - case '===': return $retrieved === $value; - case '!==': return $retrieved !== $value; - } - }; - } - - /** - * Filter items by the given key value pair using strict comparison. - * - * @param string $key - * @param mixed $value - * @return static - */ - public function whereStrict($key, $value) - { - return $this->where($key, '===', $value); - } - - /** - * Filter items by the given key value pair. - * - * @param string $key - * @param mixed $values - * @param bool $strict - * @return static - */ - public function whereIn($key, $values, $strict = false) - { - $values = $this->getArrayableItems($values); - - return $this->filter(function ($item) use ($key, $values, $strict) { - return in_array(data_get($item, $key), $values, $strict); - }); - } - - /** - * Filter items by the given key value pair using strict comparison. - * - * @param string $key - * @param mixed $values - * @return static - */ - public function whereInStrict($key, $values) - { - return $this->whereIn($key, $values, true); - } - - /** - * Get the first item from the collection. - * - * @param callable|null $callback - * @param mixed $default - * @return mixed - */ - public function first(callable $callback = null, $default = null) - { - return Arr::first($this->items, $callback, $default); - } - - /** - * Get a flattened array of the items in the collection. - * - * @param int $depth - * @return static - */ - public function flatten($depth = INF) - { - return new static(Arr::flatten($this->items, $depth)); - } - - /** - * Flip the items in the collection. - * - * @return static - */ - public function flip() - { - return new static(array_flip($this->items)); - } - - /** - * Remove an item from the collection by key. - * - * @param string|array $keys - * @return $this - */ - public function forget($keys) - { - foreach ((array) $keys as $key) { - $this->offsetUnset($key); - } - - return $this; - } - - /** - * Get an item from the collection by key. - * - * @param mixed $key - * @param mixed $default - * @return mixed - */ - public function get($key, $default = null) - { - if ($this->offsetExists($key)) { - return $this->items[$key]; - } - - return value($default); - } - - /** - * Group an associative array by a field or using a callback. - * - * @param callable|string $groupBy - * @param bool $preserveKeys - * @return static - */ - public function groupBy($groupBy, $preserveKeys = false) - { - $groupBy = $this->valueRetriever($groupBy); - - $results = []; - - foreach ($this->items as $key => $value) { - $groupKeys = $groupBy($value, $key); - - if (! is_array($groupKeys)) { - $groupKeys = [$groupKeys]; - } - - foreach ($groupKeys as $groupKey) { - if (! array_key_exists($groupKey, $results)) { - $results[$groupKey] = new static; - } - - $results[$groupKey]->offsetSet($preserveKeys ? $key : null, $value); - } - } - - return new static($results); - } - - /** - * Key an associative array by a field or using a callback. - * - * @param callable|string $keyBy - * @return static - */ - public function keyBy($keyBy) - { - $keyBy = $this->valueRetriever($keyBy); - - $results = []; - - foreach ($this->items as $key => $item) { - $resolvedKey = $keyBy($item, $key); - - if (is_object($resolvedKey)) { - $resolvedKey = (string) $resolvedKey; - } - - $results[$resolvedKey] = $item; - } - - return new static($results); - } - - /** - * Determine if an item exists in the collection by key. - * - * @param mixed $key - * @return bool - */ - public function has($key) - { - return $this->offsetExists($key); - } - - /** - * Concatenate values of a given key as a string. - * - * @param string $value - * @param string $glue - * @return string - */ - public function implode($value, $glue = null) - { - $first = $this->first(); - - if (is_array($first) || is_object($first)) { - return implode($glue, $this->pluck($value)->all()); - } - - return implode($value, $this->items); - } - - /** - * Intersect the collection with the given items. - * - * @param mixed $items - * @return static - */ - public function intersect($items) - { - return new static(array_intersect($this->items, $this->getArrayableItems($items))); - } - - /** - * Determine if the collection is empty or not. - * - * @return bool - */ - public function isEmpty() - { - return empty($this->items); - } - - /** - * Determine if the collection is not empty. - * - * @return bool - */ - public function isNotEmpty() - { - return ! $this->isEmpty(); - } - - /** - * Determine if the given value is callable, but not a string. - * - * @param mixed $value - * @return bool - */ - protected function useAsCallable($value) - { - return ! is_string($value) && is_callable($value); - } - - /** - * Get the keys of the collection items. - * - * @return static - */ - public function keys() - { - return new static(array_keys($this->items)); - } - - /** - * Get the last item from the collection. - * - * @param callable|null $callback - * @param mixed $default - * @return mixed - */ - public function last(callable $callback = null, $default = null) - { - return Arr::last($this->items, $callback, $default); - } - - /** - * Get the values of a given key. - * - * @param string|array $value - * @param string|null $key - * @return static - */ - public function pluck($value, $key = null) - { - return new static(Arr::pluck($this->items, $value, $key)); - } - - /** - * Run a map over each of the items. - * - * @param callable $callback - * @return static - */ - public function map(callable $callback) - { - $keys = array_keys($this->items); - - $items = array_map($callback, $this->items, $keys); - - return new static(array_combine($keys, $items)); - } - - /** - * Run an associative map over each of the items. - * - * The callback should return an associative array with a single key/value pair. - * - * @param callable $callback - * @return static - */ - public function mapWithKeys(callable $callback) - { - $result = []; - - foreach ($this->items as $key => $value) { - $assoc = $callback($value, $key); - - foreach ($assoc as $mapKey => $mapValue) { - $result[$mapKey] = $mapValue; - } - } - - return new static($result); - } - - /** - * Map a collection and flatten the result by a single level. - * - * @param callable $callback - * @return static - */ - public function flatMap(callable $callback) - { - return $this->map($callback)->collapse(); - } - - /** - * Get the max value of a given key. - * - * @param callable|string|null $callback - * @return mixed - */ - public function max($callback = null) - { - $callback = $this->valueRetriever($callback); - - return $this->filter(function ($value) { - return ! is_null($value); - })->reduce(function ($result, $item) use ($callback) { - $value = $callback($item); - - return is_null($result) || $value > $result ? $value : $result; - }); - } - - /** - * Merge the collection with the given items. - * - * @param mixed $items - * @return static - */ - public function merge($items) - { - return new static(array_merge($this->items, $this->getArrayableItems($items))); - } - - /** - * Create a collection by using this collection for keys and another for its values. - * - * @param mixed $values - * @return static - */ - public function combine($values) - { - return new static(array_combine($this->all(), $this->getArrayableItems($values))); - } - - /** - * Union the collection with the given items. - * - * @param mixed $items - * @return static - */ - public function union($items) - { - return new static($this->items + $this->getArrayableItems($items)); - } - - /** - * Get the min value of a given key. - * - * @param callable|string|null $callback - * @return mixed - */ - public function min($callback = null) - { - $callback = $this->valueRetriever($callback); - - return $this->filter(function ($value) { - return ! is_null($value); - })->reduce(function ($result, $item) use ($callback) { - $value = $callback($item); - - return is_null($result) || $value < $result ? $value : $result; - }); - } - - /** - * Create a new collection consisting of every n-th element. - * - * @param int $step - * @param int $offset - * @return static - */ - public function nth($step, $offset = 0) - { - $new = []; - - $position = 0; - - foreach ($this->items as $item) { - if ($position % $step === $offset) { - $new[] = $item; - } - - $position++; - } - - return new static($new); - } - - /** - * Get the items with the specified keys. - * - * @param mixed $keys - * @return static - */ - public function only($keys) - { - if (is_null($keys)) { - return new static($this->items); - } - - $keys = is_array($keys) ? $keys : func_get_args(); - - return new static(Arr::only($this->items, $keys)); - } - - /** - * "Paginate" the collection by slicing it into a smaller collection. - * - * @param int $page - * @param int $perPage - * @return static - */ - public function forPage($page, $perPage) - { - return $this->slice(($page - 1) * $perPage, $perPage); - } - - /** - * Partition the collection into two arrays using the given callback or key. - * - * @param callable|string $callback - * @return static - */ - public function partition($callback) - { - $partitions = [new static, new static]; - - $callback = $this->valueRetriever($callback); - - foreach ($this->items as $key => $item) { - $partitions[(int) ! $callback($item)][$key] = $item; - } - - return new static($partitions); - } - - /** - * Pass the collection to the given callback and return the result. - * - * @param callable $callback - * @return mixed - */ - public function pipe(callable $callback) - { - return $callback($this); - } - - /** - * Get and remove the last item from the collection. - * - * @return mixed - */ - public function pop() - { - return array_pop($this->items); - } - - /** - * Push an item onto the beginning of the collection. - * - * @param mixed $value - * @param mixed $key - * @return $this - */ - public function prepend($value, $key = null) - { - $this->items = Arr::prepend($this->items, $value, $key); - - return $this; - } - - /** - * Push an item onto the end of the collection. - * - * @param mixed $value - * @return $this - */ - public function push($value) - { - $this->offsetSet(null, $value); - - return $this; - } - - /** - * Get and remove an item from the collection. - * - * @param mixed $key - * @param mixed $default - * @return mixed - */ - public function pull($key, $default = null) - { - return Arr::pull($this->items, $key, $default); - } - - /** - * Put an item in the collection by key. - * - * @param mixed $key - * @param mixed $value - * @return $this - */ - public function put($key, $value) - { - $this->offsetSet($key, $value); - - return $this; - } - - /** - * Get one or more items randomly from the collection. - * - * @param int|null $amount - * @return mixed - * - * @throws \InvalidArgumentException - */ - public function random($amount = 1) - { - if ($amount > ($count = $this->count())) { - throw new InvalidArgumentException("You requested {$amount} items, but there are only {$count} items in the collection."); - } - - $keys = array_rand($this->items, $amount); - - if (count(func_get_args()) == 0) { - return $this->items[$keys]; - } - - $keys = array_wrap($keys); - - return new static(array_intersect_key($this->items, array_flip($keys))); - } - - /** - * Reduce the collection to a single value. - * - * @param callable $callback - * @param mixed $initial - * @return mixed - */ - public function reduce(callable $callback, $initial = null) - { - return array_reduce($this->items, $callback, $initial); - } - - /** - * Create a collection of all elements that do not pass a given truth test. - * - * @param callable|mixed $callback - * @return static - */ - public function reject($callback) - { - if ($this->useAsCallable($callback)) { - return $this->filter(function ($value, $key) use ($callback) { - return ! $callback($value, $key); - }); - } - - return $this->filter(function ($item) use ($callback) { - return $item != $callback; - }); - } - - /** - * Reverse items order. - * - * @return static - */ - public function reverse() - { - return new static(array_reverse($this->items, true)); - } - - /** - * Search the collection for a given value and return the corresponding key if successful. - * - * @param mixed $value - * @param bool $strict - * @return mixed - */ - public function search($value, $strict = false) - { - if (! $this->useAsCallable($value)) { - return array_search($value, $this->items, $strict); - } - - foreach ($this->items as $key => $item) { - if (call_user_func($value, $item, $key)) { - return $key; - } - } - - return false; - } - - /** - * Get and remove the first item from the collection. - * - * @return mixed - */ - public function shift() - { - return array_shift($this->items); - } - - /** - * Shuffle the items in the collection. - * - * @param int $seed - * @return static - */ - public function shuffle($seed = null) - { - $items = $this->items; - - if (is_null($seed)) { - shuffle($items); - } else { - srand($seed); - - usort($items, function () { - return rand(-1, 1); - }); - } - - return new static($items); - } - - /** - * Slice the underlying collection array. - * - * @param int $offset - * @param int $length - * @return static - */ - public function slice($offset, $length = null) - { - return new static(array_slice($this->items, $offset, $length, true)); - } - - /** - * Split a collection into a certain number of groups. - * - * @param int $numberOfGroups - * @return static - */ - public function split($numberOfGroups) - { - if ($this->isEmpty()) { - return new static; - } - - $groupSize = ceil($this->count() / $numberOfGroups); - - return $this->chunk($groupSize); - } - - /** - * Chunk the underlying collection array. - * - * @param int $size - * @return static - */ - public function chunk($size) - { - if ($size <= 0) { - return new static; - } - - $chunks = []; - - foreach (array_chunk($this->items, $size, true) as $chunk) { - $chunks[] = new static($chunk); - } - - return new static($chunks); - } - - /** - * Sort through each item with a callback. - * - * @param callable|null $callback - * @return static - */ - public function sort(callable $callback = null) - { - $items = $this->items; - - $callback - ? uasort($items, $callback) - : asort($items); - - return new static($items); - } - - /** - * Sort the collection using the given callback. - * - * @param callable|string $callback - * @param int $options - * @param bool $descending - * @return static - */ - public function sortBy($callback, $options = SORT_REGULAR, $descending = false) - { - $results = []; - - $callback = $this->valueRetriever($callback); - - // First we will loop through the items and get the comparator from a callback - // function which we were given. Then, we will sort the returned values and - // and grab the corresponding values for the sorted keys from this array. - foreach ($this->items as $key => $value) { - $results[$key] = $callback($value, $key); - } - - $descending ? arsort($results, $options) - : asort($results, $options); - - // Once we have sorted all of the keys in the array, we will loop through them - // and grab the corresponding model so we can set the underlying items list - // to the sorted version. Then we'll just return the collection instance. - foreach (array_keys($results) as $key) { - $results[$key] = $this->items[$key]; - } - - return new static($results); - } - - /** - * Sort the collection in descending order using the given callback. - * - * @param callable|string $callback - * @param int $options - * @return static - */ - public function sortByDesc($callback, $options = SORT_REGULAR) - { - return $this->sortBy($callback, $options, true); - } - - /** - * Splice a portion of the underlying collection array. - * - * @param int $offset - * @param int|null $length - * @param mixed $replacement - * @return static - */ - public function splice($offset, $length = null, $replacement = []) - { - if (func_num_args() == 1) { - return new static(array_splice($this->items, $offset)); - } - - return new static(array_splice($this->items, $offset, $length, $replacement)); - } - - /** - * Get the sum of the given values. - * - * @param callable|string|null $callback - * @return mixed - */ - public function sum($callback = null) - { - if (is_null($callback)) { - return array_sum($this->items); - } - - $callback = $this->valueRetriever($callback); - - return $this->reduce(function ($result, $item) use ($callback) { - return $result + $callback($item); - }, 0); - } - - /** - * Take the first or last {$limit} items. - * - * @param int $limit - * @return static - */ - public function take($limit) - { - if ($limit < 0) { - return $this->slice($limit, abs($limit)); - } - - return $this->slice(0, $limit); - } - - /** - * Transform each item in the collection using a callback. - * - * @param callable $callback - * @return $this - */ - public function transform(callable $callback) - { - $this->items = $this->map($callback)->all(); - - return $this; - } - - /** - * Return only unique items from the collection array. - * - * @param string|callable|null $key - * @param bool $strict - * @return static - */ - public function unique($key = null, $strict = false) - { - if (is_null($key)) { - return new static(array_unique($this->items, SORT_REGULAR)); - } - - $callback = $this->valueRetriever($key); - - $exists = []; - - return $this->reject(function ($item, $key) use ($callback, $strict, &$exists) { - if (in_array($id = $callback($item, $key), $exists, $strict)) { - return true; - } - - $exists[] = $id; - }); - } - - /** - * Return only unique items from the collection array using strict comparison. - * - * @param string|callable|null $key - * @return static - */ - public function uniqueStrict($key = null) - { - return $this->unique($key, true); - } - - /** - * Reset the keys on the underlying array. - * - * @return static - */ - public function values() - { - return new static(array_values($this->items)); - } - - /** - * Get a value retrieving callback. - * - * @param string $value - * @return callable - */ - protected function valueRetriever($value) - { - if ($this->useAsCallable($value)) { - return $value; - } - - return function ($item) use ($value) { - return data_get($item, $value); - }; - } - - /** - * Zip the collection together with one or more arrays. - * - * e.g. new Collection([1, 2, 3])->zip([4, 5, 6]); - * => [[1, 4], [2, 5], [3, 6]] - * - * @param mixed ...$items - * @return static - */ - public function zip($items) - { - $arrayableItems = array_map(function ($items) { - return $this->getArrayableItems($items); - }, func_get_args()); - - $params = array_merge([function () { - return new static(func_get_args()); - }, $this->items], $arrayableItems); - - return new static(call_user_func_array('array_map', $params)); - } - - /** - * Get the collection of items as a plain array. - * - * @return array - */ - public function toArray() - { - return array_map(function ($value) { - return $value instanceof Arrayable ? $value->toArray() : $value; - }, $this->items); - } - - /** - * Convert the object into something JSON serializable. - * - * @return array - */ - public function jsonSerialize() - { - return array_map(function ($value) { - if ($value instanceof JsonSerializable) { - return $value->jsonSerialize(); - } elseif ($value instanceof Jsonable) { - return json_decode($value->toJson(), true); - } elseif ($value instanceof Arrayable) { - return $value->toArray(); - } else { - return $value; - } - }, $this->items); - } - - /** - * Get the collection of items as JSON. - * - * @param int $options - * @return string - */ - public function toJson($options = 0) - { - return json_encode($this->jsonSerialize(), $options); - } - - /** - * Get an iterator for the items. - * - * @return \ArrayIterator - */ - public function getIterator() - { - return new ArrayIterator($this->items); - } - - /** - * Get a CachingIterator instance. - * - * @param int $flags - * @return \CachingIterator - */ - public function getCachingIterator($flags = CachingIterator::CALL_TOSTRING) - { - return new CachingIterator($this->getIterator(), $flags); - } - - /** - * Count the number of items in the collection. - * - * @return int - */ - public function count() - { - return count($this->items); - } - - /** - * Get a base Support collection instance from this collection. - * - * @return \Illuminate\Support\Collection - */ - public function toBase() - { - return new self($this); - } - - /** - * Determine if an item exists at an offset. - * - * @param mixed $key - * @return bool - */ - public function offsetExists($key) - { - return array_key_exists($key, $this->items); - } - - /** - * Get an item at a given offset. - * - * @param mixed $key - * @return mixed - */ - public function offsetGet($key) - { - return $this->items[$key]; - } - - /** - * Set the item at a given offset. - * - * @param mixed $key - * @param mixed $value - * @return void - */ - public function offsetSet($key, $value) - { - if (is_null($key)) { - $this->items[] = $value; - } else { - $this->items[$key] = $value; - } - } - - /** - * Unset the item at a given offset. - * - * @param string $key - * @return void - */ - public function offsetUnset($key) - { - unset($this->items[$key]); - } - - /** - * Convert the collection to its string representation. - * - * @return string - */ - public function __toString() - { - return $this->toJson(); - } - - /** - * Results array of items from Collection or Arrayable. - * - * @param mixed $items - * @return array - */ - protected function getArrayableItems($items) - { - if (is_array($items)) { - return $items; - } elseif ($items instanceof self) { - return $items->all(); - } elseif ($items instanceof Arrayable) { - return $items->toArray(); - } elseif ($items instanceof Jsonable) { - return json_decode($items->toJson(), true); - } elseif ($items instanceof JsonSerializable) { - return $items->jsonSerialize(); - } elseif ($items instanceof Traversable) { - return iterator_to_array($items); - } - - return (array) $items; - } - - /** - * Add a method to the list of proxied methods. - * - * @param string $method - * @return void - */ - public static function proxy($method) - { - static::$proxies[] = $method; - } - - /** - * Dynamically access collection proxies. - * - * @param string $key - * @return mixed - * - * @throws \Exception - */ - public function __get($key) - { - if (! in_array($key, static::$proxies)) { - throw new Exception("Property [{$key}] does not exist on this collection instance."); - } - - return new HigherOrderCollectionProxy($this, $key); - } -} diff --git a/github/vendor/illuminate/support/Composer.php b/github/vendor/illuminate/support/Composer.php deleted file mode 100644 index b0eaa92..0000000 --- a/github/vendor/illuminate/support/Composer.php +++ /dev/null @@ -1,100 +0,0 @@ -files = $files; - $this->workingPath = $workingPath; - } - - /** - * Regenerate the Composer autoloader files. - * - * @param string $extra - * @return void - */ - public function dumpAutoloads($extra = '') - { - $process = $this->getProcess(); - - $process->setCommandLine(trim($this->findComposer().' dump-autoload '.$extra)); - - $process->run(); - } - - /** - * Regenerate the optimized Composer autoloader files. - * - * @return void - */ - public function dumpOptimized() - { - $this->dumpAutoloads('--optimize'); - } - - /** - * Get the composer command for the environment. - * - * @return string - */ - protected function findComposer() - { - if ($this->files->exists($this->workingPath.'/composer.phar')) { - return ProcessUtils::escapeArgument((new PhpExecutableFinder)->find(false)).' composer.phar'; - } - - return 'composer'; - } - - /** - * Get a new Symfony process instance. - * - * @return \Symfony\Component\Process\Process - */ - protected function getProcess() - { - return (new Process('', $this->workingPath))->setTimeout(null); - } - - /** - * Set the working path used by the class. - * - * @param string $path - * @return $this - */ - public function setWorkingPath($path) - { - $this->workingPath = realpath($path); - - return $this; - } -} diff --git a/github/vendor/illuminate/support/Debug/Dumper.php b/github/vendor/illuminate/support/Debug/Dumper.php deleted file mode 100644 index 0c84a8b..0000000 --- a/github/vendor/illuminate/support/Debug/Dumper.php +++ /dev/null @@ -1,26 +0,0 @@ -dump((new VarCloner)->cloneVar($value)); - } else { - var_dump($value); - } - } -} diff --git a/github/vendor/illuminate/support/Debug/HtmlDumper.php b/github/vendor/illuminate/support/Debug/HtmlDumper.php deleted file mode 100644 index 5825ac8..0000000 --- a/github/vendor/illuminate/support/Debug/HtmlDumper.php +++ /dev/null @@ -1,29 +0,0 @@ - 'background-color:#fff; color:#222; line-height:1.2em; font-weight:normal; font:12px Monaco, Consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:100000', - 'num' => 'color:#a71d5d', - 'const' => 'color:#795da3', - 'str' => 'color:#df5000', - 'cchr' => 'color:#222', - 'note' => 'color:#a71d5d', - 'ref' => 'color:#a0a0a0', - 'public' => 'color:#795da3', - 'protected' => 'color:#795da3', - 'private' => 'color:#795da3', - 'meta' => 'color:#b729d9', - 'key' => 'color:#df5000', - 'index' => 'color:#a71d5d', - ]; -} diff --git a/github/vendor/illuminate/support/Facades/App.php b/github/vendor/illuminate/support/Facades/App.php deleted file mode 100755 index 0e9e637..0000000 --- a/github/vendor/illuminate/support/Facades/App.php +++ /dev/null @@ -1,31 +0,0 @@ -make('router')->auth(); - } -} diff --git a/github/vendor/illuminate/support/Facades/Blade.php b/github/vendor/illuminate/support/Facades/Blade.php deleted file mode 100755 index b016a46..0000000 --- a/github/vendor/illuminate/support/Facades/Blade.php +++ /dev/null @@ -1,19 +0,0 @@ -getEngineResolver()->resolve('blade')->getCompiler(); - } -} diff --git a/github/vendor/illuminate/support/Facades/Broadcast.php b/github/vendor/illuminate/support/Facades/Broadcast.php deleted file mode 100644 index 81af932..0000000 --- a/github/vendor/illuminate/support/Facades/Broadcast.php +++ /dev/null @@ -1,21 +0,0 @@ -cookie($key, null)); - } - - /** - * Retrieve a cookie from the request. - * - * @param string $key - * @param mixed $default - * @return string - */ - public static function get($key = null, $default = null) - { - return static::$app['request']->cookie($key, $default); - } - - /** - * Get the registered name of the component. - * - * @return string - */ - protected static function getFacadeAccessor() - { - return 'cookie'; - } -} diff --git a/github/vendor/illuminate/support/Facades/Crypt.php b/github/vendor/illuminate/support/Facades/Crypt.php deleted file mode 100755 index 0eef08d..0000000 --- a/github/vendor/illuminate/support/Facades/Crypt.php +++ /dev/null @@ -1,19 +0,0 @@ -shouldReceive(...func_get_args()); - } - - /** - * Create a fresh mock instance for the given class. - * - * @return \Mockery\Expectation - */ - protected static function createFreshMockInstance() - { - return tap(static::createMock(), function ($mock) { - static::swap($mock); - - $mock->shouldAllowMockingProtectedMethods(); - }); - } - - /** - * Create a fresh mock instance for the given class. - * - * @return \Mockery\MockInterface - */ - protected static function createMock() - { - $class = static::getMockableClass(); - - return $class ? Mockery::mock($class) : Mockery::mock(); - } - - /** - * Determines whether a mock is set as the instance of the facade. - * - * @return bool - */ - protected static function isMock() - { - $name = static::getFacadeAccessor(); - - return isset(static::$resolvedInstance[$name]) && - static::$resolvedInstance[$name] instanceof MockInterface; - } - - /** - * Get the mockable class for the bound instance. - * - * @return string|null - */ - protected static function getMockableClass() - { - if ($root = static::getFacadeRoot()) { - return get_class($root); - } - } - - /** - * Hotswap the underlying instance behind the facade. - * - * @param mixed $instance - * @return void - */ - public static function swap($instance) - { - static::$resolvedInstance[static::getFacadeAccessor()] = $instance; - - if (isset(static::$app)) { - static::$app->instance(static::getFacadeAccessor(), $instance); - } - } - - /** - * Get the root object behind the facade. - * - * @return mixed - */ - public static function getFacadeRoot() - { - return static::resolveFacadeInstance(static::getFacadeAccessor()); - } - - /** - * Get the registered name of the component. - * - * @return string - * - * @throws \RuntimeException - */ - protected static function getFacadeAccessor() - { - throw new RuntimeException('Facade does not implement getFacadeAccessor method.'); - } - - /** - * Resolve the facade root instance from the container. - * - * @param string|object $name - * @return mixed - */ - protected static function resolveFacadeInstance($name) - { - if (is_object($name)) { - return $name; - } - - if (isset(static::$resolvedInstance[$name])) { - return static::$resolvedInstance[$name]; - } - - return static::$resolvedInstance[$name] = static::$app[$name]; - } - - /** - * Clear a resolved facade instance. - * - * @param string $name - * @return void - */ - public static function clearResolvedInstance($name) - { - unset(static::$resolvedInstance[$name]); - } - - /** - * Clear all of the resolved instances. - * - * @return void - */ - public static function clearResolvedInstances() - { - static::$resolvedInstance = []; - } - - /** - * Get the application instance behind the facade. - * - * @return \Illuminate\Contracts\Foundation\Application - */ - public static function getFacadeApplication() - { - return static::$app; - } - - /** - * Set the application instance. - * - * @param \Illuminate\Contracts\Foundation\Application $app - * @return void - */ - public static function setFacadeApplication($app) - { - static::$app = $app; - } - - /** - * Handle dynamic, static calls to the object. - * - * @param string $method - * @param array $args - * @return mixed - * - * @throws \RuntimeException - */ - public static function __callStatic($method, $args) - { - $instance = static::getFacadeRoot(); - - if (! $instance) { - throw new RuntimeException('A facade root has not been set.'); - } - - return $instance->$method(...$args); - } -} diff --git a/github/vendor/illuminate/support/Facades/File.php b/github/vendor/illuminate/support/Facades/File.php deleted file mode 100755 index 0f81bf6..0000000 --- a/github/vendor/illuminate/support/Facades/File.php +++ /dev/null @@ -1,19 +0,0 @@ -input($key, $default); - } - - /** - * Get the registered name of the component. - * - * @return string - */ - protected static function getFacadeAccessor() - { - return 'request'; - } -} diff --git a/github/vendor/illuminate/support/Facades/Lang.php b/github/vendor/illuminate/support/Facades/Lang.php deleted file mode 100755 index e5862b9..0000000 --- a/github/vendor/illuminate/support/Facades/Lang.php +++ /dev/null @@ -1,19 +0,0 @@ -connection($name)->getSchemaBuilder(); - } - - /** - * Get a schema builder instance for the default connection. - * - * @return \Illuminate\Database\Schema\Builder - */ - protected static function getFacadeAccessor() - { - return static::$app['db']->connection()->getSchemaBuilder(); - } -} diff --git a/github/vendor/illuminate/support/Facades/Session.php b/github/vendor/illuminate/support/Facades/Session.php deleted file mode 100755 index bc9b5fd..0000000 --- a/github/vendor/illuminate/support/Facades/Session.php +++ /dev/null @@ -1,20 +0,0 @@ - $value) { - $this->attributes[$key] = $value; - } - } - - /** - * Get an attribute from the container. - * - * @param string $key - * @param mixed $default - * @return mixed - */ - public function get($key, $default = null) - { - if (array_key_exists($key, $this->attributes)) { - return $this->attributes[$key]; - } - - return value($default); - } - - /** - * Get the attributes from the container. - * - * @return array - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Convert the Fluent instance to an array. - * - * @return array - */ - public function toArray() - { - return $this->attributes; - } - - /** - * Convert the object into something JSON serializable. - * - * @return array - */ - public function jsonSerialize() - { - return $this->toArray(); - } - - /** - * Convert the Fluent instance to JSON. - * - * @param int $options - * @return string - */ - public function toJson($options = 0) - { - return json_encode($this->jsonSerialize(), $options); - } - - /** - * Determine if the given offset exists. - * - * @param string $offset - * @return bool - */ - public function offsetExists($offset) - { - return isset($this->{$offset}); - } - - /** - * Get the value for a given offset. - * - * @param string $offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->{$offset}; - } - - /** - * Set the value at the given offset. - * - * @param string $offset - * @param mixed $value - * @return void - */ - public function offsetSet($offset, $value) - { - $this->{$offset} = $value; - } - - /** - * Unset the value at the given offset. - * - * @param string $offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->{$offset}); - } - - /** - * Handle dynamic calls to the container to set attributes. - * - * @param string $method - * @param array $parameters - * @return $this - */ - public function __call($method, $parameters) - { - $this->attributes[$method] = count($parameters) > 0 ? $parameters[0] : true; - - return $this; - } - - /** - * Dynamically retrieve the value of an attribute. - * - * @param string $key - * @return mixed - */ - public function __get($key) - { - return $this->get($key); - } - - /** - * Dynamically set the value of an attribute. - * - * @param string $key - * @param mixed $value - * @return void - */ - public function __set($key, $value) - { - $this->attributes[$key] = $value; - } - - /** - * Dynamically check if an attribute is set. - * - * @param string $key - * @return bool - */ - public function __isset($key) - { - return isset($this->attributes[$key]); - } - - /** - * Dynamically unset an attribute. - * - * @param string $key - * @return void - */ - public function __unset($key) - { - unset($this->attributes[$key]); - } -} diff --git a/github/vendor/illuminate/support/HigherOrderCollectionProxy.php b/github/vendor/illuminate/support/HigherOrderCollectionProxy.php deleted file mode 100644 index f902431..0000000 --- a/github/vendor/illuminate/support/HigherOrderCollectionProxy.php +++ /dev/null @@ -1,60 +0,0 @@ -method = $method; - $this->collection = $collection; - } - - /** - * Proxy accessing an attribute onto the collection items. - * - * @param string $key - * @return mixed - */ - public function __get($key) - { - return $this->collection->{$this->method}(function ($value) use ($key) { - return is_array($value) ? $value[$key] : $value->{$key}; - }); - } - - /** - * Proxy a method call onto the collection items. - * - * @param string $method - * @param array $parameters - * @return mixed - */ - public function __call($method, $parameters) - { - return $this->collection->{$this->method}(function ($value) use ($method, $parameters) { - return $value->{$method}(...$parameters); - }); - } -} diff --git a/github/vendor/illuminate/support/HtmlString.php b/github/vendor/illuminate/support/HtmlString.php deleted file mode 100644 index c13adfd..0000000 --- a/github/vendor/illuminate/support/HtmlString.php +++ /dev/null @@ -1,46 +0,0 @@ -html = $html; - } - - /** - * Get the HTML string. - * - * @return string - */ - public function toHtml() - { - return $this->html; - } - - /** - * Get the HTML string. - * - * @return string - */ - public function __toString() - { - return $this->toHtml(); - } -} diff --git a/github/vendor/illuminate/support/Manager.php b/github/vendor/illuminate/support/Manager.php deleted file mode 100755 index 442098f..0000000 --- a/github/vendor/illuminate/support/Manager.php +++ /dev/null @@ -1,139 +0,0 @@ -app = $app; - } - - /** - * Get the default driver name. - * - * @return string - */ - abstract public function getDefaultDriver(); - - /** - * Get a driver instance. - * - * @param string $driver - * @return mixed - */ - public function driver($driver = null) - { - $driver = $driver ?: $this->getDefaultDriver(); - - // If the given driver has not been created before, we will create the instances - // here and cache it so we can return it next time very quickly. If there is - // already a driver created by this name, we'll just return that instance. - if (! isset($this->drivers[$driver])) { - $this->drivers[$driver] = $this->createDriver($driver); - } - - return $this->drivers[$driver]; - } - - /** - * Create a new driver instance. - * - * @param string $driver - * @return mixed - * - * @throws \InvalidArgumentException - */ - protected function createDriver($driver) - { - $method = 'create'.Str::studly($driver).'Driver'; - - // We'll check to see if a creator method exists for the given driver. If not we - // will check for a custom driver creator, which allows developers to create - // drivers using their own customized driver creator Closure to create it. - if (isset($this->customCreators[$driver])) { - return $this->callCustomCreator($driver); - } elseif (method_exists($this, $method)) { - return $this->$method(); - } - - throw new InvalidArgumentException("Driver [$driver] not supported."); - } - - /** - * Call a custom driver creator. - * - * @param string $driver - * @return mixed - */ - protected function callCustomCreator($driver) - { - return $this->customCreators[$driver]($this->app); - } - - /** - * Register a custom driver creator Closure. - * - * @param string $driver - * @param \Closure $callback - * @return $this - */ - public function extend($driver, Closure $callback) - { - $this->customCreators[$driver] = $callback; - - return $this; - } - - /** - * Get all of the created "drivers". - * - * @return array - */ - public function getDrivers() - { - return $this->drivers; - } - - /** - * Dynamically call the default driver instance. - * - * @param string $method - * @param array $parameters - * @return mixed - */ - public function __call($method, $parameters) - { - return $this->driver()->$method(...$parameters); - } -} diff --git a/github/vendor/illuminate/support/MessageBag.php b/github/vendor/illuminate/support/MessageBag.php deleted file mode 100755 index 835870f..0000000 --- a/github/vendor/illuminate/support/MessageBag.php +++ /dev/null @@ -1,387 +0,0 @@ - $value) { - $this->messages[$key] = (array) $value; - } - } - - /** - * Get the keys present in the message bag. - * - * @return array - */ - public function keys() - { - return array_keys($this->messages); - } - - /** - * Add a message to the bag. - * - * @param string $key - * @param string $message - * @return $this - */ - public function add($key, $message) - { - if ($this->isUnique($key, $message)) { - $this->messages[$key][] = $message; - } - - return $this; - } - - /** - * Determine if a key and message combination already exists. - * - * @param string $key - * @param string $message - * @return bool - */ - protected function isUnique($key, $message) - { - $messages = (array) $this->messages; - - return ! isset($messages[$key]) || ! in_array($message, $messages[$key]); - } - - /** - * Merge a new array of messages into the bag. - * - * @param \Illuminate\Contracts\Support\MessageProvider|array $messages - * @return $this - */ - public function merge($messages) - { - if ($messages instanceof MessageProvider) { - $messages = $messages->getMessageBag()->getMessages(); - } - - $this->messages = array_merge_recursive($this->messages, $messages); - - return $this; - } - - /** - * Determine if messages exist for all of the given keys. - * - * @param array|string $key - * @return bool - */ - public function has($key) - { - if (is_null($key)) { - return $this->any(); - } - - $keys = is_array($key) ? $key : func_get_args(); - - foreach ($keys as $key) { - if ($this->first($key) === '') { - return false; - } - } - - return true; - } - - /** - * Determine if messages exist for any of the given keys. - * - * @param array $keys - * @return bool - */ - public function hasAny($keys = []) - { - foreach ($keys as $key) { - if ($this->has($key)) { - return true; - } - } - - return false; - } - - /** - * Get the first message from the bag for a given key. - * - * @param string $key - * @param string $format - * @return string - */ - public function first($key = null, $format = null) - { - $messages = is_null($key) ? $this->all($format) : $this->get($key, $format); - - $firstMessage = Arr::first($messages, null, ''); - - return is_array($firstMessage) ? Arr::first($firstMessage) : $firstMessage; - } - - /** - * Get all of the messages from the bag for a given key. - * - * @param string $key - * @param string $format - * @return array - */ - public function get($key, $format = null) - { - // If the message exists in the container, we will transform it and return - // the message. Otherwise, we'll check if the key is implicit & collect - // all the messages that match a given key and output it as an array. - if (array_key_exists($key, $this->messages)) { - return $this->transform( - $this->messages[$key], $this->checkFormat($format), $key - ); - } - - if (Str::contains($key, '*')) { - return $this->getMessagesForWildcardKey($key, $format); - } - - return []; - } - - /** - * Get the messages for a wildcard key. - * - * @param string $key - * @param string|null $format - * @return array - */ - protected function getMessagesForWildcardKey($key, $format) - { - return collect($this->messages) - ->filter(function ($messages, $messageKey) use ($key) { - return Str::is($key, $messageKey); - }) - ->map(function ($messages, $messageKey) use ($format) { - return $this->transform( - $messages, $this->checkFormat($format), $messageKey - ); - })->all(); - } - - /** - * Get all of the messages for every key in the bag. - * - * @param string $format - * @return array - */ - public function all($format = null) - { - $format = $this->checkFormat($format); - - $all = []; - - foreach ($this->messages as $key => $messages) { - $all = array_merge($all, $this->transform($messages, $format, $key)); - } - - return $all; - } - - /** - * Get all of the unique messages for every key in the bag. - * - * @param string $format - * @return array - */ - public function unique($format = null) - { - return array_unique($this->all($format)); - } - - /** - * Format an array of messages. - * - * @param array $messages - * @param string $format - * @param string $messageKey - * @return array - */ - protected function transform($messages, $format, $messageKey) - { - $messages = (array) $messages; - - // We will simply spin through the given messages and transform each one - // replacing the :message place holder with the real message allowing - // the messages to be easily formatted to each developer's desires. - $replace = [':message', ':key']; - - foreach ($messages as &$message) { - $message = str_replace($replace, [$message, $messageKey], $format); - } - - return $messages; - } - - /** - * Get the appropriate format based on the given format. - * - * @param string $format - * @return string - */ - protected function checkFormat($format) - { - return $format ?: $this->format; - } - - /** - * Get the raw messages in the container. - * - * @return array - */ - public function messages() - { - return $this->messages; - } - - /** - * Get the raw messages in the container. - * - * @return array - */ - public function getMessages() - { - return $this->messages(); - } - - /** - * Get the messages for the instance. - * - * @return \Illuminate\Support\MessageBag - */ - public function getMessageBag() - { - return $this; - } - - /** - * Get the default message format. - * - * @return string - */ - public function getFormat() - { - return $this->format; - } - - /** - * Set the default message format. - * - * @param string $format - * @return \Illuminate\Support\MessageBag - */ - public function setFormat($format = ':message') - { - $this->format = $format; - - return $this; - } - - /** - * Determine if the message bag has any messages. - * - * @return bool - */ - public function isEmpty() - { - return ! $this->any(); - } - - /** - * Determine if the message bag has any messages. - * - * @return bool - */ - public function any() - { - return $this->count() > 0; - } - - /** - * Get the number of messages in the container. - * - * @return int - */ - public function count() - { - return count($this->messages, COUNT_RECURSIVE) - count($this->messages); - } - - /** - * Get the instance as an array. - * - * @return array - */ - public function toArray() - { - return $this->getMessages(); - } - - /** - * Convert the object into something JSON serializable. - * - * @return array - */ - public function jsonSerialize() - { - return $this->toArray(); - } - - /** - * Convert the object to its JSON representation. - * - * @param int $options - * @return string - */ - public function toJson($options = 0) - { - return json_encode($this->jsonSerialize(), $options); - } - - /** - * Convert the message bag to its string representation. - * - * @return string - */ - public function __toString() - { - return $this->toJson(); - } -} diff --git a/github/vendor/illuminate/support/NamespacedItemResolver.php b/github/vendor/illuminate/support/NamespacedItemResolver.php deleted file mode 100755 index cdf6cf9..0000000 --- a/github/vendor/illuminate/support/NamespacedItemResolver.php +++ /dev/null @@ -1,106 +0,0 @@ -parsed[$key])) { - return $this->parsed[$key]; - } - - // If the key does not contain a double colon, it means the key is not in a - // namespace, and is just a regular configuration item. Namespaces are a - // tool for organizing configuration items for things such as modules. - if (strpos($key, '::') === false) { - $segments = explode('.', $key); - - $parsed = $this->parseBasicSegments($segments); - } else { - $parsed = $this->parseNamespacedSegments($key); - } - - // Once we have the parsed array of this key's elements, such as its groups - // and namespace, we will cache each array inside a simple list that has - // the key and the parsed array for quick look-ups for later requests. - return $this->parsed[$key] = $parsed; - } - - /** - * Parse an array of basic segments. - * - * @param array $segments - * @return array - */ - protected function parseBasicSegments(array $segments) - { - // The first segment in a basic array will always be the group, so we can go - // ahead and grab that segment. If there is only one total segment we are - // just pulling an entire group out of the array and not a single item. - $group = $segments[0]; - - if (count($segments) == 1) { - return [null, $group, null]; - } - - // If there is more than one segment in this group, it means we are pulling - // a specific item out of a group and will need to return this item name - // as well as the group so we know which item to pull from the arrays. - else { - $item = implode('.', array_slice($segments, 1)); - - return [null, $group, $item]; - } - } - - /** - * Parse an array of namespaced segments. - * - * @param string $key - * @return array - */ - protected function parseNamespacedSegments($key) - { - list($namespace, $item) = explode('::', $key); - - // First we'll just explode the first segment to get the namespace and group - // since the item should be in the remaining segments. Once we have these - // two pieces of data we can proceed with parsing out the item's value. - $itemSegments = explode('.', $item); - - $groupAndItem = array_slice( - $this->parseBasicSegments($itemSegments), 1 - ); - - return array_merge([$namespace], $groupAndItem); - } - - /** - * Set the parsed value of a key. - * - * @param string $key - * @param array $parsed - * @return void - */ - public function setParsedKey($key, $parsed) - { - $this->parsed[$key] = $parsed; - } -} diff --git a/github/vendor/illuminate/support/Pluralizer.php b/github/vendor/illuminate/support/Pluralizer.php deleted file mode 100755 index fc580c9..0000000 --- a/github/vendor/illuminate/support/Pluralizer.php +++ /dev/null @@ -1,113 +0,0 @@ -app = $app; - } - - /** - * Merge the given configuration with the existing configuration. - * - * @param string $path - * @param string $key - * @return void - */ - protected function mergeConfigFrom($path, $key) - { - $config = $this->app['config']->get($key, []); - - $this->app['config']->set($key, array_merge(require $path, $config)); - } - - /** - * Load the given routes file if routes are not already cached. - * - * @param string $path - * @return void - */ - protected function loadRoutesFrom($path) - { - if (! $this->app->routesAreCached()) { - require $path; - } - } - - /** - * Register a view file namespace. - * - * @param string $path - * @param string $namespace - * @return void - */ - protected function loadViewsFrom($path, $namespace) - { - if (is_dir($appPath = $this->app->resourcePath().'/views/vendor/'.$namespace)) { - $this->app['view']->addNamespace($namespace, $appPath); - } - - $this->app['view']->addNamespace($namespace, $path); - } - - /** - * Register a translation file namespace. - * - * @param string $path - * @param string $namespace - * @return void - */ - protected function loadTranslationsFrom($path, $namespace) - { - $this->app['translator']->addNamespace($namespace, $path); - } - - /** - * Register a database migration path. - * - * @param array|string $paths - * @return void - */ - protected function loadMigrationsFrom($paths) - { - $this->app->afterResolving('migrator', function ($migrator) use ($paths) { - foreach ((array) $paths as $path) { - $migrator->path($path); - } - }); - } - - /** - * Register paths to be published by the publish command. - * - * @param array $paths - * @param string $group - * @return void - */ - protected function publishes(array $paths, $group = null) - { - $this->ensurePublishArrayInitialized($class = static::class); - - static::$publishes[$class] = array_merge(static::$publishes[$class], $paths); - - if ($group) { - $this->addPublishGroup($group, $paths); - } - } - - /** - * Ensure the publish array for the service provider is initialized. - * - * @param string $class - * @return void - */ - protected function ensurePublishArrayInitialized($class) - { - if (! array_key_exists($class, static::$publishes)) { - static::$publishes[$class] = []; - } - } - - /** - * Add a publish group / tag to the service provider. - * - * @param string $group - * @param array $paths - * @return void - */ - protected function addPublishGroup($group, $paths) - { - if (! array_key_exists($group, static::$publishGroups)) { - static::$publishGroups[$group] = []; - } - - static::$publishGroups[$group] = array_merge( - static::$publishGroups[$group], $paths - ); - } - - /** - * Get the paths to publish. - * - * @param string $provider - * @param string $group - * @return array - */ - public static function pathsToPublish($provider = null, $group = null) - { - if (! is_null($paths = static::pathsForProviderOrGroup($provider, $group))) { - return $paths; - } - - return collect(static::$publishes)->reduce(function ($paths, $p) { - return array_merge($paths, $p); - }, []); - } - - /** - * Get the paths for the provider or group (or both). - * - * @param string|null $provider - * @param string|null $group - * @return array - */ - protected static function pathsForProviderOrGroup($provider, $group) - { - if ($provider && $group) { - return static::pathsForProviderAndGroup($provider, $group); - } elseif ($group && array_key_exists($group, static::$publishGroups)) { - return static::$publishGroups[$group]; - } elseif ($provider && array_key_exists($provider, static::$publishes)) { - return static::$publishes[$provider]; - } elseif ($group || $provider) { - return []; - } - } - - /** - * Get the paths for the provdider and group. - * - * @param string $provider - * @param string $group - * @return array - */ - protected static function pathsForProviderAndGroup($provider, $group) - { - if (! empty(static::$publishes[$provider]) && ! empty(static::$publishGroups[$group])) { - return array_intersect_key(static::$publishes[$provider], static::$publishGroups[$group]); - } - - return []; - } - - /** - * Register the package's custom Artisan commands. - * - * @param array|mixed $commands - * @return void - */ - public function commands($commands) - { - $commands = is_array($commands) ? $commands : func_get_args(); - - Artisan::starting(function ($artisan) use ($commands) { - $artisan->resolveCommands($commands); - }); - } - - /** - * Get the services provided by the provider. - * - * @return array - */ - public function provides() - { - return []; - } - - /** - * Get the events that trigger this service provider to register. - * - * @return array - */ - public function when() - { - return []; - } - - /** - * Determine if the provider is deferred. - * - * @return bool - */ - public function isDeferred() - { - return $this->defer; - } - - /** - * Get a list of files that should be compiled for the package. - * - * @deprecated - * - * @return array - */ - public static function compiles() - { - return []; - } -} diff --git a/github/vendor/illuminate/support/Str.php b/github/vendor/illuminate/support/Str.php deleted file mode 100644 index 0ad5723..0000000 --- a/github/vendor/illuminate/support/Str.php +++ /dev/null @@ -1,590 +0,0 @@ - $val) { - $value = str_replace($val, $key, $value); - } - - return preg_replace('/[^\x20-\x7E]/u', '', $value); - } - - /** - * Convert a value to camel case. - * - * @param string $value - * @return string - */ - public static function camel($value) - { - if (isset(static::$camelCache[$value])) { - return static::$camelCache[$value]; - } - - return static::$camelCache[$value] = lcfirst(static::studly($value)); - } - - /** - * Determine if a given string contains a given substring. - * - * @param string $haystack - * @param string|array $needles - * @return bool - */ - public static function contains($haystack, $needles) - { - foreach ((array) $needles as $needle) { - if ($needle != '' && mb_strpos($haystack, $needle) !== false) { - return true; - } - } - - return false; - } - - /** - * Determine if a given string ends with a given substring. - * - * @param string $haystack - * @param string|array $needles - * @return bool - */ - public static function endsWith($haystack, $needles) - { - foreach ((array) $needles as $needle) { - if (substr($haystack, -strlen($needle)) === (string) $needle) { - return true; - } - } - - return false; - } - - /** - * Cap a string with a single instance of a given value. - * - * @param string $value - * @param string $cap - * @return string - */ - public static function finish($value, $cap) - { - $quoted = preg_quote($cap, '/'); - - return preg_replace('/(?:'.$quoted.')+$/u', '', $value).$cap; - } - - /** - * Determine if a given string matches a given pattern. - * - * @param string $pattern - * @param string $value - * @return bool - */ - public static function is($pattern, $value) - { - if ($pattern == $value) { - return true; - } - - $pattern = preg_quote($pattern, '#'); - - // Asterisks are translated into zero-or-more regular expression wildcards - // to make it convenient to check if the strings starts with the given - // pattern such as "library/*", making any string check convenient. - $pattern = str_replace('\*', '.*', $pattern); - - return (bool) preg_match('#^'.$pattern.'\z#u', $value); - } - - /** - * Return the length of the given string. - * - * @param string $value - * @return int - */ - public static function length($value) - { - return mb_strlen($value); - } - - /** - * Limit the number of characters in a string. - * - * @param string $value - * @param int $limit - * @param string $end - * @return string - */ - public static function limit($value, $limit = 100, $end = '...') - { - if (mb_strwidth($value, 'UTF-8') <= $limit) { - return $value; - } - - return rtrim(mb_strimwidth($value, 0, $limit, '', 'UTF-8')).$end; - } - - /** - * Convert the given string to lower-case. - * - * @param string $value - * @return string - */ - public static function lower($value) - { - return mb_strtolower($value, 'UTF-8'); - } - - /** - * Limit the number of words in a string. - * - * @param string $value - * @param int $words - * @param string $end - * @return string - */ - public static function words($value, $words = 100, $end = '...') - { - preg_match('/^\s*+(?:\S++\s*+){1,'.$words.'}/u', $value, $matches); - - if (! isset($matches[0]) || static::length($value) === static::length($matches[0])) { - return $value; - } - - return rtrim($matches[0]).$end; - } - - /** - * Parse a Class@method style callback into class and method. - * - * @param string $callback - * @param string|null $default - * @return array - */ - public static function parseCallback($callback, $default = null) - { - return static::contains($callback, '@') ? explode('@', $callback, 2) : [$callback, $default]; - } - - /** - * Get the plural form of an English word. - * - * @param string $value - * @param int $count - * @return string - */ - public static function plural($value, $count = 2) - { - return Pluralizer::plural($value, $count); - } - - /** - * Generate a more truly "random" alpha-numeric string. - * - * @param int $length - * @return string - */ - public static function random($length = 16) - { - $string = ''; - - while (($len = strlen($string)) < $length) { - $size = $length - $len; - - $bytes = random_bytes($size); - - $string .= substr(str_replace(['/', '+', '='], '', base64_encode($bytes)), 0, $size); - } - - return $string; - } - - /** - * Generate a "random" alpha-numeric string. - * - * Should not be considered sufficient for cryptography, etc. - * - * @deprecated since version 5.3. Use the "random" method directly. - * - * @param int $length - * @return string - */ - public static function quickRandom($length = 16) - { - if (PHP_MAJOR_VERSION > 5) { - return static::random($length); - } - - $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; - - return substr(str_shuffle(str_repeat($pool, $length)), 0, $length); - } - - /** - * Replace a given value in the string sequentially with an array. - * - * @param string $search - * @param array $replace - * @param string $subject - * @return string - */ - public static function replaceArray($search, array $replace, $subject) - { - foreach ($replace as $value) { - $subject = static::replaceFirst($search, $value, $subject); - } - - return $subject; - } - - /** - * Replace the first occurrence of a given value in the string. - * - * @param string $search - * @param string $replace - * @param string $subject - * @return string - */ - public static function replaceFirst($search, $replace, $subject) - { - $position = strpos($subject, $search); - - if ($position !== false) { - return substr_replace($subject, $replace, $position, strlen($search)); - } - - return $subject; - } - - /** - * Replace the last occurrence of a given value in the string. - * - * @param string $search - * @param string $replace - * @param string $subject - * @return string - */ - public static function replaceLast($search, $replace, $subject) - { - $position = strrpos($subject, $search); - - if ($position !== false) { - return substr_replace($subject, $replace, $position, strlen($search)); - } - - return $subject; - } - - /** - * Convert the given string to upper-case. - * - * @param string $value - * @return string - */ - public static function upper($value) - { - return mb_strtoupper($value, 'UTF-8'); - } - - /** - * Convert the given string to title case. - * - * @param string $value - * @return string - */ - public static function title($value) - { - return mb_convert_case($value, MB_CASE_TITLE, 'UTF-8'); - } - - /** - * Get the singular form of an English word. - * - * @param string $value - * @return string - */ - public static function singular($value) - { - return Pluralizer::singular($value); - } - - /** - * Generate a URL friendly "slug" from a given string. - * - * @param string $title - * @param string $separator - * @return string - */ - public static function slug($title, $separator = '-') - { - $title = static::ascii($title); - - // Convert all dashes/underscores into separator - $flip = $separator == '-' ? '_' : '-'; - - $title = preg_replace('!['.preg_quote($flip).']+!u', $separator, $title); - - // Remove all characters that are not the separator, letters, numbers, or whitespace. - $title = preg_replace('![^'.preg_quote($separator).'\pL\pN\s]+!u', '', mb_strtolower($title)); - - // Replace all separator characters and whitespace by a single separator - $title = preg_replace('!['.preg_quote($separator).'\s]+!u', $separator, $title); - - return trim($title, $separator); - } - - /** - * Convert a string to snake case. - * - * @param string $value - * @param string $delimiter - * @return string - */ - public static function snake($value, $delimiter = '_') - { - $key = $value; - - if (isset(static::$snakeCache[$key][$delimiter])) { - return static::$snakeCache[$key][$delimiter]; - } - - if (! ctype_lower($value)) { - $value = preg_replace('/\s+/u', '', $value); - - $value = static::lower(preg_replace('/(.)(?=[A-Z])/u', '$1'.$delimiter, $value)); - } - - return static::$snakeCache[$key][$delimiter] = $value; - } - - /** - * Determine if a given string starts with a given substring. - * - * @param string $haystack - * @param string|array $needles - * @return bool - */ - public static function startsWith($haystack, $needles) - { - foreach ((array) $needles as $needle) { - if ($needle != '' && substr($haystack, 0, strlen($needle)) === (string) $needle) { - return true; - } - } - - return false; - } - - /** - * Convert a value to studly caps case. - * - * @param string $value - * @return string - */ - public static function studly($value) - { - $key = $value; - - if (isset(static::$studlyCache[$key])) { - return static::$studlyCache[$key]; - } - - $value = ucwords(str_replace(['-', '_'], ' ', $value)); - - return static::$studlyCache[$key] = str_replace(' ', '', $value); - } - - /** - * Returns the portion of string specified by the start and length parameters. - * - * @param string $string - * @param int $start - * @param int|null $length - * @return string - */ - public static function substr($string, $start, $length = null) - { - return mb_substr($string, $start, $length, 'UTF-8'); - } - - /** - * Make a string's first character uppercase. - * - * @param string $string - * @return string - */ - public static function ucfirst($string) - { - return static::upper(static::substr($string, 0, 1)).static::substr($string, 1); - } - - /** - * Returns the replacements for the ascii method. - * - * Note: Adapted from Stringy\Stringy. - * - * @see https://github.com/danielstjules/Stringy/blob/2.3.1/LICENSE.txt - * - * @return array - */ - protected static function charsArray() - { - static $charsArray; - - if (isset($charsArray)) { - return $charsArray; - } - - return $charsArray = [ - '0' => ['°', '₀', '۰'], - '1' => ['¹', '₁', '۱'], - '2' => ['²', '₂', '۲'], - '3' => ['³', '₃', '۳'], - '4' => ['⁴', '₄', '۴', '٤'], - '5' => ['⁵', '₅', '۵', '٥'], - '6' => ['⁶', '₆', '۶', '٦'], - '7' => ['⁷', '₇', '۷'], - '8' => ['⁸', '₈', '۸'], - '9' => ['⁹', '₉', '۹'], - 'a' => ['à', 'á', 'ả', 'ã', 'ạ', 'ă', 'ắ', 'ằ', 'ẳ', 'ẵ', 'ặ', 'â', 'ấ', 'ầ', 'ẩ', 'ẫ', 'ậ', 'ā', 'ą', 'å', 'α', 'ά', 'ἀ', 'ἁ', 'ἂ', 'ἃ', 'ἄ', 'ἅ', 'ἆ', 'ἇ', 'ᾀ', 'ᾁ', 'ᾂ', 'ᾃ', 'ᾄ', 'ᾅ', 'ᾆ', 'ᾇ', 'ὰ', 'ά', 'ᾰ', 'ᾱ', 'ᾲ', 'ᾳ', 'ᾴ', 'ᾶ', 'ᾷ', 'а', 'أ', 'အ', 'ာ', 'ါ', 'ǻ', 'ǎ', 'ª', 'ა', 'अ', 'ا'], - 'b' => ['б', 'β', 'Ъ', 'Ь', 'ب', 'ဗ', 'ბ'], - 'c' => ['ç', 'ć', 'č', 'ĉ', 'ċ'], - 'd' => ['ď', 'ð', 'đ', 'ƌ', 'ȡ', 'ɖ', 'ɗ', 'ᵭ', 'ᶁ', 'ᶑ', 'д', 'δ', 'د', 'ض', 'ဍ', 'ဒ', 'დ'], - 'e' => ['é', 'è', 'ẻ', 'ẽ', 'ẹ', 'ê', 'ế', 'ề', 'ể', 'ễ', 'ệ', 'ë', 'ē', 'ę', 'ě', 'ĕ', 'ė', 'ε', 'έ', 'ἐ', 'ἑ', 'ἒ', 'ἓ', 'ἔ', 'ἕ', 'ὲ', 'έ', 'е', 'ё', 'э', 'є', 'ə', 'ဧ', 'ေ', 'ဲ', 'ე', 'ए', 'إ', 'ئ'], - 'f' => ['ф', 'φ', 'ف', 'ƒ', 'ფ'], - 'g' => ['ĝ', 'ğ', 'ġ', 'ģ', 'г', 'ґ', 'γ', 'ဂ', 'გ', 'گ'], - 'h' => ['ĥ', 'ħ', 'η', 'ή', 'ح', 'ه', 'ဟ', 'ှ', 'ჰ'], - 'i' => ['í', 'ì', 'ỉ', 'ĩ', 'ị', 'î', 'ï', 'ī', 'ĭ', 'į', 'ı', 'ι', 'ί', 'ϊ', 'ΐ', 'ἰ', 'ἱ', 'ἲ', 'ἳ', 'ἴ', 'ἵ', 'ἶ', 'ἷ', 'ὶ', 'ί', 'ῐ', 'ῑ', 'ῒ', 'ΐ', 'ῖ', 'ῗ', 'і', 'ї', 'и', 'ဣ', 'ိ', 'ီ', 'ည်', 'ǐ', 'ი', 'इ'], - 'j' => ['ĵ', 'ј', 'Ј', 'ჯ', 'ج'], - 'k' => ['ķ', 'ĸ', 'к', 'κ', 'Ķ', 'ق', 'ك', 'က', 'კ', 'ქ', 'ک'], - 'l' => ['ł', 'ľ', 'ĺ', 'ļ', 'ŀ', 'л', 'λ', 'ل', 'လ', 'ლ'], - 'm' => ['м', 'μ', 'م', 'မ', 'მ'], - 'n' => ['ñ', 'ń', 'ň', 'ņ', 'ʼn', 'ŋ', 'ν', 'н', 'ن', 'န', 'ნ'], - 'o' => ['ó', 'ò', 'ỏ', 'õ', 'ọ', 'ô', 'ố', 'ồ', 'ổ', 'ỗ', 'ộ', 'ơ', 'ớ', 'ờ', 'ở', 'ỡ', 'ợ', 'ø', 'ō', 'ő', 'ŏ', 'ο', 'ὀ', 'ὁ', 'ὂ', 'ὃ', 'ὄ', 'ὅ', 'ὸ', 'ό', 'о', 'و', 'θ', 'ို', 'ǒ', 'ǿ', 'º', 'ო', 'ओ'], - 'p' => ['п', 'π', 'ပ', 'პ', 'پ'], - 'q' => ['ყ'], - 'r' => ['ŕ', 'ř', 'ŗ', 'р', 'ρ', 'ر', 'რ'], - 's' => ['ś', 'š', 'ş', 'с', 'σ', 'ș', 'ς', 'س', 'ص', 'စ', 'ſ', 'ს'], - 't' => ['ť', 'ţ', 'т', 'τ', 'ț', 'ت', 'ط', 'ဋ', 'တ', 'ŧ', 'თ', 'ტ'], - 'u' => ['ú', 'ù', 'ủ', 'ũ', 'ụ', 'ư', 'ứ', 'ừ', 'ử', 'ữ', 'ự', 'û', 'ū', 'ů', 'ű', 'ŭ', 'ų', 'µ', 'у', 'ဉ', 'ု', 'ူ', 'ǔ', 'ǖ', 'ǘ', 'ǚ', 'ǜ', 'უ', 'उ'], - 'v' => ['в', 'ვ', 'ϐ'], - 'w' => ['ŵ', 'ω', 'ώ', 'ဝ', 'ွ'], - 'x' => ['χ', 'ξ'], - 'y' => ['ý', 'ỳ', 'ỷ', 'ỹ', 'ỵ', 'ÿ', 'ŷ', 'й', 'ы', 'υ', 'ϋ', 'ύ', 'ΰ', 'ي', 'ယ'], - 'z' => ['ź', 'ž', 'ż', 'з', 'ζ', 'ز', 'ဇ', 'ზ'], - 'aa' => ['ع', 'आ', 'آ'], - 'ae' => ['ä', 'æ', 'ǽ'], - 'ai' => ['ऐ'], - 'at' => ['@'], - 'ch' => ['ч', 'ჩ', 'ჭ', 'چ'], - 'dj' => ['ђ', 'đ'], - 'dz' => ['џ', 'ძ'], - 'ei' => ['ऍ'], - 'gh' => ['غ', 'ღ'], - 'ii' => ['ई'], - 'ij' => ['ij'], - 'kh' => ['х', 'خ', 'ხ'], - 'lj' => ['љ'], - 'nj' => ['њ'], - 'oe' => ['ö', 'œ', 'ؤ'], - 'oi' => ['ऑ'], - 'oii' => ['ऒ'], - 'ps' => ['ψ'], - 'sh' => ['ш', 'შ', 'ش'], - 'shch' => ['щ'], - 'ss' => ['ß'], - 'sx' => ['ŝ'], - 'th' => ['þ', 'ϑ', 'ث', 'ذ', 'ظ'], - 'ts' => ['ц', 'ც', 'წ'], - 'ue' => ['ü'], - 'uu' => ['ऊ'], - 'ya' => ['я'], - 'yu' => ['ю'], - 'zh' => ['ж', 'ჟ', 'ژ'], - '(c)' => ['©'], - 'A' => ['Á', 'À', 'Ả', 'Ã', 'Ạ', 'Ă', 'Ắ', 'Ằ', 'Ẳ', 'Ẵ', 'Ặ', 'Â', 'Ấ', 'Ầ', 'Ẩ', 'Ẫ', 'Ậ', 'Å', 'Ā', 'Ą', 'Α', 'Ά', 'Ἀ', 'Ἁ', 'Ἂ', 'Ἃ', 'Ἄ', 'Ἅ', 'Ἆ', 'Ἇ', 'ᾈ', 'ᾉ', 'ᾊ', 'ᾋ', 'ᾌ', 'ᾍ', 'ᾎ', 'ᾏ', 'Ᾰ', 'Ᾱ', 'Ὰ', 'Ά', 'ᾼ', 'А', 'Ǻ', 'Ǎ'], - 'B' => ['Б', 'Β', 'ब'], - 'C' => ['Ç', 'Ć', 'Č', 'Ĉ', 'Ċ'], - 'D' => ['Ď', 'Ð', 'Đ', 'Ɖ', 'Ɗ', 'Ƌ', 'ᴅ', 'ᴆ', 'Д', 'Δ'], - 'E' => ['É', 'È', 'Ẻ', 'Ẽ', 'Ẹ', 'Ê', 'Ế', 'Ề', 'Ể', 'Ễ', 'Ệ', 'Ë', 'Ē', 'Ę', 'Ě', 'Ĕ', 'Ė', 'Ε', 'Έ', 'Ἐ', 'Ἑ', 'Ἒ', 'Ἓ', 'Ἔ', 'Ἕ', 'Έ', 'Ὲ', 'Е', 'Ё', 'Э', 'Є', 'Ə'], - 'F' => ['Ф', 'Φ'], - 'G' => ['Ğ', 'Ġ', 'Ģ', 'Г', 'Ґ', 'Γ'], - 'H' => ['Η', 'Ή', 'Ħ'], - 'I' => ['Í', 'Ì', 'Ỉ', 'Ĩ', 'Ị', 'Î', 'Ï', 'Ī', 'Ĭ', 'Į', 'İ', 'Ι', 'Ί', 'Ϊ', 'Ἰ', 'Ἱ', 'Ἳ', 'Ἴ', 'Ἵ', 'Ἶ', 'Ἷ', 'Ῐ', 'Ῑ', 'Ὶ', 'Ί', 'И', 'І', 'Ї', 'Ǐ', 'ϒ'], - 'K' => ['К', 'Κ'], - 'L' => ['Ĺ', 'Ł', 'Л', 'Λ', 'Ļ', 'Ľ', 'Ŀ', 'ल'], - 'M' => ['М', 'Μ'], - 'N' => ['Ń', 'Ñ', 'Ň', 'Ņ', 'Ŋ', 'Н', 'Ν'], - 'O' => ['Ó', 'Ò', 'Ỏ', 'Õ', 'Ọ', 'Ô', 'Ố', 'Ồ', 'Ổ', 'Ỗ', 'Ộ', 'Ơ', 'Ớ', 'Ờ', 'Ở', 'Ỡ', 'Ợ', 'Ø', 'Ō', 'Ő', 'Ŏ', 'Ο', 'Ό', 'Ὀ', 'Ὁ', 'Ὂ', 'Ὃ', 'Ὄ', 'Ὅ', 'Ὸ', 'Ό', 'О', 'Θ', 'Ө', 'Ǒ', 'Ǿ'], - 'P' => ['П', 'Π'], - 'R' => ['Ř', 'Ŕ', 'Р', 'Ρ', 'Ŗ'], - 'S' => ['Ş', 'Ŝ', 'Ș', 'Š', 'Ś', 'С', 'Σ'], - 'T' => ['Ť', 'Ţ', 'Ŧ', 'Ț', 'Т', 'Τ'], - 'U' => ['Ú', 'Ù', 'Ủ', 'Ũ', 'Ụ', 'Ư', 'Ứ', 'Ừ', 'Ử', 'Ữ', 'Ự', 'Û', 'Ū', 'Ů', 'Ű', 'Ŭ', 'Ų', 'У', 'Ǔ', 'Ǖ', 'Ǘ', 'Ǚ', 'Ǜ'], - 'V' => ['В'], - 'W' => ['Ω', 'Ώ', 'Ŵ'], - 'X' => ['Χ', 'Ξ'], - 'Y' => ['Ý', 'Ỳ', 'Ỷ', 'Ỹ', 'Ỵ', 'Ÿ', 'Ῠ', 'Ῡ', 'Ὺ', 'Ύ', 'Ы', 'Й', 'Υ', 'Ϋ', 'Ŷ'], - 'Z' => ['Ź', 'Ž', 'Ż', 'З', 'Ζ'], - 'AE' => ['Ä', 'Æ', 'Ǽ'], - 'CH' => ['Ч'], - 'DJ' => ['Ђ'], - 'DZ' => ['Џ'], - 'GX' => ['Ĝ'], - 'HX' => ['Ĥ'], - 'IJ' => ['IJ'], - 'JX' => ['Ĵ'], - 'KH' => ['Х'], - 'LJ' => ['Љ'], - 'NJ' => ['Њ'], - 'OE' => ['Ö', 'Œ'], - 'PS' => ['Ψ'], - 'SH' => ['Ш'], - 'SHCH' => ['Щ'], - 'SS' => ['ẞ'], - 'TH' => ['Þ'], - 'TS' => ['Ц'], - 'UE' => ['Ü'], - 'YA' => ['Я'], - 'YU' => ['Ю'], - 'ZH' => ['Ж'], - ' ' => ["\xC2\xA0", "\xE2\x80\x80", "\xE2\x80\x81", "\xE2\x80\x82", "\xE2\x80\x83", "\xE2\x80\x84", "\xE2\x80\x85", "\xE2\x80\x86", "\xE2\x80\x87", "\xE2\x80\x88", "\xE2\x80\x89", "\xE2\x80\x8A", "\xE2\x80\xAF", "\xE2\x81\x9F", "\xE3\x80\x80"], - ]; - } -} diff --git a/github/vendor/illuminate/support/Testing/Fakes/BusFake.php b/github/vendor/illuminate/support/Testing/Fakes/BusFake.php deleted file mode 100644 index 305e894..0000000 --- a/github/vendor/illuminate/support/Testing/Fakes/BusFake.php +++ /dev/null @@ -1,113 +0,0 @@ -dispatched($command, $callback)->count() > 0, - "The expected [{$command}] job was not dispatched." - ); - } - - /** - * Determine if a job was dispatched based on a truth-test callback. - * - * @param string $command - * @param callable|null $callback - * @return void - */ - public function assertNotDispatched($command, $callback = null) - { - PHPUnit::assertTrue( - $this->dispatched($command, $callback)->count() === 0, - "The unexpected [{$command}] job was dispatched." - ); - } - - /** - * Get all of the jobs matching a truth-test callback. - * - * @param string $command - * @param callable|null $callback - * @return \Illuminate\Support\Collection - */ - public function dispatched($command, $callback = null) - { - if (! $this->hasDispatched($command)) { - return collect(); - } - - $callback = $callback ?: function () { - return true; - }; - - return collect($this->commands[$command])->filter(function ($command) use ($callback) { - return $callback($command); - }); - } - - /** - * Determine if there are any stored commands for a given class. - * - * @param string $command - * @return bool - */ - public function hasDispatched($command) - { - return isset($this->commands[$command]) && ! empty($this->commands[$command]); - } - - /** - * Dispatch a command to its appropriate handler. - * - * @param mixed $command - * @return mixed - */ - public function dispatch($command) - { - return $this->dispatchNow($command); - } - - /** - * Dispatch a command to its appropriate handler in the current process. - * - * @param mixed $command - * @param mixed $handler - * @return mixed - */ - public function dispatchNow($command, $handler = null) - { - $this->commands[get_class($command)][] = $command; - } - - /** - * Set the pipes commands should be piped through before dispatching. - * - * @param array $pipes - * @return $this - */ - public function pipeThrough(array $pipes) - { - // - } -} diff --git a/github/vendor/illuminate/support/Testing/Fakes/EventFake.php b/github/vendor/illuminate/support/Testing/Fakes/EventFake.php deleted file mode 100644 index 700b251..0000000 --- a/github/vendor/illuminate/support/Testing/Fakes/EventFake.php +++ /dev/null @@ -1,197 +0,0 @@ -dispatched($event, $callback)->count() > 0, - "The expected [{$event}] event was not dispatched." - ); - } - - /** - * Determine if an event was dispatched based on a truth-test callback. - * - * @param string $event - * @param callable|null $callback - * @return void - */ - public function assertNotDispatched($event, $callback = null) - { - PHPUnit::assertTrue( - $this->dispatched($event, $callback)->count() === 0, - "The unexpected [{$event}] event was dispatched." - ); - } - - /** - * Get all of the events matching a truth-test callback. - * - * @param string $event - * @param callable|null $callback - * @return \Illuminate\Support\Collection - */ - public function dispatched($event, $callback = null) - { - if (! $this->hasDispatched($event)) { - return collect(); - } - - $callback = $callback ?: function () { - return true; - }; - - return collect($this->events[$event])->filter(function ($arguments) use ($callback) { - return $callback(...$arguments); - }); - } - - /** - * Determine if the given event has been dispatched. - * - * @param string $event - * @return bool - */ - public function hasDispatched($event) - { - return isset($this->events[$event]) && ! empty($this->events[$event]); - } - - /** - * Register an event listener with the dispatcher. - * - * @param string|array $events - * @param mixed $listener - * @return void - */ - public function listen($events, $listener) - { - // - } - - /** - * Determine if a given event has listeners. - * - * @param string $eventName - * @return bool - */ - public function hasListeners($eventName) - { - // - } - - /** - * Register an event and payload to be dispatched later. - * - * @param string $event - * @param array $payload - * @return void - */ - public function push($event, $payload = []) - { - // - } - - /** - * Register an event subscriber with the dispatcher. - * - * @param object|string $subscriber - * @return void - */ - public function subscribe($subscriber) - { - // - } - - /** - * Flush a set of pushed events. - * - * @param string $event - * @return void - */ - public function flush($event) - { - // - } - - /** - * Fire an event and call the listeners. - * - * @param string|object $event - * @param mixed $payload - * @param bool $halt - * @return array|null - */ - public function fire($event, $payload = [], $halt = false) - { - return $this->dispatch($event, $payload, $halt); - } - - /** - * Fire an event and call the listeners. - * - * @param string|object $event - * @param mixed $payload - * @param bool $halt - * @return array|null - */ - public function dispatch($event, $payload = [], $halt = false) - { - $name = is_object($event) ? get_class($event) : (string) $event; - - $this->events[$name][] = func_get_args(); - } - - /** - * Remove a set of listeners from the dispatcher. - * - * @param string $event - * @return void - */ - public function forget($event) - { - // - } - - /** - * Forget all of the queued listeners. - * - * @return void - */ - public function forgetPushed() - { - // - } - - /** - * Dispatch an event and call the listeners. - * - * @param string|object $event - * @param mixed $payload - * @return void - */ - public function until($event, $payload = []) - { - // - } -} diff --git a/github/vendor/illuminate/support/Testing/Fakes/MailFake.php b/github/vendor/illuminate/support/Testing/Fakes/MailFake.php deleted file mode 100644 index f80ca2c..0000000 --- a/github/vendor/illuminate/support/Testing/Fakes/MailFake.php +++ /dev/null @@ -1,168 +0,0 @@ -sent($mailable, $callback)->count() > 0, - "The expected [{$mailable}] mailable was not sent." - ); - } - - /** - * Determine if a mailable was sent based on a truth-test callback. - * - * @param string $mailable - * @param callable|null $callback - * @return void - */ - public function assertNotSent($mailable, $callback = null) - { - PHPUnit::assertTrue( - $this->sent($mailable, $callback)->count() === 0, - "The unexpected [{$mailable}] mailable was sent." - ); - } - - /** - * Get all of the mailables matching a truth-test callback. - * - * @param string $mailable - * @param callable|null $callback - * @return \Illuminate\Support\Collection - */ - public function sent($mailable, $callback = null) - { - if (! $this->hasSent($mailable)) { - return collect(); - } - - $callback = $callback ?: function () { - return true; - }; - - return $this->mailablesOf($mailable)->filter(function ($mailable) use ($callback) { - return $callback($mailable); - }); - } - - /** - * Determine if the given mailable has been sent. - * - * @param string $mailable - * @return bool - */ - public function hasSent($mailable) - { - return $this->mailablesOf($mailable)->count() > 0; - } - - /** - * Get all of the mailed mailables for a given type. - * - * @param string $type - * @return \Illuminate\Support\Collection - */ - protected function mailablesOf($type) - { - return collect($this->mailables)->filter(function ($mailable) use ($type) { - return $mailable instanceof $type; - }); - } - - /** - * Begin the process of mailing a mailable class instance. - * - * @param mixed $users - * @return \Illuminate\Mail\PendingMail - */ - public function to($users) - { - return (new PendingMailFake($this))->to($users); - } - - /** - * Begin the process of mailing a mailable class instance. - * - * @param mixed $users - * @return \Illuminate\Mail\PendingMail - */ - public function bcc($users) - { - return (new PendingMailFake($this))->bcc($users); - } - - /** - * Send a new message when only a raw text part. - * - * @param string $text - * @param \Closure|string $callback - * @return int - */ - public function raw($text, $callback) - { - // - } - - /** - * Send a new message using a view. - * - * @param string|array $view - * @param array $data - * @param \Closure|string $callback - * @return void - */ - public function send($view, array $data = [], $callback = null) - { - if (! $view instanceof Mailable) { - return; - } - - $this->mailables[] = $view; - } - - /** - * Queue a new e-mail message for sending. - * - * @param string|array $view - * @param array $data - * @param \Closure|string $callback - * @param string|null $queue - * @return mixed - */ - public function queue($view, array $data = [], $callback = null, $queue = null) - { - $this->send($view); - } - - /** - * Get the array of failed recipients. - * - * @return array - */ - public function failures() - { - // - } -} diff --git a/github/vendor/illuminate/support/Testing/Fakes/NotificationFake.php b/github/vendor/illuminate/support/Testing/Fakes/NotificationFake.php deleted file mode 100644 index 97afe00..0000000 --- a/github/vendor/illuminate/support/Testing/Fakes/NotificationFake.php +++ /dev/null @@ -1,165 +0,0 @@ -assertSentTo($singleNotifiable, $notification, $callback); - } - - return; - } - - PHPUnit::assertTrue( - $this->sent($notifiable, $notification, $callback)->count() > 0, - "The expected [{$notification}] notification was not sent." - ); - } - - /** - * Determine if a notification was sent based on a truth-test callback. - * - * @param mixed $notifiable - * @param string $notification - * @param callable|null $callback - * @return void - */ - public function assertNotSentTo($notifiable, $notification, $callback = null) - { - if (is_array($notifiable) || $notifiable instanceof Collection) { - foreach ($notifiable as $singleNotifiable) { - $this->assertNotSentTo($singleNotifiable, $notification, $callback); - } - - return; - } - - PHPUnit::assertTrue( - $this->sent($notifiable, $notification, $callback)->count() === 0, - "The unexpected [{$notification}] notification was sent." - ); - } - - /** - * Get all of the notifications matching a truth-test callback. - * - * @param mixed $notifiable - * @param string $notification - * @param callable|null $callback - * @return \Illuminate\Support\Collection - */ - public function sent($notifiable, $notification, $callback = null) - { - if (! $this->hasSent($notifiable, $notification)) { - return collect(); - } - - $callback = $callback ?: function () { - return true; - }; - - $notifications = collect($this->notificationsFor($notifiable, $notification)); - - return $notifications->filter(function ($arguments) use ($callback) { - return $callback(...array_values($arguments)); - })->pluck('notification'); - } - - /** - * Determine if there are more notifications left to inspect. - * - * @param mixed $notifiable - * @param string $notification - * @return bool - */ - public function hasSent($notifiable, $notification) - { - return ! empty($this->notificationsFor($notifiable, $notification)); - } - - /** - * Get all of the notifications for a notifiable entity by type. - * - * @param mixed $notifiable - * @param string $notification - * @return array - */ - protected function notificationsFor($notifiable, $notification) - { - if (isset($this->notifications[get_class($notifiable)][$notifiable->getKey()][$notification])) { - return $this->notifications[get_class($notifiable)][$notifiable->getKey()][$notification]; - } - - return []; - } - - /** - * Send the given notification to the given notifiable entities. - * - * @param \Illuminate\Support\Collection|array|mixed $notifiables - * @param mixed $notification - * @return void - */ - public function send($notifiables, $notification) - { - return $this->sendNow($notifiables, $notification); - } - - /** - * Send the given notification immediately. - * - * @param \Illuminate\Support\Collection|array|mixed $notifiables - * @param mixed $notification - * @return void - */ - public function sendNow($notifiables, $notification) - { - if (! $notifiables instanceof Collection && ! is_array($notifiables)) { - $notifiables = [$notifiables]; - } - - foreach ($notifiables as $notifiable) { - $notification->id = Uuid::uuid4()->toString(); - - $this->notifications[get_class($notifiable)][$notifiable->getKey()][get_class($notification)][] = [ - 'notification' => $notification, - 'channels' => $notification->via($notifiable), - ]; - } - } - - /** - * Get a channel instance by name. - * - * @param string|null $name - * @return mixed - */ - public function channel($name = null) - { - // - } -} diff --git a/github/vendor/illuminate/support/Testing/Fakes/PendingMailFake.php b/github/vendor/illuminate/support/Testing/Fakes/PendingMailFake.php deleted file mode 100644 index 0baa9d2..0000000 --- a/github/vendor/illuminate/support/Testing/Fakes/PendingMailFake.php +++ /dev/null @@ -1,53 +0,0 @@ -mailer = $mailer; - } - - /** - * Send a new mailable message instance. - * - * @param Mailable $mailable - * @return mixed - */ - public function send(Mailable $mailable) - { - return $this->sendNow($mailable); - } - - /** - * Send a mailable message immediately. - * - * @param Mailable $mailable - * @return mixed - */ - public function sendNow(Mailable $mailable) - { - $this->mailer->send($this->fill($mailable)); - } - - /** - * Push the given mailable onto the queue. - * - * @param Mailable $mailable - * @return mixed - */ - public function queue(Mailable $mailable) - { - return $this->sendNow($mailable); - } -} diff --git a/github/vendor/illuminate/support/Testing/Fakes/QueueFake.php b/github/vendor/illuminate/support/Testing/Fakes/QueueFake.php deleted file mode 100644 index 45e60f0..0000000 --- a/github/vendor/illuminate/support/Testing/Fakes/QueueFake.php +++ /dev/null @@ -1,237 +0,0 @@ -pushed($job, $callback)->count() > 0, - "The expected [{$job}] job was not pushed." - ); - } - - /** - * Assert if a job was pushed based on a truth-test callback. - * - * @param string $queue - * @param string $job - * @param callable|null $callback - * @return void - */ - public function assertPushedOn($queue, $job, $callback = null) - { - return $this->assertPushed($job, function ($job, $pushedQueue) use ($callback, $queue) { - if ($pushedQueue !== $queue) { - return false; - } - - return $callback ? $callback(...func_get_args()) : true; - }); - } - - /** - * Determine if a job was pushed based on a truth-test callback. - * - * @param string $job - * @param callable|null $callback - * @return void - */ - public function assertNotPushed($job, $callback = null) - { - PHPUnit::assertTrue( - $this->pushed($job, $callback)->count() === 0, - "The unexpected [{$job}] job was pushed." - ); - } - - /** - * Get all of the jobs matching a truth-test callback. - * - * @param string $job - * @param callable|null $callback - * @return \Illuminate\Support\Collection - */ - public function pushed($job, $callback = null) - { - if (! $this->hasPushed($job)) { - return collect(); - } - - $callback = $callback ?: function () { - return true; - }; - - return collect($this->jobs[$job])->filter(function ($data) use ($callback) { - return $callback($data['job'], $data['queue']); - })->pluck('job'); - } - - /** - * Determine if there are any stored jobs for a given class. - * - * @param string $job - * @return bool - */ - public function hasPushed($job) - { - return isset($this->jobs[$job]) && ! empty($this->jobs[$job]); - } - - /** - * Resolve a queue connection instance. - * - * @param mixed $value - * @return \Illuminate\Contracts\Queue\Queue - */ - public function connection($value = null) - { - return $this; - } - - /** - * Get the size of the queue. - * - * @param string $queue - * @return int - */ - public function size($queue = null) - { - return 0; - } - - /** - * Push a new job onto the queue. - * - * @param string $job - * @param mixed $data - * @param string $queue - * @return mixed - */ - public function push($job, $data = '', $queue = null) - { - $this->jobs[get_class($job)][] = [ - 'job' => $job, - 'queue' => $queue, - ]; - } - - /** - * Push a raw payload onto the queue. - * - * @param string $payload - * @param string $queue - * @param array $options - * @return mixed - */ - public function pushRaw($payload, $queue = null, array $options = []) - { - // - } - - /** - * Push a new job onto the queue after a delay. - * - * @param \DateTime|int $delay - * @param string $job - * @param mixed $data - * @param string $queue - * @return mixed - */ - public function later($delay, $job, $data = '', $queue = null) - { - return $this->push($job, $data, $queue); - } - - /** - * Push a new job onto the queue. - * - * @param string $queue - * @param string $job - * @param mixed $data - * @return mixed - */ - public function pushOn($queue, $job, $data = '') - { - return $this->push($job, $data, $queue); - } - - /** - * Push a new job onto the queue after a delay. - * - * @param string $queue - * @param \DateTime|int $delay - * @param string $job - * @param mixed $data - * @return mixed - */ - public function laterOn($queue, $delay, $job, $data = '') - { - return $this->push($job, $data, $queue); - } - - /** - * Pop the next job off of the queue. - * - * @param string $queue - * @return \Illuminate\Contracts\Queue\Job|null - */ - public function pop($queue = null) - { - // - } - - /** - * Push an array of jobs onto the queue. - * - * @param array $jobs - * @param mixed $data - * @param string $queue - * @return mixed - */ - public function bulk($jobs, $data = '', $queue = null) - { - foreach ($this->jobs as $job) { - $this->push($job); - } - } - - /** - * Get the connection name for the queue. - * - * @return string - */ - public function getConnectionName() - { - // - } - - /** - * Set the connection name for the queue. - * - * @param string $name - * @return $this - */ - public function setConnectionName($name) - { - return $this; - } -} diff --git a/github/vendor/illuminate/support/Traits/CapsuleManagerTrait.php b/github/vendor/illuminate/support/Traits/CapsuleManagerTrait.php deleted file mode 100644 index 08089ef..0000000 --- a/github/vendor/illuminate/support/Traits/CapsuleManagerTrait.php +++ /dev/null @@ -1,69 +0,0 @@ -container = $container; - - if (! $this->container->bound('config')) { - $this->container->instance('config', new Fluent); - } - } - - /** - * Make this capsule instance available globally. - * - * @return void - */ - public function setAsGlobal() - { - static::$instance = $this; - } - - /** - * Get the IoC container instance. - * - * @return \Illuminate\Contracts\Container\Container - */ - public function getContainer() - { - return $this->container; - } - - /** - * Set the IoC container instance. - * - * @param \Illuminate\Contracts\Container\Container $container - * @return void - */ - public function setContainer(Container $container) - { - $this->container = $container; - } -} diff --git a/github/vendor/illuminate/support/Traits/Macroable.php b/github/vendor/illuminate/support/Traits/Macroable.php deleted file mode 100644 index 2c103d4..0000000 --- a/github/vendor/illuminate/support/Traits/Macroable.php +++ /dev/null @@ -1,83 +0,0 @@ -bindTo($this, static::class), $parameters); - } - - return call_user_func_array(static::$macros[$method], $parameters); - } -} diff --git a/github/vendor/illuminate/support/ViewErrorBag.php b/github/vendor/illuminate/support/ViewErrorBag.php deleted file mode 100644 index 9bf776a..0000000 --- a/github/vendor/illuminate/support/ViewErrorBag.php +++ /dev/null @@ -1,107 +0,0 @@ -bags[$key]); - } - - /** - * Get a MessageBag instance from the bags. - * - * @param string $key - * @return \Illuminate\Contracts\Support\MessageBag - */ - public function getBag($key) - { - return Arr::get($this->bags, $key) ?: new MessageBag; - } - - /** - * Get all the bags. - * - * @return array - */ - public function getBags() - { - return $this->bags; - } - - /** - * Add a new MessageBag instance to the bags. - * - * @param string $key - * @param \Illuminate\Contracts\Support\MessageBag $bag - * @return $this - */ - public function put($key, MessageBagContract $bag) - { - $this->bags[$key] = $bag; - - return $this; - } - - /** - * Get the number of messages in the default bag. - * - * @return int - */ - public function count() - { - return $this->getBag('default')->count(); - } - - /** - * Dynamically call methods on the default bag. - * - * @param string $method - * @param array $parameters - * @return mixed - */ - public function __call($method, $parameters) - { - return $this->getBag('default')->$method(...$parameters); - } - - /** - * Dynamically access a view error bag. - * - * @param string $key - * @return \Illuminate\Contracts\Support\MessageBag - */ - public function __get($key) - { - return $this->getBag($key); - } - - /** - * Dynamically set a view error bag. - * - * @param string $key - * @param \Illuminate\Contracts\Support\MessageBag $value - * @return void - */ - public function __set($key, $value) - { - $this->put($key, $value); - } -} diff --git a/github/vendor/illuminate/support/composer.json b/github/vendor/illuminate/support/composer.json deleted file mode 100644 index 56d92d4..0000000 --- a/github/vendor/illuminate/support/composer.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "illuminate/support", - "description": "The Illuminate Support package.", - "license": "MIT", - "homepage": "https://laravel.com", - "support": { - "issues": "https://github.com/laravel/framework/issues", - "source": "https://github.com/laravel/framework" - }, - "authors": [ - { - "name": "Taylor Otwell", - "email": "taylor@laravel.com" - } - ], - "require": { - "php": ">=5.6.4", - "ext-mbstring": "*", - "doctrine/inflector": "~1.0", - "illuminate/contracts": "5.4.*", - "paragonie/random_compat": "~1.4|~2.0" - }, - "replace": { - "tightenco/collect": "self.version" - }, - "autoload": { - "psr-4": { - "Illuminate\\Support\\": "" - }, - "files": [ - "helpers.php" - ] - }, - "extra": { - "branch-alias": { - "dev-master": "5.4-dev" - } - }, - "suggest": { - "illuminate/filesystem": "Required to use the composer class (5.2.*).", - "symfony/process": "Required to use the composer class (~3.2).", - "symfony/var-dumper": "Required to use the dd function (~3.2)." - }, - "config": { - "sort-packages": true - }, - "minimum-stability": "dev" -} diff --git a/github/vendor/illuminate/support/helpers.php b/github/vendor/illuminate/support/helpers.php deleted file mode 100755 index 4eddc49..0000000 --- a/github/vendor/illuminate/support/helpers.php +++ /dev/null @@ -1,939 +0,0 @@ - $value) { - if (is_numeric($key)) { - $start++; - - $array[$start] = Arr::pull($array, $key); - } - } - - return $array; - } -} - -if (! function_exists('array_add')) { - /** - * Add an element to an array using "dot" notation if it doesn't exist. - * - * @param array $array - * @param string $key - * @param mixed $value - * @return array - */ - function array_add($array, $key, $value) - { - return Arr::add($array, $key, $value); - } -} - -if (! function_exists('array_collapse')) { - /** - * Collapse an array of arrays into a single array. - * - * @param array $array - * @return array - */ - function array_collapse($array) - { - return Arr::collapse($array); - } -} - -if (! function_exists('array_divide')) { - /** - * Divide an array into two arrays. One with keys and the other with values. - * - * @param array $array - * @return array - */ - function array_divide($array) - { - return Arr::divide($array); - } -} - -if (! function_exists('array_dot')) { - /** - * Flatten a multi-dimensional associative array with dots. - * - * @param array $array - * @param string $prepend - * @return array - */ - function array_dot($array, $prepend = '') - { - return Arr::dot($array, $prepend); - } -} - -if (! function_exists('array_except')) { - /** - * Get all of the given array except for a specified array of items. - * - * @param array $array - * @param array|string $keys - * @return array - */ - function array_except($array, $keys) - { - return Arr::except($array, $keys); - } -} - -if (! function_exists('array_first')) { - /** - * Return the first element in an array passing a given truth test. - * - * @param array $array - * @param callable|null $callback - * @param mixed $default - * @return mixed - */ - function array_first($array, callable $callback = null, $default = null) - { - return Arr::first($array, $callback, $default); - } -} - -if (! function_exists('array_flatten')) { - /** - * Flatten a multi-dimensional array into a single level. - * - * @param array $array - * @param int $depth - * @return array - */ - function array_flatten($array, $depth = INF) - { - return Arr::flatten($array, $depth); - } -} - -if (! function_exists('array_forget')) { - /** - * Remove one or many array items from a given array using "dot" notation. - * - * @param array $array - * @param array|string $keys - * @return void - */ - function array_forget(&$array, $keys) - { - return Arr::forget($array, $keys); - } -} - -if (! function_exists('array_get')) { - /** - * Get an item from an array using "dot" notation. - * - * @param \ArrayAccess|array $array - * @param string $key - * @param mixed $default - * @return mixed - */ - function array_get($array, $key, $default = null) - { - return Arr::get($array, $key, $default); - } -} - -if (! function_exists('array_has')) { - /** - * Check if an item or items exist in an array using "dot" notation. - * - * @param \ArrayAccess|array $array - * @param string|array $keys - * @return bool - */ - function array_has($array, $keys) - { - return Arr::has($array, $keys); - } -} - -if (! function_exists('array_last')) { - /** - * Return the last element in an array passing a given truth test. - * - * @param array $array - * @param callable|null $callback - * @param mixed $default - * @return mixed - */ - function array_last($array, callable $callback = null, $default = null) - { - return Arr::last($array, $callback, $default); - } -} - -if (! function_exists('array_only')) { - /** - * Get a subset of the items from the given array. - * - * @param array $array - * @param array|string $keys - * @return array - */ - function array_only($array, $keys) - { - return Arr::only($array, $keys); - } -} - -if (! function_exists('array_pluck')) { - /** - * Pluck an array of values from an array. - * - * @param array $array - * @param string|array $value - * @param string|array|null $key - * @return array - */ - function array_pluck($array, $value, $key = null) - { - return Arr::pluck($array, $value, $key); - } -} - -if (! function_exists('array_prepend')) { - /** - * Push an item onto the beginning of an array. - * - * @param array $array - * @param mixed $value - * @param mixed $key - * @return array - */ - function array_prepend($array, $value, $key = null) - { - return Arr::prepend($array, $value, $key); - } -} - -if (! function_exists('array_pull')) { - /** - * Get a value from the array, and remove it. - * - * @param array $array - * @param string $key - * @param mixed $default - * @return mixed - */ - function array_pull(&$array, $key, $default = null) - { - return Arr::pull($array, $key, $default); - } -} - -if (! function_exists('array_set')) { - /** - * Set an array item to a given value using "dot" notation. - * - * If no key is given to the method, the entire array will be replaced. - * - * @param array $array - * @param string $key - * @param mixed $value - * @return array - */ - function array_set(&$array, $key, $value) - { - return Arr::set($array, $key, $value); - } -} - -if (! function_exists('array_sort')) { - /** - * Sort the array using the given callback. - * - * @param array $array - * @param callable $callback - * @return array - */ - function array_sort($array, callable $callback) - { - return Arr::sort($array, $callback); - } -} - -if (! function_exists('array_sort_recursive')) { - /** - * Recursively sort an array by keys and values. - * - * @param array $array - * @return array - */ - function array_sort_recursive($array) - { - return Arr::sortRecursive($array); - } -} - -if (! function_exists('array_where')) { - /** - * Filter the array using the given callback. - * - * @param array $array - * @param callable $callback - * @return array - */ - function array_where($array, callable $callback) - { - return Arr::where($array, $callback); - } -} - -if (! function_exists('array_wrap')) { - /** - * If the given value is not an array, wrap it in one. - * - * @param mixed $value - * @return array - */ - function array_wrap($value) - { - return ! is_array($value) ? [$value] : $value; - } -} - -if (! function_exists('camel_case')) { - /** - * Convert a value to camel case. - * - * @param string $value - * @return string - */ - function camel_case($value) - { - return Str::camel($value); - } -} - -if (! function_exists('class_basename')) { - /** - * Get the class "basename" of the given object / class. - * - * @param string|object $class - * @return string - */ - function class_basename($class) - { - $class = is_object($class) ? get_class($class) : $class; - - return basename(str_replace('\\', '/', $class)); - } -} - -if (! function_exists('class_uses_recursive')) { - /** - * Returns all traits used by a class, its subclasses and trait of their traits. - * - * @param object|string $class - * @return array - */ - function class_uses_recursive($class) - { - if (is_object($class)) { - $class = get_class($class); - } - - $results = []; - - foreach (array_merge([$class => $class], class_parents($class)) as $class) { - $results += trait_uses_recursive($class); - } - - return array_unique($results); - } -} - -if (! function_exists('collect')) { - /** - * Create a collection from the given value. - * - * @param mixed $value - * @return \Illuminate\Support\Collection - */ - function collect($value = null) - { - return new Collection($value); - } -} - -if (! function_exists('data_fill')) { - /** - * Fill in data where it's missing. - * - * @param mixed $target - * @param string|array $key - * @param mixed $value - * @return mixed - */ - function data_fill(&$target, $key, $value) - { - return data_set($target, $key, $value, false); - } -} - -if (! function_exists('data_get')) { - /** - * Get an item from an array or object using "dot" notation. - * - * @param mixed $target - * @param string|array $key - * @param mixed $default - * @return mixed - */ - function data_get($target, $key, $default = null) - { - if (is_null($key)) { - return $target; - } - - $key = is_array($key) ? $key : explode('.', $key); - - while (! is_null($segment = array_shift($key))) { - if ($segment === '*') { - if ($target instanceof Collection) { - $target = $target->all(); - } elseif (! is_array($target)) { - return value($default); - } - - $result = Arr::pluck($target, $key); - - return in_array('*', $key) ? Arr::collapse($result) : $result; - } - - if (Arr::accessible($target) && Arr::exists($target, $segment)) { - $target = $target[$segment]; - } elseif (is_object($target) && isset($target->{$segment})) { - $target = $target->{$segment}; - } else { - return value($default); - } - } - - return $target; - } -} - -if (! function_exists('data_set')) { - /** - * Set an item on an array or object using dot notation. - * - * @param mixed $target - * @param string|array $key - * @param mixed $value - * @param bool $overwrite - * @return mixed - */ - function data_set(&$target, $key, $value, $overwrite = true) - { - $segments = is_array($key) ? $key : explode('.', $key); - - if (($segment = array_shift($segments)) === '*') { - if (! Arr::accessible($target)) { - $target = []; - } - - if ($segments) { - foreach ($target as &$inner) { - data_set($inner, $segments, $value, $overwrite); - } - } elseif ($overwrite) { - foreach ($target as &$inner) { - $inner = $value; - } - } - } elseif (Arr::accessible($target)) { - if ($segments) { - if (! Arr::exists($target, $segment)) { - $target[$segment] = []; - } - - data_set($target[$segment], $segments, $value, $overwrite); - } elseif ($overwrite || ! Arr::exists($target, $segment)) { - $target[$segment] = $value; - } - } elseif (is_object($target)) { - if ($segments) { - if (! isset($target->{$segment})) { - $target->{$segment} = []; - } - - data_set($target->{$segment}, $segments, $value, $overwrite); - } elseif ($overwrite || ! isset($target->{$segment})) { - $target->{$segment} = $value; - } - } else { - $target = []; - - if ($segments) { - data_set($target[$segment], $segments, $value, $overwrite); - } elseif ($overwrite) { - $target[$segment] = $value; - } - } - - return $target; - } -} - -if (! function_exists('dd')) { - /** - * Dump the passed variables and end the script. - * - * @param mixed - * @return void - */ - function dd() - { - array_map(function ($x) { - (new Dumper)->dump($x); - }, func_get_args()); - - die(1); - } -} - -if (! function_exists('e')) { - /** - * Escape HTML special characters in a string. - * - * @param \Illuminate\Contracts\Support\Htmlable|string $value - * @return string - */ - function e($value) - { - if ($value instanceof Htmlable) { - return $value->toHtml(); - } - - return htmlspecialchars($value, ENT_QUOTES, 'UTF-8', false); - } -} - -if (! function_exists('ends_with')) { - /** - * Determine if a given string ends with a given substring. - * - * @param string $haystack - * @param string|array $needles - * @return bool - */ - function ends_with($haystack, $needles) - { - return Str::endsWith($haystack, $needles); - } -} - -if (! function_exists('head')) { - /** - * Get the first element of an array. Useful for method chaining. - * - * @param array $array - * @return mixed - */ - function head($array) - { - return reset($array); - } -} - -if (! function_exists('last')) { - /** - * Get the last element from an array. - * - * @param array $array - * @return mixed - */ - function last($array) - { - return end($array); - } -} - -if (! function_exists('object_get')) { - /** - * Get an item from an object using "dot" notation. - * - * @param object $object - * @param string $key - * @param mixed $default - * @return mixed - */ - function object_get($object, $key, $default = null) - { - if (is_null($key) || trim($key) == '') { - return $object; - } - - foreach (explode('.', $key) as $segment) { - if (! is_object($object) || ! isset($object->{$segment})) { - return value($default); - } - - $object = $object->{$segment}; - } - - return $object; - } -} - -if (! function_exists('preg_replace_array')) { - /** - * Replace a given pattern with each value in the array in sequentially. - * - * @param string $pattern - * @param array $replacements - * @param string $subject - * @return string - */ - function preg_replace_array($pattern, array $replacements, $subject) - { - return preg_replace_callback($pattern, function () use (&$replacements) { - foreach ($replacements as $key => $value) { - return array_shift($replacements); - } - }, $subject); - } -} - -if (! function_exists('retry')) { - /** - * Retry an operation a given number of times. - * - * @param int $times - * @param callable $callback - * @param int $sleep - * @return mixed - * - * @throws \Exception - */ - function retry($times, callable $callback, $sleep = 0) - { - $times--; - - beginning: - try { - return $callback(); - } catch (Exception $e) { - if (! $times) { - throw $e; - } - - $times--; - - if ($sleep) { - usleep($sleep * 1000); - } - - goto beginning; - } - } -} - -if (! function_exists('snake_case')) { - /** - * Convert a string to snake case. - * - * @param string $value - * @param string $delimiter - * @return string - */ - function snake_case($value, $delimiter = '_') - { - return Str::snake($value, $delimiter); - } -} - -if (! function_exists('starts_with')) { - /** - * Determine if a given string starts with a given substring. - * - * @param string $haystack - * @param string|array $needles - * @return bool - */ - function starts_with($haystack, $needles) - { - return Str::startsWith($haystack, $needles); - } -} - -if (! function_exists('str_contains')) { - /** - * Determine if a given string contains a given substring. - * - * @param string $haystack - * @param string|array $needles - * @return bool - */ - function str_contains($haystack, $needles) - { - return Str::contains($haystack, $needles); - } -} - -if (! function_exists('str_finish')) { - /** - * Cap a string with a single instance of a given value. - * - * @param string $value - * @param string $cap - * @return string - */ - function str_finish($value, $cap) - { - return Str::finish($value, $cap); - } -} - -if (! function_exists('str_is')) { - /** - * Determine if a given string matches a given pattern. - * - * @param string $pattern - * @param string $value - * @return bool - */ - function str_is($pattern, $value) - { - return Str::is($pattern, $value); - } -} - -if (! function_exists('str_limit')) { - /** - * Limit the number of characters in a string. - * - * @param string $value - * @param int $limit - * @param string $end - * @return string - */ - function str_limit($value, $limit = 100, $end = '...') - { - return Str::limit($value, $limit, $end); - } -} - -if (! function_exists('str_plural')) { - /** - * Get the plural form of an English word. - * - * @param string $value - * @param int $count - * @return string - */ - function str_plural($value, $count = 2) - { - return Str::plural($value, $count); - } -} - -if (! function_exists('str_random')) { - /** - * Generate a more truly "random" alpha-numeric string. - * - * @param int $length - * @return string - * - * @throws \RuntimeException - */ - function str_random($length = 16) - { - return Str::random($length); - } -} - -if (! function_exists('str_replace_array')) { - /** - * Replace a given value in the string sequentially with an array. - * - * @param string $search - * @param array $replace - * @param string $subject - * @return string - */ - function str_replace_array($search, array $replace, $subject) - { - return Str::replaceArray($search, $replace, $subject); - } -} - -if (! function_exists('str_replace_first')) { - /** - * Replace the first occurrence of a given value in the string. - * - * @param string $search - * @param string $replace - * @param string $subject - * @return string - */ - function str_replace_first($search, $replace, $subject) - { - return Str::replaceFirst($search, $replace, $subject); - } -} - -if (! function_exists('str_replace_last')) { - /** - * Replace the last occurrence of a given value in the string. - * - * @param string $search - * @param string $replace - * @param string $subject - * @return string - */ - function str_replace_last($search, $replace, $subject) - { - return Str::replaceLast($search, $replace, $subject); - } -} - -if (! function_exists('str_singular')) { - /** - * Get the singular form of an English word. - * - * @param string $value - * @return string - */ - function str_singular($value) - { - return Str::singular($value); - } -} - -if (! function_exists('str_slug')) { - /** - * Generate a URL friendly "slug" from a given string. - * - * @param string $title - * @param string $separator - * @return string - */ - function str_slug($title, $separator = '-') - { - return Str::slug($title, $separator); - } -} - -if (! function_exists('studly_case')) { - /** - * Convert a value to studly caps case. - * - * @param string $value - * @return string - */ - function studly_case($value) - { - return Str::studly($value); - } -} - -if (! function_exists('tap')) { - /** - * Call the given Closure with the given value then return the value. - * - * @param mixed $value - * @param callable $callback - * @return mixed - */ - function tap($value, $callback) - { - $callback($value); - - return $value; - } -} - -if (! function_exists('title_case')) { - /** - * Convert a value to title case. - * - * @param string $value - * @return string - */ - function title_case($value) - { - return Str::title($value); - } -} - -if (! function_exists('trait_uses_recursive')) { - /** - * Returns all traits used by a trait and its traits. - * - * @param string $trait - * @return array - */ - function trait_uses_recursive($trait) - { - $traits = class_uses($trait); - - foreach ($traits as $trait) { - $traits += trait_uses_recursive($trait); - } - - return $traits; - } -} - -if (! function_exists('value')) { - /** - * Return the default value of the given value. - * - * @param mixed $value - * @return mixed - */ - function value($value) - { - return $value instanceof Closure ? $value() : $value; - } -} - -if (! function_exists('windows_os')) { - /** - * Determine whether the current environment is Windows based. - * - * @return bool - */ - function windows_os() - { - return strtolower(substr(PHP_OS, 0, 3)) === 'win'; - } -} - -if (! function_exists('with')) { - /** - * Return the given object. Useful for chaining. - * - * @param mixed $object - * @return mixed - */ - function with($object) - { - return $object; - } -} diff --git a/github/vendor/paragonie/random_compat/LICENSE b/github/vendor/paragonie/random_compat/LICENSE deleted file mode 100644 index 45c7017..0000000 --- a/github/vendor/paragonie/random_compat/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Paragon Initiative Enterprises - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/github/vendor/paragonie/random_compat/build-phar.sh b/github/vendor/paragonie/random_compat/build-phar.sh deleted file mode 100755 index b4a5ba3..0000000 --- a/github/vendor/paragonie/random_compat/build-phar.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -basedir=$( dirname $( readlink -f ${BASH_SOURCE[0]} ) ) - -php -dphar.readonly=0 "$basedir/other/build_phar.php" $* \ No newline at end of file diff --git a/github/vendor/paragonie/random_compat/composer.json b/github/vendor/paragonie/random_compat/composer.json deleted file mode 100644 index d363f4c..0000000 --- a/github/vendor/paragonie/random_compat/composer.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "paragonie/random_compat", - "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", - "keywords": [ - "csprng", - "random", - "pseudorandom" - ], - "license": "MIT", - "type": "library", - "authors": [ - { - "name": "Paragon Initiative Enterprises", - "email": "security@paragonie.com", - "homepage": "https://paragonie.com" - } - ], - "support": { - "issues": "https://github.com/paragonie/random_compat/issues", - "email": "info@paragonie.com", - "source": "https://github.com/paragonie/random_compat" - }, - "require": { - "php": ">=5.2.0" - }, - "require-dev": { - "phpunit/phpunit": "4.*|5.*" - }, - "suggest": { - "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." - }, - "autoload": { - "files": ["lib/random.php"] - } -} diff --git a/github/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey b/github/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey deleted file mode 100644 index eb50ebf..0000000 --- a/github/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey +++ /dev/null @@ -1,5 +0,0 @@ ------BEGIN PUBLIC KEY----- -MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEEd+wCqJDrx5B4OldM0dQE0ZMX+lx1ZWm -pui0SUqD4G29L3NGsz9UhJ/0HjBdbnkhIK5xviT0X5vtjacF6ajgcCArbTB+ds+p -+h7Q084NuSuIpNb6YPfoUFgC/CL9kAoc ------END PUBLIC KEY----- diff --git a/github/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey.asc b/github/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey.asc deleted file mode 100644 index 6a1d7f3..0000000 --- a/github/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey.asc +++ /dev/null @@ -1,11 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (MingW32) - -iQEcBAABAgAGBQJWtW1hAAoJEGuXocKCZATaJf0H+wbZGgskK1dcRTsuVJl9IWip -QwGw/qIKI280SD6/ckoUMxKDCJiFuPR14zmqnS36k7N5UNPnpdTJTS8T11jttSpg -1LCmgpbEIpgaTah+cELDqFCav99fS+bEiAL5lWDAHBTE/XPjGVCqeehyPYref4IW -NDBIEsvnHPHPLsn6X5jq4+Yj5oUixgxaMPiR+bcO4Sh+RzOVB6i2D0upWfRXBFXA -NNnsg9/zjvoC7ZW73y9uSH+dPJTt/Vgfeiv52/v41XliyzbUyLalf02GNPY+9goV -JHG1ulEEBJOCiUD9cE1PUIJwHA/HqyhHIvV350YoEFiHl8iSwm7SiZu5kPjaq74= -=B6+8 ------END PGP SIGNATURE----- diff --git a/github/vendor/paragonie/random_compat/lib/byte_safe_strings.php b/github/vendor/paragonie/random_compat/lib/byte_safe_strings.php deleted file mode 100644 index dd03690..0000000 --- a/github/vendor/paragonie/random_compat/lib/byte_safe_strings.php +++ /dev/null @@ -1,181 +0,0 @@ - RandomCompat_strlen($binary_string)) { - return false; - } - - return mb_substr($binary_string, $start, $length, '8bit'); - } - - } else { - - /** - * substr() implementation that isn't brittle to mbstring.func_overload - * - * This version just uses the default substr() - * - * @param string $binary_string - * @param int $start - * @param int $length (optional) - * - * @throws TypeError - * - * @return string - */ - function RandomCompat_substr($binary_string, $start, $length = null) - { - if (!is_string($binary_string)) { - throw new TypeError( - 'RandomCompat_substr(): First argument should be a string' - ); - } - - if (!is_int($start)) { - throw new TypeError( - 'RandomCompat_substr(): Second argument should be an integer' - ); - } - - if ($length !== null) { - if (!is_int($length)) { - throw new TypeError( - 'RandomCompat_substr(): Third argument should be an integer, or omitted' - ); - } - - return substr($binary_string, $start, $length); - } - - return substr($binary_string, $start); - } - } -} diff --git a/github/vendor/paragonie/random_compat/lib/cast_to_int.php b/github/vendor/paragonie/random_compat/lib/cast_to_int.php deleted file mode 100644 index 65e9d21..0000000 --- a/github/vendor/paragonie/random_compat/lib/cast_to_int.php +++ /dev/null @@ -1,71 +0,0 @@ - operators might accidentally let a float - * through. - * - * @param int|float $number The number we want to convert to an int - * @param boolean $fail_open Set to true to not throw an exception - * - * @return int (or float if $fail_open) - * - * @throws TypeError - */ - function RandomCompat_intval($number, $fail_open = false) - { - if (is_numeric($number)) { - $number += 0; - } - - if ( - is_float($number) - && - $number > ~PHP_INT_MAX - && - $number < PHP_INT_MAX - ) { - $number = (int) $number; - } - - if (is_int($number) || $fail_open) { - return $number; - } - - throw new TypeError( - 'Expected an integer.' - ); - } -} diff --git a/github/vendor/paragonie/random_compat/lib/error_polyfill.php b/github/vendor/paragonie/random_compat/lib/error_polyfill.php deleted file mode 100644 index 69ee379..0000000 --- a/github/vendor/paragonie/random_compat/lib/error_polyfill.php +++ /dev/null @@ -1,49 +0,0 @@ -GetRandom() - * 5. openssl_random_pseudo_bytes() (absolute last resort) - * - * See RATIONALE.md for our reasoning behind this particular order - */ - if (extension_loaded('libsodium')) { - // See random_bytes_libsodium.php - if (PHP_VERSION_ID >= 50300 && is_callable('\\Sodium\\randombytes_buf')) { - require_once $RandomCompatDIR.'/random_bytes_libsodium.php'; - } elseif (method_exists('Sodium', 'randombytes_buf')) { - require_once $RandomCompatDIR.'/random_bytes_libsodium_legacy.php'; - } - } - - /** - * Reading directly from /dev/urandom: - */ - if (DIRECTORY_SEPARATOR === '/') { - // DIRECTORY_SEPARATOR === '/' on Unix-like OSes -- this is a fast - // way to exclude Windows. - $RandomCompatUrandom = true; - $RandomCompat_basedir = ini_get('open_basedir'); - - if (!empty($RandomCompat_basedir)) { - $RandomCompat_open_basedir = explode( - PATH_SEPARATOR, - strtolower($RandomCompat_basedir) - ); - $RandomCompatUrandom = (array() !== array_intersect( - array('/dev', '/dev/', '/dev/urandom'), - $RandomCompat_open_basedir - )); - $RandomCompat_open_basedir = null; - } - - if ( - !is_callable('random_bytes') - && - $RandomCompatUrandom - && - @is_readable('/dev/urandom') - ) { - // Error suppression on is_readable() in case of an open_basedir - // or safe_mode failure. All we care about is whether or not we - // can read it at this point. If the PHP environment is going to - // panic over trying to see if the file can be read in the first - // place, that is not helpful to us here. - - // See random_bytes_dev_urandom.php - require_once $RandomCompatDIR.'/random_bytes_dev_urandom.php'; - } - // Unset variables after use - $RandomCompat_basedir = null; - } else { - $RandomCompatUrandom = false; - } - - /** - * mcrypt_create_iv() - * - * We only want to use mcypt_create_iv() if: - * - * - random_bytes() hasn't already been defined - * - PHP >= 5.3.7 - * - the mcrypt extensions is loaded - * - One of these two conditions is true: - * - We're on Windows (DIRECTORY_SEPARATOR !== '/') - * - We're not on Windows and /dev/urandom is readabale - * (i.e. we're not in a chroot jail) - * - Special case: - * - If we're not on Windows, but the PHP version is between - * 5.6.10 and 5.6.12, we don't want to use mcrypt. It will - * hang indefinitely. This is bad. - */ - if ( - !is_callable('random_bytes') - && - PHP_VERSION_ID >= 50307 - && - extension_loaded('mcrypt') - ) { - // Prevent this code from hanging indefinitely on non-Windows; - // see https://bugs.php.net/bug.php?id=69833 - if ( - DIRECTORY_SEPARATOR !== '/' || - (PHP_VERSION_ID <= 50609 || PHP_VERSION_ID >= 50613) - ) { - // See random_bytes_mcrypt.php - require_once $RandomCompatDIR.'/random_bytes_mcrypt.php'; - } - } - $RandomCompatUrandom = null; - - /** - * This is a Windows-specific fallback, for when the mcrypt extension - * isn't loaded. - */ - if ( - !is_callable('random_bytes') - && - extension_loaded('com_dotnet') - && - class_exists('COM') - ) { - $RandomCompat_disabled_classes = preg_split( - '#\s*,\s*#', - strtolower(ini_get('disable_classes')) - ); - - if (!in_array('com', $RandomCompat_disabled_classes)) { - try { - $RandomCompatCOMtest = new COM('CAPICOM.Utilities.1'); - if (method_exists($RandomCompatCOMtest, 'GetRandom')) { - // See random_bytes_com_dotnet.php - require_once $RandomCompatDIR.'/random_bytes_com_dotnet.php'; - } - } catch (com_exception $e) { - // Don't try to use it. - } - } - $RandomCompat_disabled_classes = null; - $RandomCompatCOMtest = null; - } - - /** - * throw new Exception - */ - if (!is_callable('random_bytes')) { - /** - * We don't have any more options, so let's throw an exception right now - * and hope the developer won't let it fail silently. - */ - function random_bytes($length) - { - throw new Exception( - 'There is no suitable CSPRNG installed on your system' - ); - } - } - } - - if (!is_callable('random_int')) { - require_once $RandomCompatDIR.'/random_int.php'; - } - - $RandomCompatDIR = null; -} diff --git a/github/vendor/paragonie/random_compat/lib/random_bytes_com_dotnet.php b/github/vendor/paragonie/random_compat/lib/random_bytes_com_dotnet.php deleted file mode 100644 index f068b6c..0000000 --- a/github/vendor/paragonie/random_compat/lib/random_bytes_com_dotnet.php +++ /dev/null @@ -1,83 +0,0 @@ -GetRandom($bytes, 0)); - if (RandomCompat_strlen($buf) >= $bytes) { - /** - * Return our random entropy buffer here: - */ - return RandomCompat_substr($buf, 0, $bytes); - } - ++$execCount; - } while ($execCount < $bytes); - - /** - * If we reach here, PHP has failed us. - */ - throw new Exception( - 'Could not gather sufficient random data' - ); - } -} \ No newline at end of file diff --git a/github/vendor/paragonie/random_compat/lib/random_bytes_dev_urandom.php b/github/vendor/paragonie/random_compat/lib/random_bytes_dev_urandom.php deleted file mode 100644 index aaccd5a..0000000 --- a/github/vendor/paragonie/random_compat/lib/random_bytes_dev_urandom.php +++ /dev/null @@ -1,150 +0,0 @@ - 0); - - /** - * Is our result valid? - */ - if ($buf !== false) { - if (RandomCompat_strlen($buf) === $bytes) { - /** - * Return our random entropy buffer here: - */ - return $buf; - } - } - } - - /** - * If we reach here, PHP has failed us. - */ - throw new Exception( - 'Error reading from source device' - ); - } -} diff --git a/github/vendor/paragonie/random_compat/lib/random_bytes_libsodium.php b/github/vendor/paragonie/random_compat/lib/random_bytes_libsodium.php deleted file mode 100644 index 025b900..0000000 --- a/github/vendor/paragonie/random_compat/lib/random_bytes_libsodium.php +++ /dev/null @@ -1,88 +0,0 @@ - 2147483647) { - $buf = ''; - for ($i = 0; $i < $bytes; $i += 1073741824) { - $n = ($bytes - $i) > 1073741824 - ? 1073741824 - : $bytes - $i; - $buf .= \Sodium\randombytes_buf($n); - } - } else { - $buf = \Sodium\randombytes_buf($bytes); - } - - if ($buf !== false) { - if (RandomCompat_strlen($buf) === $bytes) { - return $buf; - } - } - - /** - * If we reach here, PHP has failed us. - */ - throw new Exception( - 'Could not gather sufficient random data' - ); - } -} diff --git a/github/vendor/paragonie/random_compat/lib/random_bytes_libsodium_legacy.php b/github/vendor/paragonie/random_compat/lib/random_bytes_libsodium_legacy.php deleted file mode 100644 index f8d6a7f..0000000 --- a/github/vendor/paragonie/random_compat/lib/random_bytes_libsodium_legacy.php +++ /dev/null @@ -1,88 +0,0 @@ - 2147483647) { - $buf = ''; - for ($i = 0; $i < $bytes; $i += 1073741824) { - $n = ($bytes - $i) > 1073741824 - ? 1073741824 - : $bytes - $i; - $buf .= Sodium::randombytes_buf($n); - } - } else { - $buf = Sodium::randombytes_buf($bytes); - } - - if ($buf !== false) { - if (RandomCompat_strlen($buf) === $bytes) { - return $buf; - } - } - - /** - * If we reach here, PHP has failed us. - */ - throw new Exception( - 'Could not gather sufficient random data' - ); - } -} diff --git a/github/vendor/paragonie/random_compat/lib/random_bytes_mcrypt.php b/github/vendor/paragonie/random_compat/lib/random_bytes_mcrypt.php deleted file mode 100644 index f18736d..0000000 --- a/github/vendor/paragonie/random_compat/lib/random_bytes_mcrypt.php +++ /dev/null @@ -1,77 +0,0 @@ - operators might accidentally let a float - * through. - */ - - try { - $min = RandomCompat_intval($min); - } catch (TypeError $ex) { - throw new TypeError( - 'random_int(): $min must be an integer' - ); - } - - try { - $max = RandomCompat_intval($max); - } catch (TypeError $ex) { - throw new TypeError( - 'random_int(): $max must be an integer' - ); - } - - /** - * Now that we've verified our weak typing system has given us an integer, - * let's validate the logic then we can move forward with generating random - * integers along a given range. - */ - if ($min > $max) { - throw new Error( - 'Minimum value must be less than or equal to the maximum value' - ); - } - - if ($max === $min) { - return $min; - } - - /** - * Initialize variables to 0 - * - * We want to store: - * $bytes => the number of random bytes we need - * $mask => an integer bitmask (for use with the &) operator - * so we can minimize the number of discards - */ - $attempts = $bits = $bytes = $mask = $valueShift = 0; - - /** - * At this point, $range is a positive number greater than 0. It might - * overflow, however, if $max - $min > PHP_INT_MAX. PHP will cast it to - * a float and we will lose some precision. - */ - $range = $max - $min; - - /** - * Test for integer overflow: - */ - if (!is_int($range)) { - - /** - * Still safely calculate wider ranges. - * Provided by @CodesInChaos, @oittaa - * - * @ref https://gist.github.com/CodesInChaos/03f9ea0b58e8b2b8d435 - * - * We use ~0 as a mask in this case because it generates all 1s - * - * @ref https://eval.in/400356 (32-bit) - * @ref http://3v4l.org/XX9r5 (64-bit) - */ - $bytes = PHP_INT_SIZE; - $mask = ~0; - - } else { - - /** - * $bits is effectively ceil(log($range, 2)) without dealing with - * type juggling - */ - while ($range > 0) { - if ($bits % 8 === 0) { - ++$bytes; - } - ++$bits; - $range >>= 1; - $mask = $mask << 1 | 1; - } - $valueShift = $min; - } - - /** - * Now that we have our parameters set up, let's begin generating - * random integers until one falls between $min and $max - */ - do { - /** - * The rejection probability is at most 0.5, so this corresponds - * to a failure probability of 2^-128 for a working RNG - */ - if ($attempts > 128) { - throw new Exception( - 'random_int: RNG is broken - too many rejections' - ); - } - - /** - * Let's grab the necessary number of random bytes - */ - $randomByteString = random_bytes($bytes); - if ($randomByteString === false) { - throw new Exception( - 'Random number generator failure' - ); - } - - /** - * Let's turn $randomByteString into an integer - * - * This uses bitwise operators (<< and |) to build an integer - * out of the values extracted from ord() - * - * Example: [9F] | [6D] | [32] | [0C] => - * 159 + 27904 + 3276800 + 201326592 => - * 204631455 - */ - $val = 0; - for ($i = 0; $i < $bytes; ++$i) { - $val |= ord($randomByteString[$i]) << ($i * 8); - } - - /** - * Apply mask - */ - $val &= $mask; - $val += $valueShift; - - ++$attempts; - /** - * If $val overflows to a floating point number, - * ... or is larger than $max, - * ... or smaller than $min, - * then try again. - */ - } while (!is_int($val) || $val > $max || $val < $min); - - return (int) $val; -} diff --git a/github/vendor/paragonie/random_compat/other/build_phar.php b/github/vendor/paragonie/random_compat/other/build_phar.php deleted file mode 100644 index 70ef4b2..0000000 --- a/github/vendor/paragonie/random_compat/other/build_phar.php +++ /dev/null @@ -1,57 +0,0 @@ -buildFromDirectory(dirname(__DIR__).'/lib'); -rename( - dirname(__DIR__).'/lib/index.php', - dirname(__DIR__).'/lib/random.php' -); - -/** - * If we pass an (optional) path to a private key as a second argument, we will - * sign the Phar with OpenSSL. - * - * If you leave this out, it will produce an unsigned .phar! - */ -if ($argc > 1) { - if (!@is_readable($argv[1])) { - echo 'Could not read the private key file:', $argv[1], "\n"; - exit(255); - } - $pkeyFile = file_get_contents($argv[1]); - - $private = openssl_get_privatekey($pkeyFile); - if ($private !== false) { - $pkey = ''; - openssl_pkey_export($private, $pkey); - $phar->setSignatureAlgorithm(Phar::OPENSSL, $pkey); - - /** - * Save the corresponding public key to the file - */ - if (!@is_readable($dist.'/random_compat.phar.pubkey')) { - $details = openssl_pkey_get_details($private); - file_put_contents( - $dist.'/random_compat.phar.pubkey', - $details['key'] - ); - } - } else { - echo 'An error occurred reading the private key from OpenSSL.', "\n"; - exit(255); - } -} diff --git a/github/vendor/raveren/kint/.gitignore b/github/vendor/raveren/kint/.gitignore deleted file mode 100644 index 21a6284..0000000 --- a/github/vendor/raveren/kint/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ - -/config.php -/.idea \ No newline at end of file diff --git a/github/vendor/raveren/kint/Kint.class.php b/github/vendor/raveren/kint/Kint.class.php deleted file mode 100644 index c15e3f4..0000000 --- a/github/vendor/raveren/kint/Kint.class.php +++ /dev/null @@ -1,836 +0,0 @@ -= 0 ); - -require KINT_DIR . 'config.default.php'; -require KINT_DIR . 'inc/kintVariableData.class.php'; -require KINT_DIR . 'inc/kintParser.class.php'; -require KINT_DIR . 'inc/kintObject.class.php'; -require KINT_DIR . 'decorators/rich.php'; -require KINT_DIR . 'decorators/plain.php'; - -if ( is_readable( KINT_DIR . 'config.php' ) ) { - require KINT_DIR . 'config.php'; -} - -# init settings -if ( !empty( $GLOBALS['_kint_settings'] ) ) { - Kint::enabled( $GLOBALS['_kint_settings']['enabled'] ); - - foreach ( $GLOBALS['_kint_settings'] as $key => $val ) { - property_exists( 'Kint', $key ) and Kint::$$key = $val; - } - - unset( $GLOBALS['_kint_settings'], $key, $val ); -} - -class Kint -{ - // these are all public and 1:1 config array keys so you can switch them easily - private static $_enabledMode; # stores mode and active statuses - - public static $returnOutput; - public static $fileLinkFormat; - public static $displayCalledFrom; - public static $charEncodings; - public static $maxStrLength; - public static $appRootDirs; - public static $maxLevels; - public static $theme; - public static $expandedByDefault; - - public static $cliDetection; - public static $cliColors; - - const MODE_RICH = 'r'; - const MODE_WHITESPACE = 'w'; - const MODE_CLI = 'c'; - const MODE_PLAIN = 'p'; - - - public static $aliases = array( - 'methods' => array( - array( 'kint', 'dump' ), - array( 'kint', 'trace' ), - ), - 'functions' => array( - 'd', - 'dd', - 'ddd', - 's', - 'sd', - ) - ); - - private static $_firstRun = true; - - /** - * Enables or disables Kint, can globally enforce the rendering mode. If called without parameters, returns the - * current mode. - * - * @param mixed $forceMode - * null or void - return current mode - * false - disable (no output) - * true - enable and detect cli automatically - * Kint::MODE_* - enable and force selected mode disregarding detection and function - * shorthand (s()/d()), note that you can still override this - * with the "~" modifier - * - * @return mixed previously set value if a new one is passed - */ - public static function enabled( $forceMode = null ) - { - # act both as a setter... - if ( isset( $forceMode ) ) { - $before = self::$_enabledMode; - self::$_enabledMode = $forceMode; - - return $before; - } - - # ...and a getter - return self::$_enabledMode; - } - - /** - * Prints a debug backtrace, same as Kint::dump(1) - * - * @param array $trace [OPTIONAL] you can pass your own trace, otherwise, `debug_backtrace` will be called - * - * @return mixed - */ - public static function trace( $trace = null ) - { - if ( !self::enabled() ) return ''; - - return self::dump( isset( $trace ) ? $trace : debug_backtrace( true ) ); - } - - - /** - * Dump information about variables, accepts any number of parameters, supports modifiers: - * - * clean up any output before kint and place the dump at the top of page: - * - Kint::dump() - * ***** - * expand all nodes on display: - * ! Kint::dump() - * ***** - * dump variables disregarding their depth: - * + Kint::dump() - * ***** - * return output instead of displaying it: - * @ Kint::dump() - * ***** - * force output as plain text - * ~ Kint::dump() - * - * Modifiers are supported by all dump wrapper functions, including Kint::trace(). Space is optional. - * - * - * You can also use the following shorthand to display debug_backtrace(): - * Kint::dump( 1 ); - * - * Passing the result from debug_backtrace() to kint::dump() as a single parameter will display it as trace too: - * $trace = debug_backtrace( true ); - * Kint::dump( $trace ); - * Or simply: - * Kint::dump( debug_backtrace() ); - * - * - * @param mixed $data - * - * @return void|string - */ - public static function dump( $data = null ) - { - if ( !self::enabled() ) return ''; - - list( $names, $modifiers, $callee, $previousCaller, $miniTrace ) = self::_getCalleeInfo( - defined( 'DEBUG_BACKTRACE_IGNORE_ARGS' ) - ? debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ) - : debug_backtrace() - ); - $modeOldValue = self::enabled(); - $firstRunOldValue = self::$_firstRun; - - # process modifiers: @, +, !, ~ and - - if ( strpos( $modifiers, '-' ) !== false ) { - self::$_firstRun = true; - while ( ob_get_level() ) { - ob_end_clean(); - } - } - if ( strpos( $modifiers, '!' ) !== false ) { - $expandedByDefaultOldValue = self::$expandedByDefault; - self::$expandedByDefault = true; - } - if ( strpos( $modifiers, '+' ) !== false ) { - $maxLevelsOldValue = self::$maxLevels; - self::$maxLevels = false; - } - if ( strpos( $modifiers, '@' ) !== false ) { - $returnOldValue = self::$returnOutput; - self::$returnOutput = true; - self::$_firstRun = true; - } - if ( strpos( $modifiers, '~' ) !== false ) { - self::enabled( self::MODE_WHITESPACE ); - } - - # set mode for current run - $mode = self::enabled(); - if ( $mode === true ) { - $mode = PHP_SAPI === 'cli' - ? self::MODE_CLI - : self::MODE_RICH; - } - self::enabled( $mode ); - - $decorator = self::enabled() === self::MODE_RICH - ? 'Kint_Decorators_Rich' - : 'Kint_Decorators_Plain'; - - $output = ''; - if ( self::$_firstRun ) { - $output .= call_user_func( array( $decorator, 'init' ) ); - } - - - $trace = false; - if ( $names === array( null ) && func_num_args() === 1 && $data === 1 ) { # Kint::dump(1) shorthand - $trace = KINT_PHP53 ? debug_backtrace( true ) : debug_backtrace(); - } elseif ( func_num_args() === 1 && is_array( $data ) ) { - $trace = $data; # test if the single parameter is result of debug_backtrace() - } - $trace and $trace = self::_parseTrace( $trace ); - - - $output .= call_user_func( array( $decorator, 'wrapStart' ) ); - if ( $trace ) { - $output .= call_user_func( array( $decorator, 'decorateTrace' ), $trace ); - } else { - $data = func_num_args() === 0 - ? array( "[[no arguments passed]]" ) - : func_get_args(); - - foreach ( $data as $k => $argument ) { - kintParser::reset(); - # when the dump arguments take long to generate output, user might have changed the file and - # Kint might not parse the arguments correctly, so check if names are set and while the - # displayed names might be wrong, at least don't throw an error - $output .= call_user_func( - array( $decorator, 'decorate' ), - kintParser::factory( $argument, isset( $names[ $k ] ) ? $names[ $k ] : '' ) - ); - } - } - - $output .= call_user_func( array( $decorator, 'wrapEnd' ), $callee, $miniTrace, $previousCaller ); - - self::enabled( $modeOldValue ); - - self::$_firstRun = false; - if ( strpos( $modifiers, '~' ) !== false ) { - self::$_firstRun = $firstRunOldValue; - } else { - self::enabled( $modeOldValue ); - } - if ( strpos( $modifiers, '!' ) !== false ) { - self::$expandedByDefault = $expandedByDefaultOldValue; - } - if ( strpos( $modifiers, '+' ) !== false ) { - self::$maxLevels = $maxLevelsOldValue; - } - if ( strpos( $modifiers, '@' ) !== false ) { - self::$returnOutput = $returnOldValue; - self::$_firstRun = $firstRunOldValue; - return $output; - } - - if ( self::$returnOutput ) return $output; - - echo $output; - return ''; - } - - - /** - * generic path display callback, can be configured in the settings; purpose is to show relevant path info and hide - * as much of the path as possible. - * - * @param string $file - * - * @return string - */ - public static function shortenPath( $file ) - { - $file = str_replace( '\\', '/', $file ); - $shortenedName = $file; - $replaced = false; - if ( is_array( self::$appRootDirs ) ) foreach ( self::$appRootDirs as $path => $replaceString ) { - if ( empty( $path ) ) continue; - - $path = str_replace( '\\', '/', $path ); - - if ( strpos( $file, $path ) === 0 ) { - $shortenedName = $replaceString . substr( $file, strlen( $path ) ); - $replaced = true; - break; - } - } - - # fallback to find common path with Kint dir - if ( !$replaced ) { - $pathParts = explode( '/', str_replace( '\\', '/', KINT_DIR ) ); - $fileParts = explode( '/', $file ); - $i = 0; - foreach ( $fileParts as $i => $filePart ) { - if ( !isset( $pathParts[ $i ] ) || $pathParts[ $i ] !== $filePart ) break; - } - - $shortenedName = ( $i ? '.../' : '' ) . implode( '/', array_slice( $fileParts, $i ) ); - } - - return $shortenedName; - } - - public static function getIdeLink( $file, $line ) - { - return str_replace( array( '%f', '%l' ), array( $file, $line ), self::$fileLinkFormat ); - } - - /** - * trace helper, shows the place in code inline - * - * @param string $file full path to file - * @param int $lineNumber the line to display - * @param int $padding surrounding lines to show besides the main one - * - * @return bool|string - */ - private static function _showSource( $file, $lineNumber, $padding = 7 ) - { - if ( !$file OR !is_readable( $file ) ) { - # continuing will cause errors - return false; - } - - # open the file and set the line position - $file = fopen( $file, 'r' ); - $line = 0; - - # Set the reading range - $range = array( - 'start' => $lineNumber - $padding, - 'end' => $lineNumber + $padding - ); - - # set the zero-padding amount for line numbers - $format = '% ' . strlen( $range['end'] ) . 'd'; - - $source = ''; - while ( ( $row = fgets( $file ) ) !== false ) { - # increment the line number - if ( ++$line > $range['end'] ) { - break; - } - - if ( $line >= $range['start'] ) { - # make the row safe for output - $row = htmlspecialchars( $row, ENT_NOQUOTES, 'UTF-8' ); - - # trim whitespace and sanitize the row - $row = '' . sprintf( $format, $line ) . ' ' . $row; - - if ( $line === $lineNumber ) { - # apply highlighting to this row - $row = '
' . $row . '
'; - } else { - $row = '
' . $row . '
'; - } - - # add to the captured source - $source .= $row; - } - } - - # close the file - fclose( $file ); - - return $source; - } - - - /** - * returns parameter names that the function was passed, as well as any predefined symbols before function - * call (modifiers) - * - * @param array $trace - * - * @return array( $parameters, $modifier, $callee, $previousCaller ) - */ - private static function _getCalleeInfo( $trace ) - { - $previousCaller = array(); - $miniTrace = array(); - $prevStep = array(); - - # go from back of trace to find first occurrence of call to Kint or its wrappers - while ( $step = array_pop( $trace ) ) { - - if ( self::_stepIsInternal( $step ) ) { - $previousCaller = $prevStep; - break; - } elseif ( isset( $step['file'], $step['line'] ) ) { - unset( $step['object'], $step['args'] ); - array_unshift( $miniTrace, $step ); - } - - $prevStep = $step; - } - $callee = $step; - - if ( !isset( $callee['file'] ) || !is_readable( $callee['file'] ) ) return false; - - - # open the file and read it up to the position where the function call expression ended - $file = fopen( $callee['file'], 'r' ); - $line = 0; - $source = ''; - while ( ( $row = fgets( $file ) ) !== false ) { - if ( ++$line > $callee['line'] ) break; - $source .= $row; - } - fclose( $file ); - $source = self::_removeAllButCode( $source ); - - - if ( empty( $callee['class'] ) ) { - $codePattern = $callee['function']; - } else { - if ( $callee['type'] === '::' ) { - $codePattern = $callee['class'] . "\x07*" . $callee['type'] . "\x07*" . $callee['function'];; - } else /*if ( $callee['type'] === '->' )*/ { - $codePattern = ".*\x07*" . $callee['type'] . "\x07*" . $callee['function'];; - } - } - - // todo if more than one call in one line - not possible to determine variable names - // todo does not recognize string concat - # get the position of the last call to the function - preg_match_all( " - [ - # beginning of statement - [\x07{(] - - # search for modifiers (group 1) - ([-+!@~]*)? - - # spaces - \x07* - - # check if output is assigned to a variable (group 2) todo: does not detect concat - ( - \\$[a-z0-9_]+ # variable - \x07*\\.?=\x07* # assignment - )? - - # possibly a namespace symbol - \\\\? - - # spaces again - \x07* - - # main call to Kint - {$codePattern} - - # spaces everywhere - \x07* - - # find the character where kint's opening bracket resides (group 3) - (\\() - - ]ix", - $source, - $matches, - PREG_OFFSET_CAPTURE - ); - - $modifiers = end( $matches[1] ); - $assignment = end( $matches[2] ); - $bracket = end( $matches[3] ); - - $modifiers = $modifiers[0]; - if ( $assignment[1] !== -1 ) { - $modifiers .= '@'; - } - - $paramsString = preg_replace( "[\x07+]", ' ', substr( $source, $bracket[1] + 1 ) ); - # we now have a string like this: - # ); - - # remove everything in brackets and quotes, we don't need nested statements nor literal strings which would - # only complicate separating individual arguments - $c = strlen( $paramsString ); - $inString = $escaped = $openedBracket = $closingBracket = false; - $i = 0; - $inBrackets = 0; - $openedBrackets = array(); - - while ( $i < $c ) { - $letter = $paramsString[ $i ]; - - if ( !$inString ) { - if ( $letter === '\'' || $letter === '"' ) { - $inString = $letter; - } elseif ( $letter === '(' || $letter === '[' ) { - $inBrackets++; - $openedBrackets[] = $openedBracket = $letter; - $closingBracket = $openedBracket === '(' ? ')' : ']'; - } elseif ( $inBrackets && $letter === $closingBracket ) { - $inBrackets--; - array_pop( $openedBrackets ); - $openedBracket = end( $openedBrackets ); - $closingBracket = $openedBracket === '(' ? ')' : ']'; - } elseif ( !$inBrackets && $letter === ')' ) { - $paramsString = substr( $paramsString, 0, $i ); - break; - } - } elseif ( $letter === $inString && !$escaped ) { - $inString = false; - } - - # replace whatever was inside quotes or brackets with untypeable characters, we don't - # need that info. We'll later replace the whole string with '...' - if ( $inBrackets > 0 ) { - if ( $inBrackets > 1 || $letter !== $openedBracket ) { - $paramsString[ $i ] = "\x07"; - } - } - if ( $inString ) { - if ( $letter !== $inString || $escaped ) { - $paramsString[ $i ] = "\x07"; - } - } - - $escaped = !$escaped && ( $letter === '\\' ); - $i++; - } - - # by now we have an un-nested arguments list, lets make it to an array for processing further - $arguments = explode( ',', preg_replace( "[\x07+]", '...', $paramsString ) ); - - # test each argument whether it was passed literary or was it an expression or a variable name - $parameters = array(); - $blacklist = array( 'null', 'true', 'false', 'array(...)', 'array()', '"..."', '[...]', 'b"..."', ); - foreach ( $arguments as $argument ) { - $argument = trim( $argument ); - - if ( is_numeric( $argument ) - || in_array( str_replace( "'", '"', strtolower( $argument ) ), $blacklist, true ) - ) { - $parameters[] = null; - } else { - $parameters[] = $argument; - } - } - - return array( $parameters, $modifiers, $callee, $previousCaller, $miniTrace ); - } - - /** - * removes comments and zaps whitespace & true, T_INLINE_HTML => true, T_DOC_COMMENT => true - ); - $whiteSpaceTokens = array( - T_WHITESPACE => true, T_CLOSE_TAG => true, - T_OPEN_TAG => true, T_OPEN_TAG_WITH_ECHO => true, - ); - - $cleanedSource = ''; - foreach ( token_get_all( $source ) as $token ) { - if ( is_array( $token ) ) { - if ( isset( $commentTokens[ $token[0] ] ) ) continue; - - if ( isset( $whiteSpaceTokens[ $token[0] ] ) ) { - $token = "\x07"; - } else { - $token = $token[1]; - } - } elseif ( $token === ';' ) { - $token = "\x07"; - } - - $cleanedSource .= $token; - } - return $cleanedSource; - } - - /** - * returns whether current trace step belongs to Kint or its wrappers - * - * @param $step - * - * @return array - */ - private static function _stepIsInternal( $step ) - { - if ( isset( $step['class'] ) ) { - foreach ( self::$aliases['methods'] as $alias ) { - if ( $alias[0] === strtolower( $step['class'] ) && $alias[1] === strtolower( $step['function'] ) ) { - return true; - } - } - return false; - } else { - return in_array( strtolower( $step['function'] ), self::$aliases['functions'], true ); - } - } - - private static function _parseTrace( array $data ) - { - $trace = array(); - $traceFields = array( 'file', 'line', 'args', 'class' ); - $fileFound = false; # file element must exist in one of the steps - - # validate whether a trace was indeed passed - while ( $step = array_pop( $data ) ) { - if ( !is_array( $step ) || !isset( $step['function'] ) ) return false; - if ( !$fileFound && isset( $step['file'] ) && file_exists( $step['file'] ) ) { - $fileFound = true; - } - - $valid = false; - foreach ( $traceFields as $element ) { - if ( isset( $step[ $element ] ) ) { - $valid = true; - break; - } - } - if ( !$valid ) return false; - - if ( self::_stepIsInternal( $step ) ) { - $step = array( - 'file' => $step['file'], - 'line' => $step['line'], - 'function' => '', - ); - array_unshift( $trace, $step ); - break; - } - if ( $step['function'] !== 'spl_autoload_call' ) { # meaningless - array_unshift( $trace, $step ); - } - } - if ( !$fileFound ) return false; - - $output = array(); - foreach ( $trace as $step ) { - if ( isset( $step['file'] ) ) { - $file = $step['file']; - - if ( isset( $step['line'] ) ) { - $line = $step['line']; - # include the source of this step - if ( self::enabled() === self::MODE_RICH ) { - $source = self::_showSource( $file, $line ); - } - } - } - - $function = $step['function']; - - if ( in_array( $function, array( 'include', 'include_once', 'require', 'require_once' ) ) ) { - if ( empty( $step['args'] ) ) { - # no arguments - $args = array(); - } else { - # sanitize the included file path - $args = array( 'file' => self::shortenPath( $step['args'][0] ) ); - } - } elseif ( isset( $step['args'] ) ) { - if ( empty( $step['class'] ) && !function_exists( $function ) ) { - # introspection on closures or language constructs in a stack trace is impossible before PHP 5.3 - $params = null; - } else { - try { - if ( isset( $step['class'] ) ) { - if ( method_exists( $step['class'], $function ) ) { - $reflection = new ReflectionMethod( $step['class'], $function ); - } else if ( isset( $step['type'] ) && $step['type'] == '::' ) { - $reflection = new ReflectionMethod( $step['class'], '__callStatic' ); - } else { - $reflection = new ReflectionMethod( $step['class'], '__call' ); - } - } else { - $reflection = new ReflectionFunction( $function ); - } - - # get the function parameters - $params = $reflection->getParameters(); - } catch ( Exception $e ) { # avoid various PHP version incompatibilities - $params = null; - } - } - - $args = array(); - foreach ( $step['args'] as $i => $arg ) { - if ( isset( $params[ $i ] ) ) { - # assign the argument by the parameter name - $args[ $params[ $i ]->name ] = $arg; - } else { - # assign the argument by number - $args[ '#' . ( $i + 1 ) ] = $arg; - } - } - } - - if ( isset( $step['class'] ) ) { - # Class->method() or Class::method() - $function = $step['class'] . $step['type'] . $function; - } - - // todo it's possible to parse the object name out from the source! - $output[] = array( - 'function' => $function, - 'args' => isset( $args ) ? $args : null, - 'file' => isset( $file ) ? $file : null, - 'line' => isset( $line ) ? $line : null, - 'source' => isset( $source ) ? $source : null, - 'object' => isset( $step['object'] ) ? $step['object'] : null, - ); - - unset( $function, $args, $file, $line, $source ); - } - - return $output; - } -} - - -if ( !function_exists( 'd' ) ) { - /** - * Alias of Kint::dump() - * - * @return string - */ - function d() - { - if ( !Kint::enabled() ) return ''; - $_ = func_get_args(); - return call_user_func_array( array( 'Kint', 'dump' ), $_ ); - } -} - -if ( !function_exists( 'dd' ) ) { - /** - * Alias of Kint::dump() - * [!!!] IMPORTANT: execution will halt after call to this function - * - * @return string - * @deprecated - */ - function dd() - { - if ( !Kint::enabled() ) return ''; - - echo "
Kint: dd() is being deprecated, please use ddd() instead
\n"; - $_ = func_get_args(); - call_user_func_array( array( 'Kint', 'dump' ), $_ ); - die; - } -} - -if ( !function_exists( 'ddd' ) ) { - /** - * Alias of Kint::dump() - * [!!!] IMPORTANT: execution will halt after call to this function - * - * @return string - */ - function ddd() - { - if ( !Kint::enabled() ) return ''; - $_ = func_get_args(); - call_user_func_array( array( 'Kint', 'dump' ), $_ ); - die; - } -} - -if ( !function_exists( 's' ) ) { - /** - * Alias of Kint::dump(), however the output is in plain htmlescaped text and some minor visibility enhancements - * added. If run in CLI mode, output is pure whitespace. - * - * To force rendering mode without autodetecting anything: - * - * Kint::enabled( Kint::MODE_PLAIN ); - * Kint::dump( $variable ); - * - * [!!!] IMPORTANT: execution will halt after call to this function - * - * @return string - */ - function s() - { - $enabled = Kint::enabled(); - if ( !$enabled ) return ''; - - if ( $enabled === Kint::MODE_WHITESPACE ) { # if already in whitespace, don't elevate to plain - $restoreMode = Kint::MODE_WHITESPACE; - } else { - $restoreMode = Kint::enabled( # remove cli colors in cli mode; remove rich interface in HTML mode - PHP_SAPI === 'cli' ? Kint::MODE_WHITESPACE : Kint::MODE_PLAIN - ); - } - - $params = func_get_args(); - $dump = call_user_func_array( array( 'Kint', 'dump' ), $params ); - Kint::enabled( $restoreMode ); - return $dump; - } -} - -if ( !function_exists( 'sd' ) ) { - /** - * @see s() - * - * [!!!] IMPORTANT: execution will halt after call to this function - * - * @return string - */ - function sd() - { - $enabled = Kint::enabled(); - if ( !$enabled ) return ''; - - if ( $enabled !== Kint::MODE_WHITESPACE ) { - Kint::enabled( - PHP_SAPI === 'cli' ? Kint::MODE_WHITESPACE : Kint::MODE_PLAIN - ); - } - - $params = func_get_args(); - call_user_func_array( array( 'Kint', 'dump' ), $params ); - die; - } -} diff --git a/github/vendor/raveren/kint/LICENCE b/github/vendor/raveren/kint/LICENCE deleted file mode 100644 index 936fe1f..0000000 --- a/github/vendor/raveren/kint/LICENCE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013 Rokas Šleinius (raveren@gmail.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/github/vendor/raveren/kint/README.md b/github/vendor/raveren/kint/README.md deleted file mode 100644 index 74edcba..0000000 --- a/github/vendor/raveren/kint/README.md +++ /dev/null @@ -1,141 +0,0 @@ -# Kint - debugging helper for PHP developers - -[![Total Downloads](https://poser.pugx.org/raveren/kint/downloads.png)](https://packagist.org/packages/raveren/kint) - -> **New version** v1.0.0 is released with more than two years of active development - changes are too numerous to list, but there's CLI output and literally hundreds of improvements and additions. - -![Screenshot](http://raveren.github.com/kint/img/preview.png) - -## What am I looking at? - -At first glance Kint is just a pretty replacement for **[var_dump()](http://php.net/manual/en/function.var-dump.php)**, **[print_r()](http://php.net/manual/en/function.print-r.php)** and **[debug_backtrace()](http://php.net/manual/en/function.debug-backtrace.php)**. - -However, it's much, *much* more than that. Even the excellent `xdebug` var_dump improvements don't come close - you will eventually wonder how you developed without it. - -Just to list some of the most useful features: - - * The **variable name and place in code** where Kint was called from is displayed; - * You can **disable all Kint output easily and on the fly** - so you can even debug live systems without anyone knowing (even though you know you shouldn't be doing that!:). - * **CLI is detected** and formatted for automatically (but everything can be overridden on the fly) - if your setup supports it, the output is colored too: - ![Kint CLI output](http://i.imgur.com/6B9MCLw.png) - * **Debug backtraces** are finally fully readable, actually informative and a pleasure to the eye. - * Kint has been **in active development for more than six years** and is shipped with [Drupal 8](https://www.drupal.org/) by default as part of its devel suite. You can trust it not being abandoned or getting left behind in features. - * Variable content is **displayed in the most informative way** - and you *never, ever* miss anything! Kint guarantees you see every piece of physically available information about everything you are dumping*; - * in some cases, the content is truncated where it would otherwise be too large to view anyway - but the user is always made aware of that; - * Some variable content types have an alternative display - for example you will be able see `JSON` in its raw form - but also as an associative array: - ![Kint displays data intelligently](http://i.imgur.com/9P57Ror.png) - There are more than ten custom variable type displays inbuilt and more are added periodically. - - -## Installation and Usage - -One of the main goals of Kint is to be **zero setup**. - -[Download the archive](https://github.com/raveren/kint/releases/download/1.0.2/kint.zip) and simply -```php -');`) - so even if you accidentally leave a dump in production, no one will know. - * `sd()` and `ddd()` are shorthands for `s();die;` and `d();die;` respectively. - * **Important:** The older shorthand `dd()` is deprecated due to compatibility issues and will eventually be removed. Use the analogous `ddd()` instead. - * When looking at Kint output, press D on the keyboard and you will be able to traverse the tree with arrows and tab keys - and expand/collapse nodes with space or enter. - * Double clicking the `[+]` sign in the output will expand/collapse ALL nodes; triple clicking big blocks of text will select it all. - * Clicking the tiny arrows on the right of the output open it in a separate window where you can keep it for comparison. - * To catch output from Kint just assign it to a variablebeta -```php -$o = Kint::dump($GLOBALS); -// yes, the assignment is automatically detected, and $o -// now holds whatever was going to be printed otherwise. - -// it also supports modifiers (read on) for the variable: -~$o = Kint::dump($GLOBALS); // this output will be in whitespace -``` - * There are a couple of real-time modifiers you can use: - * `~d($var)` this call will output in plain text format. - * `+d($var)` will disregard depth level limits and output everything (careful, this can hang your browser on huge objects) - * `!d($var)` will show expanded rich output. - * `-d($var)` will attempt to `ob_clean` the previous output so if you're dumping something inside a HTML page, you will still see Kint output. - You can combine modifiers too: `~+d($var)` - * To force a specific dump output type just pass it to the `Kint::enabled()` method. Available options are: `Kint::MODE_RICH` (default), `Kint::MODE_PLAIN`, `Kint::MODE_WHITESPACE` and `Kint::MODE_CLI`: -```php -Kint::enabled(Kint::MODE_WHITESPACE); -$kintOutput = Kint::dump($GLOBALS); -// now $kintOutput can be written to a text log file and -// be perfectly readable from there -``` - * To change display theme, use `Kint::$theme = '';` where available options are: `'original'` (default), `'solarized'`, `'solarized-dark'` and `'aante-light'`. Here's an (outdated) preview: - ![Kint themes](http://raveren.github.io/kint/img/theme-preview.png) - * Kint also includes a naïve profiler you may find handy. It's for determining relatively which code blocks take longer than others: -```php -Kint::dump( microtime() ); // just pass microtime() -sleep( 1 ); -Kint::dump( microtime(), 'after sleep(1)' ); -sleep( 2 ); -ddd( microtime(), 'final call, after sleep(2)' ); -``` - ![Kint profiling feature](http://i.imgur.com/tmHUMW4.png) ----- - -[Visit the project page](http://raveren.github.com/kint/) for documentation, configuration, and more advanced usage examples. - -### Author - -**Rokas Šleinius** (Raveren) - -### License - -Licensed under the MIT License diff --git a/github/vendor/raveren/kint/composer.json b/github/vendor/raveren/kint/composer.json deleted file mode 100644 index 78eb1b6..0000000 --- a/github/vendor/raveren/kint/composer.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "raveren/kint", - "description": "Kint - debugging helper for PHP developers", - "keywords": ["kint", "php", "debug"], - "type": "library", - "homepage": "https://github.com/raveren/kint", - "license": "MIT", - "authors": [ - { - "name": "Rokas Šleinius", - "homepage": "https://github.com/raveren" - }, - { - "name": "Contributors", - "homepage": "https://github.com/raveren/kint/contributors" - } - ], - "require": { - "php": ">=5.1.0" - }, - "autoload": { - "files": ["Kint.class.php"] - }, - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/config.default.php b/github/vendor/raveren/kint/config.default.php deleted file mode 100644 index 72f0a69..0000000 --- a/github/vendor/raveren/kint/config.default.php +++ /dev/null @@ -1,94 +0,0 @@ - '<ROOT>' ) - * - * [!] EXAMPLE (for Kohana framework): - * - * $_kintSettings['appRootDirs'] = array( - * APPPATH => 'APPPATH', // make sure the constants are already defined at the time of including this config file - * SYSPATH => 'SYSPATH', - * MODPATH => 'MODPATH', - * DOCROOT => 'DOCROOT', - * ); - * - * [!] EXAMPLE #2 (for a semi-universal approach) - * - * $_kintSettings['appRootDirs'] = array( - * realpath( __DIR__ . '/../../..' ) => 'ROOT', // go up as many levels as needed in the realpath() param - * ); - * - * $_kintSettings['fileLinkFormat'] = 'http://localhost:8091/?message=%f:%l'; - * - */ -$_kintSettings['appRootDirs'] = isset( $_SERVER['DOCUMENT_ROOT'] ) - ? array( $_SERVER['DOCUMENT_ROOT'] => '<ROOT>' ) - : array(); - - -/** @var int max length of string before it is truncated and displayed separately in full. Zero or false to disable */ -$_kintSettings['maxStrLength'] = 80; - -/** @var array possible alternative char encodings in order of probability, eg. array('windows-1251') */ -$_kintSettings['charEncodings'] = array( - 'UTF-8', - 'Windows-1252', # Western; includes iso-8859-1, replace this with windows-1251 if you have Russian code - 'euc-jp', # Japanese - - # all other charsets cannot be differentiated by PHP and/or are not supported by mb_* functions, - # I need a better means of detecting the codeset, no idea how though :( - - // 'iso-8859-13', # Baltic - // 'windows-1251', # Cyrillic - // 'windows-1250', # Central European - // 'shift_jis', # Japanese - // 'iso-2022-jp', # Japanese -); - - -/** @var int max array/object levels to go deep, if zero no limits are applied */ -$_kintSettings['maxLevels'] = 7; - - -/** @var string name of theme for rich view */ -$_kintSettings['theme'] = 'original'; - - -/** @var bool enable detection when Kint is command line. Formats output with whitespace only; does not HTML-escape it */ -$_kintSettings['cliDetection'] = true; - -/** @var bool in addition to above setting, enable detection when Kint is run in *UNIX* command line. - * Attempts to add coloring, but if seen as plain text, the color information is visible as gibberish - */ -$_kintSettings['cliColors'] = true; - - -unset( $_kintSettings ); \ No newline at end of file diff --git a/github/vendor/raveren/kint/decorators/plain.php b/github/vendor/raveren/kint/decorators/plain.php deleted file mode 100644 index 22ebd2a..0000000 --- a/github/vendor/raveren/kint/decorators/plain.php +++ /dev/null @@ -1,335 +0,0 @@ - '1', 'dark' => '2', - 'italic' => '3', 'underline' => '4', - 'blink' => '5', 'reverse' => '7', - 'concealed' => '8', 'default' => '39', - - # colors - 'black' => '30', 'red' => '31', - 'green' => '32', 'yellow' => '33', - 'blue' => '34', 'magenta' => '35', - 'cyan' => '36', 'light_gray' => '37', - 'dark_gray' => '90', 'light_red' => '91', - 'light_green' => '92', 'light_yellow' => '93', - 'light_blue' => '94', 'light_magenta' => '95', - 'light_cyan' => '96', 'white' => '97', - - # backgrounds - 'bg_default' => '49', 'bg_black' => '40', - 'bg_red' => '41', 'bg_green' => '42', - 'bg_yellow' => '43', 'bg_blue' => '44', - 'bg_magenta' => '45', 'bg_cyan' => '46', - 'bg_light_gray' => '47', 'bg_dark_gray' => '100', - 'bg_light_red' => '101', 'bg_light_green' => '102', - 'bg_light_yellow' => '103', 'bg_light_blue' => '104', - 'bg_light_magenta' => '105', 'bg_light_cyan' => '106', - 'bg_white' => '107', - ); - private static $_utfSymbols = array( - '┌', '═', '┐', - '│', - '└', '─', '┘', - ); - private static $_winShellSymbols = array( - "\xda", "\xdc", "\xbf", - "\xb3", - "\xc0", "\xc4", "\xd9", - ); - private static $_htmlSymbols = array( - "┌", "▄", "┐", - "│", - "└", "─", "┘", - ); - - public static function decorate( kintVariableData $kintVar, $level = 0 ) - { - $output = ''; - if ( $level === 0 ) { - $name = $kintVar->name ? $kintVar->name : 'literal'; - $kintVar->name = null; - - $output .= self::_title( $name ); - } - - - $space = str_repeat( $s = ' ', $level ); - $output .= $space . self::_drawHeader( $kintVar ); - - - if ( $kintVar->extendedValue !== null ) { - $output .= ' ' . ( $kintVar->type === 'array' ? '[' : '(' ) . PHP_EOL; - - - if ( is_array( $kintVar->extendedValue ) ) { - foreach ( $kintVar->extendedValue as $v ) { - $output .= self::decorate( $v, $level + 1 ); - } - } elseif ( is_string( $kintVar->extendedValue ) ) { - $output .= $space . $s . $kintVar->extendedValue . PHP_EOL; # depth too great or similar - } else { - $output .= self::decorate( $kintVar->extendedValue, $level + 1 ); //it's kintVariableData - } - $output .= $space . ( $kintVar->type === 'array' ? ']' : ')' ) . PHP_EOL; - } else { - $output .= PHP_EOL; - } - - return $output; - } - - public static function decorateTrace( $traceData ) - { - $output = self::_title( 'TRACE' ); - $lastStep = count( $traceData ); - foreach ( $traceData as $stepNo => $step ) { - $title = str_pad( ++$stepNo . ': ', 4, ' ' ); - - $title .= self::_colorize( - ( isset( $step['file'] ) ? self::_buildCalleeString( $step ) : 'PHP internal call' ), - 'title' - ); - - if ( !empty( $step['function'] ) ) { - $title .= ' ' . $step['function']; - if ( isset( $step['args'] ) ) { - $title .= '('; - if ( empty( $step['args'] ) ) { - $title .= ')'; - } else { - } - $title .= PHP_EOL; - } - } - - $output .= $title; - - if ( !empty( $step['args'] ) ) { - $appendDollar = $step['function'] === '{closure}' ? '' : '$'; - - $i = 0; - foreach ( $step['args'] as $name => $argument ) { - $argument = kintParser::factory( - $argument, - $name ? $appendDollar . $name : '#' . ++$i - ); - $argument->operator = $name ? ' =' : ':'; - $maxLevels = Kint::$maxLevels; - if ( $maxLevels ) { - Kint::$maxLevels = $maxLevels + 2; - } - $output .= self::decorate( $argument, 2 ); - if ( $maxLevels ) { - Kint::$maxLevels = $maxLevels; - } - } - $output .= ' )' . PHP_EOL; - } - - if ( !empty( $step['object'] ) ) { - $output .= self::_colorize( - ' ' . self::_char( '─', 27 ) . ' Callee object ' . self::_char( '─', 34 ), - 'title' - ); - - $maxLevels = Kint::$maxLevels; - if ( $maxLevels ) { - # in cli the terminal window is filled too quickly to display huge objects - Kint::$maxLevels = Kint::enabled() === Kint::MODE_CLI - ? 1 - : $maxLevels + 1; - } - $output .= self::decorate( kintParser::factory( $step['object'] ), 1 ); - if ( $maxLevels ) { - Kint::$maxLevels = $maxLevels; - } - } - - if ( $stepNo !== $lastStep ) { - $output .= self::_colorize( self::_char( '─', 80 ), 'title' ); - } - } - - return $output; - } - - - private static function _colorize( $text, $type, $nlAfter = true ) - { - $nlAfter = $nlAfter ? PHP_EOL : ''; - - switch ( Kint::enabled() ) { - case Kint::MODE_PLAIN: - if ( !self::$_enableColors ) return $text . $nlAfter; - - switch ( $type ) { - case 'value': - $text = "{$text}"; - break; - case 'type': - $text = "{$text}"; - break; - case 'title': - $text = "{$text}"; - break; - } - - return $text . $nlAfter; - break; - case Kint::MODE_CLI: - if ( !self::$_enableColors ) return $text . $nlAfter; - - $optionsMap = array( - 'title' => "\x1b[36m", # cyan - 'type' => "\x1b[35;1m", # magenta bold - 'value' => "\x1b[32m", # green - ); - - return $optionsMap[ $type ] . $text . "\x1b[0m" . $nlAfter; - break; - case Kint::MODE_WHITESPACE: - default: - return $text . $nlAfter; - break; - } - } - - - private static function _char( $char, $repeat = null ) - { - switch ( Kint::enabled() ) { - case Kint::MODE_PLAIN: - $char = self::$_htmlSymbols[ array_search( $char, self::$_utfSymbols, true ) ]; - break; - case Kint::MODE_CLI: - $inWindowsShell = PHP_SAPI === 'cli' && DIRECTORY_SEPARATOR !== '/'; - if ( $inWindowsShell ) { - $char = self::$_winShellSymbols[ array_search( $char, self::$_utfSymbols, true ) ]; - } - break; - case Kint::MODE_WHITESPACE: - default: - break; - } - - return $repeat ? str_repeat( $char, $repeat ) : $char; - } - - private static function _title( $text ) - { - $escaped = kintParser::escape( $text ); - $lengthDifference = strlen( $escaped ) - strlen( $text ); - return - self::_colorize( - self::_char( '┌' ) . self::_char( '─', 78 ) . self::_char( '┐' ) . PHP_EOL - . self::_char( '│' ), - 'title', - false - ) - - . self::_colorize( str_pad( $escaped, 78 + $lengthDifference, ' ', STR_PAD_BOTH ), 'title', false ) - - . self::_colorize( self::_char( '│' ) . PHP_EOL - . self::_char( '└' ) . self::_char( '─', 78 ) . self::_char( '┘' ), - 'title' - ); - } - - public static function wrapStart() - { - if ( Kint::enabled() === Kint::MODE_PLAIN ) { - return '
';
-		}
-		return '';
-	}
-
-	public static function wrapEnd( $callee, $miniTrace, $prevCaller )
-	{
-		$lastLine = self::_colorize( self::_char( "═", 80 ), 'title' );
-		$lastChar = Kint::enabled() === Kint::MODE_PLAIN ? '
' : ''; - - - if ( !Kint::$displayCalledFrom ) return $lastLine . $lastChar; - - - return $lastLine . self::_colorize( 'Called from ' . self::_buildCalleeString( $callee ), 'title' ) . $lastChar; - } - - - private static function _drawHeader( kintVariableData $kintVar ) - { - $output = ''; - - if ( $kintVar->access ) { - $output .= ' ' . $kintVar->access; - } - - if ( $kintVar->name !== null && $kintVar->name !== '' ) { - $output .= ' ' . kintParser::escape( $kintVar->name ); - } - - if ( $kintVar->operator ) { - $output .= ' ' . $kintVar->operator; - } - - $output .= ' ' . self::_colorize( $kintVar->type, 'type', false ); - - if ( $kintVar->size !== null ) { - $output .= ' (' . $kintVar->size . ')'; - } - - - if ( $kintVar->value !== null && $kintVar->value !== '' ) { - $output .= ' ' . self::_colorize( - $kintVar->value, # escape shell - 'value', - false - ); - } - - return ltrim( $output ); - } - - private static function _buildCalleeString( $callee ) - { - if ( Kint::enabled() === Kint::MODE_CLI ) { // todo win/nix - return "+{$callee['line']} {$callee['file']}"; - } - - $url = Kint::getIdeLink( $callee['file'], $callee['line'] ); - $shortenedName = Kint::shortenPath( $callee['file'] ) . ':' . $callee['line']; - - if ( Kint::enabled() === Kint::MODE_PLAIN ) { - if ( strpos( $url, 'http://' ) === 0 ) { - $calleeInfo = "{$shortenedName}"; - } else { - $calleeInfo = "{$shortenedName}"; - } - } else { - $calleeInfo = $shortenedName; - } - - return $calleeInfo; - } - - public static function init() - { - self::$_enableColors = - Kint::$cliColors - && ( DIRECTORY_SEPARATOR === '/' || getenv( 'ANSICON' ) !== false || getenv( 'ConEmuANSI' ) === 'ON' ); - - return Kint::enabled() === Kint::MODE_PLAIN - ? '' - : ''; - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/decorators/rich.php b/github/vendor/raveren/kint/decorators/rich.php deleted file mode 100644 index bb6c978..0000000 --- a/github/vendor/raveren/kint/decorators/rich.php +++ /dev/null @@ -1,319 +0,0 @@ -'; - - $extendedPresent = $kintVar->extendedValue !== null || $kintVar->_alternatives !== null; - - if ( $extendedPresent ) { - $class = 'kint-parent'; - if ( Kint::$expandedByDefault ) { - $class .= ' kint-show'; - } - $output .= '
'; - } else { - $output .= '
'; - } - - if ( $extendedPresent ) { - $output .= ''; - } - - $output .= self::_drawHeader( $kintVar ) . $kintVar->value . '
'; - - - if ( $extendedPresent ) { - $output .= '
'; - } - - if ( isset( $kintVar->extendedValue ) ) { - - if ( is_array( $kintVar->extendedValue ) ) { - foreach ( $kintVar->extendedValue as $v ) { - $output .= self::decorate( $v ); - } - } elseif ( is_string( $kintVar->extendedValue ) ) { - $output .= '
' . $kintVar->extendedValue . '
'; - } else { - $output .= self::decorate( $kintVar->extendedValue ); //it's kint's container - } - - } elseif ( isset( $kintVar->_alternatives ) ) { - $output .= "
    "; - - foreach ( $kintVar->_alternatives as $k => $var ) { - $active = $k === 0 ? ' class="kint-active-tab"' : ''; - $output .= "" . self::_drawHeader( $var, false ) . ''; - } - - $output .= "
    "; - - foreach ( $kintVar->_alternatives as $var ) { - $output .= "
  • "; - - $var = $var->value; - - if ( is_array( $var ) ) { - foreach ( $var as $v ) { - $output .= is_string( $v ) - ? '
    ' . $v . '
    ' - : self::decorate( $v ); - } - } elseif ( is_string( $var ) ) { - $output .= '
    ' . $var . '
    '; - } elseif ( isset( $var ) ) { - throw new Exception( - 'Kint has encountered an error, ' - . 'please paste this report to https://github.com/raveren/kint/issues
    ' - . 'Error encountered at ' . basename( __FILE__ ) . ':' . __LINE__ . '
    ' - . ' variables: ' - . htmlspecialchars( var_export( $kintVar->_alternatives, true ), ENT_QUOTES ) - ); - } - - $output .= "
  • "; - } - - $output .= "
"; - } - if ( $extendedPresent ) { - $output .= '
'; - } - - $output .= ''; - - return $output; - } - - public static function decorateTrace( $traceData ) - { - $output = '
'; - - foreach ( $traceData as $i => $step ) { - $class = 'kint-parent'; - if ( Kint::$expandedByDefault ) { - $class .= ' kint-show'; - } - - $output .= '
' - . '' . ( $i + 1 ) . ' ' - . '' - . ''; - - if ( isset( $step['file'] ) ) { - $output .= self::_ideLink( $step['file'], $step['line'] ); - } else { - $output .= 'PHP internal call'; - } - - $output .= ''; - - $output .= $step['function']; - - if ( isset( $step['args'] ) ) { - $output .= '(' . implode( ', ', array_keys( $step['args'] ) ) . ')'; - } - $output .= '
'; - $firstTab = ' class="kint-active-tab"'; - $output .= '
    '; - - if ( !empty( $step['source'] ) ) { - $output .= "Source"; - $firstTab = ''; - } - - if ( !empty( $step['args'] ) ) { - $output .= "Arguments"; - $firstTab = ''; - } - - if ( !empty( $step['object'] ) ) { - kintParser::reset(); - $calleeDump = kintParser::factory( $step['object'] ); - - $output .= "Callee object [{$calleeDump->type}]"; - } - - - $output .= '
    '; - - - if ( !empty( $step['source'] ) ) { - $output .= "
  • {$step['source']}
  • "; - } - - if ( !empty( $step['args'] ) ) { - $output .= "
  • "; - foreach ( $step['args'] as $k => $arg ) { - kintParser::reset(); - $output .= self::decorate( kintParser::factory( $arg, $k ) ); - } - $output .= "
  • "; - } - if ( !empty( $step['object'] ) ) { - $output .= "
  • " . self::decorate( $calleeDump ) . "
  • "; - } - - $output .= '
'; - } - $output .= '
'; - - return $output; - } - - - /** - * called for each dump, opens the html tag - * - * @param array $callee caller information taken from debug backtrace - * - * @return string - */ - public static function wrapStart() - { - return "
"; - } - - - /** - * closes Kint::_wrapStart() started html tags and displays callee information - * - * @param array $callee caller information taken from debug backtrace - * @param array $miniTrace full path to kint call - * @param array $prevCaller previous caller information taken from debug backtrace - * - * @return string - */ - public static function wrapEnd( $callee, $miniTrace, $prevCaller ) - { - if ( !Kint::$displayCalledFrom ) { - return '
'; - } - - $callingFunction = ''; - $calleeInfo = ''; - $traceDisplay = ''; - if ( isset( $prevCaller['class'] ) ) { - $callingFunction = $prevCaller['class']; - } - if ( isset( $prevCaller['type'] ) ) { - $callingFunction .= $prevCaller['type']; - } - if ( isset( $prevCaller['function'] ) - && !in_array( $prevCaller['function'], array( 'include', 'include_once', 'require', 'require_once' ) ) - ) { - $callingFunction .= $prevCaller['function'] . '()'; - } - $callingFunction and $callingFunction = " [{$callingFunction}]"; - - - if ( isset( $callee['file'] ) ) { - $calleeInfo .= 'Called from ' . self::_ideLink( $callee['file'], $callee['line'] ); - } - - if ( !empty( $miniTrace ) ) { - $traceDisplay = '
    '; - foreach ( $miniTrace as $step ) { - $traceDisplay .= '
  1. ' . self::_ideLink( $step['file'], $step['line'] ); // closing tag not required - if ( isset( $step['function'] ) - && !in_array( $step['function'], array( 'include', 'include_once', 'require', 'require_once' ) ) - ) { - $classString = ' ['; - if ( isset( $step['class'] ) ) { - $classString .= $step['class']; - } - if ( isset( $step['type'] ) ) { - $classString .= $step['type']; - } - $classString .= $step['function'] . '()]'; - $traceDisplay .= $classString; - } - } - $traceDisplay .= '
'; - - $calleeInfo = '' . $calleeInfo; - } - - - return "
" - . ' ' - . "{$calleeInfo}{$callingFunction}{$traceDisplay}" - . "
"; - } - - - private static function _drawHeader( kintVariableData $kintVar, $verbose = true ) - { - $output = ''; - if ( $verbose ) { - if ( $kintVar->access !== null ) { - $output .= "" . $kintVar->access . " "; - } - - if ( $kintVar->name !== null && $kintVar->name !== '' ) { - $output .= "" . kintParser::escape( $kintVar->name ) . " "; - } - - if ( $kintVar->operator !== null ) { - $output .= $kintVar->operator . " "; - } - } - - if ( $kintVar->type !== null ) { - if ( $verbose ) { - $output .= ""; - } - - $output .= $kintVar->type; - - if ( $verbose ) { - $output .= ""; - } else { - $output .= " "; - } - } - - - if ( $kintVar->size !== null ) { - $output .= "(" . $kintVar->size . ") "; - } - - return $output; - } - - private static function _ideLink( $file, $line ) - { - $shortenedPath = Kint::shortenPath( $file ); - if ( !Kint::$fileLinkFormat ) return $shortenedPath . ':' . $line; - - $ideLink = Kint::getIdeLink( $file, $line ); - $class = ( strpos( $ideLink, 'http://' ) === 0 ) ? 'class="kint-ide-link" ' : ''; - return "{$shortenedPath}:{$line}"; - } - - - /** - * produces css and js required for display. May be called multiple times, will only produce output once per - * pageload or until `-` or `@` modifier is used - * - * @return string - */ - public static function init() - { - $baseDir = KINT_DIR . 'view/compiled/'; - - if ( !is_readable( $cssFile = $baseDir . Kint::$theme . '.css' ) ) { - $cssFile = $baseDir . 'original.css'; - } - - return - '' - . '\n"; - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/examples/overview.php b/github/vendor/raveren/kint/examples/overview.php deleted file mode 100644 index 70f5be9..0000000 --- a/github/vendor/raveren/kint/examples/overview.php +++ /dev/null @@ -1,176 +0,0 @@ -additionalData = $data; } - - /** - * @return \DateTime date object - */ - public function getCreatedDate() { } - - /** - * @param \DateTime $date - */ - public function setCreatedDate( DateTime $date ) { $this->createdDate = $date; } - - /** - * Dummy method that triggers trace - */ - public function ensure() { Kint::trace(); } -} - -class UserManager -{ - private $user; - - /** - * Get user from manager - */ - public function getUser() { return $this->user; } - - /** - * Debug specific user - * - * @param \User $user - */ - public function debugUser( $user ) - { - $this->user = $user; - d( $this->getUser() ); - } - - /** - * Ensure user (triggers ensure() method on \User object that trace) - * - * @void - */ - public function ensureUser() { $this->user->ensure(); } -} - -$user = new User; -$user->setAdditionalData( array( - 'last_login' => new DateTime(), - 'current_unix_timestamp' => time(), - 'random_rgb_color_code' => '#FF9900', - 'impressions' => 60, - 'nickname' => 'Someuser', - ) -); -$user->setCreatedDate( new DateTime( '2013-10-10' ) ); -$userManager = new UserManager(); - -for ( $i = 1; $i < 6; $i++ ) { - $tabularData[] = array( - 'date' => "2013-01-0{$i}", - 'allowed' => $i % 3 == 0, - 'action' => "action {$i}", - 'clicks' => rand( 100, 50000 ), - 'impressions' => rand( 10000, 500000 ), - ); - - if ( $i % 2 == 0 ) { - unset( $tabularData[ $i - 1 ]['clicks'] ); - } -} - -$nestedArray = array(); - -for ( $i = 1; $i < 6; $i++ ) { - $nestedArray["user group {$i}"] = array( - "user {$i}" => array( - 'name' => "Name {$i}", - 'surname' => "Surname {$i}" - ), - - 'data' => array( - 'conversions' => rand( 100, 5000 ), - 'spent' => array( 'currency' => 'EUR', 'amount' => rand( 10000, 500000 ) ) - ), - ); -} -?> - - - Kint PHP debugging tool - overview - - -
- - -

Kint PHP debugging tool - overview

-
-

Debug variables

-debugUser( $user ); -d( $userManager, $tabularData ); -d( $nestedArray ); -?> -

Trace

-ensureUser(); ?> - - \ No newline at end of file diff --git a/github/vendor/raveren/kint/inc/kintObject.class.php b/github/vendor/raveren/kint/inc/kintObject.class.php deleted file mode 100644 index 6365123..0000000 --- a/github/vendor/raveren/kint/inc/kintObject.class.php +++ /dev/null @@ -1,19 +0,0 @@ - self::$_level, - 'objects' => self::$_objects, - ); - - self::$_level++; - - $varData = new kintVariableData; - $varData->name = $name; - - # first parse the variable based on its type - $varType = gettype( $variable ); - $varType === 'unknown type' and $varType = 'unknown'; # PHP 5.4 inconsistency - $methodName = '_parse_' . $varType; - - # objects can be presented in a different way altogether, INSTEAD, not ALONGSIDE the generic parser - if ( $varType === 'object' ) { - foreach ( self::$_objectParsers as $parserClass ) { - $className = 'Kint_Objects_' . $parserClass; - - /** @var $object KintObject */ - $object = new $className; - if ( ( $alternativeTabs = $object->parse( $variable ) ) !== false ) { - self::$_skipAlternatives = true; - $alternativeDisplay = new kintVariableData; - $alternativeDisplay->type = $object->name; - $alternativeDisplay->value = $object->value; - $alternativeDisplay->name = $name; - - foreach ( $alternativeTabs as $name => $values ) { - $alternative = kintParser::factory( $values ); - $alternative->type = $name; - if ( Kint::enabled() === Kint::MODE_RICH ) { - empty( $alternative->value ) and $alternative->value = $alternative->extendedValue; - $alternativeDisplay->_alternatives[] = $alternative; - } else { - $alternativeDisplay->extendedValue[] = $alternative; - } - } - - self::$_skipAlternatives = false; - self::$_level = $revert['level']; - self::$_objects = $revert['objects']; - return $alternativeDisplay; - } - } - } - - # base type parser returning false means "stop processing further": e.g. recursion - if ( self::$methodName( $variable, $varData ) === false ) { - self::$_level--; - return $varData; - } - - if ( Kint::enabled() === Kint::MODE_RICH && !self::$_skipAlternatives ) { - # if an alternative returns something that can be represented in an alternative way, don't :) - self::$_skipAlternatives = true; - - # now check whether the variable can be represented in a different way - foreach ( self::$_customDataTypes as $parserClass ) { - $className = 'Kint_Parsers_' . $parserClass; - - /** @var $parser kintParser */ - $parser = new $className; - $parser->name = $name; # the parser may overwrite the name value, so set it first - - if ( $parser->_parse( $variable ) !== false ) { - $varData->_alternatives[] = $parser; - } - } - - - # if alternatives exist, push extendedValue to their front and display it as one of alternatives - if ( !empty( $varData->_alternatives ) && isset( $varData->extendedValue ) ) { - $_ = new kintVariableData; - - $_->value = $varData->extendedValue; - $_->type = 'contents'; - $_->size = null; - - array_unshift( $varData->_alternatives, $_ ); - $varData->extendedValue = null; - } - - self::$_skipAlternatives = false; - } - - self::$_level = $revert['level']; - self::$_objects = $revert['objects']; - - if ( strlen( $varData->name ) > 80 ) { - $varData->name = - self::_substr( $varData->name, 0, 37 ) - . '...' - . self::_substr( $varData->name, -38, null ); - } - return $varData; - } - - private static function _checkDepth() - { - return Kint::$maxLevels != 0 && self::$_level >= Kint::$maxLevels; - } - - private static function _isArrayTabular( array $variable ) - { - if ( Kint::enabled() !== Kint::MODE_RICH ) return false; - - $arrayKeys = array(); - $keys = null; - $closeEnough = false; - foreach ( $variable as $row ) { - if ( !is_array( $row ) || empty( $row ) ) return false; - - foreach ( $row as $col ) { - if ( !empty( $col ) && !is_scalar( $col ) ) return false; // todo add tabular "tolerance" - } - - if ( isset( $keys ) && !$closeEnough ) { - # let's just see if the first two rows have same keys, that's faster and has the - # positive side effect of easily spotting missing keys in later rows - if ( $keys !== array_keys( $row ) ) return false; - - $closeEnough = true; - } else { - $keys = array_keys( $row ); - } - - $arrayKeys = array_unique( array_merge( $arrayKeys, $keys ) ); - } - - return $arrayKeys; - } - - private static function _decorateCell( kintVariableData $kintVar ) - { - if ( $kintVar->extendedValue !== null || !empty( $kintVar->_alternatives ) ) { - return '' . Kint_Decorators_Rich::decorate( $kintVar ) . ''; - } - - $output = 'value !== null ) { - $output .= ' title="' . $kintVar->type; - - if ( $kintVar->size !== null ) { - $output .= " (" . $kintVar->size . ")"; - } - - $output .= '">' . $kintVar->value; - } else { - $output .= '>'; - - if ( $kintVar->type !== 'NULL' ) { - $output .= '' . $kintVar->type; - - if ( $kintVar->size !== null ) { - $output .= "(" . $kintVar->size . ")"; - } - - $output .= ''; - } else { - $output .= 'NULL'; - } - } - - - return $output . ''; - } - - - public static function escape( $value, $encoding = null ) - { - if ( empty( $value ) ) return $value; - - if ( Kint::enabled() === Kint::MODE_CLI ) { - $value = str_replace( "\x1b", "\\x1b", $value ); - } - - if ( Kint::enabled() === Kint::MODE_CLI || Kint::enabled() === Kint::MODE_WHITESPACE ) return $value; - - $encoding or $encoding = self::_detectEncoding( $value ); - $value = htmlspecialchars( $value, ENT_NOQUOTES, $encoding === 'ASCII' ? 'UTF-8' : $encoding ); - - - if ( $encoding === 'UTF-8' ) { - // todo we could make the symbols hover-title show the code for the invisible symbol - # when possible force invisible characters to have some sort of display (experimental) - $value = preg_replace( '/[\x00-\x08\x0B\x0C\x0E-\x1F\x80-\x9F]/u', '?', $value ); - } - - # this call converts all non-ASCII characters into html chars of format - if ( function_exists( 'mb_encode_numericentity' ) ) { - $value = mb_encode_numericentity( - $value, - array( 0x80, 0xffff, 0, 0xffff, ), - $encoding - ); - } - - return $value; - } - - - private static $_dealingWithGlobals = false; - - private static function _parse_array( &$variable, kintVariableData $variableData ) - { - isset( self::$_marker ) or self::$_marker = "\x00" . uniqid(); - - # naturally, $GLOBALS variable is an intertwined recursion nightmare, use black magic - $globalsDetector = false; - if ( array_key_exists( 'GLOBALS', $variable ) && is_array( $variable['GLOBALS'] ) ) { - $globalsDetector = "\x01" . uniqid(); - - $variable['GLOBALS'][ $globalsDetector ] = true; - if ( isset( $variable[ $globalsDetector ] ) ) { - unset( $variable[ $globalsDetector ] ); - self::$_dealingWithGlobals = true; - } else { - unset( $variable['GLOBALS'][ $globalsDetector ] ); - $globalsDetector = false; - } - } - - $variableData->type = 'array'; - $variableData->size = count( $variable ); - - if ( $variableData->size === 0 ) { - return; - } - if ( isset( $variable[ self::$_marker ] ) ) { # recursion; todo mayhaps show from where - if ( self::$_dealingWithGlobals ) { - $variableData->value = '*RECURSION*'; - } else { - unset( $variable[ self::$_marker ] ); - $variableData->value = self::$_marker; - } - return false; - } - if ( self::_checkDepth() ) { - $variableData->extendedValue = "*DEPTH TOO GREAT*"; - return false; - } - - $isSequential = self::_isSequential( $variable ); - - if ( $variableData->size > 1 && ( $arrayKeys = self::_isArrayTabular( $variable ) ) !== false ) { - $variable[ self::$_marker ] = true; # this must be AFTER _isArrayTabular - $firstRow = true; - $extendedValue = ''; - - foreach ( $variable as $rowIndex => & $row ) { - # display strings in their full length - self::$_placeFullStringInValue = true; - - if ( $rowIndex === self::$_marker ) continue; - - if ( isset( $row[ self::$_marker ] ) ) { - $variableData->value = "*RECURSION*"; - return false; - } - - - $extendedValue .= ''; - if ( $isSequential ) { - $output = ''; - } else { - $output = self::_decorateCell( kintParser::factory( $rowIndex ) ); - } - if ( $firstRow ) { - $extendedValue .= ''; - } - - # we iterate the known full set of keys from all rows in case some appeared at later rows, - # as we only check the first two to assume - foreach ( $arrayKeys as $key ) { - if ( $firstRow ) { - $extendedValue .= ''; - } - - if ( !array_key_exists( $key, $row ) ) { - $output .= ''; - continue; - } - - $var = kintParser::factory( $row[ $key ] ); - - if ( $var->value === self::$_marker ) { - $variableData->value = '*RECURSION*'; - return false; - } elseif ( $var->value === '*RECURSION*' ) { - $output .= ''; - } else { - $output .= self::_decorateCell( $var ); - } - unset( $var ); - } - - if ( $firstRow ) { - $extendedValue .= ''; - $firstRow = false; - } - - $extendedValue .= $output . ''; - } - self::$_placeFullStringInValue = false; - - $variableData->extendedValue = $extendedValue . '
' . '#' . ( $rowIndex + 1 ) . ' ' . self::escape( $key ) . '*RECURSION*
'; - - } else { - $variable[ self::$_marker ] = true; - $extendedValue = array(); - - foreach ( $variable as $key => & $val ) { - if ( $key === self::$_marker ) continue; - - $output = kintParser::factory( $val ); - if ( $output->value === self::$_marker ) { - $variableData->value = "*RECURSION*"; // recursion occurred on a higher level, thus $this is recursion - return false; - } - if ( !$isSequential ) { - $output->operator = '=>'; - } - $output->name = $isSequential ? null : "'" . $key . "'"; - $extendedValue[] = $output; - } - $variableData->extendedValue = $extendedValue; - } - - if ( $globalsDetector ) { - self::$_dealingWithGlobals = false; - } - - unset( $variable[ self::$_marker ] ); - } - - - private static function _parse_object( &$variable, kintVariableData $variableData ) - { - if ( function_exists( 'spl_object_hash' ) ) { - $hash = spl_object_hash( $variable ); - } else { - ob_start(); - var_dump( $variable ); - preg_match( '[#(\d+)]', ob_get_clean(), $match ); - $hash = $match[1]; - } - - $castedArray = (array) $variable; - $variableData->type = get_class( $variable ); - $variableData->size = count( $castedArray ); - - if ( isset( self::$_objects[ $hash ] ) ) { - $variableData->value = '*RECURSION*'; - return false; - } - if ( self::_checkDepth() ) { - $variableData->extendedValue = "*DEPTH TOO GREAT*"; - return false; - } - - - # ArrayObject (and maybe ArrayIterator, did not try yet) unsurprisingly consist of mainly dark magic. - # What bothers me most, var_dump sees no problem with it, and ArrayObject also uses a custom, - # undocumented serialize function, so you can see the properties in internal functions, but - # can never iterate some of them if the flags are not STD_PROP_LIST. Fun stuff. - if ( $variableData->type === 'ArrayObject' || is_subclass_of( $variable, 'ArrayObject' ) ) { - $arrayObjectFlags = $variable->getFlags(); - $variable->setFlags( ArrayObject::STD_PROP_LIST ); - } - - self::$_objects[ $hash ] = true; // todo store reflectorObject here for alternatives cache - $reflector = new ReflectionObject( $variable ); - - # add link to definition of userland objects - if ( Kint::enabled() === Kint::MODE_RICH && Kint::$fileLinkFormat && $reflector->isUserDefined() ) { - $url = Kint::getIdeLink( $reflector->getFileName(), $reflector->getStartLine() ); - - $class = ( strpos( $url, 'http://' ) === 0 ) ? 'class="kint-ide-link" ' : ''; - $variableData->type = "{$variableData->type}"; - } - $variableData->size = 0; - - $extendedValue = array(); - $encountered = array(); - - # copy the object as an array as it provides more info than Reflection (depends) - foreach ( $castedArray as $key => $value ) { - /* casting object to array: - * integer properties are inaccessible; - * private variables have the class name prepended to the variable name; - * protected variables have a '*' prepended to the variable name. - * These prepended values have null bytes on either side. - * http://www.php.net/manual/en/language.types.array.php#language.types.array.casting - */ - if ( $key{0} === "\x00" ) { - - $access = $key{1} === "*" ? "protected" : "private"; - - // Remove the access level from the variable name - $key = substr( $key, strrpos( $key, "\x00" ) + 1 ); - } else { - $access = "public"; - } - - $encountered[ $key ] = true; - - $output = kintParser::factory( $value, self::escape( $key ) ); - $output->access = $access; - $output->operator = '->'; - $extendedValue[] = $output; - $variableData->size++; - } - - foreach ( $reflector->getProperties() as $property ) { - $name = $property->name; - if ( $property->isStatic() || isset( $encountered[ $name ] ) ) continue; - - if ( $property->isProtected() ) { - $property->setAccessible( true ); - $access = "protected"; - } elseif ( $property->isPrivate() ) { - $property->setAccessible( true ); - $access = "private"; - } else { - $access = "public"; - } - - $value = $property->getValue( $variable ); - - $output = kintParser::factory( $value, self::escape( $name ) ); - $output->access = $access; - $output->operator = '->'; - $extendedValue[] = $output; - $variableData->size++; - } - - if ( isset( $arrayObjectFlags ) ) { - $variable->setFlags( $arrayObjectFlags ); - } - - if ( $variableData->size ) { - $variableData->extendedValue = $extendedValue; - } - } - - - private static function _parse_boolean( &$variable, kintVariableData $variableData ) - { - $variableData->type = 'bool'; - $variableData->value = $variable ? 'TRUE' : 'FALSE'; - } - - private static function _parse_double( &$variable, kintVariableData $variableData ) - { - $variableData->type = 'float'; - $variableData->value = $variable; - } - - private static function _parse_integer( &$variable, kintVariableData $variableData ) - { - $variableData->type = 'integer'; - $variableData->value = $variable; - } - - private static function _parse_null( &$variable, kintVariableData $variableData ) - { - $variableData->type = 'NULL'; - } - - private static function _parse_resource( &$variable, kintVariableData $variableData ) - { - $resourceType = get_resource_type( $variable ); - $variableData->type = "resource ({$resourceType})"; - - if ( $resourceType === 'stream' && $meta = stream_get_meta_data( $variable ) ) { - - if ( isset( $meta['uri'] ) ) { - $file = $meta['uri']; - - if ( function_exists( 'stream_is_local' ) ) { - // Only exists on PHP >= 5.2.4 - if ( stream_is_local( $file ) ) { - $file = Kint::shortenPath( $file ); - } - } - - $variableData->value = $file; - } - } - } - - private static function _parse_string( &$variable, kintVariableData $variableData ) - { - $variableData->type = 'string'; - - $encoding = self::_detectEncoding( $variable ); - if ( $encoding !== 'ASCII' ) { - $variableData->type .= ' ' . $encoding; - } - - - $variableData->size = self::_strlen( $variable, $encoding ); - if ( Kint::enabled() !== Kint::MODE_RICH ) { - $variableData->value = '"' . self::escape( $variable, $encoding ) . '"'; - return; - } - - - if ( !self::$_placeFullStringInValue ) { - - $strippedString = preg_replace( '[\s+]', ' ', $variable ); - if ( Kint::$maxStrLength && $variableData->size > Kint::$maxStrLength ) { - - // encode and truncate - $variableData->value = '"' - . self::escape( self::_substr( $strippedString, 0, Kint::$maxStrLength, $encoding ), $encoding ) - . '…"'; - $variableData->extendedValue = self::escape( $variable, $encoding ); - - return; - } elseif ( $variable !== $strippedString ) { // omit no data from display - - $variableData->value = '"' . self::escape( $variable, $encoding ) . '"'; - $variableData->extendedValue = self::escape( $variable, $encoding ); - - return; - } - } - - $variableData->value = '"' . self::escape( $variable, $encoding ) . '"'; - } - - private static function _parse_unknown( &$variable, kintVariableData $variableData ) - { - $type = gettype( $variable ); - $variableData->type = "UNKNOWN" . ( !empty( $type ) ? " ({$type})" : '' ); - $variableData->value = var_export( $variable, true ); - } - -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/inc/kintVariableData.class.php b/github/vendor/raveren/kint/inc/kintVariableData.class.php deleted file mode 100644 index 3ac567e..0000000 --- a/github/vendor/raveren/kint/inc/kintVariableData.class.php +++ /dev/null @@ -1,102 +0,0 @@ -getMethods() as $method ) { - $params = array(); - - // Access type - $access = implode( ' ', Reflection::getModifierNames( $method->getModifiers() ) ); - - // Method parameters - foreach ( $method->getParameters() as $param ) { - $paramString = ''; - - if ( $param->isArray() ) { - $paramString .= 'array '; - } else { - try { - if ( $paramClassName = $param->getClass() ) { - $paramString .= $paramClassName->name . ' '; - } - } catch ( ReflectionException $e ) { - preg_match( '/\[\s\<\w+?>\s([\w]+)/s', $param->__toString(), $matches ); - $paramClassName = isset( $matches[1] ) ? $matches[1] : ''; - - $paramString .= ' UNDEFINED CLASS (' . $paramClassName . ') '; - } - } - - $paramString .= ( $param->isPassedByReference() ? '&' : '' ) . '$' . $param->getName(); - - if ( $param->isDefaultValueAvailable() ) { - if ( is_array( $param->getDefaultValue() ) ) { - $arrayValues = array(); - foreach ( $param->getDefaultValue() as $key => $value ) { - $arrayValues[] = $key . ' => ' . $value; - } - - $defaultValue = 'array(' . implode( ', ', $arrayValues ) . ')'; - } elseif ( $param->getDefaultValue() === null ) { - $defaultValue = 'NULL'; - } elseif ( $param->getDefaultValue() === false ) { - $defaultValue = 'false'; - } elseif ( $param->getDefaultValue() === true ) { - $defaultValue = 'true'; - } elseif ( $param->getDefaultValue() === '' ) { - $defaultValue = '""'; - } else { - $defaultValue = $param->getDefaultValue(); - } - - $paramString .= ' = ' . $defaultValue; - } - - $params[] = $paramString; - } - - $output = new kintVariableData; - - // Simple DocBlock parser, look for @return - if ( ( $docBlock = $method->getDocComment() ) ) { - $matches = array(); - if ( preg_match_all( '/@(\w+)\s+(.*)\r?\n/m', $docBlock, $matches ) ) { - $lines = array_combine( $matches[1], $matches[2] ); - if ( isset( $lines['return'] ) ) { - $output->operator = '->'; - # since we're outputting code, assumption that the string is utf8 is most likely correct - # and saves resources - $output->type = self::escape( $lines['return'], 'UTF-8' ); - } - } - } - - $output->name = ( $method->returnsReference() ? '&' : '' ) . $method->getName() . '(' - . implode( ', ', $params ) . ')'; - $output->access = $access; - - if ( is_string( $docBlock ) ) { - $lines = array(); - foreach ( explode( "\n", $docBlock ) as $line ) { - $line = trim( $line ); - - if ( in_array( $line, array( '/**', '/*', '*/' ) ) ) { - continue; - } elseif ( strpos( $line, '*' ) === 0 ) { - $line = substr( $line, 1 ); - } - - $lines[] = self::escape( trim( $line ), 'UTF-8' ); - } - - $output->extendedValue = implode( "\n", $lines ) . "\n\n"; - } - - $declaringClass = $method->getDeclaringClass(); - $declaringClassName = $declaringClass->getName(); - - if ( $declaringClassName !== $className ) { - $output->extendedValue .= "Inherited from {$declaringClassName}\n"; - } - - $fileName = Kint::shortenPath( $method->getFileName() ) . ':' . $method->getStartLine(); - $output->extendedValue .= "Defined in {$fileName}"; - - $sortName = $access . $method->getName(); - - if ( $method->isPrivate() ) { - $private[ $sortName ] = $output; - } elseif ( $method->isProtected() ) { - $protected[ $sortName ] = $output; - } else { - $public[ $sortName ] = $output; - } - } - - if ( !$private && !$protected && !$public ) { - self::$cache[ $className ] = false; - } - - ksort( $public ); - ksort( $protected ); - ksort( $private ); - - self::$cache[ $className ] = $public + $protected + $private; - } - - if ( count( self::$cache[ $className ] ) === 0 ) { - return false; - } - - $this->value = self::$cache[ $className ]; - $this->type = 'Available methods'; - $this->size = count( self::$cache[ $className ] ); - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/parsers/custom/classstatics.php b/github/vendor/raveren/kint/parsers/custom/classstatics.php deleted file mode 100644 index cde23c6..0000000 --- a/github/vendor/raveren/kint/parsers/custom/classstatics.php +++ /dev/null @@ -1,49 +0,0 @@ -getProperties( ReflectionProperty::IS_STATIC ) as $property ) { - if ( $property->isPrivate() ) { - if ( !method_exists( $property, 'setAccessible' ) ) { - break; - } - $property->setAccessible( true ); - $access = "private"; - } elseif ( $property->isProtected() ) { - $property->setAccessible( true ); - $access = "protected"; - } else { - $access = 'public'; - } - - $_ = $property->getValue(); - $output = kintParser::factory( $_, '$' . $property->getName() ); - - $output->access = $access; - $output->operator = '::'; - $extendedValue[] = $output; - } - - foreach ( $reflection->getConstants() as $constant => $val ) { - $output = kintParser::factory( $val, $constant ); - - $output->access = 'constant'; - $output->operator = '::'; - $extendedValue[] = $output; - } - - if ( empty( $extendedValue ) ) return false; - - $this->value = $extendedValue; - $this->type = 'Static class properties'; - $this->size = count( $extendedValue ); - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/parsers/custom/color.php b/github/vendor/raveren/kint/parsers/custom/color.php deleted file mode 100644 index 5ca44d8..0000000 --- a/github/vendor/raveren/kint/parsers/custom/color.php +++ /dev/null @@ -1,400 +0,0 @@ -'#f0f8ff','antiquewhite'=>'#faebd7','aqua'=>'#00ffff','aquamarine'=>'#7fffd4','azure'=>'#f0ffff', - 'beige'=>'#f5f5dc','bisque'=>'#ffe4c4','black'=>'#000000','blanchedalmond'=>'#ffebcd','blue'=>'#0000ff', - 'blueviolet'=>'#8a2be2','brown'=>'#a52a2a','burlywood'=>'#deb887','cadetblue'=>'#5f9ea0','chartreuse'=>'#7fff00', - 'chocolate'=>'#d2691e','coral'=>'#ff7f50','cornflowerblue'=>'#6495ed','cornsilk'=>'#fff8dc','crimson'=>'#dc143c', - 'cyan'=>'#00ffff','darkblue'=>'#00008b','darkcyan'=>'#008b8b','darkgoldenrod'=>'#b8860b','darkgray'=>'#a9a9a9', - 'darkgrey'=>'#a9a9a9','darkgreen'=>'#006400','darkkhaki'=>'#bdb76b','darkmagenta'=>'#8b008b', - 'darkolivegreen'=>'#556b2f','darkorange'=>'#ff8c00','darkorchid'=>'#9932cc','darkred'=>'#8b0000', - 'darksalmon'=>'#e9967a','darkseagreen'=>'#8fbc8f','darkslateblue'=>'#483d8b','darkslategray'=>'#2f4f4f', - 'darkslategrey'=>'#2f4f4f','darkturquoise'=>'#00ced1','darkviolet'=>'#9400d3','deeppink'=>'#ff1493', - 'deepskyblue'=>'#00bfff','dimgray'=>'#696969','dimgrey'=>'#696969','dodgerblue'=>'#1e90ff', - 'firebrick'=>'#b22222','floralwhite'=>'#fffaf0','forestgreen'=>'#228b22','fuchsia'=>'#ff00ff', - 'gainsboro'=>'#dcdcdc','ghostwhite'=>'#f8f8ff','gold'=>'#ffd700','goldenrod'=>'#daa520','gray'=>'#808080', - 'grey'=>'#808080','green'=>'#008000','greenyellow'=>'#adff2f','honeydew'=>'#f0fff0','hotpink'=>'#ff69b4', - 'indianred'=>'#cd5c5c','indigo'=>'#4b0082','ivory'=>'#fffff0','khaki'=>'#f0e68c','lavender'=>'#e6e6fa', - 'lavenderblush'=>'#fff0f5','lawngreen'=>'#7cfc00','lemonchiffon'=>'#fffacd','lightblue'=>'#add8e6', - 'lightcoral'=>'#f08080','lightcyan'=>'#e0ffff','lightgoldenrodyellow'=>'#fafad2','lightgray'=>'#d3d3d3', - 'lightgrey'=>'#d3d3d3','lightgreen'=>'#90ee90','lightpink'=>'#ffb6c1','lightsalmon'=>'#ffa07a', - 'lightseagreen'=>'#20b2aa','lightskyblue'=>'#87cefa','lightslategray'=>'#778899','lightslategrey'=>'#778899', - 'lightsteelblue'=>'#b0c4de','lightyellow'=>'#ffffe0','lime'=>'#00ff00','limegreen'=>'#32cd32','linen'=>'#faf0e6', - 'magenta'=>'#ff00ff','maroon'=>'#800000','mediumaquamarine'=>'#66cdaa','mediumblue'=>'#0000cd', - 'mediumorchid'=>'#ba55d3','mediumpurple'=>'#9370d8','mediumseagreen'=>'#3cb371','mediumslateblue'=>'#7b68ee', - 'mediumspringgreen'=>'#00fa9a','mediumturquoise'=>'#48d1cc','mediumvioletred'=>'#c71585', - 'midnightblue'=>'#191970','mintcream'=>'#f5fffa','mistyrose'=>'#ffe4e1','moccasin'=>'#ffe4b5', - 'navajowhite'=>'#ffdead','navy'=>'#000080','oldlace'=>'#fdf5e6','olive'=>'#808000','olivedrab'=>'#6b8e23', - 'orange'=>'#ffa500','orangered'=>'#ff4500','orchid'=>'#da70d6','palegoldenrod'=>'#eee8aa','palegreen'=>'#98fb98', - 'paleturquoise'=>'#afeeee','palevioletred'=>'#d87093','papayawhip'=>'#ffefd5','peachpuff'=>'#ffdab9', - 'peru'=>'#cd853f','pink'=>'#ffc0cb','plum'=>'#dda0dd','powderblue'=>'#b0e0e6','purple'=>'#800080', - 'red'=>'#ff0000','rosybrown'=>'#bc8f8f','royalblue'=>'#4169e1','saddlebrown'=>'#8b4513','salmon'=>'#fa8072', - 'sandybrown'=>'#f4a460','seagreen'=>'#2e8b57','seashell'=>'#fff5ee','sienna'=>'#a0522d','silver'=>'#c0c0c0', - 'skyblue'=>'#87ceeb','slateblue'=>'#6a5acd','slategray'=>'#708090','slategrey'=>'#708090','snow'=>'#fffafa', - 'springgreen'=>'#00ff7f','steelblue'=>'#4682b4','tan'=>'#d2b48c','teal'=>'#008080','thistle'=>'#d8bfd8', - 'tomato'=>'#ff6347','turquoise'=>'#40e0d0','violet'=>'#ee82ee','wheat'=>'#f5deb3','white'=>'#ffffff', - 'whitesmoke'=>'#f5f5f5','yellow'=>'#ffff00','yellowgreen'=>'#9acd32' - ); - - - protected function _parse( & $variable ) - { - if ( !self::_fits( $variable ) ) return false; - - $this->type = 'CSS color'; - $variants = self::_convert( $variable ); - $this->value = - "
{$variable}
" - . "hex : {$variants['hex']}\n" - . "rgb : {$variants['rgb']}\n" - . ( isset( $variants['name'] ) ? "name: {$variants['name']}\n" : '' ) - . "hsl : {$variants['hsl']}"; - } - - - private static function _fits( $variable ) - { - if ( !is_string( $variable ) ) return false; - - $var = strtolower( trim( $variable ) ); - - return isset( self::$_css3Named[$var] ) - || preg_match( - '/^(?:#[0-9A-Fa-f]{3}|#[0-9A-Fa-f]{6}|(?:rgb|hsl)a?\s*\((?:\s*[0-9.%]+\s*,?){3,4}\))$/', - $var - ); - } - - private static function _convert( $color ) - { - $color = strtolower( $color ); - $decimalColors = array(); - $variants = array( - 'hex' => null, - 'rgb' => null, - 'name' => null, - 'hsl' => null, - ); - - if ( isset( self::$_css3Named[ $color ] ) ) { - $variants['name'] = $color; - $color = self::$_css3Named[ $color ]; - } - - if ( $color{0} === '#' ) { - $variants['hex'] = $color; - $color = substr( $color, 1 ); - if ( strlen( $color ) === 6 ) { - $colors = str_split( $color, 2 ); - } else { - $colors = array( - $color{0} . $color{0}, - $color{1} . $color{1}, - $color{2} . $color{2}, - ); - } - - $decimalColors = array_map( 'hexdec', $colors ); - } elseif ( substr( $color, 0, 3 ) === 'rgb' ) { - $variants['rgb'] = $color; - preg_match_all( '#([0-9.%]+)#', $color, $matches ); - $decimalColors = $matches[1]; - foreach ( $decimalColors as &$color ) { - if ( strpos( $color, '%' ) !== false ) { - $color = str_replace( '%', '', $color ) * 2.55; - } - } - - - } elseif ( substr( $color, 0, 3 ) === 'hsl' ) { - $variants['hsl'] = $color; - preg_match_all( '#([0-9.%]+)#', $color, $matches ); - - $colors = $matches[1]; - $colors[0] /= 360; - $colors[1] = str_replace( '%', '', $colors[1] ) / 100; - $colors[2] = str_replace( '%', '', $colors[2] ) / 100; - - $decimalColors = self::_HSLtoRGB( $colors ); - if ( isset( $colors[3] ) ) { - $decimalColors[] = $colors[3]; - } - } - - if ( isset( $decimalColors[3] ) ) { - $alpha = $decimalColors[3]; - unset( $decimalColors[3] ); - } else { - $alpha = null; - } - foreach ( $variants as $type => &$variant ) { - if ( isset( $variant ) ) continue; - - switch ( $type ) { - case 'hex': - $variant = '#'; - foreach ( $decimalColors as &$color ) { - $variant .= str_pad( dechex( $color ), 2, "0", STR_PAD_LEFT ); - } - $variant .= isset( $alpha ) ? ' (alpha omitted)' : ''; - break; - case 'rgb': - $rgb = $decimalColors; - if ( isset( $alpha ) ) { - $rgb[] = $alpha; - $a = 'a'; - } else { - $a = ''; - } - $variant = "rgb{$a}( " . implode( ', ', $rgb ) . " )"; - break; - case 'hsl': - $rgb = self::_RGBtoHSL( $decimalColors ); - if ( $rgb === null ) { - unset( $variants[ $type ] ); - break; - } - if ( isset( $alpha ) ) { - $rgb[] = $alpha; - $a = 'a'; - } else { - $a = ''; - } - - $variant = "hsl{$a}( " . implode( ', ', $rgb ) . " )"; - break; - case 'name': - // [!] name in initial variants array must go after hex - if ( ( $key = array_search( $variants['hex'], self::$_css3Named, true ) ) !== false ) { - $variant = $key; - } else { - unset( $variants[ $type ] ); - } - break; - } - - } - - return $variants; - } - - - private static function _HSLtoRGB( array $hsl ) - { - list( $h, $s, $l ) = $hsl; - $m2 = ( $l <= 0.5 ) ? $l * ( $s + 1 ) : $l + $s - $l * $s; - $m1 = $l * 2 - $m2; - return array( - round( self::_hue2rgb( $m1, $m2, $h + 0.33333 ) * 255 ), - round( self::_hue2rgb( $m1, $m2, $h ) * 255 ), - round( self::_hue2rgb( $m1, $m2, $h - 0.33333 ) * 255 ), - ); - } - - - /** - * Helper function for _color_hsl2rgb(). - */ - private static function _hue2rgb( $m1, $m2, $h ) - { - $h = ( $h < 0 ) ? $h + 1 : ( ( $h > 1 ) ? $h - 1 : $h ); - if ( $h * 6 < 1 ) return $m1 + ( $m2 - $m1 ) * $h * 6; - if ( $h * 2 < 1 ) return $m2; - if ( $h * 3 < 2 ) return $m1 + ( $m2 - $m1 ) * ( 0.66666 - $h ) * 6; - return $m1; - } - - - private static function _RGBtoHSL( array $rgb ) - { - list( $clrR, $clrG, $clrB ) = $rgb; - - $clrMin = min( $clrR, $clrG, $clrB ); - $clrMax = max( $clrR, $clrG, $clrB ); - $deltaMax = $clrMax - $clrMin; - - $L = ( $clrMax + $clrMin ) / 510; - - if ( 0 == $deltaMax ) { - $H = 0; - $S = 0; - } else { - if ( 0.5 > $L ) { - $S = $deltaMax / ( $clrMax + $clrMin ); - } else { - $S = $deltaMax / ( 510 - $clrMax - $clrMin ); - } - - if ( $clrMax == $clrR ) { - $H = ( $clrG - $clrB ) / ( 6.0 * $deltaMax ); - } else if ( $clrMax == $clrG ) { - $H = 1 / 3 + ( $clrB - $clrR ) / ( 6.0 * $deltaMax ); - } else { - $H = 2 / 3 + ( $clrR - $clrG ) / ( 6.0 * $deltaMax ); - } - - if ( 0 > $H ) $H += 1; - if ( 1 < $H ) $H -= 1; - } - return array( - round( $H * 360 ), - round( $S * 100 ) . '%', - round( $L * 100 ) . '%' - ); - - } -} - -/* ************* - * TEST DATA - * -dd(array( -'hsl(0, 100%,50%)', -'hsl(30, 100%,50%)', -'hsl(60, 100%,50%)', -'hsl(90, 100%,50%)', -'hsl(120,100%,50%)', -'hsl(150,100%,50%)', -'hsl(180,100%,50%)', -'hsl(210,100%,50%)', -'hsl(240,100%,50%)', -'hsl(270,100%,50%)', -'hsl(300,100%,50%)', -'hsl(330,100%,50%)', -'hsl(360,100%,50%)', -'hsl(120,100%,25%)', -'hsl(120,100%,50%)', -'hsl(120,100%,75%)', -'hsl(120,100%,50%)', -'hsl(120, 67%,50%)', -'hsl(120, 33%,50%)', -'hsl(120, 0%,50%)', -'hsl(120, 60%,70%)', -'#f03', -'#F03', -'#ff0033', -'#FF0033', -'rgb(255,0,51)', -'rgb(255, 0, 51)', -'rgb(100%,0%,20%)', -'rgb(100%, 0%, 20%)', -'hsla(240,100%,50%,0.05)', -'hsla(240,100%,50%, 0.4)', -'hsla(240,100%,50%, 0.7)', -'hsla(240,100%,50%, 1)', -'rgba(255,0,0,0.1)', -'rgba(255,0,0,0.4)', -'rgba(255,0,0,0.7)', -'rgba(255,0,0, 1)', -'black', -'silver', -'gray', -'white', -'maroon', -'red', -'purple', -'fuchsia', -'green', -'lime', -'olive', -'yellow', -'navy', -'blue', -'teal', -'aqua', -'orange', -'aliceblue', -'antiquewhite', -'aquamarine', -'azure', -'beige', -'bisque', -'blanchedalmond', -'blueviolet', -'brown', -'burlywood', -'cadetblue', -'chartreuse', -'chocolate', -'coral', -'cornflowerblue', -'cornsilk', -'crimson', -'darkblue', -'darkcyan', -'darkgoldenrod', -'darkgray', -'darkgreen', -'darkgrey', -'darkkhaki', -'darkmagenta', -'darkolivegreen', -'darkorange', -'darkorchid', -'darkred', -'darksalmon', -'darkseagreen', -'darkslateblue', -'darkslategray', -'darkslategrey', -'darkturquoise', -'darkviolet', -'deeppink', -'deepskyblue', -'dimgray', -'dimgrey', -'dodgerblue', -'firebrick', -'floralwhite', -'forestgreen', -'gainsboro', -'ghostwhite', -'gold', -'goldenrod', -'greenyellow', -'grey', -'honeydew', -'hotpink', -'indianred', -'indigo', -'ivory', -'khaki', -'lavender', -'lavenderblush', -'lawngreen', -'lemonchiffon', -'lightblue', -'lightcoral', -'lightcyan', -'lightgoldenrodyellow', -'lightgray', -'lightgreen', -'lightgrey', -'lightpink', -'lightsalmon', -'lightseagreen', -'lightskyblue', -'lightslategray', -'lightslategrey', -'lightsteelblue', -'lightyellow', -'limegreen', -'linen', -'mediumaquamarine', -'mediumblue', -'mediumorchid', -'mediumpurple', -'mediumseagreen', -'mediumslateblue', -'mediumspringgreen', -'mediumturquoise', -'mediumvioletred', -'midnightblue', -'mintcream', -'mistyrose', -'moccasin', -'navajowhite', -'oldlace', -'olivedrab', -));*/ \ No newline at end of file diff --git a/github/vendor/raveren/kint/parsers/custom/fspath.php b/github/vendor/raveren/kint/parsers/custom/fspath.php deleted file mode 100644 index 0610391..0000000 --- a/github/vendor/raveren/kint/parsers/custom/fspath.php +++ /dev/null @@ -1,69 +0,0 @@ - 2048 - || preg_match( '[[:?<>"*|]]', $variable ) - || !@is_readable( $variable ) # f@#! PHP and its random warnings - ) return false; - - try { - $fileInfo = new SplFileInfo( $variable ); - $flags = array(); - $perms = $fileInfo->getPerms(); - - if ( ( $perms & 0xC000 ) === 0xC000 ) { - $type = 'File socket'; - $flags[] = 's'; - } elseif ( ( $perms & 0xA000 ) === 0xA000 ) { - $type = 'File symlink'; - $flags[] = 'l'; - } elseif ( ( $perms & 0x8000 ) === 0x8000 ) { - $type = 'File'; - $flags[] = '-'; - } elseif ( ( $perms & 0x6000 ) === 0x6000 ) { - $type = 'Block special file'; - $flags[] = 'b'; - } elseif ( ( $perms & 0x4000 ) === 0x4000 ) { - $type = 'Directory'; - $flags[] = 'd'; - } elseif ( ( $perms & 0x2000 ) === 0x2000 ) { - $type = 'Character special file'; - $flags[] = 'c'; - } elseif ( ( $perms & 0x1000 ) === 0x1000 ) { - $type = 'FIFO pipe file'; - $flags[] = 'p'; - } else { - $type = 'Unknown file'; - $flags[] = 'u'; - } - - // owner - $flags[] = ( ( $perms & 0x0100 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0080 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0040 ) ? ( ( $perms & 0x0800 ) ? 's' : 'x' ) : ( ( $perms & 0x0800 ) ? 'S' : '-' ) ); - - // group - $flags[] = ( ( $perms & 0x0020 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0010 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0008 ) ? ( ( $perms & 0x0400 ) ? 's' : 'x' ) : ( ( $perms & 0x0400 ) ? 'S' : '-' ) ); - - // world - $flags[] = ( ( $perms & 0x0004 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0002 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0001 ) ? ( ( $perms & 0x0200 ) ? 't' : 'x' ) : ( ( $perms & 0x0200 ) ? 'T' : '-' ) ); - - $this->type = $type; - $this->size = sprintf( '%.2fK', $fileInfo->getSize() / 1024 ); - $this->value = implode( $flags ); - - } catch ( Exception $e ) { - return false; - } - - } -} diff --git a/github/vendor/raveren/kint/parsers/custom/json.php b/github/vendor/raveren/kint/parsers/custom/json.php deleted file mode 100644 index f752a21..0000000 --- a/github/vendor/raveren/kint/parsers/custom/json.php +++ /dev/null @@ -1,19 +0,0 @@ -value = kintParser::factory( $val )->extendedValue; - $this->type = 'JSON'; - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/parsers/custom/microtime.php b/github/vendor/raveren/kint/parsers/custom/microtime.php deleted file mode 100644 index 2c5fe68..0000000 --- a/github/vendor/raveren/kint/parsers/custom/microtime.php +++ /dev/null @@ -1,60 +0,0 @@ -value = @date( 'Y-m-d H:i:s', $sec ) . '.' . substr( $usec, 2, 4 ); - - $numberOfCalls = count( self::$_times ); - if ( $numberOfCalls > 0 ) { # meh, faster than count($times) > 1 - $lap = $time - end( self::$_times ); - self::$_laps[] = $lap; - - $this->value .= "\nSINCE LAST CALL: " . round( $lap, 4 ) . 's.'; - if ( $numberOfCalls > 1 ) { - $this->value .= "\nSINCE START: " . round( $time - self::$_times[0], 4 ) . 's.'; - $this->value .= "\nAVERAGE DURATION: " - . round( array_sum( self::$_laps ) / $numberOfCalls, 4 ) . 's.'; - } - } - - $unit = array( 'B', 'KB', 'MB', 'GB', 'TB' ); - if ( KINT_PHP53 ) { - $this->value .= "\nMEMORY USAGE: " . $size . " bytes (" - . round( $size / pow( 1024, ( $i = floor( log( $size, 1024 ) ) ) ), 3 ) . ' ' . $unit[ $i ] . ")"; - } - - self::$_times[] = $time; - $this->type = 'Stats'; - } - - /* - function test() { - d( 'start', microtime() ); - for ( $i = 0; $i < 10; $i++ ) { - d( - $duration = mt_rand( 0, 200000 ), // the reported duration will be larger because of Kint overhead - usleep( $duration ), - microtime() - ); - } - dd( ); - } - */ -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/parsers/custom/objectiterateable.php b/github/vendor/raveren/kint/parsers/custom/objectiterateable.php deleted file mode 100644 index bbc0de0..0000000 --- a/github/vendor/raveren/kint/parsers/custom/objectiterateable.php +++ /dev/null @@ -1,22 +0,0 @@ -value = kintParser::factory( $arrayCopy )->extendedValue; - $this->type = 'Iterator contents'; - $this->size = count( $arrayCopy ); - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/parsers/custom/splobjectstorage.php b/github/vendor/raveren/kint/parsers/custom/splobjectstorage.php deleted file mode 100644 index 69da91f..0000000 --- a/github/vendor/raveren/kint/parsers/custom/splobjectstorage.php +++ /dev/null @@ -1,24 +0,0 @@ -count(); - if ( $count === 0 ) return false; - - $variable->rewind(); - while ( $variable->valid() ) { - $current = $variable->current(); - $this->value[] = kintParser::factory( $current ); - $variable->next(); - } - - $this->type = 'Storage contents'; - $this->size = $count; - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/parsers/custom/timestamp.php b/github/vendor/raveren/kint/parsers/custom/timestamp.php deleted file mode 100644 index d1a3ce3..0000000 --- a/github/vendor/raveren/kint/parsers/custom/timestamp.php +++ /dev/null @@ -1,29 +0,0 @@ -type = 'timestamp'; - # avoid dreaded "Timezone must be set" error - $this->value = @date( 'Y-m-d H:i:s', $var ); - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/parsers/custom/xml.php b/github/vendor/raveren/kint/parsers/custom/xml.php deleted file mode 100644 index 63283a0..0000000 --- a/github/vendor/raveren/kint/parsers/custom/xml.php +++ /dev/null @@ -1,25 +0,0 @@ -value = kintParser::factory( $xml )->extendedValue; - $this->type = 'XML'; - } -} diff --git a/github/vendor/raveren/kint/parsers/objects/closure.php b/github/vendor/raveren/kint/parsers/objects/closure.php deleted file mode 100644 index b050d3a..0000000 --- a/github/vendor/raveren/kint/parsers/objects/closure.php +++ /dev/null @@ -1,47 +0,0 @@ -name = 'Closure'; - $reflection = new ReflectionFunction( $variable ); - $ret = array( - 'Parameters' => array() - ); - if ( $val = $reflection->getParameters() ) { - foreach ( $val as $parameter ) { - // todo http://php.net/manual/en/class.reflectionparameter.php - $ret['Parameters'][] = $parameter->name; - } - - } - if ( $val = $reflection->getStaticVariables() ) { - $ret['Uses'] = $val; - } - if ( method_exists($reflection, 'getClousureThis') && $val = $reflection->getClosureThis() ) { - $ret['Uses']['$this'] = $val; - } - if ( $val = $reflection->getFileName() ) { - $this->value = Kint::shortenPath( $val ) . ':' . $reflection->getStartLine(); - } - - return $ret; - } - - - public function isDefaultValueAvailable() - { - if ( PHP_VERSION_ID === 50316 ) { // PHP bug #62988 - try { - $this->getDefaultValue(); - return true; - } catch ( \ReflectionException $e ) { - return false; - } - } - return parent::isDefaultValueAvailable(); - } -} diff --git a/github/vendor/raveren/kint/parsers/objects/smarty.php b/github/vendor/raveren/kint/parsers/objects/smarty.php deleted file mode 100644 index 52b0750..0000000 --- a/github/vendor/raveren/kint/parsers/objects/smarty.php +++ /dev/null @@ -1,35 +0,0 @@ -name = 'object Smarty (v' . substr( Smarty::SMARTY_VERSION, 7 ) . ')'; # trim 'Smarty-' - - $assigned = $globalAssigns = array(); - foreach ( $variable->tpl_vars as $name => $var ) { - $assigned[ $name ] = $var->value; - } - foreach ( Smarty::$global_tpl_vars as $name => $var ) { - if ( $name === 'SCRIPT_NAME' ) continue; - - $globalAssigns[ $name ] = $var->value; - } - - return array( - 'Assigned' => $assigned, - 'Assigned globally' => $globalAssigns, - 'Configuration' => array( - 'Compiled files stored in' => isset($variable->compile_dir) - ? $variable->compile_dir - : $variable->getCompileDir(), - ) - ); - - } -} diff --git a/github/vendor/raveren/kint/parsers/objects/splfileinfo.php b/github/vendor/raveren/kint/parsers/objects/splfileinfo.php deleted file mode 100644 index 964dd61..0000000 --- a/github/vendor/raveren/kint/parsers/objects/splfileinfo.php +++ /dev/null @@ -1,70 +0,0 @@ -name = 'SplFileInfo'; - $this->value = $variable->getBasename(); - - - $flags = array(); - $perms = $variable->getPerms(); - - if ( ( $perms & 0xC000 ) === 0xC000 ) { - $type = 'File socket'; - $flags[] = 's'; - } elseif ( ( $perms & 0xA000 ) === 0xA000 ) { - $type = 'File symlink'; - $flags[] = 'l'; - } elseif ( ( $perms & 0x8000 ) === 0x8000 ) { - $type = 'File'; - $flags[] = '-'; - } elseif ( ( $perms & 0x6000 ) === 0x6000 ) { - $type = 'Block special file'; - $flags[] = 'b'; - } elseif ( ( $perms & 0x4000 ) === 0x4000 ) { - $type = 'Directory'; - $flags[] = 'd'; - } elseif ( ( $perms & 0x2000 ) === 0x2000 ) { - $type = 'Character special file'; - $flags[] = 'c'; - } elseif ( ( $perms & 0x1000 ) === 0x1000 ) { - $type = 'FIFO pipe file'; - $flags[] = 'p'; - } else { - $type = 'Unknown file'; - $flags[] = 'u'; - } - - // owner - $flags[] = ( ( $perms & 0x0100 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0080 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0040 ) ? ( ( $perms & 0x0800 ) ? 's' : 'x' ) : ( ( $perms & 0x0800 ) ? 'S' : '-' ) ); - - // group - $flags[] = ( ( $perms & 0x0020 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0010 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0008 ) ? ( ( $perms & 0x0400 ) ? 's' : 'x' ) : ( ( $perms & 0x0400 ) ? 'S' : '-' ) ); - - // world - $flags[] = ( ( $perms & 0x0004 ) ? 'r' : '-' ); - $flags[] = ( ( $perms & 0x0002 ) ? 'w' : '-' ); - $flags[] = ( ( $perms & 0x0001 ) ? ( ( $perms & 0x0200 ) ? 't' : 'x' ) : ( ( $perms & 0x0200 ) ? 'T' : '-' ) ); - - $size = sprintf( '%.2fK', $variable->getSize() / 1024 ); - $flags = implode( $flags ); - $path = $variable->getRealPath(); - - return array( - 'File information' => array( - 'Full path' => $path, - 'Type' => $type, - 'Size' => $size, - 'Flags' => $flags - ) - ); - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/view/base.js b/github/vendor/raveren/kint/view/base.js deleted file mode 100644 index 45de721..0000000 --- a/github/vendor/raveren/kint/view/base.js +++ /dev/null @@ -1,437 +0,0 @@ -/** - java -jar compiler.jar --js $FileName$ --js_output_file ../inc/kint.js --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper "(function(){%output%})()" - */ - -if ( typeof kintInitialized === 'undefined' ) { - kintInitialized = 1; - var kint = { - visiblePluses : [], // all visible toggle carets - currentPlus : -1, // currently selected caret - - selectText : function( element ) { - var selection = window.getSelection(), - range = document.createRange(); - - range.selectNodeContents(element); - selection.removeAllRanges(); - selection.addRange(range); - }, - - each : function( selector, callback ) { - Array.prototype.slice.call(document.querySelectorAll(selector), 0).forEach(callback) - }, - - hasClass : function( target, className ) { - if ( !target.classList ) return false; - - if ( typeof className === 'undefined' ) { - className = 'kint-show'; - } - return target.classList.contains(className); - }, - - addClass : function( target, className ) { - if ( typeof className === 'undefined' ) { - className = 'kint-show'; - } - target.classList.add(className); - }, - - removeClass : function( target, className ) { - if ( typeof className === 'undefined' ) { - className = 'kint-show'; - } - target.classList.remove(className); - return target; - }, - - next : function( element ) { - do { - element = element.nextElementSibling; - } while ( element.nodeName.toLowerCase() !== 'dd' ); - - return element; - }, - - toggle : function( element, hide ) { - var parent = kint.next(element); - - if ( typeof hide === 'undefined' ) { - hide = kint.hasClass(element); - } - - if ( hide ) { - kint.removeClass(element); - } else { - kint.addClass(element); - } - - if ( parent.childNodes.length === 1 ) { - parent = parent.childNodes[0].childNodes[0]; // reuse variable cause I can - - // parent is checked in case of empty
 when array("\n") is dumped
-				if ( parent && kint.hasClass(parent, 'kint-parent') ) {
-					kint.toggle(parent, hide)
-				}
-			}
-		},
-
-		toggleChildren : function( element, hide ) {
-			var parent = kint.next(element)
-				, nodes = parent.getElementsByClassName('kint-parent')
-				, i = nodes.length;
-
-			if ( typeof hide === 'undefined' ) {
-				hide = kint.hasClass(element);
-			}
-
-			while ( i-- ) {
-				kint.toggle(nodes[i], hide);
-			}
-			kint.toggle(element, hide);
-		},
-
-		toggleAll : function( caret ) {
-			var elements = document.getElementsByClassName('kint-parent')
-				, i = elements.length
-				, visible = kint.hasClass(caret.parentNode);
-
-			while ( i-- ) {
-				kint.toggle(elements[i], visible);
-			}
-		},
-
-		switchTab : function( target ) {
-			var lis, el = target, index = 0;
-
-			target.parentNode.getElementsByClassName('kint-active-tab')[0].className = '';
-			target.className = 'kint-active-tab';
-
-			// take the index of clicked title tab and make the same n-th content tab visible
-			while ( el = el.previousSibling ) el.nodeType === 1 && index++;
-			lis = target.parentNode.nextSibling.childNodes;
-			for ( var i = 0; i < lis.length; i++ ) {
-				if ( i === index ) {
-					lis[i].style.display = 'block';
-
-					if ( lis[i].childNodes.length === 1 ) {
-						el = lis[i].childNodes[0].childNodes[0];
-
-						if ( kint.hasClass(el, 'kint-parent') ) {
-							kint.toggle(el, false)
-						}
-					}
-				} else {
-					lis[i].style.display = 'none';
-				}
-			}
-		},
-
-		isSibling : function( el ) {
-			for ( ; ; ) {
-				el = el.parentNode;
-				if ( !el || kint.hasClass(el, 'kint') ) break;
-			}
-
-			return !!el;
-		},
-
-		fetchVisiblePluses : function() {
-			kint.visiblePluses = [];
-			kint.each('.kint nav, .kint-tabs>li:not(.kint-active-tab)', function( el ) {
-				if ( el.offsetWidth !== 0 || el.offsetHeight !== 0 ) {
-					kint.visiblePluses.push(el)
-				}
-			});
-		},
-
-		openInNewWindow : function( kintContainer ) {
-			var newWindow;
-
-			if ( newWindow = window.open() ) {
-				newWindow.document.open();
-				newWindow.document.write(
-					''
-					+ ''
-					+ 'Kint (' + new Date().toISOString() + ')'
-					+ ''
-					+ document.getElementsByClassName('-kint-js')[0].outerHTML
-					+ document.getElementsByClassName('-kint-css')[0].outerHTML
-					+ ''
-					+ ''
-					+ ''
-					+ '
' - + kintContainer.parentNode.outerHTML - + '
' - ); - newWindow.document.close(); - } - }, - - sortTable : function( table, column ) { - var tbody = table.tBodies[0]; - - var format = function( s ) { - var n = column === 1 ? s.replace(/^#/, '') : s; - if ( isNaN(n) ) { - return s.trim().toLocaleLowerCase(); - } else { - n = parseFloat(n); - return isNaN(n) ? s.trim() : n; - } - }; - - - [].slice.call(table.tBodies[0].rows) - .sort(function( a, b ) { - a = format(a.cells[column].textContent); - b = format(b.cells[column].textContent); - if ( a < b ) return -1; - if ( a > b ) return 1; - - return 0; - }) - .forEach(function( el ) { - tbody.appendChild(el); - }); - }, - - keyCallBacks : { - cleanup : function( i ) { - var focusedClass = 'kint-focused'; - var prevElement = document.querySelector('.' + focusedClass); - prevElement && kint.removeClass(prevElement, focusedClass); - - if ( i !== -1 ) { - var el = kint.visiblePluses[i]; - kint.addClass(el, focusedClass); - - - var offsetTop = function( el ) { - return el.offsetTop + ( el.offsetParent ? offsetTop(el.offsetParent) : 0 ); - }; - - var top = offsetTop(el) - (window.innerHeight / 2 ); - window.scrollTo(0, top); - } - - kint.currentPlus = i; - }, - - moveCursor : function( up, i ) { - // todo make the first VISIBLE plus active - if ( up ) { - if ( --i < 0 ) { - i = kint.visiblePluses.length - 1; - } - } else { - if ( ++i >= kint.visiblePluses.length ) { - i = 0; - } - } - - kint.keyCallBacks.cleanup(i); - return false; - } - } - }; - - window.addEventListener("click", function( e ) { - var target = e.target - , nodeName = target.nodeName.toLowerCase(); - - if ( !kint.isSibling(target) ) return; - - // auto-select name of variable - if ( nodeName === 'dfn' ) { - kint.selectText(target); - target = target.parentNode; - } else if ( nodeName === 'var' ) { // stupid workaround for misc elements - target = target.parentNode; // to not stop event from further propagating - nodeName = target.nodeName.toLowerCase() - } else if ( nodeName === 'th' ) { - if ( !e.ctrlKey ) { - kint.sortTable(target.parentNode.parentNode.parentNode, target.cellIndex) - } - return false; - } - - // switch tabs - if ( nodeName === 'li' && target.parentNode.className === 'kint-tabs' ) { - if ( target.className !== 'kint-active-tab' ) { - kint.switchTab(target); - if ( kint.currentPlus !== -1 ) kint.fetchVisiblePluses(); - } - return false; - } - - // handle clicks on the navigation caret - if ( nodeName === 'nav' ) { - // special case for nav in footer - if ( target.parentNode.nodeName.toLowerCase() === 'footer' ) { - target = target.parentNode; - if ( kint.hasClass(target) ) { - kint.removeClass(target) - } else { - kint.addClass(target) - } - } else { - // ensure doubleclick has different behaviour, see below - setTimeout(function() { - var timer = parseInt(target.kintTimer, 10); - if ( timer > 0 ) { - target.kintTimer--; - } else { - kint.toggleChildren(target.parentNode); //
- if ( kint.currentPlus !== -1 ) kint.fetchVisiblePluses(); - } - }, 300); - } - - e.stopPropagation(); - return false; - } else if ( kint.hasClass(target, 'kint-parent') ) { - kint.toggle(target); - if ( kint.currentPlus !== -1 ) kint.fetchVisiblePluses(); - return false; - } else if ( kint.hasClass(target, 'kint-ide-link') ) { - e.preventDefault(); - var ajax = new XMLHttpRequest(); // add ajax call to contact editor but prevent link default action - ajax.open('GET', target.href); - ajax.send(null); - return false; - } else if ( kint.hasClass(target, 'kint-popup-trigger') ) { - var kintContainer = target.parentNode; - if ( kintContainer.nodeName.toLowerCase() === 'footer' ) { - kintContainer = kintContainer.previousSibling; - } else { - while ( kintContainer && !kint.hasClass(kintContainer, 'kint-parent') ) { - kintContainer = kintContainer.parentNode; - } - } - - kint.openInNewWindow(kintContainer); - } else if ( nodeName === 'pre' && e.detail === 3 ) { // triple click pre to select it all - kint.selectText(target); - } - }, false); - - window.addEventListener("dblclick", function( e ) { - var target = e.target; - if ( !kint.isSibling(target) ) return; - - if ( target.nodeName.toLowerCase() === 'nav' ) { - target.kintTimer = 2; - kint.toggleAll(target); - if ( kint.currentPlus !== -1 ) kint.fetchVisiblePluses(); - e.stopPropagation(); - } - }, false); - - // keyboard navigation - window.onkeydown = function( e ) { // direct assignment is used to have priority over ex FAYT - - // do nothing if alt/ctrl key is pressed or if we're actually typing somewhere - if ( e.target !== document.body || e.altKey || e.ctrlKey ) return; - - var keyCode = e.keyCode - , shiftKey = e.shiftKey - , i = kint.currentPlus; - - - if ( keyCode === 68 ) { // 'd' : toggles navigation on/off - if ( i === -1 ) { - kint.fetchVisiblePluses(); - return kint.keyCallBacks.moveCursor(false, i); - } else { - kint.keyCallBacks.cleanup(-1); - return false; - } - } else { - if ( i === -1 ) return; - - if ( keyCode === 9 ) { // TAB : moves up/down depending on shift key - return kint.keyCallBacks.moveCursor(shiftKey, i); - } else if ( keyCode === 38 ) { // ARROW UP : moves up - return kint.keyCallBacks.moveCursor(true, i); - } else if ( keyCode === 40 ) { // ARROW DOWN : down - return kint.keyCallBacks.moveCursor(false, i); - } - } - - - var kintNode = kint.visiblePluses[i]; - if ( kintNode.nodeName.toLowerCase() === 'li' ) { // we're on a trace tab - if ( keyCode === 32 || keyCode === 13 ) { // SPACE/ENTER - kint.switchTab(kintNode); - kint.fetchVisiblePluses(); - return kint.keyCallBacks.moveCursor(true, i); - } else if ( keyCode === 39 ) { // arrows - return kint.keyCallBacks.moveCursor(false, i); - } else if ( keyCode === 37 ) { - return kint.keyCallBacks.moveCursor(true, i); - } - } - - kintNode = kintNode.parentNode; // simple dump - if ( keyCode === 32 || keyCode === 13 ) { // SPACE/ENTER : toggles - kint.toggle(kintNode); - kint.fetchVisiblePluses(); - return false; - } else if ( keyCode === 39 || keyCode === 37 ) { // ARROW LEFT/RIGHT : respectively hides/shows and traverses - var visible = kint.hasClass(kintNode); - var hide = keyCode === 37; - - if ( visible ) { - kint.toggleChildren(kintNode, hide); // expand/collapse all children if immediate ones are showing - } else { - if ( hide ) { // LEFT - // traverse to parent and THEN hide - do {kintNode = kintNode.parentNode} while ( kintNode && kintNode.nodeName.toLowerCase() !== 'dd' ); - - if ( kintNode ) { - kintNode = kintNode.previousElementSibling; - - i = -1; - var parentPlus = kintNode.querySelector('nav'); - while ( parentPlus !== kint.visiblePluses[++i] ) {} - kint.keyCallBacks.cleanup(i) - } else { // we are at root - kintNode = kint.visiblePluses[i].parentNode; - } - } - kint.toggle(kintNode, hide); - } - kint.fetchVisiblePluses(); - return false; - } - }; - - window.addEventListener("load", function( e ) { // colorize microtime results relative to others - var elements = Array.prototype.slice.call(document.querySelectorAll('.kint-microtime'), 0); - elements.forEach(function( el ) { - var value = parseFloat(el.innerHTML) - , min = Infinity - , max = -Infinity - , ratio; - - elements.forEach(function( el ) { - var val = parseFloat(el.innerHTML); - - if ( min > val ) min = val; - if ( max < val ) max = val; - }); - - ratio = 1 - (value - min) / (max - min); - - el.style.background = 'hsl(' + Math.round(ratio * 120) + ',60%,70%)'; - }); - }); -} - -// debug purposes only, removed in minified source -function clg( i ) { - if ( !window.console )return; - var l = arguments.length, o = 0; - while ( o < l )console.log(arguments[o++]) -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/view/base.less b/github/vendor/raveren/kint/view/base.less deleted file mode 100644 index 24c68f7..0000000 --- a/github/vendor/raveren/kint/view/base.less +++ /dev/null @@ -1,413 +0,0 @@ -// -// VARIABLES FOR THEMES TO OVERRIDE -// -------------------------------------------------- - -@spacing : 4; - -// caret taken from solarized -@caret-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAMAAACO5hB7AAAA7VBMVEVYbnWToaH///9YbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaFYbnVYbnWToaGToaFYbnWToaFYbnWToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaEeRtj1AAAATXRSTlMAAACLab0B7iP2R7CL9iPuaUewAb36F0/QnPoX0JxPYQaurepi6QV8FhV7MzFhM6586RYFMa3qYnsVBpNQ+ZGOGJ3PkM9QkZAY+Y6TnV7gnYsAAAEcSURBVHhebdHVbgMxEEBRu8sUZmqapBBoSuGUmWb+/3NayxtrLOe+Hck745XZgd6/eb3CVcKt7HmR+gKxlCGOETG5vFbOoahR6NxI5zHt6nuq+2dqnqfzzH3mfcz70vb8H6MJt5u6a96hS30E4PjEFgAEp2fKNojKUfVEOoS044ex7u3YPE/nmfvM+5j3pe17T9oe/77O41w+n4vnrbrwZxbTshVhvtx5Kb8vliRLRWmeSQSTjJq/El5x5fUXYmNN9hcQC5y4g/hGvVksNtT8451rns2IScb7mn567ll2GNpWr9YWfvQgzWsKs8HOA/m960g6rjTzA8HAV/NHwiOmPLwDKA/J/gggYsRVgFvqbr/fpWYv90zzZKKs9Qfx00Jx65oxLAAAAABJRU5ErkJggg=="); - -// -// SET UP HELPER VARIABLES -// -------------------------------------------------- - -@border: 1px solid @border-color; - -.selection() { - background : @border-color-hover; - color : @text-color; -} - -// -// BASE STYLES -// -------------------------------------------------- - -.kint::selection { .selection() } - -.kint::-moz-selection { .selection() } - -.kint::-webkit-selection { .selection() } - -.kint, -.kint::before, -.kint::after, -.kint *, -.kint *::before, -.kint *::after { - box-sizing : border-box; - border-radius : 0; - color : @text-color; - float : none !important; - font-family : Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; - line-height : 15px; - margin : 0; - padding : 0; - text-align : left; -} - -.kint { - font-size : 13px; - margin : @spacing * 2px 0; - overflow-x : auto; - white-space : nowrap; - - dt { - background : @main-background; - border : @border; - color : @text-color; - display : block; - font-weight : bold; - list-style : none outside none; - overflow : auto; - padding : @spacing * 1px; - - &:hover { - border-color : @border-color-hover; - } - - > var { - margin-right : 5px; - } - } - - > dl dl { - padding : 0 0 0 @spacing * 3px; - } - - // - // DROPDOWN CARET - // -------------------------------------------------- - - nav { - background : @caret-image no-repeat scroll 0 0 transparent; - cursor : pointer; - display : inline-block; - height : 15px; - width : 15px; - margin-right : 3px; - vertical-align : middle; - } - - dt.kint-parent:hover nav { - background-position : 0 -15px; - } - - dt.kint-parent.kint-show:hover > nav { - background-position : 0 -45px; - } - - dt.kint-show > nav { - background-position : 0 -30px; - } - - dt.kint-parent + dd { - display : none; - border-left : 1px dashed @border-color; - } - - dt.kint-parent.kint-show + dd { - display : block; - } - - // - // INDIVIDUAL ITEMS - // -------------------------------------------------- - - var, - var a { - color : @variable-type-color; - font-style : normal; - } - - dt:hover var, - dt:hover var a { - color : @variable-type-color-hover; - } - - dfn { - font-style : normal; - font-family : monospace; - color : @variable-name-color; - } - - pre { - color : @text-color; - margin : 0 0 0 @spacing * 3px; - padding : 5px; - overflow-y : hidden; - border-top : 0; - border : @border; - background : @main-background; - display : block; - word-break : normal; - } - - .kint-popup-trigger { - float : right !important; - cursor : pointer; - color : @border-color-hover; - - &:hover { - color : @border-color; - } - } - - dt.kint-parent > .kint-popup-trigger { - font-size : 13px; - } - - footer { - padding : 0 3px 3px; - font-size : 9px; - - > .kint-popup-trigger { - font-size : 12px; - } - - nav { - background-size : 10px; - height : 10px; - width : 10px; - - &:hover { - background-position : 0 -10px; - } - } - - > ol { - display : none; - margin-left : 32px; - } - - &.kint-show { - > ol { - display : block; - } - - nav { - background-position : 0 -20px; - - &:hover { - background-position : 0 -30px; - } - } - } - } - - a { - color : @text-color; - text-shadow : none; - - &:hover { - color : @variable-name-color; - border-bottom : 1px dotted @variable-name-color; - } - } - - // - // TABS - // -------------------------------------------------- - - ul { - list-style : none; - padding-left : @spacing * 3px; - - &:not(.kint-tabs) { - li { - border-left : 1px dashed @border-color; - - > dl { - border-left : none; - } - } - } - - &.kint-tabs { - margin : 0 0 0 @spacing * 3px; - padding-left : 0; - background : @main-background; - border : @border; - border-top : 0; - - li { - background : @secondary-background; - border : @border; - cursor : pointer; - display : inline-block; - height : @spacing * 6px; - margin : round(@spacing / 2) * 1px; - padding : 0 2px + round(@spacing * 2.5px); - vertical-align : top; - - &:hover, - &.kint-active-tab:hover { - border-color : @border-color-hover; - color : @variable-type-color-hover; - } - - &.kint-active-tab { - background : @main-background; - border-top : 0; - margin-top : -1px; - height : 27px; - line-height : 24px; - } - - &:not(.kint-active-tab) { - line-height : @spacing * 5px; - } - } - - li + li { - margin-left : 0 - } - } - - &:not(.kint-tabs) > li:not(:first-child) { - display : none; - } - } - - dt:hover + dd > ul > li.kint-active-tab { - border-color : @border-color-hover; - color : @variable-type-color-hover; - } -} - -// -// REPORT -// -------------------------------------------------- - -.kint-report { - border-collapse : collapse; - empty-cells : show; - border-spacing : 0; - - * { - font-size : 12px; - } - - dt { - background : none; - padding : (@spacing/2) * 1px; - - .kint-parent { - min-width : 100%; - overflow : hidden; - text-overflow : ellipsis; - white-space : nowrap; - } - } - - td, - th { - border : @border; - padding : (@spacing/2) * 1px; - vertical-align : center; - } - - th { - cursor : alias; - } - - td:first-child, - th { - font-weight : bold; - background : @secondary-background; - color : @variable-name-color; - } - - td { - background : @main-background; - white-space : pre; - - > dl { - padding : 0; - } - } - - pre { - border-top : 0; - border-right : 0; - } - - th:first-child { - background : none; - border : 0; - } - - td.kint-empty { - background : #d33682 !important; - } - - tr:hover { - > td { - box-shadow : 0 0 1px 0 @border-color-hover inset; - } - - var { - color : @variable-type-color-hover; - } - } - ul.kint-tabs li.kint-active-tab { - height : 20px; - line-height : 17px; - } -} - -// -// TRACE -// -------------------------------------------------- -.kint-trace { - .kint-source { - line-height : round(@spacing * 3.5) * 1px; - - span { - padding-right : 1px; - border-right : 3px inset @variable-type-color; - } - - .kint-highlight { - background : @secondary-background; - } - } - - .kint-parent { - > b { - min-width : 18px; - display : inline-block; - text-align : right; - color : @variable-name-color; - } - - > var { - > a { - color : @variable-type-color; - } - } - } -} - -// -// MISC -// -------------------------------------------------- - -// keyboard navigation caret -.kint-focused { - .keyboard-caret -} - -.kint-microtime, -.kint-color-preview { - box-shadow : 0 0 2px 0 #b6cedb; - height : 16px; - text-align : center; - text-shadow : -1px 0 #839496, 0 1px #839496, 1px 0 #839496, 0 -1px #839496; - width : 230px; - color : #fdf6e3; -} - -// mini trace -.kint footer li { - color : #ddd; -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/view/compiled/aante-light.css b/github/vendor/raveren/kint/view/compiled/aante-light.css deleted file mode 100644 index b22fadd..0000000 --- a/github/vendor/raveren/kint/view/compiled/aante-light.css +++ /dev/null @@ -1,397 +0,0 @@ -/** - * @author Ante Aljinovic https://github.com/aljinovic - */ -.kint::selection { - background: #aaaaaa; - color: #1d1e1e; -} -.kint::-moz-selection { - background: #aaaaaa; - color: #1d1e1e; -} -.kint::-webkit-selection { - background: #aaaaaa; - color: #1d1e1e; -} -.kint, -.kint::before, -.kint::after, -.kint *, -.kint *::before, -.kint *::after { - box-sizing: border-box; - border-radius: 0; - color: #1d1e1e; - float: none !important; - font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; - line-height: 15px; - margin: 0; - padding: 0; - text-align: left; -} -.kint { - font-size: 13px; - margin: 8px 0; - overflow-x: auto; - white-space: nowrap; -} -.kint dt { - background: #f8f8f8; - border: 1px solid #d7d7d7; - color: #1d1e1e; - display: block; - font-weight: bold; - list-style: none outside none; - overflow: auto; - padding: 4px; -} -.kint dt:hover { - border-color: #aaaaaa; -} -.kint dt > var { - margin-right: 5px; -} -.kint > dl dl { - padding: 0 0 0 12px; -} -.kint nav { - background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAYAAAC5OOBJAAAAvklEQVR42mNgGMFAS0uLLSQk5HxoaOh/XDg4OLgdpwEBAQEGQAN+YtMIFH/i4ODAg9cFQNMbsWkOCgrKJMv5ID5Qipko/6M7PzAw0ImkAIQ5H0hvISv0gZpP+fn5qZAVfcBAkmEYBaNZcjRLjmbJUUCvqAIlDlAiASUWkjWDkiU0eTaSpBGUEZBy1E9QRiFWLzO2LEmU80GZHkcRhN/5oGIGVNzgKIbwOx9UwOErAIl2/igYzZKjWXI0S9IHAAASJijo0Ypj8AAAAABJRU5ErkJggg==") no-repeat scroll 0 0 transparent; - cursor: pointer; - display: inline-block; - height: 15px; - width: 15px; - margin-right: 3px; - vertical-align: middle; -} -.kint dt.kint-parent:hover nav { - background-position: 0 -15px; -} -.kint dt.kint-parent.kint-show:hover > nav { - background-position: 0 -45px; -} -.kint dt.kint-show > nav { - background-position: 0 -30px; -} -.kint dt.kint-parent + dd { - display: none; - border-left: 1px dashed #d7d7d7; -} -.kint dt.kint-parent.kint-show + dd { - display: block; -} -.kint var, -.kint var a { - color: #0066ff; - font-style: normal; -} -.kint dt:hover var, -.kint dt:hover var a { - color: #ff0000; -} -.kint dfn { - font-style: normal; - font-family: monospace; - color: #1d1e1e; -} -.kint pre { - color: #1d1e1e; - margin: 0 0 0 12px; - padding: 5px; - overflow-y: hidden; - border-top: 0; - border: 1px solid #d7d7d7; - background: #f8f8f8; - display: block; - word-break: normal; -} -.kint .kint-popup-trigger { - float: right !important; - cursor: pointer; - color: #aaaaaa; -} -.kint .kint-popup-trigger:hover { - color: #d7d7d7; -} -.kint dt.kint-parent > .kint-popup-trigger { - font-size: 13px; -} -.kint footer { - padding: 0 3px 3px; - font-size: 9px; -} -.kint footer > .kint-popup-trigger { - font-size: 12px; -} -.kint footer nav { - background-size: 10px; - height: 10px; - width: 10px; -} -.kint footer nav:hover { - background-position: 0 -10px; -} -.kint footer > ol { - display: none; - margin-left: 32px; -} -.kint footer.kint-show > ol { - display: block; -} -.kint footer.kint-show nav { - background-position: 0 -20px; -} -.kint footer.kint-show nav:hover { - background-position: 0 -30px; -} -.kint a { - color: #1d1e1e; - text-shadow: none; -} -.kint a:hover { - color: #1d1e1e; - border-bottom: 1px dotted #1d1e1e; -} -.kint ul { - list-style: none; - padding-left: 12px; -} -.kint ul:not(.kint-tabs) li { - border-left: 1px dashed #d7d7d7; -} -.kint ul:not(.kint-tabs) li > dl { - border-left: none; -} -.kint ul.kint-tabs { - margin: 0 0 0 12px; - padding-left: 0; - background: #f8f8f8; - border: 1px solid #d7d7d7; - border-top: 0; -} -.kint ul.kint-tabs li { - background: #f8f8f8; - border: 1px solid #d7d7d7; - cursor: pointer; - display: inline-block; - height: 24px; - margin: 2px; - padding: 0 12px; - vertical-align: top; -} -.kint ul.kint-tabs li:hover, -.kint ul.kint-tabs li.kint-active-tab:hover { - border-color: #aaaaaa; - color: #ff0000; -} -.kint ul.kint-tabs li.kint-active-tab { - background: #f8f8f8; - border-top: 0; - margin-top: -1px; - height: 27px; - line-height: 24px; -} -.kint ul.kint-tabs li:not(.kint-active-tab) { - line-height: 20px; -} -.kint ul.kint-tabs li + li { - margin-left: 0; -} -.kint ul:not(.kint-tabs) > li:not(:first-child) { - display: none; -} -.kint dt:hover + dd > ul > li.kint-active-tab { - border-color: #aaaaaa; - color: #ff0000; -} -.kint-report { - border-collapse: collapse; - empty-cells: show; - border-spacing: 0; -} -.kint-report * { - font-size: 12px; -} -.kint-report dt { - background: none; - padding: 2px; -} -.kint-report dt .kint-parent { - min-width: 100%; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} -.kint-report td, -.kint-report th { - border: 1px solid #d7d7d7; - padding: 2px; - vertical-align: center; -} -.kint-report th { - cursor: alias; -} -.kint-report td:first-child, -.kint-report th { - font-weight: bold; - background: #f8f8f8; - color: #1d1e1e; -} -.kint-report td { - background: #f8f8f8; - white-space: pre; -} -.kint-report td > dl { - padding: 0; -} -.kint-report pre { - border-top: 0; - border-right: 0; -} -.kint-report th:first-child { - background: none; - border: 0; -} -.kint-report td.kint-empty { - background: #d33682 !important; -} -.kint-report tr:hover > td { - box-shadow: 0 0 1px 0 #aaaaaa inset; -} -.kint-report tr:hover var { - color: #ff0000; -} -.kint-report ul.kint-tabs li.kint-active-tab { - height: 20px; - line-height: 17px; -} -.kint-trace .kint-source { - line-height: 14px; -} -.kint-trace .kint-source span { - padding-right: 1px; - border-right: 3px inset #0066ff; -} -.kint-trace .kint-source .kint-highlight { - background: #f8f8f8; -} -.kint-trace .kint-parent > b { - min-width: 18px; - display: inline-block; - text-align: right; - color: #1d1e1e; -} -.kint-trace .kint-parent > var > a { - color: #0066ff; -} -.kint-focused { - box-shadow: 0 0 3px 2px #ff0000; -} -.kint-microtime, -.kint-color-preview { - box-shadow: 0 0 2px 0 #b6cedb; - height: 16px; - text-align: center; - text-shadow: -1px 0 #839496, 0 1px #839496, 1px 0 #839496, 0 -1px #839496; - width: 230px; - color: #fdf6e3; -} -.kint footer li { - color: #ddd; -} -.kint dt { - font-weight: normal; -} -.kint dt.kint-parent { - margin-top: 4px; -} -.kint > dl { - background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, #ffffff 15px); -} -.kint dl dl { - margin-top: 4px; - padding-left: 25px; - border-left: none; -} -.kint > dl > dt { - background: #f8f8f8; -} -.kint ul { - margin: 0; - padding-left: 0; -} -.kint ul:not(.kint-tabs) > li { - border-left: 0; -} -.kint ul.kint-tabs { - background: #f8f8f8; - border: 1px solid #d7d7d7; - border-width: 0 1px 1px 1px; - padding: 4px 0 0 12px; - margin-left: -1px; - margin-top: -1px; -} -.kint ul.kint-tabs li, -.kint ul.kint-tabs li + li { - margin: 0 0 0 4px; -} -.kint ul.kint-tabs li { - border-bottom-width: 0; - height: 25px; -} -.kint ul.kint-tabs li:first-child { - margin-left: 0; -} -.kint ul.kint-tabs li.kint-active-tab { - border-top: 1px solid #d7d7d7; - background: #fff; - font-weight: bold; - padding-top: 0; - border-bottom: 1px solid #fff !important; - margin-bottom: -1px; -} -.kint ul.kint-tabs li.kint-active-tab:hover { - border-bottom: 1px solid #fff; -} -.kint ul > li > pre { - border: 1px solid #d7d7d7; -} -.kint dt:hover + dd > ul { - border-color: #aaaaaa; -} -.kint pre { - background: #fff; - margin-top: 4px; - margin-left: 25px; -} -.kint .kint-popup-trigger:hover { - color: #ff0000; -} -.kint .kint-source .kint-highlight { - background: #cfc; -} -.kint-report td { - background: #fff; -} -.kint-report td > dl { - padding: 0; - margin: 0; -} -.kint-report td > dl > dt.kint-parent { - margin: 0; -} -.kint-report td:first-child, -.kint-report td, -.kint-report th { - padding: 2px 4px; -} -.kint-report td.kint-empty { - background: #d7d7d7 !important; -} -.kint-report dd, -.kint-report dt { - background: #fff; -} -.kint-report tr:hover > td { - box-shadow: none; - background: #cfc; -} diff --git a/github/vendor/raveren/kint/view/compiled/kint.js b/github/vendor/raveren/kint/view/compiled/kint.js deleted file mode 100644 index 1195188..0000000 --- a/github/vendor/raveren/kint/view/compiled/kint.js +++ /dev/null @@ -1,10 +0,0 @@ -(function(){if("undefined"===typeof kintInitialized){kintInitialized=1;var e=[],f=-1,g=function(a){var b=window.getSelection(),c=document.createRange();c.selectNodeContents(a);b.removeAllRanges();b.addRange(c)},h=function(a){Array.prototype.slice.call(document.querySelectorAll(".kint nav, .kint-tabs>li:not(.kint-active-tab)"),0).forEach(a)},k=function(a,b){if(!a.classList)return!1;"undefined"===typeof b&&(b="kint-show");return a.classList.contains(b)},l=function(a,b){"undefined"===typeof b&&(b="kint-show");a.classList.add(b)}, -m=function(a,b){"undefined"===typeof b&&(b="kint-show");a.classList.remove(b)},n=function(a){do a=a.nextElementSibling;while("dd"!==a.nodeName.toLowerCase());return a},q=function(a,b){var c=n(a);"undefined"===typeof b&&(b=k(a));b?m(a):l(a);1===c.childNodes.length&&(c=c.childNodes[0].childNodes[0])&&k(c,"kint-parent")&&q(c,b)},r=function(a,b){var c=n(a).getElementsByClassName("kint-parent"),d=c.length;for("undefined"===typeof b&&(b=k(a));d--;)q(c[d],b);q(a,b)},s=function(a){var b=a,c=0;a.parentNode.getElementsByClassName("kint-active-tab")[0].className= -"";for(a.className="kint-active-tab";b=b.previousSibling;)1===b.nodeType&&c++;a=a.parentNode.nextSibling.childNodes;for(var d=0;dKint ("+(new Date).toISOString()+')'+document.getElementsByClassName("-kint-js")[0].outerHTML+document.getElementsByClassName("-kint-css")[0].outerHTML+'
'+a.parentNode.outerHTML+"
"),b.document.close()},w=function(a,b){function c(a){var c=1===b?a.replace(/^#/,""):a;if(isNaN(c))return a.trim().toLocaleLowerCase();c=parseFloat(c);return isNaN(c)? -a.trim():c}var d=a.tBodies[0];[].slice.call(a.tBodies[0].rows).sort(function(a,d){a=c(a.cells[b].textContent);d=c(d.cells[b].textContent);return ad?1:0}).forEach(function(a){d.appendChild(a)})},x=function(a){var b=document.querySelector(".kint-focused");b&&m(b,"kint-focused");if(-1!==a){b=e[a];l(b,"kint-focused");var c=function(a){return a.offsetTop+(a.offsetParent?c(a.offsetParent):0)};window.scrollTo(0,c(b)-window.innerHeight/2)}f=a},y=function(a,b){a?0>--b&&(b=e.length-1):++b>=e.length&& -(b=0);x(b);return!1};window.addEventListener("click",function(a){var b=a.target,c=b.nodeName.toLowerCase();if(t(b)){if("dfn"===c)g(b),b=b.parentNode;else if("var"===c)b=b.parentNode,c=b.nodeName.toLowerCase();else if("th"===c)return a.ctrlKey||w(b.parentNode.parentNode.parentNode,b.cellIndex),!1;if("li"===c&&"kint-tabs"===b.parentNode.className)return"kint-active-tab"!==b.className&&(s(b),-1!==f&&u()),!1;if("nav"===c)return"footer"===b.parentNode.nodeName.toLowerCase()?(b=b.parentNode,k(b)?m(b):l(b)): -setTimeout(function(){0a&&(d=a);pvar{margin-right:5px}.kint>dl dl{padding:0 0 0 12px}.kint nav{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAMAAACO5hB7AAAACVBMVEX///82b4tctzBls0NMAAAAQklEQVR42rWRIQ4AAAgCwf8/2qgER2BeuwJsgAqIzekMfMryPL9XQSkobE6vwKcsz/N7FfPvh09lnPf/b+7673+f0uHuAZ/EdkNQAAAAAElFTkSuQmCC") no-repeat scroll 0 0 transparent;cursor:pointer;display:inline-block;height:15px;width:15px;margin-right:3px;vertical-align:middle}.kint dt.kint-parent:hover nav{background-position:0 -15px}.kint dt.kint-parent.kint-show:hover>nav{background-position:0 -45px}.kint dt.kint-show>nav{background-position:0 -30px}.kint dt.kint-parent+dd{display:none;border-left:1px dashed #b6cedb}.kint dt.kint-parent.kint-show+dd{display:block}.kint var,.kint var a{color:#0092db;font-style:normal}.kint dt:hover var,.kint dt:hover var a{color:#5cb730}.kint dfn{font-style:normal;font-family:monospace;color:#1d1e1e}.kint pre{color:#1d1e1e;margin:0 0 0 12px;padding:5px;overflow-y:hidden;border-top:0;border:1px solid #b6cedb;background:#e0eaef;display:block;word-break:normal}.kint .kint-popup-trigger{float:right !important;cursor:pointer;color:#0092db}.kint .kint-popup-trigger:hover{color:#b6cedb}.kint dt.kint-parent>.kint-popup-trigger{font-size:13px}.kint footer{padding:0 3px 3px;font-size:9px}.kint footer>.kint-popup-trigger{font-size:12px}.kint footer nav{background-size:10px;height:10px;width:10px}.kint footer nav:hover{background-position:0 -10px}.kint footer>ol{display:none;margin-left:32px}.kint footer.kint-show>ol{display:block}.kint footer.kint-show nav{background-position:0 -20px}.kint footer.kint-show nav:hover{background-position:0 -30px}.kint a{color:#1d1e1e;text-shadow:none}.kint a:hover{color:#1d1e1e;border-bottom:1px dotted #1d1e1e}.kint ul{list-style:none;padding-left:12px}.kint ul:not(.kint-tabs) li{border-left:1px dashed #b6cedb}.kint ul:not(.kint-tabs) li>dl{border-left:none}.kint ul.kint-tabs{margin:0 0 0 12px;padding-left:0;background:#e0eaef;border:1px solid #b6cedb;border-top:0}.kint ul.kint-tabs li{background:#c1d4df;border:1px solid #b6cedb;cursor:pointer;display:inline-block;height:24px;margin:2px;padding:0 12px;vertical-align:top}.kint ul.kint-tabs li:hover,.kint ul.kint-tabs li.kint-active-tab:hover{border-color:#0092db;color:#5cb730}.kint ul.kint-tabs li.kint-active-tab{background:#e0eaef;border-top:0;margin-top:-1px;height:27px;line-height:24px}.kint ul.kint-tabs li:not(.kint-active-tab){line-height:20px}.kint ul.kint-tabs li+li{margin-left:0}.kint ul:not(.kint-tabs)>li:not(:first-child){display:none}.kint dt:hover+dd>ul>li.kint-active-tab{border-color:#0092db;color:#5cb730}.kint-report{border-collapse:collapse;empty-cells:show;border-spacing:0}.kint-report *{font-size:12px}.kint-report dt{background:none;padding:2px}.kint-report dt .kint-parent{min-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kint-report td,.kint-report th{border:1px solid #b6cedb;padding:2px;vertical-align:center}.kint-report th{cursor:alias}.kint-report td:first-child,.kint-report th{font-weight:bold;background:#c1d4df;color:#1d1e1e}.kint-report td{background:#e0eaef;white-space:pre}.kint-report td>dl{padding:0}.kint-report pre{border-top:0;border-right:0}.kint-report th:first-child{background:none;border:0}.kint-report td.kint-empty{background:#d33682 !important}.kint-report tr:hover>td{box-shadow:0 0 1px 0 #0092db inset}.kint-report tr:hover var{color:#5cb730}.kint-report ul.kint-tabs li.kint-active-tab{height:20px;line-height:17px}.kint-trace .kint-source{line-height:14px}.kint-trace .kint-source span{padding-right:1px;border-right:3px inset #0092db}.kint-trace .kint-source .kint-highlight{background:#c1d4df}.kint-trace .kint-parent>b{min-width:18px;display:inline-block;text-align:right;color:#1d1e1e}.kint-trace .kint-parent>var>a{color:#0092db}.kint-focused{box-shadow:0 0 3px 2px #5cb730}.kint-microtime,.kint-color-preview{box-shadow:0 0 2px 0 #b6cedb;height:16px;text-align:center;text-shadow:-1px 0 #839496,0 1px #839496,1px 0 #839496,0 -1px #839496;width:230px;color:#fdf6e3}.kint footer li{color:#ddd}.kint>dl>dt{background:linear-gradient(to bottom, #e3ecf0 0, #c0d4df 100%)}.kint ul.kint-tabs{background:linear-gradient(to bottom, #9dbed0 0, #b2ccda 100%)}.kint>dl:not(.kint-trace)>dd>ul.kint-tabs li{background:#e0eaef}.kint>dl:not(.kint-trace)>dd>ul.kint-tabs li.kint-active-tab{background:#c1d4df}.kint>dl.kint-trace>dt{background:linear-gradient(to bottom, #c0d4df 0, #e3ecf0 100%)}.kint .kint-source .kint-highlight{background:#f0eb96} \ No newline at end of file diff --git a/github/vendor/raveren/kint/view/compiled/solarized-dark.css b/github/vendor/raveren/kint/view/compiled/solarized-dark.css deleted file mode 100644 index d7c68ab..0000000 --- a/github/vendor/raveren/kint/view/compiled/solarized-dark.css +++ /dev/null @@ -1 +0,0 @@ -.kint::selection{background:#268bd2;color:#839496}.kint::-moz-selection{background:#268bd2;color:#839496}.kint::-webkit-selection{background:#268bd2;color:#839496}.kint,.kint::before,.kint::after,.kint *,.kint *::before,.kint *::after{box-sizing:border-box;border-radius:0;color:#839496;float:none !important;font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;line-height:15px;margin:0;padding:0;text-align:left}.kint{font-size:13px;margin:10px 0;overflow-x:auto;white-space:nowrap}.kint dt{background:#002b36;border:1px solid #586e75;color:#839496;display:block;font-weight:bold;list-style:none outside none;overflow:auto;padding:5px}.kint dt:hover{border-color:#268bd2}.kint dt>var{margin-right:5px}.kint>dl dl{padding:0 0 0 15px}.kint nav{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAMAAACO5hB7AAAA7VBMVEVYbnWToaH///9YbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaFYbnVYbnWToaGToaFYbnWToaFYbnWToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaEeRtj1AAAATXRSTlMAAACLab0B7iP2R7CL9iPuaUewAb36F0/QnPoX0JxPYQaurepi6QV8FhV7MzFhM6586RYFMa3qYnsVBpNQ+ZGOGJ3PkM9QkZAY+Y6TnV7gnYsAAAEcSURBVHhebdHVbgMxEEBRu8sUZmqapBBoSuGUmWb+/3NayxtrLOe+Hck745XZgd6/eb3CVcKt7HmR+gKxlCGOETG5vFbOoahR6NxI5zHt6nuq+2dqnqfzzH3mfcz70vb8H6MJt5u6a96hS30E4PjEFgAEp2fKNojKUfVEOoS044ex7u3YPE/nmfvM+5j3pe17T9oe/77O41w+n4vnrbrwZxbTshVhvtx5Kb8vliRLRWmeSQSTjJq/El5x5fUXYmNN9hcQC5y4g/hGvVksNtT8451rns2IScb7mn567ll2GNpWr9YWfvQgzWsKs8HOA/m960g6rjTzA8HAV/NHwiOmPLwDKA/J/gggYsRVgFvqbr/fpWYv90zzZKKs9Qfx00Jx65oxLAAAAABJRU5ErkJggg==") no-repeat scroll 0 0 transparent;cursor:pointer;display:inline-block;height:15px;width:15px;margin-right:3px;vertical-align:middle}.kint dt.kint-parent:hover nav{background-position:0 -15px}.kint dt.kint-parent.kint-show:hover>nav{background-position:0 -45px}.kint dt.kint-show>nav{background-position:0 -30px}.kint dt.kint-parent+dd{display:none;border-left:1px dashed #586e75}.kint dt.kint-parent.kint-show+dd{display:block}.kint var,.kint var a{color:#268bd2;font-style:normal}.kint dt:hover var,.kint dt:hover var a{color:#2aa198}.kint dfn{font-style:normal;font-family:monospace;color:#93a1a1}.kint pre{color:#839496;margin:0 0 0 15px;padding:5px;overflow-y:hidden;border-top:0;border:1px solid #586e75;background:#002b36;display:block;word-break:normal}.kint .kint-popup-trigger{float:right !important;cursor:pointer;color:#268bd2}.kint .kint-popup-trigger:hover{color:#586e75}.kint dt.kint-parent>.kint-popup-trigger{font-size:13px}.kint footer{padding:0 3px 3px;font-size:9px}.kint footer>.kint-popup-trigger{font-size:12px}.kint footer nav{background-size:10px;height:10px;width:10px}.kint footer nav:hover{background-position:0 -10px}.kint footer>ol{display:none;margin-left:32px}.kint footer.kint-show>ol{display:block}.kint footer.kint-show nav{background-position:0 -20px}.kint footer.kint-show nav:hover{background-position:0 -30px}.kint a{color:#839496;text-shadow:none}.kint a:hover{color:#93a1a1;border-bottom:1px dotted #93a1a1}.kint ul{list-style:none;padding-left:15px}.kint ul:not(.kint-tabs) li{border-left:1px dashed #586e75}.kint ul:not(.kint-tabs) li>dl{border-left:none}.kint ul.kint-tabs{margin:0 0 0 15px;padding-left:0;background:#002b36;border:1px solid #586e75;border-top:0}.kint ul.kint-tabs li{background:#073642;border:1px solid #586e75;cursor:pointer;display:inline-block;height:30px;margin:3px;padding:0 15px;vertical-align:top}.kint ul.kint-tabs li:hover,.kint ul.kint-tabs li.kint-active-tab:hover{border-color:#268bd2;color:#2aa198}.kint ul.kint-tabs li.kint-active-tab{background:#002b36;border-top:0;margin-top:-1px;height:27px;line-height:24px}.kint ul.kint-tabs li:not(.kint-active-tab){line-height:25px}.kint ul.kint-tabs li+li{margin-left:0}.kint ul:not(.kint-tabs)>li:not(:first-child){display:none}.kint dt:hover+dd>ul>li.kint-active-tab{border-color:#268bd2;color:#2aa198}.kint-report{border-collapse:collapse;empty-cells:show;border-spacing:0}.kint-report *{font-size:12px}.kint-report dt{background:none;padding:2.5px}.kint-report dt .kint-parent{min-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kint-report td,.kint-report th{border:1px solid #586e75;padding:2.5px;vertical-align:top}.kint-report th{cursor:alias}.kint-report td{background:#002b36;white-space:pre}.kint-report td>dl{padding:0}.kint-report pre{border-top:0;border-right:0}.kint-report th:first-child{background:none;border:0}.kint-report td:first-child,.kint-report th{font-weight:bold;background:#073642;color:#93a1a1;padding:2.5px 0}.kint-report td.kint-empty{background:#d33682 !important}.kint-report tr:hover>td{box-shadow:0 0 1px 0 #268bd2 inset}.kint-report tr:hover var{color:#2aa198}.kint-report ul.kint-tabs li.kint-active-tab{height:20px;line-height:17px}.kint-trace .kint-source{line-height:18px}.kint-trace .kint-source span{padding-right:1px;border-right:3px inset #268bd2}.kint-trace .kint-source .kint-highlight{background:#073642}.kint-trace .kint-parent>b{min-width:18px;display:inline-block;text-align:right;color:#93a1a1}.kint-trace .kint-parent>var>a{color:#268bd2}.kint-focused{box-shadow:0 0 3px 2px #859900 inset;border-radius:7px}.kint-microtime,.kint-color-preview{box-shadow:0 0 2px 0 #b6cedb;height:16px;text-align:center;text-shadow:-1px 0 #839496,0 1px #839496,1px 0 #839496,0 -1px #839496;width:230px;color:#fdf6e3}.kint footer li{color:#ddd}body{background:#073642;color:#fff}.kint{background:#073642;box-shadow:0 0 5px 3px #073642}.kint>dl>dt,.kint ul.kint-tabs{box-shadow:4px 0 2px -3px #268bd2 inset}.kint ul.kint-tabs li.kint-active-tab{padding-top:7px;height:34px} \ No newline at end of file diff --git a/github/vendor/raveren/kint/view/compiled/solarized.css b/github/vendor/raveren/kint/view/compiled/solarized.css deleted file mode 100644 index 118daf3..0000000 --- a/github/vendor/raveren/kint/view/compiled/solarized.css +++ /dev/null @@ -1 +0,0 @@ -.kint::selection{background:#268bd2;color:#657b83}.kint::-moz-selection{background:#268bd2;color:#657b83}.kint::-webkit-selection{background:#268bd2;color:#657b83}.kint,.kint::before,.kint::after,.kint *,.kint *::before,.kint *::after{box-sizing:border-box;border-radius:0;color:#657b83;float:none !important;font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;line-height:15px;margin:0;padding:0;text-align:left}.kint{font-size:13px;margin:10px 0;overflow-x:auto;white-space:nowrap}.kint dt{background:#fdf6e3;border:1px solid #93a1a1;color:#657b83;display:block;font-weight:bold;list-style:none outside none;overflow:auto;padding:5px}.kint dt:hover{border-color:#268bd2}.kint dt>var{margin-right:5px}.kint>dl dl{padding:0 0 0 15px}.kint nav{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAMAAACO5hB7AAAA7VBMVEVYbnWToaH///9YbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaFYbnVYbnWToaGToaFYbnWToaFYbnWToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnVYbnWToaGToaGToaGToaGToaGToaGToaGToaGToaFYbnWToaEeRtj1AAAATXRSTlMAAACLab0B7iP2R7CL9iPuaUewAb36F0/QnPoX0JxPYQaurepi6QV8FhV7MzFhM6586RYFMa3qYnsVBpNQ+ZGOGJ3PkM9QkZAY+Y6TnV7gnYsAAAEcSURBVHhebdHVbgMxEEBRu8sUZmqapBBoSuGUmWb+/3NayxtrLOe+Hck745XZgd6/eb3CVcKt7HmR+gKxlCGOETG5vFbOoahR6NxI5zHt6nuq+2dqnqfzzH3mfcz70vb8H6MJt5u6a96hS30E4PjEFgAEp2fKNojKUfVEOoS044ex7u3YPE/nmfvM+5j3pe17T9oe/77O41w+n4vnrbrwZxbTshVhvtx5Kb8vliRLRWmeSQSTjJq/El5x5fUXYmNN9hcQC5y4g/hGvVksNtT8451rns2IScb7mn567ll2GNpWr9YWfvQgzWsKs8HOA/m960g6rjTzA8HAV/NHwiOmPLwDKA/J/gggYsRVgFvqbr/fpWYv90zzZKKs9Qfx00Jx65oxLAAAAABJRU5ErkJggg==") no-repeat scroll 0 0 transparent;cursor:pointer;display:inline-block;height:15px;width:15px;margin-right:3px;vertical-align:middle}.kint dt.kint-parent:hover nav{background-position:0 -15px}.kint dt.kint-parent.kint-show:hover>nav{background-position:0 -45px}.kint dt.kint-show>nav{background-position:0 -30px}.kint dt.kint-parent+dd{display:none;border-left:1px dashed #93a1a1}.kint dt.kint-parent.kint-show+dd{display:block}.kint var,.kint var a{color:#268bd2;font-style:normal}.kint dt:hover var,.kint dt:hover var a{color:#2aa198}.kint dfn{font-style:normal;font-family:monospace;color:#586e75}.kint pre{color:#657b83;margin:0 0 0 15px;padding:5px;overflow-y:hidden;border-top:0;border:1px solid #93a1a1;background:#fdf6e3;display:block;word-break:normal}.kint .kint-popup-trigger{float:right !important;cursor:pointer;color:#268bd2}.kint .kint-popup-trigger:hover{color:#93a1a1}.kint dt.kint-parent>.kint-popup-trigger{font-size:13px}.kint footer{padding:0 3px 3px;font-size:9px}.kint footer>.kint-popup-trigger{font-size:12px}.kint footer nav{background-size:10px;height:10px;width:10px}.kint footer nav:hover{background-position:0 -10px}.kint footer>ol{display:none;margin-left:32px}.kint footer.kint-show>ol{display:block}.kint footer.kint-show nav{background-position:0 -20px}.kint footer.kint-show nav:hover{background-position:0 -30px}.kint a{color:#657b83;text-shadow:none}.kint a:hover{color:#586e75;border-bottom:1px dotted #586e75}.kint ul{list-style:none;padding-left:15px}.kint ul:not(.kint-tabs) li{border-left:1px dashed #93a1a1}.kint ul:not(.kint-tabs) li>dl{border-left:none}.kint ul.kint-tabs{margin:0 0 0 15px;padding-left:0;background:#fdf6e3;border:1px solid #93a1a1;border-top:0}.kint ul.kint-tabs li{background:#eee8d5;border:1px solid #93a1a1;cursor:pointer;display:inline-block;height:30px;margin:3px;padding:0 15px;vertical-align:top}.kint ul.kint-tabs li:hover,.kint ul.kint-tabs li.kint-active-tab:hover{border-color:#268bd2;color:#2aa198}.kint ul.kint-tabs li.kint-active-tab{background:#fdf6e3;border-top:0;margin-top:-1px;height:27px;line-height:24px}.kint ul.kint-tabs li:not(.kint-active-tab){line-height:25px}.kint ul.kint-tabs li+li{margin-left:0}.kint ul:not(.kint-tabs)>li:not(:first-child){display:none}.kint dt:hover+dd>ul>li.kint-active-tab{border-color:#268bd2;color:#2aa198}.kint-report{border-collapse:collapse;empty-cells:show;border-spacing:0}.kint-report *{font-size:12px}.kint-report dt{background:none;padding:2.5px}.kint-report dt .kint-parent{min-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kint-report td,.kint-report th{border:1px solid #93a1a1;padding:2.5px;vertical-align:top}.kint-report th{cursor:alias}.kint-report td{background:#fdf6e3;white-space:pre}.kint-report td>dl{padding:0}.kint-report pre{border-top:0;border-right:0}.kint-report th:first-child{background:none;border:0}.kint-report td:first-child,.kint-report th{font-weight:bold;background:#eee8d5;color:#586e75;padding:2.5px 0}.kint-report td.kint-empty{background:#d33682 !important}.kint-report tr:hover>td{box-shadow:0 0 1px 0 #268bd2 inset}.kint-report tr:hover var{color:#2aa198}.kint-report ul.kint-tabs li.kint-active-tab{height:20px;line-height:17px}.kint-trace .kint-source{line-height:18px}.kint-trace .kint-source span{padding-right:1px;border-right:3px inset #268bd2}.kint-trace .kint-source .kint-highlight{background:#eee8d5}.kint-trace .kint-parent>b{min-width:18px;display:inline-block;text-align:right;color:#586e75}.kint-trace .kint-parent>var>a{color:#268bd2}.kint-focused{box-shadow:0 0 3px 2px #859900 inset;border-radius:7px}.kint-microtime,.kint-color-preview{box-shadow:0 0 2px 0 #b6cedb;height:16px;text-align:center;text-shadow:-1px 0 #839496,0 1px #839496,1px 0 #839496,0 -1px #839496;width:230px;color:#fdf6e3}.kint footer li{color:#ddd}.kint>dl>dt,.kint ul.kint-tabs{box-shadow:4px 0 2px -3px #268bd2 inset}.kint ul.kint-tabs li.kint-active-tab{padding-top:7px;height:34px} \ No newline at end of file diff --git a/github/vendor/raveren/kint/view/themes/aante-light.less b/github/vendor/raveren/kint/view/themes/aante-light.less deleted file mode 100644 index f342d75..0000000 --- a/github/vendor/raveren/kint/view/themes/aante-light.less +++ /dev/null @@ -1,154 +0,0 @@ -/** - * @author Ante Aljinovic https://github.com/aljinovic - */ -@import "../base"; - -@main-background: #f8f8f8; -@secondary-background : #f8f8f8; - -@text-color: #1d1e1e; -@variable-name-color: #1d1e1e; -@variable-type-color: #06f; -@variable-type-color-hover: #f00; - -@border-color: #d7d7d7; -@border-color-hover: #aaa; - -@caret-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAYAAAC5OOBJAAAAvklEQVR42mNgGMFAS0uLLSQk5HxoaOh/XDg4OLgdpwEBAQEGQAN+YtMIFH/i4ODAg9cFQNMbsWkOCgrKJMv5ID5Qipko/6M7PzAw0ImkAIQ5H0hvISv0gZpP+fn5qZAVfcBAkmEYBaNZcjRLjmbJUUCvqAIlDlAiASUWkjWDkiU0eTaSpBGUEZBy1E9QRiFWLzO2LEmU80GZHkcRhN/5oGIGVNzgKIbwOx9UwOErAIl2/igYzZKjWXI0S9IHAAASJijo0Ypj8AAAAABJRU5ErkJggg=="); - -.keyboard-caret() { - box-shadow : 0 0 3px 2px @variable-type-color-hover; -} - -.kint { - dt { - font-weight : normal; - - &.kint-parent { - margin-top : 4px; - } - } - - > dl { - background : linear-gradient(90deg, rgba(255,255,255,0) 0, #fff 15px); - } - - dl dl { - margin-top : 4px; - padding-left : 25px; - border-left : none; - } - - > dl > dt { - background : @secondary-background; - } - - // - // TABS - // -------------------------------------------------- - - ul { - margin : 0; - padding-left : 0; - - &:not(.kint-tabs) > li { - border-left : 0; - } - - &.kint-tabs { - background : @secondary-background; - border : @border; - border-width : 0 1px 1px 1px; - padding : 4px 0 0 12px; - margin-left : -1px; - margin-top : -1px; - - li, - li + li { - margin : 0 0 0 4px; - } - - li { - border-bottom-width : 0; - height : @spacing * 6px + 1px; - - - &:first-child { - margin-left : 0; - } - - &.kint-active-tab { - border-top : @border; - background : #fff; - font-weight : bold; - padding-top : 0; - border-bottom : 1px solid #fff !important; - margin-bottom : -1px; - } - - &.kint-active-tab:hover { - border-bottom : 1px solid #fff; - } - } - } - - > li > pre { - border : @border; - } - } - - dt:hover + dd > ul { - border-color : @border-color-hover; - } - - pre { - background : #fff; - margin-top : 4px; - margin-left : 25px; - } - - .kint-popup-trigger:hover { - color : @variable-type-color-hover; - } - - .kint-source .kint-highlight { - background : #cfc; - } -} - -// -// REPORT -// -------------------------------------------------- - -.kint-report { - td { - background : #fff; - - > dl { - padding : 0; - margin : 0; - > dt.kint-parent { - margin: 0; - } - } - } - - td:first-child, - td, - th { - padding : 2px 4px; - } - - td.kint-empty { - background : @border-color !important; - } - - dd, dt { - background: #fff; - } - - tr:hover > td { - box-shadow : none; - background : #cfc; - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/view/themes/original.less b/github/vendor/raveren/kint/view/themes/original.less deleted file mode 100644 index 839a9de..0000000 --- a/github/vendor/raveren/kint/view/themes/original.less +++ /dev/null @@ -1,43 +0,0 @@ -@import "../base"; - -@main-background: #e0eaef; -@secondary-background: #c1d4df; - -@text-color: #1d1e1e; -@variable-name-color: #1d1e1e; -@variable-type-color: #0092db; -@variable-type-color-hover: #5cb730; - -@border-color: #b6cedb; -@border-color-hover: #0092db; - -@caret-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAA8CAMAAACO5hB7AAAACVBMVEX///82b4tctzBls0NMAAAAQklEQVR42rWRIQ4AAAgCwf8/2qgER2BeuwJsgAqIzekMfMryPL9XQSkobE6vwKcsz/N7FfPvh09lnPf/b+7673+f0uHuAZ/EdkNQAAAAAElFTkSuQmCC"); - -.keyboard-caret() { - box-shadow : 0 0 3px 2px #5cb730; -} - -.kint { - > dl > dt { - background : linear-gradient(to bottom, #e3ecf0 0, #c0d4df 100%); - } - - ul.kint-tabs { - background : linear-gradient(to bottom, #9dbed0 0px, #b2ccda 100%); - } - - & > dl:not(.kint-trace) > dd > ul.kint-tabs li { - background : @main-background; - &.kint-active-tab { - background : @secondary-background; - } - } - - & > dl.kint-trace > dt { - background : linear-gradient(to bottom, #c0d4df 0px, #e3ecf0 100%); - } - - .kint-source .kint-highlight { - background : #f0eb96; - } -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/view/themes/solarized-dark.less b/github/vendor/raveren/kint/view/themes/solarized-dark.less deleted file mode 100644 index f8467e1..0000000 --- a/github/vendor/raveren/kint/view/themes/solarized-dark.less +++ /dev/null @@ -1,39 +0,0 @@ -@import "../base"; - -@spacing : 5; - -@main-background: #002b36; // base 03 -@secondary-background : #073642; // base 02 - -@text-color: #839496; // base 0 -@variable-name-color: #93a1a1; // base 1 -@variable-type-color: #268bd2; // blue -@variable-type-color-hover: #2aa198; // cyan - -@border-color: #586e75; // base 01 -@border-color-hover: #268bd2; // blue - -.keyboard-caret() { - box-shadow : 0 0 3px 2px #859900 inset; // green - border-radius : 7px; -} - -body { - background : @secondary-background; - color : #fff; // for non-kint elements to remain at least semi-readable -} - -.kint { - background : @secondary-background; - box-shadow : 0 0 5px 3px @secondary-background; - - > dl > dt, - ul.kint-tabs { - box-shadow : 4px 0 2px -3px @variable-type-color inset; - } -} - -.kint ul.kint-tabs li.kint-active-tab { - padding-top: 7px; - height: 34px; -} \ No newline at end of file diff --git a/github/vendor/raveren/kint/view/themes/solarized.less b/github/vendor/raveren/kint/view/themes/solarized.less deleted file mode 100644 index ded8748..0000000 --- a/github/vendor/raveren/kint/view/themes/solarized.less +++ /dev/null @@ -1,29 +0,0 @@ -@import "../base"; - -@spacing : 5; - -@main-background: #fdf6e3; // base 3 -@secondary-background : #eee8d5; // base 2 - -@text-color: #657b83; // base 00 -@variable-name-color: #586e75; // base 01 -@variable-type-color: #268bd2; // blue -@variable-type-color-hover: #2aa198; // cyan - -@border-color: #93a1a1; // base 1 -@border-color-hover: #268bd2; // blue - -.keyboard-caret() { - box-shadow : 0 0 3px 2px #859900 inset; // green - border-radius : 7px; -} - -.kint > dl > dt, -.kint ul.kint-tabs { - box-shadow : 4px 0 2px -3px @variable-type-color inset; -} - -.kint ul.kint-tabs li.kint-active-tab { - padding-top: 7px; - height: 34px; -} \ No newline at end of file From ace712b8547a9ed82ed5bc37652d4ced6a3a6811 Mon Sep 17 00:00:00 2001 From: Logan Lindquist Date: Thu, 2 Nov 2017 21:04:08 -0500 Subject: [PATCH 2/2] updating composer --- .gitignore | 6 +- github/composer.json | 4 +- github/composer.lock | 372 +++++++++++++++++++++++++++++++++++-------- 3 files changed, 308 insertions(+), 74 deletions(-) diff --git a/.gitignore b/.gitignore index 9ecf946..e9226e8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ github/config.json - github/public/last/index\.html - github/public/this/index\.html - github/\.idea/workspace\.xml +github/vendor +.DS_Store +/.idea diff --git a/github/composer.json b/github/composer.json index cf7d4eb..1e2b1b9 100644 --- a/github/composer.json +++ b/github/composer.json @@ -1,6 +1,6 @@ { "require": { - "illuminate/support": "^5.2", - "raveren/kint": "^1.0" + "illuminate/support": "^5.5", + "kint-php/kint": "^2.2" } } diff --git a/github/composer.lock b/github/composer.lock index 9219777..d0fe0ec 100644 --- a/github/composer.lock +++ b/github/composer.lock @@ -4,38 +4,37 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "04f88a8d03063196118b90da85d8a8c5", - "content-hash": "a4b9a4f53466231a8b3ef02fb998cc3a", + "content-hash": "cb6acc6355877cf36f2dbb048806300c", "packages": [ { "name": "doctrine/inflector", - "version": "v1.1.0", + "version": "v1.2.0", "source": { "type": "git", "url": "https://github.com/doctrine/inflector.git", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae" + "reference": "e11d84c6e018beedd929cff5220969a3c6d1d462" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/e11d84c6e018beedd929cff5220969a3c6d1d462", + "reference": "e11d84c6e018beedd929cff5220969a3c6d1d462", "shasum": "" }, "require": { - "php": ">=5.3.2" + "php": "^7.0" }, "require-dev": { - "phpunit/phpunit": "4.*" + "phpunit/phpunit": "^6.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "1.2.x-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\Common\\Inflector\\": "lib/" + "psr-4": { + "Doctrine\\Common\\Inflector\\": "lib/Doctrine/Common/Inflector" } }, "notification-url": "https://packagist.org/downloads/", @@ -72,29 +71,31 @@ "singularize", "string" ], - "time": "2015-11-06 14:35:42" + "time": "2017-07-22T12:18:28+00:00" }, { "name": "illuminate/contracts", - "version": "v5.4.9", + "version": "v5.5.17", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "4ec919d294aca396d172e644b243b49885cd2cc7" + "reference": "d9e269284eba43bd2e9e8d1f1ba12362b00ec096" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/4ec919d294aca396d172e644b243b49885cd2cc7", - "reference": "4ec919d294aca396d172e644b243b49885cd2cc7", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/d9e269284eba43bd2e9e8d1f1ba12362b00ec096", + "reference": "d9e269284eba43bd2e9e8d1f1ba12362b00ec096", "shasum": "" }, "require": { - "php": ">=5.6.4" + "php": ">=7.0", + "psr/container": "~1.0", + "psr/simple-cache": "~1.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.4-dev" + "dev-master": "5.5-dev" } }, "autoload": { @@ -114,41 +115,41 @@ ], "description": "The Illuminate Contracts package.", "homepage": "https://laravel.com", - "time": "2017-01-18 20:23:54" + "time": "2017-09-19T13:09:37+00:00" }, { "name": "illuminate/support", - "version": "v5.4.9", + "version": "v5.5.17", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "5544aaf67b7e57559d58c01a9030c82ca01872a6" + "reference": "132b06edaab3808f63943004911d58785f164ab4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/5544aaf67b7e57559d58c01a9030c82ca01872a6", - "reference": "5544aaf67b7e57559d58c01a9030c82ca01872a6", + "url": "https://api.github.com/repos/illuminate/support/zipball/132b06edaab3808f63943004911d58785f164ab4", + "reference": "132b06edaab3808f63943004911d58785f164ab4", "shasum": "" }, "require": { - "doctrine/inflector": "~1.0", + "doctrine/inflector": "~1.1", "ext-mbstring": "*", - "illuminate/contracts": "5.4.*", - "paragonie/random_compat": "~1.4|~2.0", - "php": ">=5.6.4" + "illuminate/contracts": "5.5.*", + "nesbot/carbon": "^1.20", + "php": ">=7.0" }, "replace": { "tightenco/collect": "self.version" }, "suggest": { "illuminate/filesystem": "Required to use the composer class (5.2.*).", - "symfony/process": "Required to use the composer class (~3.2).", - "symfony/var-dumper": "Required to use the dd function (~3.2)." + "symfony/process": "Required to use the composer class (~3.3).", + "symfony/var-dumper": "Required to use the dd function (~3.3)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.4-dev" + "dev-master": "5.5-dev" } }, "autoload": { @@ -171,35 +172,37 @@ ], "description": "The Illuminate Support package.", "homepage": "https://laravel.com", - "time": "2017-02-02 13:32:18" + "time": "2017-10-17T12:18:29+00:00" }, { - "name": "paragonie/random_compat", - "version": "v2.0.4", + "name": "kint-php/kint", + "version": "2.2", "source": { "type": "git", - "url": "https://github.com/paragonie/random_compat.git", - "reference": "a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e" + "url": "https://github.com/kint-php/kint.git", + "reference": "b091715eadaf6e1a7ef927f3e81d1004611d2aea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e", - "reference": "a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e", + "url": "https://api.github.com/repos/kint-php/kint/zipball/b091715eadaf6e1a7ef927f3e81d1004611d2aea", + "reference": "b091715eadaf6e1a7ef927f3e81d1004611d2aea", "shasum": "" }, "require": { - "php": ">=5.2.0" + "php": ">=5.1.2" }, "require-dev": { - "phpunit/phpunit": "4.*|5.*" - }, - "suggest": { - "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + "friendsofphp/php-cs-fixer": "^2.0", + "phpunit/phpunit": "^4.0", + "symfony/finder": "^2.6" }, "type": "library", "autoload": { "files": [ - "lib/random.php" + "init.php" + ], + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -208,35 +211,145 @@ ], "authors": [ { - "name": "Paragon Initiative Enterprises", - "email": "security@paragonie.com", - "homepage": "https://paragonie.com" + "name": "Rokas Šleinius", + "homepage": "https://github.com/raveren" + }, + { + "name": "Jonathan Vollebregt", + "homepage": "https://github.com/jnvsor" + }, + { + "name": "Contributors", + "homepage": "https://github.com/kint-php/kint/graphs/contributors" + } + ], + "description": "Kint - debugging tool for PHP developers", + "homepage": "https://kint-php.github.io/kint/", + "keywords": [ + "debug", + "kint", + "php" + ], + "time": "2017-09-06T17:46:03+00:00" + }, + { + "name": "nesbot/carbon", + "version": "1.22.1", + "source": { + "type": "git", + "url": "https://github.com/briannesbitt/Carbon.git", + "reference": "7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc", + "reference": "7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "symfony/translation": "~2.6 || ~3.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "~2", + "phpunit/phpunit": "~4.0 || ~5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.23-dev" + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "http://nesbot.com" + } + ], + "description": "A simple API extension for DateTime.", + "homepage": "http://carbon.nesbot.com", + "keywords": [ + "date", + "datetime", + "time" + ], + "time": "2017-01-16T07:55:07+00:00" + }, + { + "name": "psr/container", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", + "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" } ], - "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", "keywords": [ - "csprng", - "pseudorandom", - "random" + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" ], - "time": "2016-11-07 23:38:38" + "time": "2017-02-14T16:28:37+00:00" }, { - "name": "raveren/kint", - "version": "1.0.10", + "name": "psr/simple-cache", + "version": "1.0.0", "source": { "type": "git", - "url": "https://github.com/raveren/kint.git", - "reference": "c8423b9928bd35bf6ad14c688ab9c6d17d97d0eb" + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "753fa598e8f3b9966c886fe13f370baa45ef0e24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/raveren/kint/zipball/c8423b9928bd35bf6ad14c688ab9c6d17d97d0eb", - "reference": "c8423b9928bd35bf6ad14c688ab9c6d17d97d0eb", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/753fa598e8f3b9966c886fe13f370baa45ef0e24", + "reference": "753fa598e8f3b9966c886fe13f370baa45ef0e24", "shasum": "" }, "require": { - "php": ">=5.1.0" + "php": ">=5.3.0" }, "type": "library", "extra": { @@ -245,8 +358,62 @@ } }, "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "time": "2017-01-02T13:31:39+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", + "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + }, "files": [ - "Kint.class.php" + "bootstrap.php" ] }, "notification-url": "https://packagist.org/downloads/", @@ -255,22 +422,89 @@ ], "authors": [ { - "name": "Rokas Šleinius", - "homepage": "https://github.com/raveren" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { - "name": "Contributors", - "homepage": "https://github.com/raveren/kint/contributors" + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } ], - "description": "Kint - debugging helper for PHP developers", - "homepage": "https://github.com/raveren/kint", + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", "keywords": [ - "debug", - "kint", - "php" + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2017-10-11T12:05:26+00:00" + }, + { + "name": "symfony/translation", + "version": "v3.3.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "409bf229cd552bf7e3faa8ab7e3980b07672073f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/409bf229cd552bf7e3faa8ab7e3980b07672073f", + "reference": "409bf229cd552bf7e3faa8ab7e3980b07672073f", + "shasum": "" + }, + "require": { + "php": "^5.5.9|>=7.0.8", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/config": "<2.8", + "symfony/yaml": "<3.3" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/config": "~2.8|~3.0", + "symfony/intl": "^2.8.18|^3.2.5", + "symfony/yaml": "~3.3" + }, + "suggest": { + "psr/log": "To use logging capability in translator", + "symfony/config": "", + "symfony/yaml": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.3-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } ], - "time": "2015-09-16 14:09:00" + "description": "Symfony Translation Component", + "homepage": "https://symfony.com", + "time": "2017-10-02T06:42:24+00:00" } ], "packages-dev": [],