├── .editorconfig ├── .gitignore ├── README.md ├── app ├── Controllers │ ├── .gitkeep │ ├── AdminController.php │ └── RouteController.php ├── Helper.php ├── MetaBoxes │ ├── ExtendPublish.php │ └── Validator.php ├── Services │ └── Github.php ├── activate.php ├── filters.php ├── metaboxes.php ├── panels.php └── routes.php ├── composer.json ├── herbert.config.php ├── includes ├── git-content.min.css ├── git-content.min.js └── git-content.scss ├── plugin.php ├── resources ├── assets │ ├── .gitkeep │ └── images │ │ ├── git-dark.svg │ │ └── git.svg └── views │ ├── .gitkeep │ ├── admin │ └── index.twig │ └── metaboxes │ └── extendPublish.twig └── vendor ├── autoload.php ├── bin ├── semver └── update-versions ├── composer ├── ClassLoader.php ├── LICENSE ├── autoload_classmap.php ├── autoload_files.php ├── autoload_namespaces.php ├── autoload_psr4.php ├── autoload_real.php ├── autoload_static.php └── installed.json ├── doctrine └── inflector │ ├── .gitignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── composer.json │ ├── lib │ └── Doctrine │ │ └── Common │ │ └── Inflector │ │ └── Inflector.php │ ├── phpunit.xml.dist │ └── tests │ └── Doctrine │ └── Tests │ ├── Common │ └── Inflector │ │ └── InflectorTest.php │ ├── DoctrineTestCase.php │ └── TestInit.php ├── erusev ├── parsedown-extra │ ├── .travis.yml │ ├── LICENSE.txt │ ├── ParsedownExtra.php │ ├── README.md │ ├── composer.json │ ├── phpunit.xml.dist │ └── test │ │ ├── ParsedownExtraTest.php │ │ ├── bootstrap.php │ │ └── data │ │ ├── abbreviation.html │ │ ├── abbreviation.md │ │ ├── compound_footnote.html │ │ ├── compound_footnote.md │ │ ├── definition_list.html │ │ ├── definition_list.md │ │ ├── footnote.html │ │ ├── footnote.md │ │ ├── markdown_inside_markup.html │ │ ├── markdown_inside_markup.md │ │ ├── special_attributes.html │ │ └── special_attributes.md └── parsedown │ ├── .travis.yml │ ├── LICENSE.txt │ ├── Parsedown.php │ ├── README.md │ ├── composer.json │ ├── phpunit.xml.dist │ └── test │ ├── CommonMarkTest.php │ ├── ParsedownTest.php │ ├── TestParsedown.php │ ├── bootstrap.php │ └── data │ ├── aesthetic_table.html │ ├── aesthetic_table.md │ ├── aligned_table.html │ ├── aligned_table.md │ ├── atx_heading.html │ ├── atx_heading.md │ ├── automatic_link.html │ ├── automatic_link.md │ ├── block-level_html.html │ ├── block-level_html.md │ ├── code_block.html │ ├── code_block.md │ ├── code_span.html │ ├── code_span.md │ ├── compound_blockquote.html │ ├── compound_blockquote.md │ ├── compound_emphasis.html │ ├── compound_emphasis.md │ ├── compound_list.html │ ├── compound_list.md │ ├── deeply_nested_list.html │ ├── deeply_nested_list.md │ ├── em_strong.html │ ├── em_strong.md │ ├── email.html │ ├── email.md │ ├── emphasis.html │ ├── emphasis.md │ ├── escaping.html │ ├── escaping.md │ ├── fenced_code_block.html │ ├── fenced_code_block.md │ ├── horizontal_rule.html │ ├── horizontal_rule.md │ ├── html_comment.html │ ├── html_comment.md │ ├── html_entity.html │ ├── html_entity.md │ ├── image_reference.html │ ├── image_reference.md │ ├── image_title.html │ ├── image_title.md │ ├── implicit_reference.html │ ├── implicit_reference.md │ ├── inline_link.html │ ├── inline_link.md │ ├── inline_link_title.html │ ├── inline_link_title.md │ ├── inline_title.html │ ├── inline_title.md │ ├── lazy_blockquote.html │ ├── lazy_blockquote.md │ ├── lazy_list.html │ ├── lazy_list.md │ ├── line_break.html │ ├── line_break.md │ ├── multiline_list_paragraph.html │ ├── multiline_list_paragraph.md │ ├── nested_block-level_html.html │ ├── nested_block-level_html.md │ ├── ordered_list.html │ ├── ordered_list.md │ ├── paragraph_list.html │ ├── paragraph_list.md │ ├── reference_title.html │ ├── reference_title.md │ ├── self-closing_html.html │ ├── self-closing_html.md │ ├── separated_nested_list.html │ ├── separated_nested_list.md │ ├── setext_header.html │ ├── setext_header.md │ ├── simple_blockquote.html │ ├── simple_blockquote.md │ ├── simple_table.html │ ├── simple_table.md │ ├── span-level_html.html │ ├── span-level_html.md │ ├── sparse_dense_list.html │ ├── sparse_dense_list.md │ ├── sparse_html.html │ ├── sparse_html.md │ ├── sparse_list.html │ ├── sparse_list.md │ ├── special_characters.html │ ├── special_characters.md │ ├── strikethrough.html │ ├── strikethrough.md │ ├── strong_em.html │ ├── strong_em.md │ ├── tab-indented_code_block.html │ ├── tab-indented_code_block.md │ ├── table_inline_markdown.html │ ├── table_inline_markdown.md │ ├── text_reference.html │ ├── text_reference.md │ ├── unordered_list.html │ ├── unordered_list.md │ ├── untidy_table.html │ ├── untidy_table.md │ ├── url_autolinking.html │ ├── url_autolinking.md │ ├── whitespace.html │ └── whitespace.md ├── getherbert └── framework │ ├── .editorconfig │ ├── .gitignore │ ├── Herbert │ └── Framework │ │ ├── API.php │ │ ├── Application.php │ │ ├── Base │ │ └── Plugin.php │ │ ├── Enqueue.php │ │ ├── Exceptions │ │ └── HttpErrorException.php │ │ ├── Http.php │ │ ├── JsonResponse.php │ │ ├── Models │ │ ├── Comment.php │ │ ├── CommentMeta.php │ │ ├── Option.php │ │ ├── Post.php │ │ ├── PostMeta.php │ │ ├── SoftDeletes │ │ │ ├── SoftDeletes.php │ │ │ └── SoftDeletingScope.php │ │ ├── Taxonomy.php │ │ └── Term.php │ │ ├── Notifier.php │ │ ├── Panel.php │ │ ├── Plugin.php │ │ ├── Providers │ │ ├── HerbertServiceProvider.php │ │ └── TwigServiceProvider.php │ │ ├── RedirectResponse.php │ │ ├── Response.php │ │ ├── Route.php │ │ ├── Router.php │ │ ├── Session.php │ │ ├── Shortcode.php │ │ └── Widget.php │ ├── bootstrap │ ├── autoload.php │ └── helpers.php │ └── composer.json ├── guzzlehttp ├── guzzle │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── UPGRADING.md │ ├── composer.json │ └── src │ │ ├── Client.php │ │ ├── ClientInterface.php │ │ ├── Cookie │ │ ├── CookieJar.php │ │ ├── CookieJarInterface.php │ │ ├── FileCookieJar.php │ │ ├── SessionCookieJar.php │ │ └── SetCookie.php │ │ ├── Exception │ │ ├── BadResponseException.php │ │ ├── ClientException.php │ │ ├── ConnectException.php │ │ ├── GuzzleException.php │ │ ├── RequestException.php │ │ ├── SeekException.php │ │ ├── ServerException.php │ │ ├── TooManyRedirectsException.php │ │ └── TransferException.php │ │ ├── Handler │ │ ├── CurlFactory.php │ │ ├── CurlFactoryInterface.php │ │ ├── CurlHandler.php │ │ ├── CurlMultiHandler.php │ │ ├── EasyHandle.php │ │ ├── MockHandler.php │ │ ├── Proxy.php │ │ └── StreamHandler.php │ │ ├── HandlerStack.php │ │ ├── MessageFormatter.php │ │ ├── Middleware.php │ │ ├── Pool.php │ │ ├── PrepareBodyMiddleware.php │ │ ├── RedirectMiddleware.php │ │ ├── RequestOptions.php │ │ ├── RetryMiddleware.php │ │ ├── TransferStats.php │ │ ├── UriTemplate.php │ │ ├── functions.php │ │ └── functions_include.php ├── promises │ ├── .gitignore │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── composer.json │ ├── phpunit.xml.dist │ ├── src │ │ ├── AggregateException.php │ │ ├── CancellationException.php │ │ ├── EachPromise.php │ │ ├── FulfilledPromise.php │ │ ├── Promise.php │ │ ├── PromiseInterface.php │ │ ├── PromisorInterface.php │ │ ├── RejectedPromise.php │ │ ├── RejectionException.php │ │ ├── TaskQueue.php │ │ ├── functions.php │ │ └── functions_include.php │ └── tests │ │ ├── AggregateExceptionTest.php │ │ ├── EachPromiseTest.php │ │ ├── FulfilledPromiseTest.php │ │ ├── NotPromiseInstance.php │ │ ├── PromiseTest.php │ │ ├── RejectedPromiseTest.php │ │ ├── RejectionExceptionTest.php │ │ ├── TaskQueueTest.php │ │ ├── Thennable.php │ │ ├── bootstrap.php │ │ └── functionsTest.php └── psr7 │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── composer.json │ └── src │ ├── AppendStream.php │ ├── BufferStream.php │ ├── CachingStream.php │ ├── DroppingStream.php │ ├── FnStream.php │ ├── InflateStream.php │ ├── LazyOpenStream.php │ ├── LimitStream.php │ ├── MessageTrait.php │ ├── MultipartStream.php │ ├── NoSeekStream.php │ ├── PumpStream.php │ ├── Request.php │ ├── Response.php │ ├── ServerRequest.php │ ├── Stream.php │ ├── StreamDecoratorTrait.php │ ├── StreamWrapper.php │ ├── UploadedFile.php │ ├── Uri.php │ ├── UriNormalizer.php │ ├── UriResolver.php │ ├── functions.php │ └── functions_include.php ├── illuminate ├── container │ ├── Container.php │ ├── ContextualBindingBuilder.php │ └── composer.json ├── contracts │ ├── Auth │ │ ├── Access │ │ │ ├── Authorizable.php │ │ │ └── Gate.php │ │ ├── Authenticatable.php │ │ ├── CanResetPassword.php │ │ ├── Factory.php │ │ ├── Guard.php │ │ ├── PasswordBroker.php │ │ ├── PasswordBrokerFactory.php │ │ ├── Registrar.php │ │ ├── StatefulGuard.php │ │ ├── SupportsBasicAuth.php │ │ └── UserProvider.php │ ├── Broadcasting │ │ ├── Broadcaster.php │ │ ├── Factory.php │ │ ├── ShouldBroadcast.php │ │ └── ShouldBroadcastNow.php │ ├── Bus │ │ ├── Dispatcher.php │ │ ├── QueueingDispatcher.php │ │ └── SelfHandling.php │ ├── Cache │ │ ├── Factory.php │ │ ├── Repository.php │ │ └── Store.php │ ├── Config │ │ └── Repository.php │ ├── Console │ │ ├── Application.php │ │ └── Kernel.php │ ├── Container │ │ ├── BindingResolutionException.php │ │ ├── Container.php │ │ └── ContextualBindingBuilder.php │ ├── Cookie │ │ ├── Factory.php │ │ └── QueueingFactory.php │ ├── Database │ │ └── ModelIdentifier.php │ ├── Debug │ │ └── ExceptionHandler.php │ ├── Encryption │ │ ├── DecryptException.php │ │ ├── EncryptException.php │ │ └── Encrypter.php │ ├── Events │ │ └── Dispatcher.php │ ├── Filesystem │ │ ├── Cloud.php │ │ ├── Factory.php │ │ ├── FileNotFoundException.php │ │ └── Filesystem.php │ ├── Foundation │ │ └── Application.php │ ├── Hashing │ │ └── Hasher.php │ ├── Http │ │ └── Kernel.php │ ├── Logging │ │ └── Log.php │ ├── Mail │ │ ├── MailQueue.php │ │ └── Mailer.php │ ├── Pagination │ │ ├── LengthAwarePaginator.php │ │ ├── Paginator.php │ │ └── Presenter.php │ ├── Pipeline │ │ ├── Hub.php │ │ └── Pipeline.php │ ├── Queue │ │ ├── EntityNotFoundException.php │ │ ├── EntityResolver.php │ │ ├── Factory.php │ │ ├── Job.php │ │ ├── Monitor.php │ │ ├── Queue.php │ │ ├── QueueableCollection.php │ │ ├── QueueableEntity.php │ │ └── ShouldQueue.php │ ├── Redis │ │ └── Database.php │ ├── Routing │ │ ├── Registrar.php │ │ ├── ResponseFactory.php │ │ ├── UrlGenerator.php │ │ └── UrlRoutable.php │ ├── Support │ │ ├── Arrayable.php │ │ ├── Htmlable.php │ │ ├── Jsonable.php │ │ ├── MessageBag.php │ │ ├── MessageProvider.php │ │ └── Renderable.php │ ├── Validation │ │ ├── Factory.php │ │ ├── UnauthorizedException.php │ │ ├── ValidatesWhenResolved.php │ │ ├── ValidationException.php │ │ └── Validator.php │ ├── View │ │ ├── Factory.php │ │ └── View.php │ └── composer.json ├── database │ ├── Capsule │ │ └── Manager.php │ ├── Connection.php │ ├── ConnectionInterface.php │ ├── ConnectionResolver.php │ ├── ConnectionResolverInterface.php │ ├── Connectors │ │ ├── ConnectionFactory.php │ │ ├── Connector.php │ │ ├── ConnectorInterface.php │ │ ├── MySqlConnector.php │ │ ├── PostgresConnector.php │ │ ├── SQLiteConnector.php │ │ └── SqlServerConnector.php │ ├── Console │ │ ├── Migrations │ │ │ ├── BaseCommand.php │ │ │ ├── InstallCommand.php │ │ │ ├── MigrateCommand.php │ │ │ ├── MigrateMakeCommand.php │ │ │ ├── RefreshCommand.php │ │ │ ├── ResetCommand.php │ │ │ ├── RollbackCommand.php │ │ │ └── StatusCommand.php │ │ └── Seeds │ │ │ ├── SeedCommand.php │ │ │ ├── SeederMakeCommand.php │ │ │ └── stubs │ │ │ └── seeder.stub │ ├── DatabaseManager.php │ ├── DatabaseServiceProvider.php │ ├── DetectsLostConnections.php │ ├── Eloquent │ │ ├── Builder.php │ │ ├── Collection.php │ │ ├── Factory.php │ │ ├── FactoryBuilder.php │ │ ├── MassAssignmentException.php │ │ ├── Model.php │ │ ├── ModelNotFoundException.php │ │ ├── QueueEntityResolver.php │ │ ├── Relations │ │ │ ├── BelongsTo.php │ │ │ ├── BelongsToMany.php │ │ │ ├── HasMany.php │ │ │ ├── HasManyThrough.php │ │ │ ├── HasOne.php │ │ │ ├── HasOneOrMany.php │ │ │ ├── MorphMany.php │ │ │ ├── MorphOne.php │ │ │ ├── MorphOneOrMany.php │ │ │ ├── MorphPivot.php │ │ │ ├── MorphTo.php │ │ │ ├── MorphToMany.php │ │ │ ├── Pivot.php │ │ │ └── Relation.php │ │ ├── Scope.php │ │ ├── ScopeInterface.php │ │ ├── SoftDeletes.php │ │ └── SoftDeletingScope.php │ ├── Events │ │ ├── ConnectionEvent.php │ │ ├── QueryExecuted.php │ │ ├── TransactionBeginning.php │ │ ├── TransactionCommitted.php │ │ └── TransactionRolledBack.php │ ├── Grammar.php │ ├── MigrationServiceProvider.php │ ├── Migrations │ │ ├── DatabaseMigrationRepository.php │ │ ├── Migration.php │ │ ├── MigrationCreator.php │ │ ├── MigrationRepositoryInterface.php │ │ ├── Migrator.php │ │ └── stubs │ │ │ ├── blank.stub │ │ │ ├── create.stub │ │ │ └── update.stub │ ├── MySqlConnection.php │ ├── PostgresConnection.php │ ├── Query │ │ ├── Builder.php │ │ ├── Expression.php │ │ ├── Grammars │ │ │ ├── Grammar.php │ │ │ ├── MySqlGrammar.php │ │ │ ├── PostgresGrammar.php │ │ │ ├── SQLiteGrammar.php │ │ │ └── SqlServerGrammar.php │ │ ├── JoinClause.php │ │ ├── JsonExpression.php │ │ └── Processors │ │ │ ├── MySqlProcessor.php │ │ │ ├── PostgresProcessor.php │ │ │ ├── Processor.php │ │ │ ├── SQLiteProcessor.php │ │ │ └── SqlServerProcessor.php │ ├── QueryException.php │ ├── README.md │ ├── SQLiteConnection.php │ ├── Schema │ │ ├── Blueprint.php │ │ ├── Builder.php │ │ ├── Grammars │ │ │ ├── Grammar.php │ │ │ ├── MySqlGrammar.php │ │ │ ├── PostgresGrammar.php │ │ │ ├── SQLiteGrammar.php │ │ │ └── SqlServerGrammar.php │ │ ├── MySqlBuilder.php │ │ └── PostgresBuilder.php │ ├── SeedServiceProvider.php │ ├── Seeder.php │ ├── SqlServerConnection.php │ └── composer.json ├── http │ ├── Exception │ │ ├── HttpResponseException.php │ │ └── PostTooLargeException.php │ ├── JsonResponse.php │ ├── Middleware │ │ ├── CheckResponseForModifications.php │ │ └── FrameGuard.php │ ├── RedirectResponse.php │ ├── Request.php │ ├── Response.php │ ├── ResponseTrait.php │ ├── UploadedFile.php │ └── composer.json ├── session │ ├── CacheBasedSessionHandler.php │ ├── Console │ │ ├── SessionTableCommand.php │ │ └── stubs │ │ │ └── database.stub │ ├── CookieSessionHandler.php │ ├── DatabaseSessionHandler.php │ ├── EncryptedStore.php │ ├── ExistenceAwareInterface.php │ ├── FileSessionHandler.php │ ├── LegacyDatabaseSessionHandler.php │ ├── Middleware │ │ └── StartSession.php │ ├── SessionInterface.php │ ├── SessionManager.php │ ├── SessionServiceProvider.php │ ├── Store.php │ ├── TokenMismatchException.php │ └── composer.json └── support │ ├── AggregateServiceProvider.php │ ├── Arr.php │ ├── ClassLoader.php │ ├── Collection.php │ ├── Composer.php │ ├── Debug │ ├── Dumper.php │ └── HtmlDumper.php │ ├── Facades │ ├── App.php │ ├── Artisan.php │ ├── Auth.php │ ├── Blade.php │ ├── Bus.php │ ├── Cache.php │ ├── Config.php │ ├── Cookie.php │ ├── Crypt.php │ ├── DB.php │ ├── Event.php │ ├── Facade.php │ ├── File.php │ ├── Gate.php │ ├── Hash.php │ ├── Input.php │ ├── Lang.php │ ├── Log.php │ ├── Mail.php │ ├── Password.php │ ├── Queue.php │ ├── Redirect.php │ ├── Redis.php │ ├── Request.php │ ├── Response.php │ ├── Route.php │ ├── Schema.php │ ├── Session.php │ ├── Storage.php │ ├── URL.php │ ├── Validator.php │ └── View.php │ ├── Fluent.php │ ├── HtmlString.php │ ├── Manager.php │ ├── MessageBag.php │ ├── NamespacedItemResolver.php │ ├── Pluralizer.php │ ├── ServiceProvider.php │ ├── Str.php │ ├── Traits │ ├── CapsuleManagerTrait.php │ └── Macroable.php │ ├── ViewErrorBag.php │ ├── composer.json │ └── helpers.php ├── nesbot └── carbon │ ├── LICENSE │ ├── composer.json │ ├── readme.md │ └── src │ └── Carbon │ ├── Carbon.php │ ├── CarbonInterval.php │ ├── Exceptions │ └── InvalidDateException.php │ └── Lang │ ├── af.php │ ├── ar.php │ ├── az.php │ ├── bg.php │ ├── bn.php │ ├── ca.php │ ├── cs.php │ ├── da.php │ ├── de.php │ ├── el.php │ ├── en.php │ ├── eo.php │ ├── es.php │ ├── et.php │ ├── eu.php │ ├── fa.php │ ├── fi.php │ ├── fo.php │ ├── fr.php │ ├── gl.php │ ├── he.php │ ├── hr.php │ ├── hu.php │ ├── hy.php │ ├── id.php │ ├── it.php │ ├── ja.php │ ├── ka.php │ ├── ko.php │ ├── lt.php │ ├── lv.php │ ├── mk.php │ ├── ms.php │ ├── nl.php │ ├── no.php │ ├── pl.php │ ├── pt.php │ ├── pt_BR.php │ ├── ro.php │ ├── ru.php │ ├── sk.php │ ├── sl.php │ ├── sq.php │ ├── sr.php │ ├── sv.php │ ├── th.php │ ├── tr.php │ ├── uk.php │ ├── ur.php │ ├── uz.php │ ├── vi.php │ ├── zh.php │ └── zh_TW.php ├── paragonie └── random_compat │ ├── CHANGELOG.md │ ├── ERRATA.md │ ├── LICENSE │ ├── README.md │ ├── SECURITY.md │ ├── composer.json │ ├── dist │ ├── random_compat.phar.pubkey │ └── random_compat.phar.pubkey.asc │ ├── lib │ ├── byte_safe_strings.php │ ├── cast_to_int.php │ ├── error_polyfill.php │ ├── random.php │ ├── random_bytes_com_dotnet.php │ ├── random_bytes_dev_urandom.php │ ├── random_bytes_libsodium.php │ ├── random_bytes_libsodium_legacy.php │ ├── random_bytes_mcrypt.php │ ├── random_bytes_openssl.php │ └── random_int.php │ └── other │ └── build_phar.php ├── psr ├── http-message │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── composer.json │ └── src │ │ ├── MessageInterface.php │ │ ├── RequestInterface.php │ │ ├── ResponseInterface.php │ │ ├── ServerRequestInterface.php │ │ ├── StreamInterface.php │ │ ├── UploadedFileInterface.php │ │ └── UriInterface.php └── log │ ├── .gitignore │ ├── LICENSE │ ├── Psr │ └── Log │ │ ├── AbstractLogger.php │ │ ├── InvalidArgumentException.php │ │ ├── LogLevel.php │ │ ├── LoggerAwareInterface.php │ │ ├── LoggerAwareTrait.php │ │ ├── LoggerInterface.php │ │ ├── LoggerTrait.php │ │ ├── NullLogger.php │ │ └── Test │ │ └── LoggerInterfaceTest.php │ ├── README.md │ └── composer.json ├── symfony ├── debug │ ├── .gitignore │ ├── BufferingLogger.php │ ├── CHANGELOG.md │ ├── Debug.php │ ├── DebugClassLoader.php │ ├── ErrorHandler.php │ ├── Exception │ │ ├── ClassNotFoundException.php │ │ ├── ContextErrorException.php │ │ ├── FatalErrorException.php │ │ ├── FatalThrowableError.php │ │ ├── FlattenException.php │ │ ├── OutOfMemoryException.php │ │ ├── SilencedErrorContext.php │ │ ├── UndefinedFunctionException.php │ │ └── UndefinedMethodException.php │ ├── ExceptionHandler.php │ ├── FatalErrorHandler │ │ ├── ClassNotFoundFatalErrorHandler.php │ │ ├── FatalErrorHandlerInterface.php │ │ ├── UndefinedFunctionFatalErrorHandler.php │ │ └── UndefinedMethodFatalErrorHandler.php │ ├── LICENSE │ ├── README.md │ ├── Resources │ │ └── ext │ │ │ ├── README.md │ │ │ ├── config.m4 │ │ │ ├── config.w32 │ │ │ ├── php_symfony_debug.h │ │ │ ├── symfony_debug.c │ │ │ └── tests │ │ │ ├── 001.phpt │ │ │ ├── 002.phpt │ │ │ ├── 002_1.phpt │ │ │ └── 003.phpt │ ├── Tests │ │ ├── DebugClassLoaderTest.php │ │ ├── ErrorHandlerTest.php │ │ ├── Exception │ │ │ └── FlattenExceptionTest.php │ │ ├── ExceptionHandlerTest.php │ │ ├── FatalErrorHandler │ │ │ ├── ClassNotFoundFatalErrorHandlerTest.php │ │ │ ├── UndefinedFunctionFatalErrorHandlerTest.php │ │ │ └── UndefinedMethodFatalErrorHandlerTest.php │ │ ├── Fixtures │ │ │ ├── ClassAlias.php │ │ │ ├── DeprecatedClass.php │ │ │ ├── DeprecatedInterface.php │ │ │ ├── NonDeprecatedInterface.php │ │ │ ├── PEARClass.php │ │ │ ├── ToStringThrower.php │ │ │ ├── casemismatch.php │ │ │ ├── notPsr0Bis.php │ │ │ ├── psr4 │ │ │ │ └── Psr4CaseMismatch.php │ │ │ └── reallyNotPsr0.php │ │ ├── Fixtures2 │ │ │ └── RequiredTwice.php │ │ ├── HeaderMock.php │ │ └── MockExceptionHandler.php │ ├── composer.json │ └── phpunit.xml.dist ├── event-dispatcher │ ├── .gitignore │ ├── CHANGELOG.md │ ├── ContainerAwareEventDispatcher.php │ ├── Debug │ │ ├── TraceableEventDispatcher.php │ │ ├── TraceableEventDispatcherInterface.php │ │ └── WrappedListener.php │ ├── DependencyInjection │ │ └── RegisterListenersPass.php │ ├── Event.php │ ├── EventDispatcher.php │ ├── EventDispatcherInterface.php │ ├── EventSubscriberInterface.php │ ├── GenericEvent.php │ ├── ImmutableEventDispatcher.php │ ├── LICENSE │ ├── README.md │ ├── Tests │ │ ├── AbstractEventDispatcherTest.php │ │ ├── ContainerAwareEventDispatcherTest.php │ │ ├── Debug │ │ │ └── TraceableEventDispatcherTest.php │ │ ├── DependencyInjection │ │ │ └── RegisterListenersPassTest.php │ │ ├── EventDispatcherTest.php │ │ ├── EventTest.php │ │ ├── GenericEventTest.php │ │ └── ImmutableEventDispatcherTest.php │ ├── composer.json │ └── phpunit.xml.dist ├── finder │ ├── .gitignore │ ├── CHANGELOG.md │ ├── Comparator │ │ ├── Comparator.php │ │ ├── DateComparator.php │ │ └── NumberComparator.php │ ├── Exception │ │ ├── AccessDeniedException.php │ │ └── ExceptionInterface.php │ ├── Finder.php │ ├── Glob.php │ ├── Iterator │ │ ├── CustomFilterIterator.php │ │ ├── DateRangeFilterIterator.php │ │ ├── DepthRangeFilterIterator.php │ │ ├── ExcludeDirectoryFilterIterator.php │ │ ├── FileTypeFilterIterator.php │ │ ├── FilecontentFilterIterator.php │ │ ├── FilenameFilterIterator.php │ │ ├── FilterIterator.php │ │ ├── MultiplePcreFilterIterator.php │ │ ├── PathFilterIterator.php │ │ ├── RecursiveDirectoryIterator.php │ │ ├── SizeRangeFilterIterator.php │ │ └── SortableIterator.php │ ├── LICENSE │ ├── README.md │ ├── SplFileInfo.php │ ├── Tests │ │ ├── Comparator │ │ │ ├── ComparatorTest.php │ │ │ ├── DateComparatorTest.php │ │ │ └── NumberComparatorTest.php │ │ ├── FinderTest.php │ │ ├── Fixtures │ │ │ ├── copy │ │ │ │ └── A │ │ │ │ │ ├── B │ │ │ │ │ ├── C │ │ │ │ │ │ └── abc.dat.copy │ │ │ │ │ └── ab.dat.copy │ │ │ │ │ └── a.dat.copy │ │ │ ├── dolor.txt │ │ │ ├── ipsum.txt │ │ │ ├── lorem.txt │ │ │ ├── one │ │ │ │ ├── a │ │ │ │ └── b │ │ │ │ │ ├── c.neon │ │ │ │ │ └── d.neon │ │ │ └── with space │ │ │ │ └── foo.txt │ │ ├── GlobTest.php │ │ └── Iterator │ │ │ ├── CustomFilterIteratorTest.php │ │ │ ├── DateRangeFilterIteratorTest.php │ │ │ ├── DepthRangeFilterIteratorTest.php │ │ │ ├── ExcludeDirectoryFilterIteratorTest.php │ │ │ ├── FileTypeFilterIteratorTest.php │ │ │ ├── FilecontentFilterIteratorTest.php │ │ │ ├── FilenameFilterIteratorTest.php │ │ │ ├── FilterIteratorTest.php │ │ │ ├── Iterator.php │ │ │ ├── IteratorTestCase.php │ │ │ ├── MockFileListIterator.php │ │ │ ├── MockSplFileInfo.php │ │ │ ├── MultiplePcreFilterIteratorTest.php │ │ │ ├── PathFilterIteratorTest.php │ │ │ ├── RealIteratorTestCase.php │ │ │ ├── RecursiveDirectoryIteratorTest.php │ │ │ ├── SizeRangeFilterIteratorTest.php │ │ │ └── SortableIteratorTest.php │ ├── composer.json │ └── phpunit.xml.dist ├── http-foundation │ ├── .gitignore │ ├── AcceptHeader.php │ ├── AcceptHeaderItem.php │ ├── ApacheRequest.php │ ├── BinaryFileResponse.php │ ├── CHANGELOG.md │ ├── Cookie.php │ ├── Exception │ │ └── ConflictingHeadersException.php │ ├── ExpressionRequestMatcher.php │ ├── File │ │ ├── Exception │ │ │ ├── AccessDeniedException.php │ │ │ ├── FileException.php │ │ │ ├── FileNotFoundException.php │ │ │ ├── UnexpectedTypeException.php │ │ │ └── UploadException.php │ │ ├── File.php │ │ ├── MimeType │ │ │ ├── ExtensionGuesser.php │ │ │ ├── ExtensionGuesserInterface.php │ │ │ ├── FileBinaryMimeTypeGuesser.php │ │ │ ├── FileinfoMimeTypeGuesser.php │ │ │ ├── MimeTypeExtensionGuesser.php │ │ │ ├── MimeTypeGuesser.php │ │ │ └── MimeTypeGuesserInterface.php │ │ └── UploadedFile.php │ ├── FileBag.php │ ├── HeaderBag.php │ ├── IpUtils.php │ ├── JsonResponse.php │ ├── LICENSE │ ├── ParameterBag.php │ ├── README.md │ ├── RedirectResponse.php │ ├── Request.php │ ├── RequestMatcher.php │ ├── RequestMatcherInterface.php │ ├── RequestStack.php │ ├── Response.php │ ├── ResponseHeaderBag.php │ ├── ServerBag.php │ ├── Session │ │ ├── Attribute │ │ │ ├── AttributeBag.php │ │ │ ├── AttributeBagInterface.php │ │ │ └── NamespacedAttributeBag.php │ │ ├── Flash │ │ │ ├── AutoExpireFlashBag.php │ │ │ ├── FlashBag.php │ │ │ └── FlashBagInterface.php │ │ ├── Session.php │ │ ├── SessionBagInterface.php │ │ ├── SessionInterface.php │ │ └── Storage │ │ │ ├── Handler │ │ │ ├── MemcacheSessionHandler.php │ │ │ ├── MemcachedSessionHandler.php │ │ │ ├── MongoDbSessionHandler.php │ │ │ ├── NativeFileSessionHandler.php │ │ │ ├── NativeSessionHandler.php │ │ │ ├── NullSessionHandler.php │ │ │ ├── PdoSessionHandler.php │ │ │ └── WriteCheckSessionHandler.php │ │ │ ├── MetadataBag.php │ │ │ ├── MockArraySessionStorage.php │ │ │ ├── MockFileSessionStorage.php │ │ │ ├── NativeSessionStorage.php │ │ │ ├── PhpBridgeSessionStorage.php │ │ │ ├── Proxy │ │ │ ├── AbstractProxy.php │ │ │ ├── NativeProxy.php │ │ │ └── SessionHandlerProxy.php │ │ │ └── SessionStorageInterface.php │ ├── StreamedResponse.php │ ├── Tests │ │ ├── AcceptHeaderItemTest.php │ │ ├── AcceptHeaderTest.php │ │ ├── ApacheRequestTest.php │ │ ├── BinaryFileResponseTest.php │ │ ├── CookieTest.php │ │ ├── ExpressionRequestMatcherTest.php │ │ ├── File │ │ │ ├── FakeFile.php │ │ │ ├── FileTest.php │ │ │ ├── Fixtures │ │ │ │ ├── .unknownextension │ │ │ │ ├── directory │ │ │ │ │ └── .empty │ │ │ │ ├── other-file.example │ │ │ │ ├── test │ │ │ │ └── test.gif │ │ │ ├── MimeType │ │ │ │ └── MimeTypeTest.php │ │ │ └── UploadedFileTest.php │ │ ├── FileBagTest.php │ │ ├── HeaderBagTest.php │ │ ├── IpUtilsTest.php │ │ ├── JsonResponseTest.php │ │ ├── ParameterBagTest.php │ │ ├── RedirectResponseTest.php │ │ ├── RequestMatcherTest.php │ │ ├── RequestStackTest.php │ │ ├── RequestTest.php │ │ ├── ResponseHeaderBagTest.php │ │ ├── ResponseTest.php │ │ ├── ResponseTestCase.php │ │ ├── ServerBagTest.php │ │ ├── Session │ │ │ ├── Attribute │ │ │ │ ├── AttributeBagTest.php │ │ │ │ └── NamespacedAttributeBagTest.php │ │ │ ├── Flash │ │ │ │ ├── AutoExpireFlashBagTest.php │ │ │ │ └── FlashBagTest.php │ │ │ ├── SessionTest.php │ │ │ └── Storage │ │ │ │ ├── Handler │ │ │ │ ├── MemcacheSessionHandlerTest.php │ │ │ │ ├── MemcachedSessionHandlerTest.php │ │ │ │ ├── MongoDbSessionHandlerTest.php │ │ │ │ ├── NativeFileSessionHandlerTest.php │ │ │ │ ├── NativeSessionHandlerTest.php │ │ │ │ ├── NullSessionHandlerTest.php │ │ │ │ ├── PdoSessionHandlerTest.php │ │ │ │ └── WriteCheckSessionHandlerTest.php │ │ │ │ ├── MetadataBagTest.php │ │ │ │ ├── MockArraySessionStorageTest.php │ │ │ │ ├── MockFileSessionStorageTest.php │ │ │ │ ├── NativeSessionStorageTest.php │ │ │ │ ├── PhpBridgeSessionStorageTest.php │ │ │ │ └── Proxy │ │ │ │ ├── AbstractProxyTest.php │ │ │ │ ├── NativeProxyTest.php │ │ │ │ └── SessionHandlerProxyTest.php │ │ └── StreamedResponseTest.php │ ├── composer.json │ └── phpunit.xml.dist ├── http-kernel │ ├── .gitignore │ ├── Bundle │ │ ├── Bundle.php │ │ └── BundleInterface.php │ ├── CHANGELOG.md │ ├── CacheClearer │ │ ├── CacheClearerInterface.php │ │ └── ChainCacheClearer.php │ ├── CacheWarmer │ │ ├── CacheWarmer.php │ │ ├── CacheWarmerAggregate.php │ │ ├── CacheWarmerInterface.php │ │ └── WarmableInterface.php │ ├── Client.php │ ├── Config │ │ ├── EnvParametersResource.php │ │ └── FileLocator.php │ ├── Controller │ │ ├── ControllerReference.php │ │ ├── ControllerResolver.php │ │ ├── ControllerResolverInterface.php │ │ └── TraceableControllerResolver.php │ ├── DataCollector │ │ ├── AjaxDataCollector.php │ │ ├── ConfigDataCollector.php │ │ ├── DataCollector.php │ │ ├── DataCollectorInterface.php │ │ ├── DumpDataCollector.php │ │ ├── EventDataCollector.php │ │ ├── ExceptionDataCollector.php │ │ ├── LateDataCollectorInterface.php │ │ ├── LoggerDataCollector.php │ │ ├── MemoryDataCollector.php │ │ ├── RequestDataCollector.php │ │ ├── RouterDataCollector.php │ │ ├── TimeDataCollector.php │ │ └── Util │ │ │ └── ValueExporter.php │ ├── Debug │ │ └── TraceableEventDispatcher.php │ ├── DependencyInjection │ │ ├── AddClassesToCachePass.php │ │ ├── ConfigurableExtension.php │ │ ├── Extension.php │ │ ├── FragmentRendererPass.php │ │ ├── LazyLoadingFragmentHandler.php │ │ └── MergeExtensionConfigurationPass.php │ ├── Event │ │ ├── FilterControllerEvent.php │ │ ├── FilterResponseEvent.php │ │ ├── FinishRequestEvent.php │ │ ├── GetResponseEvent.php │ │ ├── GetResponseForControllerResultEvent.php │ │ ├── GetResponseForExceptionEvent.php │ │ ├── KernelEvent.php │ │ └── PostResponseEvent.php │ ├── EventListener │ │ ├── AddRequestFormatsListener.php │ │ ├── DebugHandlersListener.php │ │ ├── DumpListener.php │ │ ├── ExceptionListener.php │ │ ├── FragmentListener.php │ │ ├── LocaleListener.php │ │ ├── ProfilerListener.php │ │ ├── ResponseListener.php │ │ ├── RouterListener.php │ │ ├── SaveSessionListener.php │ │ ├── SessionListener.php │ │ ├── StreamedResponseListener.php │ │ ├── SurrogateListener.php │ │ ├── TestSessionListener.php │ │ ├── TranslatorListener.php │ │ └── ValidateRequestListener.php │ ├── Exception │ │ ├── AccessDeniedHttpException.php │ │ ├── BadRequestHttpException.php │ │ ├── ConflictHttpException.php │ │ ├── GoneHttpException.php │ │ ├── HttpException.php │ │ ├── HttpExceptionInterface.php │ │ ├── LengthRequiredHttpException.php │ │ ├── MethodNotAllowedHttpException.php │ │ ├── NotAcceptableHttpException.php │ │ ├── NotFoundHttpException.php │ │ ├── PreconditionFailedHttpException.php │ │ ├── PreconditionRequiredHttpException.php │ │ ├── ServiceUnavailableHttpException.php │ │ ├── TooManyRequestsHttpException.php │ │ ├── UnauthorizedHttpException.php │ │ ├── UnprocessableEntityHttpException.php │ │ └── UnsupportedMediaTypeHttpException.php │ ├── Fragment │ │ ├── AbstractSurrogateFragmentRenderer.php │ │ ├── EsiFragmentRenderer.php │ │ ├── FragmentHandler.php │ │ ├── FragmentRendererInterface.php │ │ ├── HIncludeFragmentRenderer.php │ │ ├── InlineFragmentRenderer.php │ │ ├── RoutableFragmentRenderer.php │ │ └── SsiFragmentRenderer.php │ ├── HttpCache │ │ ├── Esi.php │ │ ├── HttpCache.php │ │ ├── ResponseCacheStrategy.php │ │ ├── ResponseCacheStrategyInterface.php │ │ ├── Ssi.php │ │ ├── Store.php │ │ ├── StoreInterface.php │ │ └── SurrogateInterface.php │ ├── HttpKernel.php │ ├── HttpKernelInterface.php │ ├── Kernel.php │ ├── KernelEvents.php │ ├── KernelInterface.php │ ├── LICENSE │ ├── Log │ │ └── DebugLoggerInterface.php │ ├── Profiler │ │ ├── FileProfilerStorage.php │ │ ├── Profile.php │ │ ├── Profiler.php │ │ └── ProfilerStorageInterface.php │ ├── README.md │ ├── TerminableInterface.php │ ├── Tests │ │ ├── Bundle │ │ │ └── BundleTest.php │ │ ├── CacheClearer │ │ │ └── ChainCacheClearerTest.php │ │ ├── CacheWarmer │ │ │ ├── CacheWarmerAggregateTest.php │ │ │ └── CacheWarmerTest.php │ │ ├── ClientTest.php │ │ ├── Config │ │ │ ├── EnvParametersResourceTest.php │ │ │ └── FileLocatorTest.php │ │ ├── Controller │ │ │ └── ControllerResolverTest.php │ │ ├── DataCollector │ │ │ ├── ConfigDataCollectorTest.php │ │ │ ├── DumpDataCollectorTest.php │ │ │ ├── ExceptionDataCollectorTest.php │ │ │ ├── LoggerDataCollectorTest.php │ │ │ ├── MemoryDataCollectorTest.php │ │ │ ├── RequestDataCollectorTest.php │ │ │ ├── TimeDataCollectorTest.php │ │ │ └── Util │ │ │ │ └── ValueExporterTest.php │ │ ├── Debug │ │ │ └── TraceableEventDispatcherTest.php │ │ ├── DependencyInjection │ │ │ ├── FragmentRendererPassTest.php │ │ │ ├── LazyLoadingFragmentHandlerTest.php │ │ │ └── MergeExtensionConfigurationPassTest.php │ │ ├── EventListener │ │ │ ├── AddRequestFormatsListenerTest.php │ │ │ ├── DebugHandlersListenerTest.php │ │ │ ├── DumpListenerTest.php │ │ │ ├── ExceptionListenerTest.php │ │ │ ├── FragmentListenerTest.php │ │ │ ├── LocaleListenerTest.php │ │ │ ├── ProfilerListenerTest.php │ │ │ ├── ResponseListenerTest.php │ │ │ ├── RouterListenerTest.php │ │ │ ├── SurrogateListenerTest.php │ │ │ ├── TestSessionListenerTest.php │ │ │ ├── TranslatorListenerTest.php │ │ │ └── ValidateRequestListenerTest.php │ │ ├── Fixtures │ │ │ ├── BaseBundle │ │ │ │ └── Resources │ │ │ │ │ ├── foo.txt │ │ │ │ │ └── hide.txt │ │ │ ├── Bundle1Bundle │ │ │ │ ├── Resources │ │ │ │ │ └── foo.txt │ │ │ │ ├── bar.txt │ │ │ │ └── foo.txt │ │ │ ├── Bundle2Bundle │ │ │ │ └── foo.txt │ │ │ ├── ChildBundle │ │ │ │ └── Resources │ │ │ │ │ ├── foo.txt │ │ │ │ │ └── hide.txt │ │ │ ├── Controller │ │ │ │ └── VariadicController.php │ │ │ ├── ExtensionAbsentBundle │ │ │ │ └── ExtensionAbsentBundle.php │ │ │ ├── ExtensionLoadedBundle │ │ │ │ ├── DependencyInjection │ │ │ │ │ └── ExtensionLoadedExtension.php │ │ │ │ └── ExtensionLoadedBundle.php │ │ │ ├── ExtensionNotValidBundle │ │ │ │ ├── DependencyInjection │ │ │ │ │ └── ExtensionNotValidExtension.php │ │ │ │ └── ExtensionNotValidBundle.php │ │ │ ├── ExtensionPresentBundle │ │ │ │ ├── Command │ │ │ │ │ ├── BarCommand.php │ │ │ │ │ └── FooCommand.php │ │ │ │ ├── DependencyInjection │ │ │ │ │ └── ExtensionPresentExtension.php │ │ │ │ └── ExtensionPresentBundle.php │ │ │ ├── KernelForOverrideName.php │ │ │ ├── KernelForTest.php │ │ │ ├── Resources │ │ │ │ ├── BaseBundle │ │ │ │ │ └── hide.txt │ │ │ │ ├── Bundle1Bundle │ │ │ │ │ └── foo.txt │ │ │ │ ├── ChildBundle │ │ │ │ │ └── foo.txt │ │ │ │ └── FooBundle │ │ │ │ │ └── foo.txt │ │ │ ├── TestClient.php │ │ │ └── TestEventDispatcher.php │ │ ├── Fragment │ │ │ ├── EsiFragmentRendererTest.php │ │ │ ├── FragmentHandlerTest.php │ │ │ ├── HIncludeFragmentRendererTest.php │ │ │ ├── InlineFragmentRendererTest.php │ │ │ └── RoutableFragmentRendererTest.php │ │ ├── HttpCache │ │ │ ├── EsiTest.php │ │ │ ├── HttpCacheTest.php │ │ │ ├── HttpCacheTestCase.php │ │ │ ├── ResponseCacheStrategyTest.php │ │ │ ├── SsiTest.php │ │ │ ├── StoreTest.php │ │ │ ├── TestHttpKernel.php │ │ │ └── TestMultipleHttpKernel.php │ │ ├── HttpKernelTest.php │ │ ├── KernelTest.php │ │ ├── Logger.php │ │ ├── Profiler │ │ │ ├── FileProfilerStorageTest.php │ │ │ └── ProfilerTest.php │ │ ├── TestHttpKernel.php │ │ └── UriSignerTest.php │ ├── UriSigner.php │ ├── composer.json │ └── phpunit.xml.dist ├── polyfill-mbstring │ ├── LICENSE │ ├── Mbstring.php │ ├── README.md │ ├── Resources │ │ └── unidata │ │ │ ├── lowerCase.php │ │ │ └── upperCase.php │ ├── bootstrap.php │ └── composer.json ├── translation │ ├── .gitignore │ ├── CHANGELOG.md │ ├── Catalogue │ │ ├── AbstractOperation.php │ │ ├── MergeOperation.php │ │ ├── OperationInterface.php │ │ └── TargetOperation.php │ ├── DataCollector │ │ └── TranslationDataCollector.php │ ├── DataCollectorTranslator.php │ ├── Dumper │ │ ├── CsvFileDumper.php │ │ ├── DumperInterface.php │ │ ├── FileDumper.php │ │ ├── IcuResFileDumper.php │ │ ├── IniFileDumper.php │ │ ├── JsonFileDumper.php │ │ ├── MoFileDumper.php │ │ ├── PhpFileDumper.php │ │ ├── PoFileDumper.php │ │ ├── QtFileDumper.php │ │ ├── XliffFileDumper.php │ │ └── YamlFileDumper.php │ ├── Exception │ │ ├── ExceptionInterface.php │ │ ├── InvalidArgumentException.php │ │ ├── InvalidResourceException.php │ │ ├── LogicException.php │ │ ├── NotFoundResourceException.php │ │ └── RuntimeException.php │ ├── Extractor │ │ ├── AbstractFileExtractor.php │ │ ├── ChainExtractor.php │ │ └── ExtractorInterface.php │ ├── IdentityTranslator.php │ ├── Interval.php │ ├── LICENSE │ ├── Loader │ │ ├── ArrayLoader.php │ │ ├── CsvFileLoader.php │ │ ├── FileLoader.php │ │ ├── IcuDatFileLoader.php │ │ ├── IcuResFileLoader.php │ │ ├── IniFileLoader.php │ │ ├── JsonFileLoader.php │ │ ├── LoaderInterface.php │ │ ├── MoFileLoader.php │ │ ├── PhpFileLoader.php │ │ ├── PoFileLoader.php │ │ ├── QtFileLoader.php │ │ ├── XliffFileLoader.php │ │ ├── YamlFileLoader.php │ │ └── schema │ │ │ └── dic │ │ │ └── xliff-core │ │ │ ├── xliff-core-1.2-strict.xsd │ │ │ ├── xliff-core-2.0.xsd │ │ │ └── xml.xsd │ ├── LoggingTranslator.php │ ├── MessageCatalogue.php │ ├── MessageCatalogueInterface.php │ ├── MessageSelector.php │ ├── MetadataAwareInterface.php │ ├── PluralizationRules.php │ ├── README.md │ ├── Tests │ │ ├── Catalogue │ │ │ ├── AbstractOperationTest.php │ │ │ ├── MergeOperationTest.php │ │ │ └── TargetOperationTest.php │ │ ├── DataCollector │ │ │ └── TranslationDataCollectorTest.php │ │ ├── DataCollectorTranslatorTest.php │ │ ├── Dumper │ │ │ ├── CsvFileDumperTest.php │ │ │ ├── FileDumperTest.php │ │ │ ├── IcuResFileDumperTest.php │ │ │ ├── IniFileDumperTest.php │ │ │ ├── JsonFileDumperTest.php │ │ │ ├── MoFileDumperTest.php │ │ │ ├── PhpFileDumperTest.php │ │ │ ├── PoFileDumperTest.php │ │ │ ├── QtFileDumperTest.php │ │ │ ├── XliffFileDumperTest.php │ │ │ └── YamlFileDumperTest.php │ │ ├── IdentityTranslatorTest.php │ │ ├── IntervalTest.php │ │ ├── Loader │ │ │ ├── CsvFileLoaderTest.php │ │ │ ├── IcuDatFileLoaderTest.php │ │ │ ├── IcuResFileLoaderTest.php │ │ │ ├── IniFileLoaderTest.php │ │ │ ├── JsonFileLoaderTest.php │ │ │ ├── LocalizedTestCase.php │ │ │ ├── MoFileLoaderTest.php │ │ │ ├── PhpFileLoaderTest.php │ │ │ ├── PoFileLoaderTest.php │ │ │ ├── QtFileLoaderTest.php │ │ │ ├── XliffFileLoaderTest.php │ │ │ └── YamlFileLoaderTest.php │ │ ├── LoggingTranslatorTest.php │ │ ├── MessageCatalogueTest.php │ │ ├── MessageSelectorTest.php │ │ ├── PluralizationRulesTest.php │ │ ├── TranslatorCacheTest.php │ │ ├── TranslatorTest.php │ │ ├── Util │ │ │ └── ArrayConverterTest.php │ │ ├── Writer │ │ │ └── TranslationWriterTest.php │ │ └── fixtures │ │ │ ├── empty-translation.mo │ │ │ ├── empty-translation.po │ │ │ ├── empty.ini │ │ │ ├── empty.json │ │ │ ├── empty.mo │ │ │ ├── empty.po │ │ │ ├── empty.xlf │ │ │ ├── empty.yml │ │ │ ├── encoding.xlf │ │ │ ├── escaped-id-plurals.po │ │ │ ├── escaped-id.po │ │ │ ├── fuzzy-translations.po │ │ │ ├── invalid-xml-resources.xlf │ │ │ ├── malformed.json │ │ │ ├── messages.yml │ │ │ ├── messages_linear.yml │ │ │ ├── non-valid.xlf │ │ │ ├── non-valid.yml │ │ │ ├── plurals.mo │ │ │ ├── plurals.po │ │ │ ├── resname.xlf │ │ │ ├── resourcebundle │ │ │ ├── dat │ │ │ │ ├── en.res │ │ │ │ ├── en.txt │ │ │ │ ├── fr.res │ │ │ │ ├── fr.txt │ │ │ │ └── packagelist.txt │ │ │ └── res │ │ │ │ └── en.res │ │ │ ├── resources-2.0-clean.xlf │ │ │ ├── resources-2.0.xlf │ │ │ ├── resources-clean.xlf │ │ │ ├── resources-target-attributes.xlf │ │ │ ├── resources-tool-info.xlf │ │ │ ├── resources.dump.json │ │ │ ├── resources.ini │ │ │ ├── resources.json │ │ │ ├── resources.mo │ │ │ ├── resources.php │ │ │ ├── resources.po │ │ │ ├── resources.ts │ │ │ ├── resources.xlf │ │ │ ├── resources.yml │ │ │ ├── with-attributes.xlf │ │ │ ├── withdoctype.xlf │ │ │ └── withnote.xlf │ ├── Translator.php │ ├── TranslatorBagInterface.php │ ├── TranslatorInterface.php │ ├── Util │ │ └── ArrayConverter.php │ ├── Writer │ │ └── TranslationWriter.php │ ├── composer.json │ └── phpunit.xml.dist └── var-dumper │ ├── .gitignore │ ├── CHANGELOG.md │ ├── Caster │ ├── AmqpCaster.php │ ├── ArgsStub.php │ ├── Caster.php │ ├── ClassStub.php │ ├── ConstStub.php │ ├── CutArrayStub.php │ ├── CutStub.php │ ├── DOMCaster.php │ ├── DoctrineCaster.php │ ├── EnumStub.php │ ├── ExceptionCaster.php │ ├── FrameStub.php │ ├── LinkStub.php │ ├── MongoCaster.php │ ├── PdoCaster.php │ ├── PgSqlCaster.php │ ├── RedisCaster.php │ ├── ReflectionCaster.php │ ├── ResourceCaster.php │ ├── SplCaster.php │ ├── StubCaster.php │ ├── TraceStub.php │ ├── XmlReaderCaster.php │ └── XmlResourceCaster.php │ ├── Cloner │ ├── AbstractCloner.php │ ├── ClonerInterface.php │ ├── Cursor.php │ ├── Data.php │ ├── DumperInterface.php │ ├── Stub.php │ └── VarCloner.php │ ├── Dumper │ ├── AbstractDumper.php │ ├── CliDumper.php │ ├── DataDumperInterface.php │ └── HtmlDumper.php │ ├── Exception │ └── ThrowingCasterException.php │ ├── LICENSE │ ├── README.md │ ├── Resources │ └── functions │ │ └── dump.php │ ├── Test │ └── VarDumperTestTrait.php │ ├── Tests │ ├── Caster │ │ ├── CasterTest.php │ │ ├── ExceptionCasterTest.php │ │ ├── PdoCasterTest.php │ │ ├── RedisCasterTest.php │ │ ├── ReflectionCasterTest.php │ │ ├── SplCasterTest.php │ │ ├── StubCasterTest.php │ │ └── XmlReaderCasterTest.php │ ├── CliDumperTest.php │ ├── Fixtures │ │ ├── FooInterface.php │ │ ├── GeneratorDemo.php │ │ ├── NotLoadableClass.php │ │ ├── Twig.php │ │ ├── dumb-var.php │ │ └── xml_reader.xml │ ├── HtmlDumperTest.php │ ├── Test │ │ └── VarDumperTestTraitTest.php │ └── VarClonerTest.php │ ├── VarDumper.php │ ├── composer.json │ └── phpunit.xml.dist ├── twig └── twig │ ├── .editorconfig │ ├── .gitignore │ ├── .travis.yml │ ├── CHANGELOG │ ├── LICENSE │ ├── README.rst │ ├── composer.json │ ├── doc │ ├── advanced.rst │ ├── advanced_legacy.rst │ ├── api.rst │ ├── coding_standards.rst │ ├── deprecated.rst │ ├── filters │ │ ├── abs.rst │ │ ├── batch.rst │ │ ├── capitalize.rst │ │ ├── convert_encoding.rst │ │ ├── date.rst │ │ ├── date_modify.rst │ │ ├── default.rst │ │ ├── escape.rst │ │ ├── first.rst │ │ ├── format.rst │ │ ├── index.rst │ │ ├── join.rst │ │ ├── json_encode.rst │ │ ├── keys.rst │ │ ├── last.rst │ │ ├── length.rst │ │ ├── lower.rst │ │ ├── merge.rst │ │ ├── nl2br.rst │ │ ├── number_format.rst │ │ ├── raw.rst │ │ ├── replace.rst │ │ ├── reverse.rst │ │ ├── round.rst │ │ ├── slice.rst │ │ ├── sort.rst │ │ ├── split.rst │ │ ├── striptags.rst │ │ ├── title.rst │ │ ├── trim.rst │ │ ├── upper.rst │ │ └── url_encode.rst │ ├── functions │ │ ├── attribute.rst │ │ ├── block.rst │ │ ├── constant.rst │ │ ├── cycle.rst │ │ ├── date.rst │ │ ├── dump.rst │ │ ├── include.rst │ │ ├── index.rst │ │ ├── max.rst │ │ ├── min.rst │ │ ├── parent.rst │ │ ├── random.rst │ │ ├── range.rst │ │ ├── source.rst │ │ └── template_from_string.rst │ ├── index.rst │ ├── installation.rst │ ├── internals.rst │ ├── intro.rst │ ├── recipes.rst │ ├── tags │ │ ├── autoescape.rst │ │ ├── block.rst │ │ ├── do.rst │ │ ├── embed.rst │ │ ├── extends.rst │ │ ├── filter.rst │ │ ├── flush.rst │ │ ├── for.rst │ │ ├── from.rst │ │ ├── if.rst │ │ ├── import.rst │ │ ├── include.rst │ │ ├── index.rst │ │ ├── macro.rst │ │ ├── sandbox.rst │ │ ├── set.rst │ │ ├── spaceless.rst │ │ ├── use.rst │ │ └── verbatim.rst │ ├── templates.rst │ └── tests │ │ ├── constant.rst │ │ ├── defined.rst │ │ ├── divisibleby.rst │ │ ├── empty.rst │ │ ├── even.rst │ │ ├── index.rst │ │ ├── iterable.rst │ │ ├── null.rst │ │ ├── odd.rst │ │ └── sameas.rst │ ├── ext │ └── twig │ │ ├── .gitignore │ │ ├── config.m4 │ │ ├── config.w32 │ │ ├── php_twig.h │ │ └── twig.c │ ├── lib │ └── Twig │ │ ├── Autoloader.php │ │ ├── BaseNodeVisitor.php │ │ ├── Cache │ │ ├── Filesystem.php │ │ └── Null.php │ │ ├── CacheInterface.php │ │ ├── Compiler.php │ │ ├── CompilerInterface.php │ │ ├── Environment.php │ │ ├── Error.php │ │ ├── Error │ │ ├── Loader.php │ │ ├── Runtime.php │ │ └── Syntax.php │ │ ├── ExistsLoaderInterface.php │ │ ├── ExpressionParser.php │ │ ├── Extension.php │ │ ├── Extension │ │ ├── Core.php │ │ ├── Debug.php │ │ ├── Escaper.php │ │ ├── GlobalsInterface.php │ │ ├── InitRuntimeInterface.php │ │ ├── Optimizer.php │ │ ├── Profiler.php │ │ ├── Sandbox.php │ │ ├── Staging.php │ │ └── StringLoader.php │ │ ├── ExtensionInterface.php │ │ ├── FileExtensionEscapingStrategy.php │ │ ├── Filter.php │ │ ├── Filter │ │ ├── Function.php │ │ ├── Method.php │ │ └── Node.php │ │ ├── FilterCallableInterface.php │ │ ├── FilterInterface.php │ │ ├── Function.php │ │ ├── Function │ │ ├── Function.php │ │ ├── Method.php │ │ └── Node.php │ │ ├── FunctionCallableInterface.php │ │ ├── FunctionInterface.php │ │ ├── Lexer.php │ │ ├── LexerInterface.php │ │ ├── Loader │ │ ├── Array.php │ │ ├── Chain.php │ │ ├── Filesystem.php │ │ └── String.php │ │ ├── LoaderInterface.php │ │ ├── Markup.php │ │ ├── Node.php │ │ ├── Node │ │ ├── AutoEscape.php │ │ ├── Block.php │ │ ├── BlockReference.php │ │ ├── Body.php │ │ ├── CheckSecurity.php │ │ ├── Do.php │ │ ├── Embed.php │ │ ├── Expression.php │ │ ├── Expression │ │ │ ├── Array.php │ │ │ ├── AssignName.php │ │ │ ├── Binary.php │ │ │ ├── Binary │ │ │ │ ├── Add.php │ │ │ │ ├── And.php │ │ │ │ ├── BitwiseAnd.php │ │ │ │ ├── BitwiseOr.php │ │ │ │ ├── BitwiseXor.php │ │ │ │ ├── Concat.php │ │ │ │ ├── Div.php │ │ │ │ ├── EndsWith.php │ │ │ │ ├── Equal.php │ │ │ │ ├── FloorDiv.php │ │ │ │ ├── Greater.php │ │ │ │ ├── GreaterEqual.php │ │ │ │ ├── In.php │ │ │ │ ├── Less.php │ │ │ │ ├── LessEqual.php │ │ │ │ ├── Matches.php │ │ │ │ ├── Mod.php │ │ │ │ ├── Mul.php │ │ │ │ ├── NotEqual.php │ │ │ │ ├── NotIn.php │ │ │ │ ├── Or.php │ │ │ │ ├── Power.php │ │ │ │ ├── Range.php │ │ │ │ ├── StartsWith.php │ │ │ │ └── Sub.php │ │ │ ├── BlockReference.php │ │ │ ├── Call.php │ │ │ ├── Conditional.php │ │ │ ├── Constant.php │ │ │ ├── ExtensionReference.php │ │ │ ├── Filter.php │ │ │ ├── Filter │ │ │ │ └── Default.php │ │ │ ├── Function.php │ │ │ ├── GetAttr.php │ │ │ ├── MethodCall.php │ │ │ ├── Name.php │ │ │ ├── NullCoalesce.php │ │ │ ├── Parent.php │ │ │ ├── TempName.php │ │ │ ├── Test.php │ │ │ ├── Test │ │ │ │ ├── Constant.php │ │ │ │ ├── Defined.php │ │ │ │ ├── Divisibleby.php │ │ │ │ ├── Even.php │ │ │ │ ├── Null.php │ │ │ │ ├── Odd.php │ │ │ │ └── Sameas.php │ │ │ ├── Unary.php │ │ │ └── Unary │ │ │ │ ├── Neg.php │ │ │ │ ├── Not.php │ │ │ │ └── Pos.php │ │ ├── Flush.php │ │ ├── For.php │ │ ├── ForLoop.php │ │ ├── If.php │ │ ├── Import.php │ │ ├── Include.php │ │ ├── Macro.php │ │ ├── Module.php │ │ ├── Print.php │ │ ├── Sandbox.php │ │ ├── SandboxedPrint.php │ │ ├── Set.php │ │ ├── SetTemp.php │ │ ├── Spaceless.php │ │ └── Text.php │ │ ├── NodeInterface.php │ │ ├── NodeOutputInterface.php │ │ ├── NodeTraverser.php │ │ ├── NodeVisitor │ │ ├── Escaper.php │ │ ├── Optimizer.php │ │ ├── SafeAnalysis.php │ │ └── Sandbox.php │ │ ├── NodeVisitorInterface.php │ │ ├── Parser.php │ │ ├── ParserInterface.php │ │ ├── Profiler │ │ ├── Dumper │ │ │ ├── Blackfire.php │ │ │ ├── Html.php │ │ │ └── Text.php │ │ ├── Node │ │ │ ├── EnterProfile.php │ │ │ └── LeaveProfile.php │ │ ├── NodeVisitor │ │ │ └── Profiler.php │ │ └── Profile.php │ │ ├── RuntimeLoaderInterface.php │ │ ├── Sandbox │ │ ├── SecurityError.php │ │ ├── SecurityNotAllowedFilterError.php │ │ ├── SecurityNotAllowedFunctionError.php │ │ ├── SecurityNotAllowedMethodError.php │ │ ├── SecurityNotAllowedPropertyError.php │ │ ├── SecurityNotAllowedTagError.php │ │ ├── SecurityPolicy.php │ │ └── SecurityPolicyInterface.php │ │ ├── SimpleFilter.php │ │ ├── SimpleFunction.php │ │ ├── SimpleTest.php │ │ ├── Source.php │ │ ├── SourceContextLoaderInterface.php │ │ ├── Template.php │ │ ├── TemplateInterface.php │ │ ├── Test.php │ │ ├── Test │ │ ├── Function.php │ │ ├── IntegrationTestCase.php │ │ ├── Method.php │ │ ├── Node.php │ │ └── NodeTestCase.php │ │ ├── TestCallableInterface.php │ │ ├── TestInterface.php │ │ ├── Token.php │ │ ├── TokenParser.php │ │ ├── TokenParser │ │ ├── AutoEscape.php │ │ ├── Block.php │ │ ├── Do.php │ │ ├── Embed.php │ │ ├── Extends.php │ │ ├── Filter.php │ │ ├── Flush.php │ │ ├── For.php │ │ ├── From.php │ │ ├── If.php │ │ ├── Import.php │ │ ├── Include.php │ │ ├── Macro.php │ │ ├── Sandbox.php │ │ ├── Set.php │ │ ├── Spaceless.php │ │ └── Use.php │ │ ├── TokenParserBroker.php │ │ ├── TokenParserBrokerInterface.php │ │ ├── TokenParserInterface.php │ │ ├── TokenStream.php │ │ └── Util │ │ ├── DeprecationCollector.php │ │ └── TemplateDirIterator.php │ ├── phpunit.xml.dist │ └── test │ ├── Twig │ └── Tests │ │ ├── AutoloaderTest.php │ │ ├── Cache │ │ └── FilesystemTest.php │ │ ├── CompilerTest.php │ │ ├── EnvironmentTest.php │ │ ├── ErrorTest.php │ │ ├── ExpressionParserTest.php │ │ ├── Extension │ │ ├── CoreTest.php │ │ └── SandboxTest.php │ │ ├── FileCachingTest.php │ │ ├── FileExtensionEscapingStrategyTest.php │ │ ├── FilesystemHelper.php │ │ ├── Fixtures │ │ ├── autoescape │ │ │ ├── block.test │ │ │ └── name.test │ │ ├── errors │ │ │ ├── base.html │ │ │ └── index.html │ │ ├── exceptions │ │ │ ├── child_contents_outside_blocks.test │ │ │ ├── multiline_array_with_undefined_variable.test │ │ │ ├── multiline_array_with_undefined_variable_again.test │ │ │ ├── multiline_function_with_undefined_variable.test │ │ │ ├── multiline_function_with_unknown_argument.test │ │ │ ├── multiline_tag_with_undefined_variable.test │ │ │ ├── syntax_error_in_reused_template.test │ │ │ ├── unclosed_tag.test │ │ │ ├── undefined_parent.test │ │ │ ├── undefined_template_in_child_template.test │ │ │ └── undefined_trait.test │ │ ├── expressions │ │ │ ├── array.test │ │ │ ├── array_call.test │ │ │ ├── binary.test │ │ │ ├── bitwise.test │ │ │ ├── comparison.test │ │ │ ├── divisibleby.test │ │ │ ├── dotdot.test │ │ │ ├── ends_with.test │ │ │ ├── grouping.test │ │ │ ├── literals.test │ │ │ ├── magic_call.test │ │ │ ├── matches.test │ │ │ ├── method_call.test │ │ │ ├── negative_numbers.test │ │ │ ├── operators_as_variables.test │ │ │ ├── postfix.test │ │ │ ├── sameas.test │ │ │ ├── starts_with.test │ │ │ ├── strings.test │ │ │ ├── ternary_operator.test │ │ │ ├── ternary_operator_noelse.test │ │ │ ├── ternary_operator_nothen.test │ │ │ ├── two_word_operators_as_variables.test │ │ │ ├── unary.test │ │ │ ├── unary_macro_arguments.test │ │ │ └── unary_precedence.test │ │ ├── filters │ │ │ ├── abs.test │ │ │ ├── batch.test │ │ │ ├── batch_float.test │ │ │ ├── batch_with_empty_fill.test │ │ │ ├── batch_with_exact_elements.test │ │ │ ├── batch_with_fill.test │ │ │ ├── batch_with_keys.test │ │ │ ├── batch_with_zero_elements.test │ │ │ ├── convert_encoding.test │ │ │ ├── date.test │ │ │ ├── date_default_format.test │ │ │ ├── date_default_format_interval.test │ │ │ ├── date_immutable.test │ │ │ ├── date_interval.test │ │ │ ├── date_modify.test │ │ │ ├── date_namedargs.test │ │ │ ├── default.test │ │ │ ├── dynamic_filter.test │ │ │ ├── escape.test │ │ │ ├── escape_html_attr.test │ │ │ ├── escape_non_supported_charset.test │ │ │ ├── first.test │ │ │ ├── force_escape.test │ │ │ ├── format.test │ │ │ ├── join.test │ │ │ ├── json_encode.test │ │ │ ├── last.test │ │ │ ├── length.test │ │ │ ├── length_utf8.test │ │ │ ├── merge.test │ │ │ ├── nl2br.test │ │ │ ├── number_format.test │ │ │ ├── number_format_default.test │ │ │ ├── replace.test │ │ │ ├── replace_invalid_arg.test │ │ │ ├── reverse.test │ │ │ ├── round.test │ │ │ ├── slice.test │ │ │ ├── sort.test │ │ │ ├── special_chars.test │ │ │ ├── split.test │ │ │ ├── split_utf8.test │ │ │ ├── static_calls.test │ │ │ ├── trim.test │ │ │ ├── urlencode.test │ │ │ └── urlencode_deprecated.test │ │ ├── functions │ │ │ ├── attribute.test │ │ │ ├── block.test │ │ │ ├── constant.test │ │ │ ├── cycle.test │ │ │ ├── date.test │ │ │ ├── date_namedargs.test │ │ │ ├── dump.test │ │ │ ├── dump_array.test │ │ │ ├── dynamic_function.test │ │ │ ├── include │ │ │ │ ├── assignment.test │ │ │ │ ├── autoescaping.test │ │ │ │ ├── basic.test │ │ │ │ ├── expression.test │ │ │ │ ├── ignore_missing.test │ │ │ │ ├── missing.test │ │ │ │ ├── missing_nested.test │ │ │ │ ├── sandbox.test │ │ │ │ ├── sandbox_disabling.test │ │ │ │ ├── sandbox_disabling_ignore_missing.test │ │ │ │ ├── template_instance.test │ │ │ │ ├── templates_as_array.test │ │ │ │ ├── with_context.test │ │ │ │ └── with_variables.test │ │ │ ├── magic_call.test │ │ │ ├── magic_call53.test │ │ │ ├── max.test │ │ │ ├── min.test │ │ │ ├── range.test │ │ │ ├── recursive_block_with_inheritance.test │ │ │ ├── source.test │ │ │ ├── special_chars.test │ │ │ ├── static_calls.test │ │ │ └── template_from_string.test │ │ ├── macros │ │ │ ├── default_values.test │ │ │ ├── nested_calls.test │ │ │ ├── reserved_variables.test │ │ │ ├── simple.test │ │ │ ├── varargs.test │ │ │ ├── varargs_argument.test │ │ │ └── with_filters.test │ │ ├── regression │ │ │ ├── combined_debug_info.test │ │ │ ├── empty_token.test │ │ │ ├── issue_1143.test │ │ │ ├── multi_word_tests.test │ │ │ ├── simple_xml_element.test │ │ │ └── strings_like_numbers.test │ │ ├── tags │ │ │ ├── autoescape │ │ │ │ ├── basic.test │ │ │ │ ├── blocks.test │ │ │ │ ├── double_escaping.test │ │ │ │ ├── functions.test │ │ │ │ ├── literal.test │ │ │ │ ├── nested.test │ │ │ │ ├── objects.test │ │ │ │ ├── raw.test │ │ │ │ ├── strategy.legacy.test │ │ │ │ ├── strategy.test │ │ │ │ ├── type.test │ │ │ │ ├── with_filters.test │ │ │ │ ├── with_filters_arguments.test │ │ │ │ ├── with_pre_escape_filters.test │ │ │ │ └── with_preserves_safety_filters.test │ │ │ ├── block │ │ │ │ ├── basic.test │ │ │ │ ├── block_unique_name.test │ │ │ │ └── special_chars.test │ │ │ ├── embed │ │ │ │ ├── basic.test │ │ │ │ ├── complex_dynamic_parent.test │ │ │ │ ├── dynamic_parent.test │ │ │ │ ├── error_line.test │ │ │ │ ├── multiple.test │ │ │ │ ├── nested.test │ │ │ │ └── with_extends.test │ │ │ ├── filter │ │ │ │ ├── basic.test │ │ │ │ ├── json_encode.test │ │ │ │ ├── multiple.test │ │ │ │ ├── nested.test │ │ │ │ ├── with_for_tag.test │ │ │ │ └── with_if_tag.test │ │ │ ├── for │ │ │ │ ├── condition.test │ │ │ │ ├── context.test │ │ │ │ ├── else.test │ │ │ │ ├── inner_variables.test │ │ │ │ ├── keys.test │ │ │ │ ├── keys_and_values.test │ │ │ │ ├── loop_context.test │ │ │ │ ├── loop_context_local.test │ │ │ │ ├── loop_not_defined.test │ │ │ │ ├── loop_not_defined_cond.test │ │ │ │ ├── nested_else.test │ │ │ │ ├── objects.test │ │ │ │ ├── objects_countable.test │ │ │ │ ├── recursive.test │ │ │ │ └── values.test │ │ │ ├── from.test │ │ │ ├── if │ │ │ │ ├── basic.test │ │ │ │ └── expression.test │ │ │ ├── include │ │ │ │ ├── basic.test │ │ │ │ ├── expression.test │ │ │ │ ├── ignore_missing.test │ │ │ │ ├── missing.test │ │ │ │ ├── missing_nested.test │ │ │ │ ├── only.test │ │ │ │ ├── template_instance.test │ │ │ │ ├── templates_as_array.test │ │ │ │ └── with_variables.test │ │ │ ├── inheritance │ │ │ │ ├── basic.test │ │ │ │ ├── block_expr.test │ │ │ │ ├── block_expr2.test │ │ │ │ ├── conditional.test │ │ │ │ ├── dynamic.test │ │ │ │ ├── empty.test │ │ │ │ ├── extends_as_array.test │ │ │ │ ├── extends_as_array_with_empty_name.test │ │ │ │ ├── extends_as_array_with_null_name.test │ │ │ │ ├── multiple.test │ │ │ │ ├── multiple_dynamic.test │ │ │ │ ├── nested_blocks.test │ │ │ │ ├── nested_blocks_parent_only.test │ │ │ │ ├── nested_inheritance.test │ │ │ │ ├── parent.test │ │ │ │ ├── parent_change.test │ │ │ │ ├── parent_in_a_block.test │ │ │ │ ├── parent_isolation.test │ │ │ │ ├── parent_nested.test │ │ │ │ ├── parent_without_extends.test │ │ │ │ ├── parent_without_extends_but_traits.test │ │ │ │ ├── template_instance.test │ │ │ │ └── use.test │ │ │ ├── macro │ │ │ │ ├── basic.test │ │ │ │ ├── endmacro_name.test │ │ │ │ ├── external.test │ │ │ │ ├── from.test │ │ │ │ ├── from_with_reserved_name.test │ │ │ │ ├── global.test │ │ │ │ ├── import_with_reserved_nam.test │ │ │ │ ├── reserved_name.test │ │ │ │ ├── self_import.test │ │ │ │ ├── special_chars.test │ │ │ │ └── super_globals.test │ │ │ ├── raw │ │ │ │ ├── basic.legacy.test │ │ │ │ ├── mixed_usage_with_raw.legacy.test │ │ │ │ └── whitespace_control.legacy.test │ │ │ ├── sandbox │ │ │ │ ├── not_valid1.test │ │ │ │ ├── not_valid2.test │ │ │ │ └── simple.test │ │ │ ├── set │ │ │ │ ├── basic.test │ │ │ │ ├── capture-empty.test │ │ │ │ ├── capture.test │ │ │ │ └── expression.test │ │ │ ├── spaceless │ │ │ │ └── simple.test │ │ │ ├── special_chars.test │ │ │ ├── trim_block.test │ │ │ ├── use │ │ │ │ ├── aliases.test │ │ │ │ ├── basic.test │ │ │ │ ├── deep.test │ │ │ │ ├── deep_empty.test │ │ │ │ ├── inheritance.test │ │ │ │ ├── inheritance2.test │ │ │ │ ├── multiple.test │ │ │ │ ├── multiple_aliases.test │ │ │ │ ├── parent_block.test │ │ │ │ ├── parent_block2.test │ │ │ │ └── parent_block3.test │ │ │ └── verbatim │ │ │ │ ├── basic.test │ │ │ │ ├── mixed_usage_with_raw.test │ │ │ │ └── whitespace_control.test │ │ └── tests │ │ │ ├── array.test │ │ │ ├── constant.test │ │ │ ├── defined.test │ │ │ ├── empty.test │ │ │ ├── even.test │ │ │ ├── in.test │ │ │ ├── in_with_objects.test │ │ │ ├── iterable.test │ │ │ ├── null_coalesce.test │ │ │ └── odd.test │ │ ├── IntegrationTest.php │ │ ├── LegacyFixtures │ │ ├── autoescape │ │ │ └── filename.legacy.test │ │ └── test.legacy.test │ │ ├── LegacyIntegrationTest.php │ │ ├── LexerTest.php │ │ ├── Loader │ │ ├── ArrayTest.php │ │ ├── ChainTest.php │ │ ├── FilesystemTest.php │ │ └── Fixtures │ │ │ ├── inheritance │ │ │ ├── array_inheritance_empty_parent.html.twig │ │ │ ├── array_inheritance_nonexistent_parent.html.twig │ │ │ ├── array_inheritance_null_parent.html.twig │ │ │ ├── array_inheritance_valid_parent.html.twig │ │ │ ├── parent.html.twig │ │ │ └── spare_parent.html.twig │ │ │ ├── named │ │ │ └── index.html │ │ │ ├── named_bis │ │ │ └── index.html │ │ │ ├── named_final │ │ │ └── index.html │ │ │ ├── named_quater │ │ │ └── named_absolute.html │ │ │ ├── named_ter │ │ │ └── index.html │ │ │ ├── normal │ │ │ └── index.html │ │ │ ├── normal_bis │ │ │ └── index.html │ │ │ ├── normal_final │ │ │ └── index.html │ │ │ ├── normal_ter │ │ │ └── index.html │ │ │ ├── phar │ │ │ └── phar-sample.phar │ │ │ └── themes │ │ │ ├── theme1 │ │ │ └── blocks.html.twig │ │ │ └── theme2 │ │ │ └── blocks.html.twig │ │ ├── NativeExtensionTest.php │ │ ├── Node │ │ ├── AutoEscapeTest.php │ │ ├── BlockReferenceTest.php │ │ ├── BlockTest.php │ │ ├── DoTest.php │ │ ├── Expression │ │ │ ├── ArrayTest.php │ │ │ ├── AssignNameTest.php │ │ │ ├── Binary │ │ │ │ ├── AddTest.php │ │ │ │ ├── AndTest.php │ │ │ │ ├── ConcatTest.php │ │ │ │ ├── DivTest.php │ │ │ │ ├── FloorDivTest.php │ │ │ │ ├── ModTest.php │ │ │ │ ├── MulTest.php │ │ │ │ ├── OrTest.php │ │ │ │ └── SubTest.php │ │ │ ├── CallTest.php │ │ │ ├── ConditionalTest.php │ │ │ ├── ConstantTest.php │ │ │ ├── FilterTest.php │ │ │ ├── FunctionTest.php │ │ │ ├── GetAttrTest.php │ │ │ ├── NameTest.php │ │ │ ├── PHP53 │ │ │ │ ├── FilterInclude.php │ │ │ │ ├── FunctionInclude.php │ │ │ │ └── TestInclude.php │ │ │ ├── ParentTest.php │ │ │ ├── TestTest.php │ │ │ └── Unary │ │ │ │ ├── NegTest.php │ │ │ │ ├── NotTest.php │ │ │ │ └── PosTest.php │ │ ├── ForTest.php │ │ ├── IfTest.php │ │ ├── ImportTest.php │ │ ├── IncludeTest.php │ │ ├── MacroTest.php │ │ ├── ModuleTest.php │ │ ├── PrintTest.php │ │ ├── SandboxTest.php │ │ ├── SandboxedPrintTest.php │ │ ├── SetTest.php │ │ ├── SpacelessTest.php │ │ └── TextTest.php │ │ ├── NodeVisitor │ │ └── OptimizerTest.php │ │ ├── ParserTest.php │ │ ├── Profiler │ │ ├── Dumper │ │ │ ├── AbstractTest.php │ │ │ ├── BlackfireTest.php │ │ │ ├── HtmlTest.php │ │ │ └── TextTest.php │ │ └── ProfileTest.php │ │ ├── TemplateTest.php │ │ ├── TokenStreamTest.php │ │ └── escapingTest.php │ └── bootstrap.php └── vierbergenlars └── php-semver ├── .travis.yml ├── README.md ├── bin ├── semver └── update-versions ├── composer.json ├── definitions ├── license.md ├── src └── vierbergenlars │ ├── LibJs │ ├── JSArray.php │ ├── JString.php │ ├── Object.php │ ├── RegExp.php │ └── Util.php │ └── SemVer │ ├── SemVerException.php │ ├── expression.php │ ├── internal.php │ └── version.php └── tests ├── all_tests.php ├── base_test.php ├── regression_test.php └── semver_test.php /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | end_of_line = lf 7 | indent_size = 2 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.{html,php,twig,md}] 13 | indent_size = 4 14 | 15 | [*.md] 16 | trim_trailing_whitespace = false -------------------------------------------------------------------------------- /app/Controllers/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigbite/wordpress-git-content/80571aa7ec636053912a37f9425cf9c1e1862c89/app/Controllers/.gitkeep -------------------------------------------------------------------------------- /app/metaboxes.php: -------------------------------------------------------------------------------- 1 | add([ 6 | 'type' => 'panel', 7 | 'as' => 'settings', 8 | 'title' => 'Git Content', 9 | 'slug' => 'gitcontent-index', 10 | 'icon' => Helper::assetUrl('/images/git.svg'), 11 | 'uses' => __NAMESPACE__.'\Controllers\AdminController@index', 12 | 'post' => __NAMESPACE__.'\Controllers\AdminController@save', 13 | ]); 14 | -------------------------------------------------------------------------------- /app/routes.php: -------------------------------------------------------------------------------- 1 | post([ 6 | 'as' => 'githubHook', 7 | 'uri' => '/git-content/hook/{route}', 8 | 'uses' => __NAMESPACE__ . '\Controllers\RouteController@githubHook' 9 | ]); 10 | -------------------------------------------------------------------------------- /resources/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigbite/wordpress-git-content/80571aa7ec636053912a37f9425cf9c1e1862c89/resources/assets/.gitkeep -------------------------------------------------------------------------------- /resources/views/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigbite/wordpress-git-content/80571aa7ec636053912a37f9425cf9c1e1862c89/resources/views/.gitkeep -------------------------------------------------------------------------------- /resources/views/metaboxes/extendPublish.twig: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 | -------------------------------------------------------------------------------- /vendor/autoload.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | test/ParsedownExtraTest.php 6 | 7 | 8 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown-extra/test/ParsedownExtraTest.php: -------------------------------------------------------------------------------- 1 | The HTML specification 2 | is maintained by the W3C. 3 | The abbreviation ML is contained in the abbreviation HTML.

-------------------------------------------------------------------------------- /vendor/erusev/parsedown-extra/test/data/abbreviation.md: -------------------------------------------------------------------------------- 1 | The HTML specification 2 | is maintained by the W3C. 3 | The abbreviation ML is contained in the abbreviation HTML. 4 | 5 | *[HTML]: Hyper Text Markup Language 6 | *[W3C]: World Wide Web Consortium 7 | *[ML]: Markup Language -------------------------------------------------------------------------------- /vendor/erusev/parsedown-extra/test/data/compound_footnote.md: -------------------------------------------------------------------------------- 1 | footnote [^1] and another one [^2] 2 | 3 | [^1]: line 1 4 | line 2 5 | 6 | > quote 7 | 8 | another paragraph 9 | 10 | [^2]: 11 | paragraph 12 | 13 | another paragraph 14 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown-extra/test/data/definition_list.html: -------------------------------------------------------------------------------- 1 |
2 |
Term 1
3 |
one
4 |
two 5 | extra line
6 |
Term 2
7 |

lazy 8 | line

9 |

multiple

10 |

paragraphs

11 |

nested

12 |
code block
13 |
14 |

quote 15 | block

16 |
17 |
-------------------------------------------------------------------------------- /vendor/erusev/parsedown-extra/test/data/definition_list.md: -------------------------------------------------------------------------------- 1 | Term 1 2 | : one 3 | : two 4 | extra line 5 | 6 | Term 2 7 | 8 | : lazy 9 | line 10 | 11 | : multiple 12 | 13 | paragraphs 14 | 15 | : nested 16 | 17 | code block 18 | 19 | > quote 20 | > block -------------------------------------------------------------------------------- /vendor/erusev/parsedown-extra/test/data/footnote.md: -------------------------------------------------------------------------------- 1 | first [^1] second [^2]. 2 | 3 | [^1]: one 4 | [^2]: two 5 | 6 | first [^a] second [^b]. 7 | 8 | [^a]: one 9 | [^b]: two 10 | 11 | second time [^1] -------------------------------------------------------------------------------- /vendor/erusev/parsedown-extra/test/data/special_attributes.html: -------------------------------------------------------------------------------- 1 |

Header 1

2 |

Header 2

3 |

The Site

4 |

The Site

5 |

link

6 |

-------------------------------------------------------------------------------- /vendor/erusev/parsedown-extra/test/data/special_attributes.md: -------------------------------------------------------------------------------- 1 | Header 1 {#header1} 2 | ======== 3 | 4 | ## Header 2 ## {#header2} 5 | 6 | ## The Site ## {.main} 7 | 8 | ## The Site ## {.main .shine #the-site} 9 | 10 | [link](http://parsedown.org) {.primary #link .upper-case} 11 | 12 | ![logo](/md.png) {#logo .big} -------------------------------------------------------------------------------- /vendor/erusev/parsedown/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 7.0 5 | - 5.6 6 | - 5.5 7 | - 5.4 8 | - 5.3 9 | - hhvm 10 | - hhvm-nightly 11 | 12 | matrix: 13 | fast_finish: true 14 | allow_failures: 15 | - php: 7.0 16 | - php: hhvm-nightly 17 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | test/ParsedownTest.php 6 | 7 | 8 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/TestParsedown.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | header 1 5 | header 2 6 | 7 | 8 | 9 | 10 | cell 1.1 11 | cell 1.2 12 | 13 | 14 | cell 2.1 15 | cell 2.2 16 | 17 | 18 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/aesthetic_table.md: -------------------------------------------------------------------------------- 1 | | header 1 | header 2 | 2 | | -------- | -------- | 3 | | cell 1.1 | cell 1.2 | 4 | | cell 2.1 | cell 2.2 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/aligned_table.md: -------------------------------------------------------------------------------- 1 | | header 1 | header 2 | header 2 | 2 | | :------- | :------: | -------: | 3 | | cell 1.1 | cell 1.2 | cell 1.3 | 4 | | cell 2.1 | cell 2.2 | cell 2.3 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/atx_heading.html: -------------------------------------------------------------------------------- 1 |

h1

2 |

h2

3 |

h3

4 |

h4

5 |
h5
6 |
h6
7 |

####### not a heading

8 |

closed h1

9 |

#

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/atx_heading.md: -------------------------------------------------------------------------------- 1 | # h1 2 | 3 | ## h2 4 | 5 | ### h3 6 | 7 | #### h4 8 | 9 | ##### h5 10 | 11 | ###### h6 12 | 13 | ####### not a heading 14 | 15 | # closed h1 # 16 | 17 | # -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/automatic_link.html: -------------------------------------------------------------------------------- 1 |

http://example.com

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/automatic_link.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/block-level_html.html: -------------------------------------------------------------------------------- 1 |
_content_
2 |

paragraph

3 |
4 |
5 | _content_ 6 |
7 |
8 | 11 |
12 | home
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/block-level_html.md: -------------------------------------------------------------------------------- 1 |
_content_
2 | 3 | paragraph 4 | 5 |
6 |
7 | _content_ 8 |
9 |
10 | 11 | 14 | 15 |
16 | home
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/code_block.html: -------------------------------------------------------------------------------- 1 |
<?php
2 | 
3 | $message = 'Hello World!';
4 | echo $message;
5 |
6 |
> not a quote
7 | - not a list item
8 | [not a reference]: http://foo.com
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/code_block.md: -------------------------------------------------------------------------------- 1 | not a quote 9 | - not a list item 10 | [not a reference]: http://foo.com -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/code_span.html: -------------------------------------------------------------------------------- 1 |

a code span

2 |

this is also a codespan trailing text

3 |

and look at this one!

4 |

single backtick in a code span: `

5 |

backtick-delimited string in a code span: `foo`

6 |

sth `` sth

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/code_span.md: -------------------------------------------------------------------------------- 1 | a `code span` 2 | 3 | `this is also a codespan` trailing text 4 | 5 | `and look at this one!` 6 | 7 | single backtick in a code span: `` ` `` 8 | 9 | backtick-delimited string in a code span: `` `foo` `` 10 | 11 | `sth `` sth` -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/compound_blockquote.html: -------------------------------------------------------------------------------- 1 |
2 |

header

3 |

paragraph

4 | 7 |
8 |

paragraph

9 |
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/compound_blockquote.md: -------------------------------------------------------------------------------- 1 | > header 2 | > ------ 3 | > 4 | > paragraph 5 | > 6 | > - li 7 | > 8 | > --- 9 | > 10 | > paragraph -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/compound_emphasis.html: -------------------------------------------------------------------------------- 1 |

code code

2 |

codecodecode

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/compound_emphasis.md: -------------------------------------------------------------------------------- 1 | _`code`_ __`code`__ 2 | 3 | *`code`**`code`**`code`* 4 | 5 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/compound_list.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/compound_list.md: -------------------------------------------------------------------------------- 1 | - paragraph 2 | 3 | paragraph 4 | 5 | - paragraph 6 | 7 | > quote -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/deeply_nested_list.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/deeply_nested_list.md: -------------------------------------------------------------------------------- 1 | - li 2 | - li 3 | - li 4 | - li 5 | - li 6 | - li -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/em_strong.html: -------------------------------------------------------------------------------- 1 |

em strong

2 |

em strong strong

3 |

strong em strong

4 |

strong em strong strong

5 |

em strong

6 |

em strong strong

7 |

strong em strong

8 |

strong em strong strong

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/em_strong.md: -------------------------------------------------------------------------------- 1 | ___em strong___ 2 | 3 | ___em strong_ strong__ 4 | 5 | __strong _em strong___ 6 | 7 | __strong _em strong_ strong__ 8 | 9 | ***em strong*** 10 | 11 | ***em strong* strong** 12 | 13 | **strong *em strong*** 14 | 15 | **strong *em strong* strong** -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/email.html: -------------------------------------------------------------------------------- 1 |

my email is me@example.com

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/email.md: -------------------------------------------------------------------------------- 1 | my email is -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/emphasis.html: -------------------------------------------------------------------------------- 1 |

underscore, asterisk, one two, three four, a, b

2 |

strong and em and strong and em

3 |

line 4 | line 5 | line

6 |

this_is_not_an_emphasis

7 |

an empty emphasis __ ** is not an emphasis

8 |

*mixed *double and single asterisk** spans

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/emphasis.md: -------------------------------------------------------------------------------- 1 | _underscore_, *asterisk*, _one two_, *three four*, _a_, *b* 2 | 3 | **strong** and *em* and **strong** and *em* 4 | 5 | _line 6 | line 7 | line_ 8 | 9 | this_is_not_an_emphasis 10 | 11 | an empty emphasis __ ** is not an emphasis 12 | 13 | *mixed **double and* single asterisk** spans -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/escaping.html: -------------------------------------------------------------------------------- 1 |

escaped *emphasis*.

2 |

escaped \*emphasis\* in a code span

3 |
escaped \*emphasis\* in a code block
4 |

\ ` * _ { } [ ] ( ) > # + - . !

5 |

one_two one_two

6 |

one*two one*two

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/escaping.md: -------------------------------------------------------------------------------- 1 | escaped \*emphasis\*. 2 | 3 | `escaped \*emphasis\* in a code span` 4 | 5 | escaped \*emphasis\* in a code block 6 | 7 | \\ \` \* \_ \{ \} \[ \] \( \) \> \# \+ \- \. \! 8 | 9 | _one\_two_ __one\_two__ 10 | 11 | *one\*two* **one\*two** -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/fenced_code_block.html: -------------------------------------------------------------------------------- 1 |
<?php
2 | 
3 | $message = 'fenced code block';
4 | echo $message;
5 |
tilde
6 |
echo 'language identifier';
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/fenced_code_block.md: -------------------------------------------------------------------------------- 1 | ``` 2 | 2 |
3 |
4 |
5 |
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/horizontal_rule.md: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - - - 4 | 5 | - - - 6 | 7 | *** 8 | 9 | ___ -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/html_comment.html: -------------------------------------------------------------------------------- 1 | 2 |

paragraph

3 | 5 |

paragraph

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/html_comment.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | paragraph 4 | 5 | 7 | 8 | paragraph -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/html_entity.html: -------------------------------------------------------------------------------- 1 |

& © {

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/html_entity.md: -------------------------------------------------------------------------------- 1 | & © { -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/image_reference.html: -------------------------------------------------------------------------------- 1 |

Markdown Logo

2 |

![missing reference]

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/image_reference.md: -------------------------------------------------------------------------------- 1 | ![Markdown Logo][image] 2 | 3 | [image]: /md.png 4 | 5 | ![missing reference] -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/image_title.html: -------------------------------------------------------------------------------- 1 |

alt

2 |

blank title

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/image_title.md: -------------------------------------------------------------------------------- 1 | ![alt](/md.png "title") 2 | 3 | ![blank title](/md.png "") -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/implicit_reference.html: -------------------------------------------------------------------------------- 1 |

an implicit reference link

2 |

an implicit reference link with an empty link definition

3 |

an implicit reference link followed by another

4 |

an explicit reference link with a title

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/implicit_reference.md: -------------------------------------------------------------------------------- 1 | an [implicit] reference link 2 | 3 | [implicit]: http://example.com 4 | 5 | an [implicit][] reference link with an empty link definition 6 | 7 | an [implicit][] reference link followed by [another][] 8 | 9 | [another]: http://cnn.com 10 | 11 | an [explicit][example] reference link with a title 12 | 13 | [example]: http://example.com "Example" -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/inline_link.html: -------------------------------------------------------------------------------- 1 |

link

2 |

link with parentheses in URL

3 |

(link) in parentheses

4 |

link

5 |

MD Logo

6 |

MD Logo and text

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/inline_link.md: -------------------------------------------------------------------------------- 1 | [link](http://example.com) 2 | 3 | [link](/url-(parentheses)) with parentheses in URL 4 | 5 | ([link](/index.php)) in parentheses 6 | 7 | [`link`](http://example.com) 8 | 9 | [![MD Logo](http://parsedown.org/md.png)](http://example.com) 10 | 11 | [![MD Logo](http://parsedown.org/md.png) and text](http://example.com) -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/inline_link_title.html: -------------------------------------------------------------------------------- 1 |

single quotes

2 |

double quotes

3 |

single quotes blank

4 |

double quotes blank

5 |

space

6 |

parentheses

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/inline_link_title.md: -------------------------------------------------------------------------------- 1 | [single quotes](http://example.com 'Title') 2 | 3 | [double quotes](http://example.com "Title") 4 | 5 | [single quotes blank](http://example.com '') 6 | 7 | [double quotes blank](http://example.com "") 8 | 9 | [space](http://example.com "2 Words") 10 | 11 | [parentheses](http://example.com/url-(parentheses) "Title") -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/inline_title.html: -------------------------------------------------------------------------------- 1 |

single quotes and double quotes

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/inline_title.md: -------------------------------------------------------------------------------- 1 | [single quotes](http://example.com 'Example') and [double quotes](http://example.com "Example") -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/lazy_blockquote.html: -------------------------------------------------------------------------------- 1 |
2 |

quote 3 | the rest of it

4 |

another paragraph 5 | the rest of it

6 |
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/lazy_blockquote.md: -------------------------------------------------------------------------------- 1 | > quote 2 | the rest of it 3 | 4 | > another paragraph 5 | the rest of it -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/lazy_list.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/lazy_list.md: -------------------------------------------------------------------------------- 1 | - li 2 | the rest of it -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/line_break.html: -------------------------------------------------------------------------------- 1 |

line
2 | line

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/line_break.md: -------------------------------------------------------------------------------- 1 | line 2 | line -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/multiline_list_paragraph.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/multiline_list_paragraph.md: -------------------------------------------------------------------------------- 1 | - li 2 | 3 | line 4 | line -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/nested_block-level_html.html: -------------------------------------------------------------------------------- 1 |
2 | _parent_ 3 |
4 | _child_ 5 |
6 |
 7 | _adopted child_
 8 | 
9 |
10 |

outside

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/nested_block-level_html.md: -------------------------------------------------------------------------------- 1 |
2 | _parent_ 3 |
4 | _child_ 5 |
6 |
 7 | _adopted child_
 8 | 
9 |
10 | 11 | _outside_ -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/ordered_list.html: -------------------------------------------------------------------------------- 1 |
    2 |
  1. one
  2. 3 |
  3. two
  4. 4 |
5 |

repeating numbers:

6 |
    7 |
  1. one
  2. 8 |
  3. two
  4. 9 |
10 |

large numbers:

11 |
    12 |
  1. one
  2. 13 |
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/ordered_list.md: -------------------------------------------------------------------------------- 1 | 1. one 2 | 2. two 3 | 4 | repeating numbers: 5 | 6 | 1. one 7 | 1. two 8 | 9 | large numbers: 10 | 11 | 123. one -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/paragraph_list.html: -------------------------------------------------------------------------------- 1 |

paragraph

2 | 6 |

paragraph

7 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/paragraph_list.md: -------------------------------------------------------------------------------- 1 | paragraph 2 | - li 3 | - li 4 | 5 | paragraph 6 | 7 | * li 8 | 9 | * li -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/reference_title.html: -------------------------------------------------------------------------------- 1 |

double quotes and single quotes and parentheses

2 |

[invalid title]: http://example.com example title

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/reference_title.md: -------------------------------------------------------------------------------- 1 | [double quotes] and [single quotes] and [parentheses] 2 | 3 | [double quotes]: http://example.com "example title" 4 | [single quotes]: http://example.com 'example title' 5 | [parentheses]: http://example.com (example title) 6 | [invalid title]: http://example.com example title -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/self-closing_html.html: -------------------------------------------------------------------------------- 1 |
2 |

paragraph

3 |
4 |

paragraph

5 |
6 |

paragraph

7 |
8 |

paragraph

9 |
10 |

paragraph

11 |
12 |

paragraph

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/self-closing_html.md: -------------------------------------------------------------------------------- 1 |
2 | paragraph 3 |
4 | paragraph 5 |
6 | paragraph 7 |
8 | paragraph 9 |
10 | paragraph 11 |
12 | paragraph -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/separated_nested_list.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/separated_nested_list.md: -------------------------------------------------------------------------------- 1 | - li 2 | 3 | - li 4 | - li -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/setext_header.html: -------------------------------------------------------------------------------- 1 |

h1

2 |

h2

3 |

single character

4 |

not a header

5 |
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/setext_header.md: -------------------------------------------------------------------------------- 1 | h1 2 | == 3 | 4 | h2 5 | -- 6 | 7 | single character 8 | - 9 | 10 | not a header 11 | 12 | ------------ -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/simple_blockquote.html: -------------------------------------------------------------------------------- 1 |
2 |

quote

3 |
4 |

indented:

5 |
6 |

quote

7 |
8 |

no space after >:

9 |
10 |

quote

11 |
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/simple_blockquote.md: -------------------------------------------------------------------------------- 1 | > quote 2 | 3 | indented: 4 | > quote 5 | 6 | no space after `>`: 7 | >quote -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/simple_table.md: -------------------------------------------------------------------------------- 1 | header 1 | header 2 2 | -------- | -------- 3 | cell 1.1 | cell 1.2 4 | cell 2.1 | cell 2.2 5 | 6 | --- 7 | 8 | header 1 | header 2 9 | :------- | -------- 10 | cell 1.1 | cell 1.2 11 | cell 2.1 | cell 2.2 -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/span-level_html.html: -------------------------------------------------------------------------------- 1 |

an important link

2 |

broken
3 | line

4 |

inline tag at the beginning

5 |

http://example.com

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/span-level_html.md: -------------------------------------------------------------------------------- 1 | an important link 2 | 3 | broken
4 | line 5 | 6 | inline tag at the beginning 7 | 8 | http://example.com -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/sparse_dense_list.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/sparse_dense_list.md: -------------------------------------------------------------------------------- 1 | - li 2 | 3 | - li 4 | - li -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/sparse_html.html: -------------------------------------------------------------------------------- 1 |
2 | line 1 3 | 4 | line 2 5 | line 3 6 | 7 | line 4 8 |
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/sparse_html.md: -------------------------------------------------------------------------------- 1 |
2 | line 1 3 | 4 | line 2 5 | line 3 6 | 7 | line 4 8 |
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/sparse_list.html: -------------------------------------------------------------------------------- 1 | 7 |
8 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/sparse_list.md: -------------------------------------------------------------------------------- 1 | - li 2 | 3 | - li 4 | 5 | --- 6 | 7 | - li 8 | 9 | - indented li -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/special_characters.html: -------------------------------------------------------------------------------- 1 |

AT&T has an ampersand in their name

2 |

this & that

3 |

4 < 5 and 6 > 5

4 |

http://example.com/autolink?a=1&b=2

5 |

inline link

6 |

reference link

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/special_characters.md: -------------------------------------------------------------------------------- 1 | AT&T has an ampersand in their name 2 | 3 | this & that 4 | 5 | 4 < 5 and 6 > 5 6 | 7 | 8 | 9 | [inline link](/script?a=1&b=2) 10 | 11 | [reference link][1] 12 | 13 | [1]: http://example.com/?a=1&b=2 -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/strikethrough.html: -------------------------------------------------------------------------------- 1 |

strikethrough

2 |

here's one followed by another one

3 |

~~ this ~~ is not one neither is ~this~

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/strikethrough.md: -------------------------------------------------------------------------------- 1 | ~~strikethrough~~ 2 | 3 | here's ~~one~~ followed by ~~another one~~ 4 | 5 | ~~ this ~~ is not one neither is ~this~ -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/strong_em.html: -------------------------------------------------------------------------------- 1 |

em strong em

2 |

strong em em

3 |

em strong em em

4 |

em strong em

5 |

strong em em

6 |

em strong em em

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/strong_em.md: -------------------------------------------------------------------------------- 1 | *em **strong em*** 2 | 3 | ***strong em** em* 4 | 5 | *em **strong em** em* 6 | 7 | _em __strong em___ 8 | 9 | ___strong em__ em_ 10 | 11 | _em __strong em__ em_ -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/tab-indented_code_block.html: -------------------------------------------------------------------------------- 1 |
<?php
2 | 
3 | $message = 'Hello World!';
4 | echo $message;
5 | 
6 | echo "following a blank line";
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/tab-indented_code_block.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | header 1 5 | header 2 6 | 7 | 8 | 9 | 10 | cell 1.1 11 | cell 1.2 12 | 13 | 14 | | 2.1 15 | | 2.2 16 | 17 | 18 | \| 2.1 19 | link 20 | 21 | 22 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/table_inline_markdown.md: -------------------------------------------------------------------------------- 1 | | _header_ 1 | header 2 | 2 | | ------------ | ------------ | 3 | | _cell_ 1.1 | ~~cell~~ 1.2 | 4 | | `|` 2.1 | \| 2.2 | 5 | | `\|` 2.1 | [link](/) | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/text_reference.md: -------------------------------------------------------------------------------- 1 | [reference link][1] 2 | 3 | [1]: http://example.com 4 | 5 | [one][website] with a semantic name 6 | 7 | [website]: http://example.com 8 | 9 | [one][404] with no definition 10 | 11 | [multiline 12 | one][website] defined on 2 lines 13 | 14 | [one][Label] with a mixed case label and an upper case definition 15 | 16 | [LABEL]: http://example.com 17 | 18 | [one] 19 | [1] with the a label on the next line 20 | 21 | [`link`][website] -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/unordered_list.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • li
  • 3 |
  • li
  • 4 |
5 |

mixed markers:

6 |
    7 |
  • li
  • 8 |
  • li
  • 9 |
  • li
  • 10 |
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/unordered_list.md: -------------------------------------------------------------------------------- 1 | - li 2 | - li 3 | 4 | mixed markers: 5 | 6 | * li 7 | + li 8 | - li -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/untidy_table.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
header 1header 2
cell 1.1cell 1.2
cell 2.1cell 2.2
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/untidy_table.md: -------------------------------------------------------------------------------- 1 | | header 1 | header 2 | 2 | | ------------- | ----------- | 3 | | cell 1.1 | cell 1.2 | 4 | | cell 2.1 | cell 2.2 | -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/url_autolinking.html: -------------------------------------------------------------------------------- 1 |

an autolink http://example.com

2 |

inside of brackets [http://example.com], inside of braces {http://example.com}, inside of parentheses (http://example.com)

3 |

trailing slash http://example.com/ and http://example.com/path/

-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/url_autolinking.md: -------------------------------------------------------------------------------- 1 | an autolink http://example.com 2 | 3 | inside of brackets [http://example.com], inside of braces {http://example.com}, inside of parentheses (http://example.com) 4 | 5 | trailing slash http://example.com/ and http://example.com/path/ -------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/whitespace.html: -------------------------------------------------------------------------------- 1 |
code
-------------------------------------------------------------------------------- /vendor/erusev/parsedown/test/data/whitespace.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | code 4 | 5 | -------------------------------------------------------------------------------- /vendor/getherbert/framework/.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | end_of_line = lf 7 | indent_size = 2 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.{html,php,twig,md}] 13 | indent_size = 4 14 | 15 | [*.md] 16 | trim_trailing_whitespace = false 17 | -------------------------------------------------------------------------------- /vendor/getherbert/framework/Herbert/Framework/Http.php: -------------------------------------------------------------------------------- 1 | assertContains('foo', $e->getMessage()); 12 | $this->assertEquals(['baz', 'bar'], $e->getReason()); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | laravel->databasePath().DIRECTORY_SEPARATOR.'migrations'; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Console/Seeds/stubs/seeder.stub: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | foo 7 | bar 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/non-valid.yml: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/plurals.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigbite/wordpress-git-content/80571aa7ec636053912a37f9425cf9c1e1862c89/vendor/symfony/translation/Tests/fixtures/plurals.mo -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/plurals.po: -------------------------------------------------------------------------------- 1 | msgid "foo" 2 | msgid_plural "foos" 3 | msgstr[0] "bar" 4 | msgstr[1] "bars" 5 | 6 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/en.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigbite/wordpress-git-content/80571aa7ec636053912a37f9425cf9c1e1862c89/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/en.res -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/en.txt: -------------------------------------------------------------------------------- 1 | en{ 2 | symfony{"Symfony is great"} 3 | } -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/fr.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigbite/wordpress-git-content/80571aa7ec636053912a37f9425cf9c1e1862c89/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/fr.res -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/fr.txt: -------------------------------------------------------------------------------- 1 | fr{ 2 | symfony{"Symfony est génial"} 3 | } -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/packagelist.txt: -------------------------------------------------------------------------------- 1 | en.res 2 | fr.res 3 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resourcebundle/res/en.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigbite/wordpress-git-content/80571aa7ec636053912a37f9425cf9c1e1862c89/vendor/symfony/translation/Tests/fixtures/resourcebundle/res/en.res -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resources.dump.json: -------------------------------------------------------------------------------- 1 | {"foo":"\u0022bar\u0022"} -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resources.ini: -------------------------------------------------------------------------------- 1 | foo="bar" 2 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resources.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar" 3 | } -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resources.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigbite/wordpress-git-content/80571aa7ec636053912a37f9425cf9c1e1862c89/vendor/symfony/translation/Tests/fixtures/resources.mo -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resources.php: -------------------------------------------------------------------------------- 1 | 'bar', 5 | ); 6 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resources.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Content-Type: text/plain; charset=UTF-8\n" 4 | "Content-Transfer-Encoding: 8bit\n" 5 | "Language: en\n" 6 | 7 | msgid "foo" 8 | msgstr "bar" -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resources.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | resources 5 | 6 | foo 7 | bar 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/resources.yml: -------------------------------------------------------------------------------- 1 | foo: bar 2 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Tests/fixtures/withdoctype.xlf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | foo 8 | bar 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /vendor/symfony/var-dumper/.gitignore: -------------------------------------------------------------------------------- 1 | composer.lock 2 | phpunit.xml 3 | vendor/ 4 | -------------------------------------------------------------------------------- /vendor/symfony/var-dumper/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | CHANGELOG 2 | ========= 3 | 4 | 2.7.0 5 | ----- 6 | 7 | * deprecated Cloner\Data::getLimitedClone(). Use withMaxDepth, withMaxItemsPerDepth or withRefHandles instead. 8 | -------------------------------------------------------------------------------- /vendor/symfony/var-dumper/Tests/Fixtures/FooInterface.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | With text 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/.editorconfig: -------------------------------------------------------------------------------- 1 | ; top-most EditorConfig file 2 | root = true 3 | 4 | ; Unix-style newlines 5 | [*] 6 | end_of_line = LF 7 | 8 | [*.php] 9 | indent_style = space 10 | indent_size = 4 11 | 12 | [*.test] 13 | indent_style = space 14 | indent_size = 4 15 | 16 | [*.rst] 17 | indent_style = space 18 | indent_size = 4 19 | -------------------------------------------------------------------------------- /vendor/twig/twig/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /composer.lock 3 | /ext/twig/autom4te.cache/ 4 | /phpunit.xml 5 | /vendor 6 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/filters/abs.rst: -------------------------------------------------------------------------------- 1 | ``abs`` 2 | ======= 3 | 4 | The ``abs`` filter returns the absolute value. 5 | 6 | .. code-block:: jinja 7 | 8 | {# number = -5 #} 9 | 10 | {{ number|abs }} 11 | 12 | {# outputs 5 #} 13 | 14 | .. note:: 15 | 16 | Internally, Twig uses the PHP `abs`_ function. 17 | 18 | .. _`abs`: http://php.net/abs 19 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/filters/capitalize.rst: -------------------------------------------------------------------------------- 1 | ``capitalize`` 2 | ============== 3 | 4 | The ``capitalize`` filter capitalizes a value. The first character will be 5 | uppercase, all others lowercase: 6 | 7 | .. code-block:: jinja 8 | 9 | {{ 'my first car'|capitalize }} 10 | 11 | {# outputs 'My first car' #} 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/filters/format.rst: -------------------------------------------------------------------------------- 1 | ``format`` 2 | ========== 3 | 4 | The ``format`` filter formats a given string by replacing the placeholders 5 | (placeholders follows the `sprintf`_ notation): 6 | 7 | .. code-block:: jinja 8 | 9 | {{ "I like %s and %s."|format(foo, "bar") }} 10 | 11 | {# outputs I like foo and bar 12 | if the foo parameter equals to the foo string. #} 13 | 14 | .. _`sprintf`: http://www.php.net/sprintf 15 | 16 | .. seealso:: :doc:`replace` 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/filters/keys.rst: -------------------------------------------------------------------------------- 1 | ``keys`` 2 | ======== 3 | 4 | The ``keys`` filter returns the keys of an array. It is useful when you want to 5 | iterate over the keys of an array: 6 | 7 | .. code-block:: jinja 8 | 9 | {% for key in array|keys %} 10 | ... 11 | {% endfor %} 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/filters/length.rst: -------------------------------------------------------------------------------- 1 | ``length`` 2 | ========== 3 | 4 | The ``length`` filter returns the number of items of a sequence or mapping, or 5 | the length of a string: 6 | 7 | .. code-block:: jinja 8 | 9 | {% if users|length > 10 %} 10 | ... 11 | {% endif %} 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/filters/lower.rst: -------------------------------------------------------------------------------- 1 | ``lower`` 2 | ========= 3 | 4 | The ``lower`` filter converts a value to lowercase: 5 | 6 | .. code-block:: jinja 7 | 8 | {{ 'WELCOME'|lower }} 9 | 10 | {# outputs 'welcome' #} 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/filters/sort.rst: -------------------------------------------------------------------------------- 1 | ``sort`` 2 | ======== 3 | 4 | The ``sort`` filter sorts an array: 5 | 6 | .. code-block:: jinja 7 | 8 | {% for user in users|sort %} 9 | ... 10 | {% endfor %} 11 | 12 | .. note:: 13 | 14 | Internally, Twig uses the PHP `asort`_ function to maintain index 15 | association. It supports Traversable objects by transforming 16 | those to arrays. 17 | 18 | .. _`asort`: http://php.net/asort 19 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/filters/striptags.rst: -------------------------------------------------------------------------------- 1 | ``striptags`` 2 | ============= 3 | 4 | The ``striptags`` filter strips SGML/XML tags and replace adjacent whitespace 5 | by one space: 6 | 7 | .. code-block:: jinja 8 | 9 | {{ some_html|striptags }} 10 | 11 | .. note:: 12 | 13 | Internally, Twig uses the PHP `strip_tags`_ function. 14 | 15 | .. _`strip_tags`: http://php.net/strip_tags 16 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/filters/title.rst: -------------------------------------------------------------------------------- 1 | ``title`` 2 | ========= 3 | 4 | The ``title`` filter returns a titlecased version of the value. Words will 5 | start with uppercase letters, all remaining characters are lowercase: 6 | 7 | .. code-block:: jinja 8 | 9 | {{ 'my first car'|title }} 10 | 11 | {# outputs 'My First Car' #} 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/filters/upper.rst: -------------------------------------------------------------------------------- 1 | ``upper`` 2 | ========= 3 | 4 | The ``upper`` filter converts a value to uppercase: 5 | 6 | .. code-block:: jinja 7 | 8 | {{ 'welcome'|upper }} 9 | 10 | {# outputs 'WELCOME' #} 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/functions/block.rst: -------------------------------------------------------------------------------- 1 | ``block`` 2 | ========= 3 | 4 | When a template uses inheritance and if you want to print a block multiple 5 | times, use the ``block`` function: 6 | 7 | .. code-block:: jinja 8 | 9 | {% block title %}{% endblock %} 10 | 11 |

{{ block('title') }}

12 | 13 | {% block body %}{% endblock %} 14 | 15 | .. seealso:: :doc:`extends<../tags/extends>`, :doc:`parent<../functions/parent>` 16 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/functions/index.rst: -------------------------------------------------------------------------------- 1 | Functions 2 | ========= 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | attribute 8 | block 9 | constant 10 | cycle 11 | date 12 | dump 13 | include 14 | max 15 | min 16 | parent 17 | random 18 | range 19 | source 20 | template_from_string 21 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/index.rst: -------------------------------------------------------------------------------- 1 | Twig 2 | ==== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | intro 8 | installation 9 | templates 10 | api 11 | advanced 12 | internals 13 | deprecated 14 | recipes 15 | coding_standards 16 | tags/index 17 | filters/index 18 | functions/index 19 | tests/index 20 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/tags/do.rst: -------------------------------------------------------------------------------- 1 | ``do`` 2 | ====== 3 | 4 | .. versionadded:: 1.5 5 | The ``do`` tag was added in Twig 1.5. 6 | 7 | The ``do`` tag works exactly like the regular variable expression (``{{ ... 8 | }}``) just that it doesn't print anything: 9 | 10 | .. code-block:: jinja 11 | 12 | {% do 1 + 2 %} 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/tags/flush.rst: -------------------------------------------------------------------------------- 1 | ``flush`` 2 | ========= 3 | 4 | .. versionadded:: 1.5 5 | The flush tag was added in Twig 1.5. 6 | 7 | The ``flush`` tag tells Twig to flush the output buffer: 8 | 9 | .. code-block:: jinja 10 | 11 | {% flush %} 12 | 13 | .. note:: 14 | 15 | Internally, Twig uses the PHP `flush`_ function. 16 | 17 | .. _`flush`: http://php.net/flush 18 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/tags/from.rst: -------------------------------------------------------------------------------- 1 | ``from`` 2 | ======== 3 | 4 | The ``from`` tag imports :doc:`macro<../tags/macro>` names into the current 5 | namespace. The tag is documented in detail in the documentation for the 6 | :doc:`import<../tags/import>` tag. 7 | 8 | .. seealso:: :doc:`macro<../tags/macro>`, :doc:`import<../tags/import>` 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/tags/index.rst: -------------------------------------------------------------------------------- 1 | Tags 2 | ==== 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | autoescape 8 | block 9 | do 10 | embed 11 | extends 12 | filter 13 | flush 14 | for 15 | from 16 | if 17 | import 18 | include 19 | macro 20 | sandbox 21 | set 22 | spaceless 23 | use 24 | verbatim 25 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/tests/divisibleby.rst: -------------------------------------------------------------------------------- 1 | ``divisible by`` 2 | ================ 3 | 4 | .. versionadded:: 1.14.2 5 | The ``divisible by`` test was added in Twig 1.14.2 as an alias for 6 | ``divisibleby``. 7 | 8 | ``divisible by`` checks if a variable is divisible by a number: 9 | 10 | .. code-block:: jinja 11 | 12 | {% if loop.index is divisible by(3) %} 13 | ... 14 | {% endif %} 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/tests/empty.rst: -------------------------------------------------------------------------------- 1 | ``empty`` 2 | ========= 3 | 4 | ``empty`` checks if a variable is an empty string, an empty array, an empty 5 | hash, exactly ``false``, or exactly ``null``: 6 | 7 | .. code-block:: jinja 8 | 9 | {% if foo is empty %} 10 | ... 11 | {% endif %} 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/tests/even.rst: -------------------------------------------------------------------------------- 1 | ``even`` 2 | ======== 3 | 4 | ``even`` returns ``true`` if the given number is even: 5 | 6 | .. code-block:: jinja 7 | 8 | {{ var is even }} 9 | 10 | .. seealso:: :doc:`odd<../tests/odd>` 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/tests/index.rst: -------------------------------------------------------------------------------- 1 | Tests 2 | ===== 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | constant 8 | defined 9 | divisibleby 10 | empty 11 | even 12 | iterable 13 | null 14 | odd 15 | sameas 16 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/tests/null.rst: -------------------------------------------------------------------------------- 1 | ``null`` 2 | ======== 3 | 4 | ``null`` returns ``true`` if the variable is ``null``: 5 | 6 | .. code-block:: jinja 7 | 8 | {{ var is null }} 9 | 10 | .. note:: 11 | 12 | ``none`` is an alias for ``null``. 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/tests/odd.rst: -------------------------------------------------------------------------------- 1 | ``odd`` 2 | ======= 3 | 4 | ``odd`` returns ``true`` if the given number is odd: 5 | 6 | .. code-block:: jinja 7 | 8 | {{ var is odd }} 9 | 10 | .. seealso:: :doc:`even<../tests/even>` 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/doc/tests/sameas.rst: -------------------------------------------------------------------------------- 1 | ``same as`` 2 | =========== 3 | 4 | .. versionadded:: 1.14.2 5 | The ``same as`` test was added in Twig 1.14.2 as an alias for ``sameas``. 6 | 7 | ``same as`` checks if a variable is the same as another variable. 8 | This is the equivalent to ``===`` in PHP: 9 | 10 | .. code-block:: jinja 11 | 12 | {% if foo.attribute is same as(false) %} 13 | the foo attribute really is the 'false' PHP value 14 | {% endif %} 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/ext/twig/config.m4: -------------------------------------------------------------------------------- 1 | dnl config.m4 for extension twig 2 | 3 | PHP_ARG_ENABLE(twig, whether to enable twig support, 4 | [ --enable-twig Enable twig support]) 5 | 6 | if test "$PHP_TWIG" != "no"; then 7 | PHP_NEW_EXTENSION(twig, twig.c, $ext_shared) 8 | fi 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/ext/twig/config.w32: -------------------------------------------------------------------------------- 1 | // vim:ft=javascript 2 | 3 | ARG_ENABLE("twig", "Twig support", "no"); 4 | 5 | if (PHP_TWIG != "no") { 6 | AC_DEFINE('HAVE_TWIG', 1); 7 | EXTENSION('twig', 'twig.c'); 8 | } 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/lib/Twig/Node/Body.php: -------------------------------------------------------------------------------- 1 | 16 | */ 17 | class Twig_Node_Body extends Twig_Node 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /vendor/twig/twig/lib/Twig/NodeOutputInterface.php: -------------------------------------------------------------------------------- 1 | 16 | */ 17 | interface Twig_NodeOutputInterface 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/autoescape/name.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "name" autoescape strategy 3 | --TEMPLATE-- 4 | {{ br -}} 5 | {{ include('index.html.twig') -}} 6 | {{ include('index.txt.twig') -}} 7 | --TEMPLATE(index.html.twig)-- 8 | {{ br -}} 9 | --TEMPLATE(index.txt.twig)-- 10 | {{ br -}} 11 | --DATA-- 12 | return array('br' => '
') 13 | --CONFIG-- 14 | return array('autoescape' => 'name') 15 | --EXPECT-- 16 | <br /> 17 | <br /> 18 |
19 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/errors/base.html: -------------------------------------------------------------------------------- 1 | {% block content %}{% endblock %} 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/errors/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% block content %} 3 | {{ foo.bar }} 4 | {% endblock %} 5 | {% block foo %} 6 | {{ foo.bar }} 7 | {% endblock %} 8 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_array_with_undefined_variable.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Exception for multiline array with undefined variable 3 | --TEMPLATE-- 4 | {% set foo = { 5 | foo: 'foo', 6 | bar: 'bar', 7 | 8 | 9 | foobar: foobar, 10 | 11 | 12 | 13 | foo2: foo2, 14 | } %} 15 | --DATA-- 16 | return array('foobar' => 'foobar') 17 | --EXCEPTION-- 18 | Twig_Error_Runtime: Variable "foo2" does not exist in "index.twig" at line 11. 19 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_array_with_undefined_variable_again.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Exception for multiline array with undefined variable 3 | --TEMPLATE-- 4 | {% set foo = { 5 | foo: 'foo', 6 | bar: 'bar', 7 | 8 | 9 | foobar: foobar, 10 | 11 | 12 | 13 | foo2: foo2, 14 | } %} 15 | --DATA-- 16 | return array() 17 | --EXCEPTION-- 18 | Twig_Error_Runtime: Variable "foobar" does not exist in "index.twig" at line 7. 19 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_function_with_undefined_variable.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Exception for multile function with undefined variable 3 | --TEMPLATE-- 4 | {{ include('foo', 5 | with_context=with_context 6 | ) }} 7 | --TEMPLATE(foo)-- 8 | Foo 9 | --DATA-- 10 | return array() 11 | --EXCEPTION-- 12 | Twig_Error_Runtime: Variable "with_context" does not exist in "index.twig" at line 3. 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_function_with_unknown_argument.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Exception for multiline function with unknown argument 3 | --TEMPLATE-- 4 | {{ include('foo', 5 | with_context=True, 6 | invalid=False 7 | ) }} 8 | --EXCEPTION-- 9 | Twig_Error_Syntax: Unknown argument "invalid" for function "include(template, variables, with_context, ignore_missing, sandboxed)" in "index.twig" at line 4. 10 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_tag_with_undefined_variable.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Exception for multiline tag with undefined variable 3 | --TEMPLATE-- 4 | {% include 'foo' 5 | with vars 6 | %} 7 | --TEMPLATE(foo)-- 8 | Foo 9 | --DATA-- 10 | return array() 11 | --EXCEPTION-- 12 | Twig_Error_Runtime: Variable "vars" does not exist in "index.twig" at line 3. 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/syntax_error_in_reused_template.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Exception for syntax error in reused template 3 | --TEMPLATE-- 4 | {% use 'foo.twig' %} 5 | --TEMPLATE(foo.twig)-- 6 | {% block bar %} 7 | {% do node.data = 5 %} 8 | {% endblock %} 9 | --EXCEPTION-- 10 | Twig_Error_Syntax: Unexpected token "operator" of value "=" ("end of statement block" expected) in "foo.twig" at line 3. 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/unclosed_tag.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Exception for an unclosed tag 3 | --TEMPLATE-- 4 | {% block foo %} 5 | {% if foo %} 6 | 7 | 8 | 9 | 10 | {% for i in fo %} 11 | 12 | 13 | 14 | {% endfor %} 15 | 16 | 17 | 18 | {% endblock %} 19 | --EXCEPTION-- 20 | Twig_Error_Syntax: Unexpected "endblock" tag (expecting closing tag for the "if" tag defined near line 4) in "index.twig" at line 16. 21 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/undefined_parent.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Exception for an undefined parent 3 | --TEMPLATE-- 4 | {% extends 'foo.html' %} 5 | 6 | {% set foo = "foo" %} 7 | --EXCEPTION-- 8 | Twig_Error_Loader: Template "foo.html" is not defined in "index.twig" at line 2. 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/undefined_trait.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Exception for an undefined trait 3 | --TEMPLATE-- 4 | {% use 'foo' with foobar as bar %} 5 | --TEMPLATE(foo)-- 6 | {% block bar %} 7 | {% endblock %} 8 | --EXCEPTION-- 9 | Twig_Error_Runtime: Block "foobar" is not defined in trait "foo" in "index.twig" at line 2. 10 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/array_call.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports method calls 3 | --TEMPLATE-- 4 | {{ items.foo }} 5 | {{ items['foo'] }} 6 | {{ items[foo] }} 7 | {{ items[items[foo]] }} 8 | --DATA-- 9 | return array('foo' => 'bar', 'items' => array('foo' => 'bar', 'bar' => 'foo')) 10 | --EXPECT-- 11 | bar 12 | bar 13 | foo 14 | bar 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/bitwise.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports bitwise operations 3 | --TEMPLATE-- 4 | {{ 1 b-and 5 }} 5 | {{ 1 b-or 5 }} 6 | {{ 1 b-xor 5 }} 7 | {{ (1 and 0 b-or 0) is same as(1 and (0 b-or 0)) ? 'ok' : 'ko' }} 8 | --DATA-- 9 | return array() 10 | --EXPECT-- 11 | 1 12 | 5 13 | 4 14 | ok 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/comparison.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports comparison operators (==, !=, <, >, >=, <=) 3 | --TEMPLATE-- 4 | {{ 1 > 2 }}/{{ 1 > 1 }}/{{ 1 >= 2 }}/{{ 1 >= 1 }} 5 | {{ 1 < 2 }}/{{ 1 < 1 }}/{{ 1 <= 2 }}/{{ 1 <= 1 }} 6 | {{ 1 == 1 }}/{{ 1 == 2 }} 7 | {{ 1 != 1 }}/{{ 1 != 2 }} 8 | --DATA-- 9 | return array() 10 | --EXPECT-- 11 | ///1 12 | 1//1/1 13 | 1/ 14 | /1 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/divisibleby.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports the "divisible by" operator 3 | --TEMPLATE-- 4 | {{ 8 is divisible by(2) ? 'OK' }} 5 | {{ 8 is not divisible by(3) ? 'OK' }} 6 | {{ 8 is divisible by (2) ? 'OK' }} 7 | {{ 8 is not 8 | divisible 9 | by 10 | (3) ? 'OK' }} 11 | --DATA-- 12 | return array() 13 | --EXPECT-- 14 | OK 15 | OK 16 | OK 17 | OK 18 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/grouping.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports grouping of expressions 3 | --TEMPLATE-- 4 | {{ (2 + 2) / 2 }} 5 | --DATA-- 6 | return array() 7 | --EXPECT-- 8 | 2 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/literals.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports literals 3 | --TEMPLATE-- 4 | 1 {{ true }} 5 | 2 {{ TRUE }} 6 | 3 {{ false }} 7 | 4 {{ FALSE }} 8 | 5 {{ none }} 9 | 6 {{ NONE }} 10 | 7 {{ null }} 11 | 8 {{ NULL }} 12 | --DATA-- 13 | return array() 14 | --EXPECT-- 15 | 1 1 16 | 2 1 17 | 3 18 | 4 19 | 5 20 | 6 21 | 7 22 | 8 23 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/matches.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports the "matches" operator 3 | --TEMPLATE-- 4 | {{ 'foo' matches '/o/' ? 'OK' : 'KO' }} 5 | {{ 'foo' matches '/^fo/' ? 'OK' : 'KO' }} 6 | {{ 'foo' matches '/O/i' ? 'OK' : 'KO' }} 7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 | OK 11 | OK 12 | OK 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/negative_numbers.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig manages negative numbers correctly 3 | --TEMPLATE-- 4 | {{ -1 }} 5 | {{ - 1 }} 6 | {{ 5 - 1 }} 7 | {{ 5-1 }} 8 | {{ 5 + -1 }} 9 | {{ 5 + - 1 }} 10 | --DATA-- 11 | return array() 12 | --EXPECT-- 13 | -1 14 | -1 15 | 4 16 | 4 17 | 4 18 | 4 19 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/operators_as_variables.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig allows to use named operators as variable names 3 | --TEMPLATE-- 4 | {% for match in matches %} 5 | {{- match }} 6 | {% endfor %} 7 | {{ in }} 8 | {{ is }} 9 | --DATA-- 10 | return array('matches' => array(1, 2, 3), 'in' => 'in', 'is' => 'is') 11 | --EXPECT-- 12 | 1 13 | 2 14 | 3 15 | in 16 | is 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/postfix.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig parses postfix expressions 3 | --TEMPLATE-- 4 | {% import _self as macros %} 5 | 6 | {% macro foo() %}foo{% endmacro %} 7 | 8 | {{ 'a' }} 9 | {{ 'a'|upper }} 10 | {{ ('a')|upper }} 11 | {{ -1|upper }} 12 | {{ macros.foo() }} 13 | {{ (macros).foo() }} 14 | --DATA-- 15 | return array(); 16 | --EXPECT-- 17 | a 18 | A 19 | A 20 | -1 21 | foo 22 | foo 23 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/sameas.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports the "same as" operator 3 | --TEMPLATE-- 4 | {{ 1 is same as(1) ? 'OK' }} 5 | {{ 1 is not same as(true) ? 'OK' }} 6 | {{ 1 is same as(1) ? 'OK' }} 7 | {{ 1 is not same as(true) ? 'OK' }} 8 | {{ 1 is same as (1) ? 'OK' }} 9 | {{ 1 is not 10 | same 11 | as 12 | (true) ? 'OK' }} 13 | --DATA-- 14 | return array() 15 | --EXPECT-- 16 | OK 17 | OK 18 | OK 19 | OK 20 | OK 21 | OK 22 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/strings.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports string interpolation 3 | --TEMPLATE-- 4 | {{ "foo #{"foo #{bar} baz"} baz" }} 5 | {{ "foo #{bar}#{bar} baz" }} 6 | --DATA-- 7 | return array('bar' => 'BAR'); 8 | --EXPECT-- 9 | foo foo BAR baz baz 10 | foo BARBAR baz 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/ternary_operator.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports the ternary operator 3 | --TEMPLATE-- 4 | {{ 1 ? 'YES' : 'NO' }} 5 | {{ 0 ? 'YES' : 'NO' }} 6 | {{ 0 ? 'YES' : (1 ? 'YES1' : 'NO1') }} 7 | {{ 0 ? 'YES' : (0 ? 'YES1' : 'NO1') }} 8 | {{ 1 == 1 ? 'foo
':'' }} 9 | {{ foo ~ (bar ? ('-' ~ bar) : '') }} 10 | --DATA-- 11 | return array('foo' => 'foo', 'bar' => 'bar') 12 | --EXPECT-- 13 | YES 14 | NO 15 | YES1 16 | NO1 17 | foo
18 | foo-bar 19 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/ternary_operator_noelse.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports the ternary operator 3 | --TEMPLATE-- 4 | {{ 1 ? 'YES' }} 5 | {{ 0 ? 'YES' }} 6 | --DATA-- 7 | return array() 8 | --EXPECT-- 9 | YES 10 | 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/ternary_operator_nothen.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports the ternary operator 3 | --TEMPLATE-- 4 | {{ 'YES' ?: 'NO' }} 5 | {{ 0 ?: 'NO' }} 6 | --DATA-- 7 | return array() 8 | --EXPECT-- 9 | YES 10 | NO 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/two_word_operators_as_variables.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig does not allow to use two-word named operators as variable names 3 | --TEMPLATE-- 4 | {{ starts with }} 5 | --DATA-- 6 | return array() 7 | --EXCEPTION-- 8 | Twig_Error_Syntax: Unexpected token "operator" of value "starts with" in "index.twig" at line 2. 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/unary.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports unary operators (not, -, +) 3 | --TEMPLATE-- 4 | {{ not 1 }}/{{ not 0 }} 5 | {{ +1 + 1 }}/{{ -1 - 1 }} 6 | {{ not (false or true) }} 7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 | /1 11 | 2/-2 12 | 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/unary_precedence.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig unary operators precedence 3 | --TEMPLATE-- 4 | {{ -1 - 1 }} 5 | {{ -1 - -1 }} 6 | {{ -1 * -1 }} 7 | {{ 4 / -1 * 5 }} 8 | --DATA-- 9 | return array() 10 | --EXPECT-- 11 | -2 12 | 0 13 | 1 14 | -20 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/batch_with_keys.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "batch" filter preserves array keys 3 | --TEMPLATE-- 4 | {{ {'foo': 'bar', 'key': 'value'}|batch(4)|first|keys|join(',') }} 5 | {{ {'foo': 'bar', 'key': 'value'}|batch(4, 'fill')|first|keys|join(',') }} 6 | --DATA-- 7 | return array() 8 | --EXPECT-- 9 | foo,key 10 | foo,key,0,1 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/batch_with_zero_elements.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "batch" filter with zero elements 3 | --TEMPLATE-- 4 | {{ []|batch(3)|length }} 5 | {{ []|batch(3, 'fill')|length }} 6 | --DATA-- 7 | return array() 8 | --EXPECT-- 9 | 0 10 | 0 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/convert_encoding.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "convert_encoding" filter 3 | --CONDITION-- 4 | function_exists('iconv') || function_exists('mb_convert_encoding') 5 | --TEMPLATE-- 6 | {{ "愛していますか?"|convert_encoding('ISO-2022-JP', 'UTF-8')|convert_encoding('UTF-8', 'ISO-2022-JP') }} 7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 | 愛していますか? 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/date_default_format.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "date" filter 3 | --TEMPLATE-- 4 | {{ date1|date }} 5 | {{ date1|date('d/m/Y') }} 6 | --DATA-- 7 | date_default_timezone_set('UTC'); 8 | $twig->getExtension('Twig_Extension_Core')->setDateFormat('Y-m-d', '%d days %h hours'); 9 | return array( 10 | 'date1' => mktime(13, 45, 0, 10, 4, 2010), 11 | ) 12 | --EXPECT-- 13 | 2010-10-04 14 | 04/10/2010 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/date_modify.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "date_modify" filter 3 | --TEMPLATE-- 4 | {{ date1|date_modify('-1day')|date('Y-m-d H:i:s') }} 5 | {{ date2|date_modify('-1day')|date('Y-m-d H:i:s') }} 6 | --DATA-- 7 | date_default_timezone_set('UTC'); 8 | return array( 9 | 'date1' => '2010-10-04 13:45', 10 | 'date2' => new DateTime('2010-10-04 13:45'), 11 | ) 12 | --EXPECT-- 13 | 2010-10-03 13:45:00 14 | 2010-10-03 13:45:00 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/dynamic_filter.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | dynamic filter 3 | --TEMPLATE-- 4 | {{ 'bar'|foo_path }} 5 | {{ 'bar'|a_foo_b_bar }} 6 | --DATA-- 7 | return array() 8 | --EXPECT-- 9 | foo/bar 10 | a/b/bar 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/escape.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "escape" filter 3 | --TEMPLATE-- 4 | {{ "foo
"|e }} 5 | --DATA-- 6 | return array() 7 | --EXPECT-- 8 | foo <br /> 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/escape_html_attr.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "escape" filter does not escape with the html strategy when using the html_attr strategy 3 | --TEMPLATE-- 4 | {{ '
'|escape('html_attr') }} 5 | --DATA-- 6 | return array() 7 | --EXPECT-- 8 | <br /> 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/escape_non_supported_charset.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "escape" filter 3 | --TEMPLATE-- 4 | {{ "愛していますか?
"|e }} 5 | --DATA-- 6 | return array() 7 | --EXPECT-- 8 | 愛していますか? <br /> 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/first.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "first" filter 3 | --TEMPLATE-- 4 | {{ [1, 2, 3, 4]|first }} 5 | {{ {a: 1, b: 2, c: 3, d: 4}|first }} 6 | {{ '1234'|first }} 7 | {{ arr|first }} 8 | {{ 'Ä€é'|first }} 9 | {{ ''|first }} 10 | --DATA-- 11 | return array('arr' => new ArrayObject(array(1, 2, 3, 4))) 12 | --EXPECT-- 13 | 1 14 | 1 15 | 1 16 | 1 17 | Ä 18 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/force_escape.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "escape" filter 3 | --TEMPLATE-- 4 | {% set foo %} 5 | foo
6 | {% endset %} 7 | 8 | {{ foo|e('html') -}} 9 | {{ foo|e('js') }} 10 | {% autoescape true %} 11 | {{ foo }} 12 | {% endautoescape %} 13 | --DATA-- 14 | return array() 15 | --EXPECT-- 16 | foo<br /> 17 | \x20\x20\x20\x20foo\x3Cbr\x20\x2F\x3E\x0A 18 | foo
19 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/format.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "format" filter 3 | --TEMPLATE-- 4 | {{ string|format(foo, 3) }} 5 | --DATA-- 6 | return array('string' => '%s/%d', 'foo' => 'bar') 7 | --EXPECT-- 8 | bar/3 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/join.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "join" filter 3 | --TEMPLATE-- 4 | {{ ["foo", "bar"]|join(', ') }} 5 | {{ foo|join(', ') }} 6 | {{ bar|join(', ') }} 7 | --DATA-- 8 | return array('foo' => new TwigTestFoo(), 'bar' => new ArrayObject(array(3, 4))) 9 | --EXPECT-- 10 | foo, bar 11 | 1, 2 12 | 3, 4 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/json_encode.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "json_encode" filter 3 | --TEMPLATE-- 4 | {{ "foo"|json_encode|raw }} 5 | {{ foo|json_encode|raw }} 6 | {{ [foo, "foo"]|json_encode|raw }} 7 | --DATA-- 8 | return array('foo' => new Twig_Markup('foo', 'UTF-8')) 9 | --EXPECT-- 10 | "foo" 11 | "foo" 12 | ["foo","foo"] 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/last.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "last" filter 3 | --TEMPLATE-- 4 | {{ [1, 2, 3, 4]|last }} 5 | {{ {a: 1, b: 2, c: 3, d: 4}|last }} 6 | {{ '1234'|last }} 7 | {{ arr|last }} 8 | {{ 'Ä€é'|last }} 9 | {{ ''|last }} 10 | --DATA-- 11 | return array('arr' => new ArrayObject(array(1, 2, 3, 4))) 12 | --EXPECT-- 13 | 4 14 | 4 15 | 4 16 | 4 17 | é 18 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/length.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "length" filter 3 | --TEMPLATE-- 4 | {{ array|length }} 5 | {{ string|length }} 6 | {{ number|length }} 7 | {{ markup|length }} 8 | --DATA-- 9 | return array('array' => array(1, 4), 'string' => 'foo', 'number' => 1000, 'markup' => new Twig_Markup('foo', 'UTF-8')) 10 | --EXPECT-- 11 | 2 12 | 3 13 | 4 14 | 3 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/length_utf8.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "length" filter 3 | --CONDITION-- 4 | function_exists('mb_get_info') 5 | --TEMPLATE-- 6 | {{ string|length }} 7 | {{ markup|length }} 8 | --DATA-- 9 | return array('string' => 'été', 'markup' => new Twig_Markup('foo', 'UTF-8')) 10 | --EXPECT-- 11 | 3 12 | 3 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/number_format.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "number_format" filter 3 | --TEMPLATE-- 4 | {{ 20|number_format }} 5 | {{ 20.25|number_format }} 6 | {{ 20.25|number_format(2) }} 7 | {{ 20.25|number_format(2, ',') }} 8 | {{ 1020.25|number_format(2, ',') }} 9 | {{ 1020.25|number_format(2, ',', '.') }} 10 | --DATA-- 11 | return array(); 12 | --EXPECT-- 13 | 20 14 | 20 15 | 20.25 16 | 20,25 17 | 1,020,25 18 | 1.020,25 19 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/replace_invalid_arg.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Exception for invalid argument type in replace call 3 | --TEMPLATE-- 4 | {{ 'test %foo%'|replace(stdClass) }} 5 | --DATA-- 6 | return array('stdClass' => new stdClass()) 7 | --EXCEPTION-- 8 | Twig_Error_Runtime: The "replace" filter expects an array or "Traversable" as replace values, got "stdClass" in "index.twig" at line 2. 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/round.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "round" filter 3 | --TEMPLATE-- 4 | {{ 2.7|round }} 5 | {{ 2.1|round }} 6 | {{ 2.1234|round(3, 'floor') }} 7 | {{ 2.1|round(0, 'ceil') }} 8 | 9 | {{ 21.3|round(-1)}} 10 | {{ 21.3|round(-1, 'ceil')}} 11 | {{ 21.3|round(-1, 'floor')}} 12 | --DATA-- 13 | return array() 14 | --EXPECT-- 15 | 3 16 | 2 17 | 2.123 18 | 3 19 | 20 | 20 21 | 30 22 | 20 23 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/sort.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "sort" filter 3 | --TEMPLATE-- 4 | {{ array1|sort|join }} 5 | {{ array2|sort|join }} 6 | {{ traversable|sort|join }} 7 | --DATA-- 8 | return array('array1' => array(4, 1), 'array2' => array('foo', 'bar'), 'traversable' => new ArrayObject(array(0 => 3, 1 => 2, 2 => 1))) 9 | --EXPECT-- 10 | 14 11 | barfoo 12 | 123 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/special_chars.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "§" custom filter 3 | --TEMPLATE-- 4 | {{ 'foo'|§ }} 5 | --DATA-- 6 | return array() 7 | --EXPECT-- 8 | §foo§ 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/static_calls.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Filters as static method calls 3 | --TEMPLATE-- 4 | {{ 'foo'|static_call_string }} 5 | {{ 'foo'|static_call_array }} 6 | --DATA-- 7 | return array('foo' => 'foo') 8 | --EXPECT-- 9 | *foo* 10 | *foo* 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/filters/trim.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "trim" filter 3 | --TEMPLATE-- 4 | {{ " I like Twig. "|trim }} 5 | {{ text|trim }} 6 | {{ " foo/"|trim("/") }} 7 | --DATA-- 8 | return array('text' => " If you have some HTML it will be escaped. ") 9 | --EXPECT-- 10 | I like Twig. 11 | If you have some <strong>HTML</strong> it will be escaped. 12 | foo 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/block.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "block" function 3 | --TEMPLATE-- 4 | {% extends 'base.twig' %} 5 | {% block bar %}BAR{% endblock %} 6 | --TEMPLATE(base.twig)-- 7 | {% block foo %}{{ block('bar') }}{% endblock %} 8 | {% block bar %}BAR_BASE{% endblock %} 9 | --DATA-- 10 | return array() 11 | --EXPECT-- 12 | BARBAR 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/constant.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "constant" function 3 | --TEMPLATE-- 4 | {{ constant('DATE_W3C') == expect ? 'true' : 'false' }} 5 | {{ constant('ARRAY_AS_PROPS', object) }} 6 | --DATA-- 7 | return array('expect' => DATE_W3C, 'object' => new ArrayObject(array('hi'))); 8 | --EXPECT-- 9 | true 10 | 2 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/cycle.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "cycle" function 3 | --TEMPLATE-- 4 | {% for i in 0..6 %} 5 | {{ cycle(array1, i) }}-{{ cycle(array2, i) }} 6 | {% endfor %} 7 | --DATA-- 8 | return array('array1' => array('odd', 'even'), 'array2' => array('apple', 'orange', 'citrus')) 9 | --EXPECT-- 10 | odd-apple 11 | even-orange 12 | odd-citrus 13 | even-apple 14 | odd-orange 15 | even-citrus 16 | odd-apple 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/date_namedargs.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "date" function 3 | --TEMPLATE-- 4 | {{ date(date, "America/New_York")|date('d/m/Y H:i:s P', false) }} 5 | {{ date(timezone="America/New_York", date=date)|date('d/m/Y H:i:s P', false) }} 6 | --DATA-- 7 | date_default_timezone_set('UTC'); 8 | return array('date' => mktime(13, 45, 0, 10, 4, 2010)) 9 | --EXPECT-- 10 | 04/10/2010 09:45:00 -04:00 11 | 04/10/2010 09:45:00 -04:00 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/dump.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "dump" function 3 | --CONDITION-- 4 | !extension_loaded('xdebug') 5 | --TEMPLATE-- 6 | {{ dump('foo') }} 7 | {{ dump('foo', 'bar') }} 8 | --DATA-- 9 | return array('foo' => 'foo', 'bar' => 'bar') 10 | --CONFIG-- 11 | return array('debug' => true, 'autoescape' => false); 12 | --EXPECT-- 13 | string(3) "foo" 14 | 15 | string(3) "foo" 16 | string(3) "bar" 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/dynamic_function.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | dynamic function 3 | --TEMPLATE-- 4 | {{ foo_path('bar') }} 5 | {{ a_foo_b_bar('bar') }} 6 | --DATA-- 7 | return array() 8 | --EXPECT-- 9 | foo/bar 10 | a/b/bar 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/assignment.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" function 3 | --TEMPLATE-- 4 | {% set tmp = include("foo.twig") %} 5 | 6 | FOO{{ tmp }}BAR 7 | --TEMPLATE(foo.twig)-- 8 | FOOBAR 9 | --DATA-- 10 | return array() 11 | --EXPECT-- 12 | FOO 13 | FOOBARBAR 14 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/autoescaping.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" function is safe for auto-escaping 3 | --TEMPLATE-- 4 | {{ include("foo.twig") }} 5 | --TEMPLATE(foo.twig)-- 6 |

Test

7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 |

Test

11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/basic.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" function 3 | --TEMPLATE-- 4 | FOO 5 | {{ include("foo.twig") }} 6 | 7 | BAR 8 | --TEMPLATE(foo.twig)-- 9 | FOOBAR 10 | --DATA-- 11 | return array() 12 | --EXPECT-- 13 | FOO 14 | 15 | FOOBAR 16 | 17 | BAR 18 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/expression.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" function allows expressions for the template to include 3 | --TEMPLATE-- 4 | FOO 5 | {{ include(foo) }} 6 | 7 | BAR 8 | --TEMPLATE(foo.twig)-- 9 | FOOBAR 10 | --DATA-- 11 | return array('foo' => 'foo.twig') 12 | --EXPECT-- 13 | FOO 14 | 15 | FOOBAR 16 | 17 | BAR 18 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/ignore_missing.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" function 3 | --TEMPLATE-- 4 | {{ include(["foo.twig", "bar.twig"], ignore_missing = true) }} 5 | {{ include("foo.twig", ignore_missing = true) }} 6 | {{ include("foo.twig", ignore_missing = true, variables = {}) }} 7 | {{ include("foo.twig", ignore_missing = true, variables = {}, with_context = true) }} 8 | --DATA-- 9 | return array() 10 | --EXPECT-- 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/missing.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" function 3 | --TEMPLATE-- 4 | {{ include("foo.twig") }} 5 | --DATA-- 6 | return array(); 7 | --EXCEPTION-- 8 | Twig_Error_Loader: Template "foo.twig" is not defined in "index.twig" at line 2. 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/missing_nested.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" function 3 | --TEMPLATE-- 4 | {% extends "base.twig" %} 5 | 6 | {% block content %} 7 | {{ parent() }} 8 | {% endblock %} 9 | --TEMPLATE(base.twig)-- 10 | {% block content %} 11 | {{ include("foo.twig") }} 12 | {% endblock %} 13 | --DATA-- 14 | return array(); 15 | --EXCEPTION-- 16 | Twig_Error_Loader: Template "foo.twig" is not defined in "base.twig" at line 3. 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/sandbox.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" tag sandboxed 3 | --TEMPLATE-- 4 | {{ include("foo.twig", sandboxed = true) }} 5 | --TEMPLATE(foo.twig)-- 6 | 7 | 8 | {{ foo|e }} 9 | {{ foo|e }} 10 | --DATA-- 11 | return array() 12 | --EXCEPTION-- 13 | Twig_Sandbox_SecurityNotAllowedFilterError: Filter "e" is not allowed in "foo.twig" at line 4. 14 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/sandbox_disabling.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" tag sandboxed 3 | --TEMPLATE-- 4 | {{ include("foo.twig", sandboxed = true) }} 5 | {{ include("bar.twig") }} 6 | --TEMPLATE(foo.twig)-- 7 | foo 8 | --TEMPLATE(bar.twig)-- 9 | {{ foo|e }} 10 | --DATA-- 11 | return array('foo' => 'bar
') 12 | --EXPECT-- 13 | foo 14 | 15 | 16 | bar<br /> 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/sandbox_disabling_ignore_missing.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" tag sandboxed 3 | --TEMPLATE-- 4 | {{ include("unknown.twig", sandboxed = true, ignore_missing = true) }} 5 | {{ include("bar.twig") }} 6 | --TEMPLATE(bar.twig)-- 7 | {{ foo|e }} 8 | --DATA-- 9 | return array('foo' => 'bar
') 10 | --EXPECT-- 11 | 12 | 13 | bar<br /> 14 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/template_instance.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" function accepts Twig_Template instance 3 | --TEMPLATE-- 4 | {{ include(foo) }} FOO 5 | --TEMPLATE(foo.twig)-- 6 | BAR 7 | --DATA-- 8 | return array('foo' => $twig->loadTemplate('foo.twig')) 9 | --EXPECT-- 10 | BAR FOO 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/templates_as_array.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" function 3 | --TEMPLATE-- 4 | {{ include(["foo.twig", "bar.twig"]) }} 5 | {{- include(["bar.twig", "foo.twig"]) }} 6 | --TEMPLATE(foo.twig)-- 7 | foo 8 | --DATA-- 9 | return array() 10 | --EXPECT-- 11 | foo 12 | foo 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/with_variables.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" function accept variables 3 | --TEMPLATE-- 4 | {{ include("foo.twig", {'foo': 'bar'}) }} 5 | {{- include("foo.twig", vars) }} 6 | --TEMPLATE(foo.twig)-- 7 | {{ foo }} 8 | --DATA-- 9 | return array('vars' => array('foo' => 'bar')) 10 | --EXPECT-- 11 | bar 12 | bar 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/magic_call.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | __call calls 3 | --TEMPLATE-- 4 | {{ 'foo'|magic_call }} 5 | --DATA-- 6 | return array() 7 | --EXPECT-- 8 | magic_foo 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/magic_call53.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | __staticCall calls 3 | --CONDITION-- 4 | version_compare(phpversion(), '5.3.0', '>=') 5 | --TEMPLATE-- 6 | {{ 'foo'|magic_call_string }} 7 | {{ 'foo'|magic_call_array }} 8 | --DATA-- 9 | return array() 10 | --EXPECT-- 11 | static_magic_foo 12 | static_magic_foo 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/max.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "max" function 3 | --TEMPLATE-- 4 | {{ max([2, 1, 3, 5, 4]) }} 5 | {{ max(2, 1, 3, 5, 4) }} 6 | {{ max({2:"two", 1:"one", 3:"three", 5:"five", 4:"for"}) }} 7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 | 5 11 | 5 12 | two 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/min.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "min" function 3 | --TEMPLATE-- 4 | {{ min(2, 1, 3, 5, 4) }} 5 | {{ min([2, 1, 3, 5, 4]) }} 6 | {{ min({2:"two", 1:"one", 3:"three", 5:"five", 4:"for"}) }} 7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 | 1 11 | 1 12 | five 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/range.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "range" function 3 | --TEMPLATE-- 4 | {{ range(low=0+1, high=10+0, step=2)|join(',') }} 5 | --DATA-- 6 | return array() 7 | --EXPECT-- 8 | 1,3,5,7,9 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/source.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "source" function 3 | --TEMPLATE-- 4 | FOO 5 | {{ source("foo.twig") }} 6 | 7 | BAR 8 | --TEMPLATE(foo.twig)-- 9 | {{ foo }}
10 | --DATA-- 11 | return array() 12 | --EXPECT-- 13 | FOO 14 | 15 | {{ foo }}
16 | 17 | BAR 18 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/special_chars.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "§" custom function 3 | --TEMPLATE-- 4 | {{ §('foo') }} 5 | --DATA-- 6 | return array() 7 | --EXPECT-- 8 | §foo§ 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/functions/static_calls.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Functions as static method calls 3 | --TEMPLATE-- 4 | {{ static_call_string('foo') }} 5 | {{ static_call_array('foo') }} 6 | --DATA-- 7 | return array('foo' => 'foo') 8 | --EXPECT-- 9 | *foo* 10 | *foo* 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/macros/default_values.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | macro 3 | --TEMPLATE-- 4 | {% from _self import test %} 5 | 6 | {% macro test(a, b = 'bar') -%} 7 | {{ a }}{{ b }} 8 | {%- endmacro %} 9 | 10 | {{ test('foo') }} 11 | {{ test('bar', 'foo') }} 12 | --DATA-- 13 | return array(); 14 | --EXPECT-- 15 | foobar 16 | barfoo 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/macros/nested_calls.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | macro 3 | --TEMPLATE-- 4 | {% import _self as macros %} 5 | 6 | {% macro foo(data) %} 7 | {{ data }} 8 | {% endmacro %} 9 | 10 | {% macro bar() %} 11 |
12 | {% endmacro %} 13 | 14 | {{ macros.foo(macros.bar()) }} 15 | --DATA-- 16 | return array(); 17 | --EXPECT-- 18 |
19 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/macros/reserved_variables.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | macro 3 | --TEMPLATE-- 4 | {% from _self import test %} 5 | 6 | {% macro test(this) -%} 7 | {{ this }} 8 | {%- endmacro %} 9 | 10 | {{ test(this) }} 11 | --DATA-- 12 | return array('this' => 'foo'); 13 | --EXPECT-- 14 | foo 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/macros/varargs_argument.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | macro with varargs argument 3 | --TEMPLATE-- 4 | {% macro test(varargs) %} 5 | {% endmacro %} 6 | --EXCEPTION-- 7 | Twig_Error_Syntax: The argument "varargs" in macro "test" cannot be defined because the variable "varargs" is reserved for arbitrary arguments in "index.twig" at line 2. 8 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/macros/with_filters.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | macro with a filter 3 | --TEMPLATE-- 4 | {% import _self as test %} 5 | 6 | {% macro test() %} 7 | {% filter escape %}foo
{% endfilter %} 8 | {% endmacro %} 9 | 10 | {{ test.test() }} 11 | --DATA-- 12 | return array(); 13 | --EXPECT-- 14 | foo<br /> 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/regression/combined_debug_info.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Exception with bad line number 3 | --TEMPLATE-- 4 | {% block content %} 5 | {{ foo }} 6 | {{ include("foo") }} 7 | {% endblock %} 8 | index 9 | --TEMPLATE(foo)-- 10 | foo 11 | {{ foo.bar }} 12 | --DATA-- 13 | return array('foo' => 'foo'); 14 | --EXCEPTION-- 15 | Twig_Error_Runtime: Impossible to access an attribute ("bar") on a string variable ("foo") in "foo" at line 3. 16 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/regression/empty_token.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig outputs 0 nodes correctly 3 | --TEMPLATE-- 4 | {{ foo }}0{{ foo }} 5 | --DATA-- 6 | return array('foo' => 'foo') 7 | --EXPECT-- 8 | foo0foo 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/regression/multi_word_tests.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig allows multi-word tests without a custom node class 3 | --TEMPLATE-- 4 | {{ 'foo' is multi word ? 'yes' : 'no' }} 5 | {{ 'foo bar' is multi word ? 'yes' : 'no' }} 6 | --DATA-- 7 | return array() 8 | --EXPECT-- 9 | no 10 | yes 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/regression/strings_like_numbers.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig does not confuse strings with integers in getAttribute() 3 | --TEMPLATE-- 4 | {{ hash['2e2'] }} 5 | --DATA-- 6 | return array('hash' => array('2e2' => 'works')) 7 | --EXPECT-- 8 | works 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/blocks.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "autoescape" tag applies escaping on embedded blocks 3 | --TEMPLATE-- 4 | {% autoescape 'html' %} 5 | {% block foo %} 6 | {{ var }} 7 | {% endblock %} 8 | {% endautoescape %} 9 | --DATA-- 10 | return array('var' => '
') 11 | --EXPECT-- 12 | <br /> 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/double_escaping.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "autoescape" tag does not double-escape 3 | --TEMPLATE-- 4 | {% autoescape 'html' %} 5 | {{ var|escape }} 6 | {% endautoescape %} 7 | --DATA-- 8 | return array('var' => '
') 9 | --EXPECT-- 10 | <br /> 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/raw.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "autoescape" tag does not escape when raw is used as a filter 3 | --TEMPLATE-- 4 | {% autoescape 'html' %} 5 | {{ var|raw }} 6 | {% endautoescape %} 7 | --DATA-- 8 | return array('var' => '
') 9 | --EXPECT-- 10 |
11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/strategy.legacy.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "autoescape" tag accepts an escaping strategy 3 | --TEMPLATE-- 4 | {% autoescape true js %}{{ var }}{% endautoescape %} 5 | 6 | {% autoescape true html %}{{ var }}{% endautoescape %} 7 | --DATA-- 8 | return array('var' => '
"') 9 | --EXPECT-- 10 | \x3Cbr\x20\x2F\x3E\x22 11 | <br />" 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/strategy.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "autoescape" tag accepts an escaping strategy 3 | --TEMPLATE-- 4 | {% autoescape 'js' %}{{ var }}{% endautoescape %} 5 | 6 | {% autoescape 'html' %}{{ var }}{% endautoescape %} 7 | --DATA-- 8 | return array('var' => '
"') 9 | --EXPECT-- 10 | \x3Cbr\x20\x2F\x3E\x22 11 | <br />" 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/block/basic.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "block" tag 3 | --TEMPLATE-- 4 | {% block title1 %}FOO{% endblock %} 5 | {% block title2 foo|lower %} 6 | --TEMPLATE(foo.twig)-- 7 | {% block content %}{% endblock %} 8 | --DATA-- 9 | return array('foo' => 'bar') 10 | --EXPECT-- 11 | FOObar 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/block/block_unique_name.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "block" tag 3 | --TEMPLATE-- 4 | {% block content %} 5 | {% block content %} 6 | {% endblock %} 7 | {% endblock %} 8 | --DATA-- 9 | return array() 10 | --EXCEPTION-- 11 | Twig_Error_Syntax: The block 'content' has already been defined line 2 in "index.twig" at line 3. 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/block/special_chars.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "§" special chars in a block name 3 | --TEMPLATE-- 4 | {% block § %} 5 | § 6 | {% endblock § %} 7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 | § 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/embed/error_line.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "embed" tag 3 | --TEMPLATE(index.twig)-- 4 | FOO 5 | {% embed "foo.twig" %} 6 | {% block c1 %} 7 | {{ nothing }} 8 | {% endblock %} 9 | {% endembed %} 10 | BAR 11 | --TEMPLATE(foo.twig)-- 12 | {% block c1 %}{% endblock %} 13 | --DATA-- 14 | return array() 15 | --EXCEPTION-- 16 | Twig_Error_Runtime: Variable "nothing" does not exist in "index.twig" at line 5. 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/filter/basic.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "filter" tag applies a filter on its children 3 | --TEMPLATE-- 4 | {% filter upper %} 5 | Some text with a {{ var }} 6 | {% endfilter %} 7 | --DATA-- 8 | return array('var' => 'var') 9 | --EXPECT-- 10 | SOME TEXT WITH A VAR 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/filter/json_encode.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "filter" tag applies a filter on its children 3 | --TEMPLATE-- 4 | {% filter json_encode|raw %}test{% endfilter %} 5 | --DATA-- 6 | return array() 7 | --EXPECT-- 8 | "test" 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/filter/multiple.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "filter" tags accept multiple chained filters 3 | --TEMPLATE-- 4 | {% filter lower|title %} 5 | {{ var }} 6 | {% endfilter %} 7 | --DATA-- 8 | return array('var' => 'VAR') 9 | --EXPECT-- 10 | Var 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/filter/nested.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "filter" tags can be nested at will 3 | --TEMPLATE-- 4 | {% filter lower|title %} 5 | {{ var }} 6 | {% filter upper %} 7 | {{ var }} 8 | {% endfilter %} 9 | {{ var }} 10 | {% endfilter %} 11 | --DATA-- 12 | return array('var' => 'var') 13 | --EXPECT-- 14 | Var 15 | Var 16 | Var 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/filter/with_for_tag.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "filter" tag applies the filter on "for" tags 3 | --TEMPLATE-- 4 | {% filter upper %} 5 | {% for item in items %} 6 | {{ item }} 7 | {% endfor %} 8 | {% endfilter %} 9 | --DATA-- 10 | return array('items' => array('a', 'b')) 11 | --EXPECT-- 12 | A 13 | B 14 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/condition.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "for" tag takes a condition 3 | --TEMPLATE-- 4 | {% for i in 1..5 if i is odd -%} 5 | {{ loop.index }}.{{ i }}{{ foo.bar }} 6 | {% endfor %} 7 | --DATA-- 8 | return array('foo' => array('bar' => 'X')) 9 | --CONFIG-- 10 | return array('strict_variables' => false) 11 | --EXPECT-- 12 | 1.1X 13 | 2.3X 14 | 3.5X 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/context.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "for" tag keeps the context safe 3 | --TEMPLATE-- 4 | {% for item in items %} 5 | {% for item in items %} 6 | * {{ item }} 7 | {% endfor %} 8 | * {{ item }} 9 | {% endfor %} 10 | --DATA-- 11 | return array('items' => array('a', 'b')) 12 | --EXPECT-- 13 | * a 14 | * b 15 | * a 16 | * a 17 | * b 18 | * b 19 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/inner_variables.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "for" tag does not reset inner variables 3 | --TEMPLATE-- 4 | {% for i in 1..2 %} 5 | {% for j in 0..2 %} 6 | {{k}}{% set k = k+1 %} {{ loop.parent.loop.index }} 7 | {% endfor %} 8 | {% endfor %} 9 | --DATA-- 10 | return array('k' => 0) 11 | --EXPECT-- 12 | 0 1 13 | 1 1 14 | 2 1 15 | 3 2 16 | 4 2 17 | 5 2 18 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/keys.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "for" tag can iterate over keys 3 | --TEMPLATE-- 4 | {% for key in items|keys %} 5 | * {{ key }} 6 | {% endfor %} 7 | --DATA-- 8 | return array('items' => array('a', 'b')) 9 | --EXPECT-- 10 | * 0 11 | * 1 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/keys_and_values.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "for" tag can iterate over keys and values 3 | --TEMPLATE-- 4 | {% for key, item in items %} 5 | * {{ key }}/{{ item }} 6 | {% endfor %} 7 | --DATA-- 8 | return array('items' => array('a', 'b')) 9 | --EXPECT-- 10 | * 0/a 11 | * 1/b 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/loop_context_local.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "for" tag adds a loop variable to the context locally 3 | --TEMPLATE-- 4 | {% for item in items %} 5 | {% endfor %} 6 | {% if loop is not defined %}WORKS{% endif %} 7 | --DATA-- 8 | return array('items' => array()) 9 | --EXPECT-- 10 | WORKS 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/loop_not_defined.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "for" tag 3 | --TEMPLATE-- 4 | {% for i, item in items if i > 0 %} 5 | {{ loop.last }} 6 | {% endfor %} 7 | --DATA-- 8 | return array('items' => array('a', 'b')) 9 | --EXCEPTION-- 10 | Twig_Error_Syntax: The "loop.last" variable is not defined when looping with a condition in "index.twig" at line 3. 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/loop_not_defined_cond.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "for" tag 3 | --TEMPLATE-- 4 | {% for i, item in items if loop.last > 0 %} 5 | {% endfor %} 6 | --DATA-- 7 | return array('items' => array('a', 'b')) 8 | --EXCEPTION-- 9 | Twig_Error_Syntax: The "loop" variable cannot be used in a looping condition in "index.twig" at line 2. 10 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/nested_else.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "for" tag can use an "else" clause 3 | --TEMPLATE-- 4 | {% for item in items %} 5 | {% for item in items1 %} 6 | * {{ item }} 7 | {% else %} 8 | no {{ item }} 9 | {% endfor %} 10 | {% else %} 11 | no item1 12 | {% endfor %} 13 | --DATA-- 14 | return array('items' => array('a', 'b'), 'items1' => array()) 15 | --EXPECT-- 16 | no a 17 | no b 18 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/values.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "for" tag iterates over item values 3 | --TEMPLATE-- 4 | {% for item in items %} 5 | * {{ item }} 6 | {% endfor %} 7 | --DATA-- 8 | return array('items' => array('a', 'b')) 9 | --EXPECT-- 10 | * a 11 | * b 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/from.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | global variables 3 | --TEMPLATE-- 4 | {% include "included.twig" %} 5 | {% from "included.twig" import foobar %} 6 | {{ foobar() }} 7 | --TEMPLATE(included.twig)-- 8 | {% macro foobar() %} 9 | called foobar 10 | {% endmacro %} 11 | --DATA-- 12 | return array(); 13 | --EXPECT-- 14 | called foobar 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/if/basic.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "if" creates a condition 3 | --TEMPLATE-- 4 | {% if a is defined %} 5 | {{ a }} 6 | {% elseif b is defined %} 7 | {{ b }} 8 | {% else %} 9 | NOTHING 10 | {% endif %} 11 | --DATA-- 12 | return array('a' => 'a') 13 | --EXPECT-- 14 | a 15 | --DATA-- 16 | return array('b' => 'b') 17 | --EXPECT-- 18 | b 19 | --DATA-- 20 | return array() 21 | --EXPECT-- 22 | NOTHING 23 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/if/expression.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "if" takes an expression as a test 3 | --TEMPLATE-- 4 | {% if a < 2 %} 5 | A1 6 | {% elseif a > 10 %} 7 | A2 8 | {% else %} 9 | A3 10 | {% endif %} 11 | --DATA-- 12 | return array('a' => 1) 13 | --EXPECT-- 14 | A1 15 | --DATA-- 16 | return array('a' => 12) 17 | --EXPECT-- 18 | A2 19 | --DATA-- 20 | return array('a' => 7) 21 | --EXPECT-- 22 | A3 23 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/basic.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" tag 3 | --TEMPLATE-- 4 | FOO 5 | {% include "foo.twig" %} 6 | 7 | BAR 8 | --TEMPLATE(foo.twig)-- 9 | FOOBAR 10 | --DATA-- 11 | return array() 12 | --EXPECT-- 13 | FOO 14 | 15 | FOOBAR 16 | BAR 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/expression.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" tag allows expressions for the template to include 3 | --TEMPLATE-- 4 | FOO 5 | {% include foo %} 6 | 7 | BAR 8 | --TEMPLATE(foo.twig)-- 9 | FOOBAR 10 | --DATA-- 11 | return array('foo' => 'foo.twig') 12 | --EXPECT-- 13 | FOO 14 | 15 | FOOBAR 16 | BAR 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/ignore_missing.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" tag 3 | --TEMPLATE-- 4 | {% include ["foo.twig", "bar.twig"] ignore missing %} 5 | {% include "foo.twig" ignore missing %} 6 | {% include "foo.twig" ignore missing with {} %} 7 | {% include "foo.twig" ignore missing with {} only %} 8 | --DATA-- 9 | return array() 10 | --EXPECT-- 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/missing.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" tag 3 | --TEMPLATE-- 4 | {% include "foo.twig" %} 5 | --DATA-- 6 | return array(); 7 | --EXCEPTION-- 8 | Twig_Error_Loader: Template "foo.twig" is not defined in "index.twig" at line 2. 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/missing_nested.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" tag 3 | --TEMPLATE-- 4 | {% extends "base.twig" %} 5 | 6 | {% block content %} 7 | {{ parent() }} 8 | {% endblock %} 9 | --TEMPLATE(base.twig)-- 10 | {% block content %} 11 | {% include "foo.twig" %} 12 | {% endblock %} 13 | --DATA-- 14 | return array(); 15 | --EXCEPTION-- 16 | Twig_Error_Loader: Template "foo.twig" is not defined in "base.twig" at line 3. 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/template_instance.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" tag accepts Twig_Template instance 3 | --TEMPLATE-- 4 | {% include foo %} FOO 5 | --TEMPLATE(foo.twig)-- 6 | BAR 7 | --DATA-- 8 | return array('foo' => $twig->loadTemplate('foo.twig')) 9 | --EXPECT-- 10 | BAR FOO 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/templates_as_array.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" tag 3 | --TEMPLATE-- 4 | {% include ["foo.twig", "bar.twig"] %} 5 | {% include ["bar.twig", "foo.twig"] %} 6 | --TEMPLATE(foo.twig)-- 7 | foo 8 | --DATA-- 9 | return array() 10 | --EXPECT-- 11 | foo 12 | foo 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/include/with_variables.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "include" tag accept variables 3 | --TEMPLATE-- 4 | {% include "foo.twig" with {'foo': 'bar'} %} 5 | {% include "foo.twig" with vars %} 6 | --TEMPLATE(foo.twig)-- 7 | {{ foo }} 8 | --DATA-- 9 | return array('vars' => array('foo' => 'bar')) 10 | --EXPECT-- 11 | bar 12 | bar 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/basic.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% extends "foo.twig" %} 5 | 6 | {% block content %} 7 | FOO 8 | {% endblock %} 9 | --TEMPLATE(foo.twig)-- 10 | {% block content %}{% endblock %} 11 | --DATA-- 12 | return array() 13 | --EXPECT-- 14 | FOO 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/conditional.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% extends standalone ? foo : 'bar.twig' %} 5 | 6 | {% block content %}{{ parent() }}FOO{% endblock %} 7 | --TEMPLATE(foo.twig)-- 8 | {% block content %}FOO{% endblock %} 9 | --TEMPLATE(bar.twig)-- 10 | {% block content %}BAR{% endblock %} 11 | --DATA-- 12 | return array('foo' => 'foo.twig', 'standalone' => true) 13 | --EXPECT-- 14 | FOOFOO 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/dynamic.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% extends foo %} 5 | 6 | {% block content %} 7 | FOO 8 | {% endblock %} 9 | --TEMPLATE(foo.twig)-- 10 | {% block content %}{% endblock %} 11 | --DATA-- 12 | return array('foo' => 'foo.twig') 13 | --EXPECT-- 14 | FOO 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/empty.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% extends "foo.twig" %} 5 | --TEMPLATE(foo.twig)-- 6 | {% block content %}FOO{% endblock %} 7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 | FOO 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/extends_as_array.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% extends ["foo.twig", "bar.twig"] %} 5 | --TEMPLATE(bar.twig)-- 6 | {% block content %} 7 | foo 8 | {% endblock %} 9 | --DATA-- 10 | return array() 11 | --EXPECT-- 12 | foo 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/extends_as_array_with_empty_name.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% extends ["", "bar.twig"] %} 5 | --TEMPLATE(bar.twig)-- 6 | {% block content %} 7 | foo 8 | {% endblock %} 9 | --DATA-- 10 | return array() 11 | --EXPECT-- 12 | foo 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/extends_as_array_with_null_name.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% extends [null, "bar.twig"] %} 5 | --TEMPLATE(bar.twig)-- 6 | {% block content %} 7 | foo 8 | {% endblock %} 9 | --DATA-- 10 | return array() 11 | --EXPECT-- 12 | foo 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/multiple.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% extends "layout.twig" %}{% block content %}{{ parent() }}index {% endblock %} 5 | --TEMPLATE(layout.twig)-- 6 | {% extends "base.twig" %}{% block content %}{{ parent() }}layout {% endblock %} 7 | --TEMPLATE(base.twig)-- 8 | {% block content %}base {% endblock %} 9 | --DATA-- 10 | return array() 11 | --EXPECT-- 12 | base layout index 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/nested_blocks_parent_only.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "block" tag 3 | --TEMPLATE-- 4 | {% block content %} 5 | CONTENT 6 | {%- block subcontent -%} 7 | SUBCONTENT 8 | {%- endblock -%} 9 | ENDCONTENT 10 | {% endblock %} 11 | --TEMPLATE(foo.twig)-- 12 | --DATA-- 13 | return array() 14 | --EXPECT-- 15 | CONTENTSUBCONTENTENDCONTENT 16 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/nested_inheritance.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% extends "layout.twig" %} 5 | {% block inside %}INSIDE{% endblock inside %} 6 | --TEMPLATE(layout.twig)-- 7 | {% extends "base.twig" %} 8 | {% block body %} 9 | {% block inside '' %} 10 | {% endblock body %} 11 | --TEMPLATE(base.twig)-- 12 | {% block body '' %} 13 | --DATA-- 14 | return array() 15 | --EXPECT-- 16 | INSIDE 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/parent.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% extends "foo.twig" %} 5 | 6 | {% block content %}{{ parent() }}FOO{{ parent() }}{% endblock %} 7 | --TEMPLATE(foo.twig)-- 8 | {% block content %}BAR{% endblock %} 9 | --DATA-- 10 | return array() 11 | --EXPECT-- 12 | BARFOOBAR 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/parent_change.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% extends foo ? 'foo.twig' : 'bar.twig' %} 5 | --TEMPLATE(foo.twig)-- 6 | FOO 7 | --TEMPLATE(bar.twig)-- 8 | BAR 9 | --DATA-- 10 | return array('foo' => true) 11 | --EXPECT-- 12 | FOO 13 | --DATA-- 14 | return array('foo' => false) 15 | --EXPECT-- 16 | BAR 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/parent_in_a_block.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag 3 | --TEMPLATE-- 4 | {% block content %} 5 | {% extends "foo.twig" %} 6 | {% endblock %} 7 | --EXCEPTION-- 8 | Twig_Error_Syntax: Cannot extend from a block in "index.twig" at line 3. 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/parent_without_extends.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "parent" tag 3 | --TEMPLATE-- 4 | {% block content %} 5 | {{ parent() }} 6 | {% endblock %} 7 | --EXCEPTION-- 8 | Twig_Error_Syntax: Calling "parent" on a template that does not extend nor "use" another template is forbidden in "index.twig" at line 3. 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/parent_without_extends_but_traits.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "parent" tag 3 | --TEMPLATE-- 4 | {% use 'foo.twig' %} 5 | 6 | {% block content %} 7 | {{ parent() }} 8 | {% endblock %} 9 | --TEMPLATE(foo.twig)-- 10 | {% block content %}BAR{% endblock %} 11 | --DATA-- 12 | return array() 13 | --EXPECT-- 14 | BAR 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/template_instance.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "extends" tag accepts Twig_Template instance 3 | --TEMPLATE-- 4 | {% extends foo %} 5 | 6 | {% block content %} 7 | {{ parent() }}FOO 8 | {% endblock %} 9 | --TEMPLATE(foo.twig)-- 10 | {% block content %}BAR{% endblock %} 11 | --DATA-- 12 | return array('foo' => $twig->loadTemplate('foo.twig')) 13 | --EXPECT-- 14 | BARFOO 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/endmacro_name.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "macro" tag supports name for endmacro 3 | --TEMPLATE-- 4 | {% import _self as macros %} 5 | 6 | {{ macros.foo() }} 7 | {{ macros.bar() }} 8 | 9 | {% macro foo() %}foo{% endmacro %} 10 | {% macro bar() %}bar{% endmacro bar %} 11 | --DATA-- 12 | return array() 13 | --EXPECT-- 14 | foo 15 | bar 16 | 17 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/from.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "macro" tag 3 | --TEMPLATE-- 4 | {% from 'forms.twig' import foo %} 5 | {% from 'forms.twig' import foo as foobar, bar %} 6 | 7 | {{ foo('foo') }} 8 | {{ foobar('foo') }} 9 | {{ bar('foo') }} 10 | --TEMPLATE(forms.twig)-- 11 | {% macro foo(name) %}foo{{ name }}{% endmacro %} 12 | {% macro bar(name) %}bar{{ name }}{% endmacro %} 13 | --DATA-- 14 | return array() 15 | --EXPECT-- 16 | foofoo 17 | foofoo 18 | barfoo 19 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/from_with_reserved_name.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "from" tag with reserved name 3 | --TEMPLATE-- 4 | {% from 'forms.twig' import templateName %} 5 | --TEMPLATE(forms.twig)-- 6 | --DATA-- 7 | return array() 8 | --EXCEPTION-- 9 | Twig_Error_Syntax: "templateName" cannot be an imported macro as it is a reserved keyword in "index.twig" at line 2. 10 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/global.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "macro" tag 3 | --TEMPLATE-- 4 | {% from 'forms.twig' import foo %} 5 | 6 | {{ foo('foo') }} 7 | {{ foo() }} 8 | --TEMPLATE(forms.twig)-- 9 | {% macro foo(name) %}{{ name|default('foo') }}{{ global }}{% endmacro %} 10 | --DATA-- 11 | return array() 12 | --EXPECT-- 13 | fooglobal 14 | fooglobal 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/import_with_reserved_nam.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "from" tag with reserved name 3 | --TEMPLATE-- 4 | {% import 'forms.twig' as macros %} 5 | 6 | {{ macros.parent() }} 7 | --TEMPLATE(forms.twig)-- 8 | --DATA-- 9 | return array() 10 | --EXCEPTION-- 11 | Twig_Error_Syntax: "parent" cannot be called as macro as it is a reserved keyword in "index.twig" at line 4. 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/reserved_name.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "macro" tag with reserved name 3 | --TEMPLATE-- 4 | {% macro parent(arg1, arg2) %} 5 | parent 6 | {% endmacro %} 7 | --DATA-- 8 | return array() 9 | --EXCEPTION-- 10 | Twig_Error_Syntax: "parent" cannot be used as a macro name as it is a reserved keyword in "index.twig" at line 2. 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/special_chars.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "§" as a macro name 3 | --TEMPLATE-- 4 | {% import _self as macros %} 5 | 6 | {{ macros.§('foo') }} 7 | 8 | {% macro §(foo) %} 9 | §{{ foo }}§ 10 | {% endmacro %} 11 | --DATA-- 12 | return array() 13 | --EXPECT-- 14 | §foo§ 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/super_globals.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Super globals as macro arguments 3 | --TEMPLATE-- 4 | {% import _self as macros %} 5 | 6 | {{ macros.foo('foo') }} 7 | 8 | {% macro foo(GET) %} 9 | {{ GET }} 10 | {% endmacro %} 11 | --DATA-- 12 | return array() 13 | --EXPECT-- 14 | foo 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/raw/basic.legacy.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "raw" tag 3 | --TEMPLATE-- 4 | {% raw %} 5 | {{ foo }} 6 | {% endraw %} 7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 | {{ foo }} 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/raw/mixed_usage_with_raw.legacy.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "raw" tag 3 | --TEMPLATE-- 4 | {% raw %} 5 | {{ foo }} 6 | {% endverbatim %} 7 | --DATA-- 8 | return array() 9 | --EXCEPTION-- 10 | Twig_Error_Syntax: Unexpected end of file: Unclosed "raw" block in "index.twig" at line 2. 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/sandbox/not_valid1.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | sandbox tag 3 | --TEMPLATE-- 4 | {%- sandbox %} 5 | {%- include "foo.twig" %} 6 | a 7 | {%- endsandbox %} 8 | --TEMPLATE(foo.twig)-- 9 | foo 10 | --EXCEPTION-- 11 | Twig_Error_Syntax: Only "include" tags are allowed within a "sandbox" section in "index.twig" at line 4. 12 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/sandbox/not_valid2.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | sandbox tag 3 | --TEMPLATE-- 4 | {%- sandbox %} 5 | {%- include "foo.twig" %} 6 | 7 | {% if 1 %} 8 | {%- include "foo.twig" %} 9 | {% endif %} 10 | {%- endsandbox %} 11 | --TEMPLATE(foo.twig)-- 12 | foo 13 | --EXCEPTION-- 14 | Twig_Error_Syntax: Only "include" tags are allowed within a "sandbox" section in "index.twig" at line 5. 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/sandbox/simple.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | sandbox tag 3 | --TEMPLATE-- 4 | {%- sandbox %} 5 | {%- include "foo.twig" %} 6 | {%- endsandbox %} 7 | 8 | {%- sandbox %} 9 | {%- include "foo.twig" %} 10 | {%- include "foo.twig" %} 11 | {%- endsandbox %} 12 | 13 | {%- sandbox %}{% include "foo.twig" %}{% endsandbox %} 14 | --TEMPLATE(foo.twig)-- 15 | foo 16 | --DATA-- 17 | return array() 18 | --EXPECT-- 19 | foo 20 | foo 21 | foo 22 | foo 23 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/set/basic.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "set" tag 3 | --TEMPLATE-- 4 | {% set foo = 'foo' %} 5 | {% set bar = 'foo
' %} 6 | 7 | {{ foo }} 8 | {{ bar }} 9 | 10 | {% set foo, bar = 'foo', 'bar' %} 11 | 12 | {{ foo }}{{ bar }} 13 | --DATA-- 14 | return array() 15 | --EXPECT-- 16 | foo 17 | foo<br /> 18 | 19 | 20 | foobar 21 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/set/capture-empty.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "set" tag block empty capture 3 | --TEMPLATE-- 4 | {% set foo %}{% endset %} 5 | 6 | {% if foo %}FAIL{% endif %} 7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/set/capture.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "set" tag block capture 3 | --TEMPLATE-- 4 | {% set foo %}f
o
o{% endset %} 5 | 6 | {{ foo }} 7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 | f
o
o 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/set/expression.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "set" tag 3 | --TEMPLATE-- 4 | {% set foo, bar = 'foo' ~ 'bar', 'bar' ~ 'foo' %} 5 | 6 | {{ foo }} 7 | {{ bar }} 8 | --DATA-- 9 | return array() 10 | --EXPECT-- 11 | foobar 12 | barfoo 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/spaceless/simple.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "spaceless" tag removes whites between HTML tags 3 | --TEMPLATE-- 4 | {% spaceless %} 5 | 6 |
foo
7 | 8 | {% endspaceless %} 9 | --DATA-- 10 | return array() 11 | --EXPECT-- 12 |
foo
13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/special_chars.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "§" custom tag 3 | --TEMPLATE-- 4 | {% § %} 5 | --DATA-- 6 | return array() 7 | --EXPECT-- 8 | § 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/aliases.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "use" tag 3 | --TEMPLATE-- 4 | {% use "blocks.twig" with content as foo %} 5 | 6 | {{ block('foo') }} 7 | --TEMPLATE(blocks.twig)-- 8 | {% block content 'foo' %} 9 | --DATA-- 10 | return array() 11 | --EXPECT-- 12 | foo 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/basic.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "use" tag 3 | --TEMPLATE-- 4 | {% use "blocks.twig" %} 5 | 6 | {{ block('content') }} 7 | --TEMPLATE(blocks.twig)-- 8 | {% block content 'foo' %} 9 | --DATA-- 10 | return array() 11 | --EXPECT-- 12 | foo 13 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/deep.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "use" tag 3 | --TEMPLATE-- 4 | {% use "foo.twig" %} 5 | 6 | {{ block('content') }} 7 | {{ block('foo') }} 8 | {{ block('bar') }} 9 | --TEMPLATE(foo.twig)-- 10 | {% use "bar.twig" %} 11 | 12 | {% block content 'foo' %} 13 | {% block foo 'foo' %} 14 | --TEMPLATE(bar.twig)-- 15 | {% block content 'bar' %} 16 | {% block bar 'bar' %} 17 | --DATA-- 18 | return array() 19 | --EXPECT-- 20 | foo 21 | foo 22 | bar 23 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/deep_empty.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "use" tag 3 | --TEMPLATE-- 4 | {% use "foo.twig" %} 5 | --TEMPLATE(foo.twig)-- 6 | {% use "bar.twig" %} 7 | --TEMPLATE(bar.twig)-- 8 | --DATA-- 9 | return array() 10 | --EXPECT-- 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/multiple.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "use" tag 3 | --TEMPLATE-- 4 | {% use "foo.twig" %} 5 | {% use "bar.twig" %} 6 | 7 | {{ block('content') }} 8 | {{ block('foo') }} 9 | {{ block('bar') }} 10 | --TEMPLATE(foo.twig)-- 11 | {% block content 'foo' %} 12 | {% block foo 'foo' %} 13 | --TEMPLATE(bar.twig)-- 14 | {% block content 'bar' %} 15 | {% block bar 'bar' %} 16 | --DATA-- 17 | return array() 18 | --EXPECT-- 19 | bar 20 | foo 21 | bar 22 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/verbatim/basic.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "verbatim" tag 3 | --TEMPLATE-- 4 | {% verbatim %} 5 | {{ foo }} 6 | {% endverbatim %} 7 | --DATA-- 8 | return array() 9 | --EXPECT-- 10 | {{ foo }} 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/verbatim/mixed_usage_with_raw.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "verbatim" tag 3 | --TEMPLATE-- 4 | {% verbatim %} 5 | {{ foo }} 6 | {% endraw %} 7 | --DATA-- 8 | return array() 9 | --EXCEPTION-- 10 | Twig_Error_Syntax: Unexpected end of file: Unclosed "verbatim" block in "index.twig" at line 2. 11 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tests/constant.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "const" test 3 | --TEMPLATE-- 4 | {{ 8 is constant('E_NOTICE') ? 'ok' : 'no' }} 5 | {{ 'bar' is constant('TwigTestFoo::BAR_NAME') ? 'ok' : 'no' }} 6 | {{ value is constant('TwigTestFoo::BAR_NAME') ? 'ok' : 'no' }} 7 | {{ 2 is constant('ARRAY_AS_PROPS', object) ? 'ok' : 'no' }} 8 | --DATA-- 9 | return array('value' => 'bar', 'object' => new ArrayObject(array('hi'))); 10 | --EXPECT-- 11 | ok 12 | ok 13 | ok 14 | ok -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tests/even.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "even" test 3 | --TEMPLATE-- 4 | {{ 1 is even ? 'ko' : 'ok' }} 5 | {{ 2 is even ? 'ok' : 'ko' }} 6 | {{ 1 is not even ? 'ok' : 'ko' }} 7 | {{ 2 is not even ? 'ko' : 'ok' }} 8 | --DATA-- 9 | return array() 10 | --EXPECT-- 11 | ok 12 | ok 13 | ok 14 | ok 15 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tests/in_with_objects.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Twig supports the in operator when using objects 3 | --TEMPLATE-- 4 | {% if object in object_list %} 5 | TRUE 6 | {% endif %} 7 | --DATA-- 8 | $foo = new TwigTestFoo(); 9 | $foo1 = new TwigTestFoo(); 10 | 11 | $foo->position = $foo1; 12 | $foo1->position = $foo; 13 | 14 | return array( 15 | 'object' => $foo, 16 | 'object_list' => array($foo1, $foo), 17 | ); 18 | --EXPECT-- 19 | TRUE 20 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Fixtures/tests/odd.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | "odd" test 3 | --TEMPLATE-- 4 | {{ 1 is odd ? 'ok' : 'ko' }} 5 | {{ 2 is odd ? 'ko' : 'ok' }} 6 | --DATA-- 7 | return array() 8 | --EXPECT-- 9 | ok 10 | ok -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/LegacyFixtures/test.legacy.test: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Old test classes usage 3 | --TEMPLATE-- 4 | {{ 'foo' is multi word ? 'yes' : 'no' }} 5 | --DATA-- 6 | return array() 7 | --EXPECT-- 8 | no 9 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_empty_parent.html.twig: -------------------------------------------------------------------------------- 1 | {% extends ['','parent.html.twig'] %} 2 | 3 | {% block body %}{{ parent() }} Child{% endblock %} 4 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_nonexistent_parent.html.twig: -------------------------------------------------------------------------------- 1 | {% extends ['nonexistent.html.twig','parent.html.twig'] %} 2 | 3 | {% block body %}{{ parent() }} Child{% endblock %} 4 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_null_parent.html.twig: -------------------------------------------------------------------------------- 1 | {% extends [null,'parent.html.twig'] %} 2 | 3 | {% block body %}{{ parent() }} Child{% endblock %} 4 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_valid_parent.html.twig: -------------------------------------------------------------------------------- 1 | {% extends ['parent.html.twig','spare_parent.html.twig'] %} 2 | 3 | {% block body %}{{ parent() }} Child{% endblock %} 4 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/parent.html.twig: -------------------------------------------------------------------------------- 1 | {% block body %}VALID{% endblock %} 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/spare_parent.html.twig: -------------------------------------------------------------------------------- 1 | {% block body %}SPARE PARENT{% endblock %} 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/named/index.html: -------------------------------------------------------------------------------- 1 | named path 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/named_bis/index.html: -------------------------------------------------------------------------------- 1 | named path (bis) 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/named_final/index.html: -------------------------------------------------------------------------------- 1 | named path (final) 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/named_quater/named_absolute.html: -------------------------------------------------------------------------------- 1 | named path (quater) 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/named_ter/index.html: -------------------------------------------------------------------------------- 1 | named path (ter) 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/normal/index.html: -------------------------------------------------------------------------------- 1 | path 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/normal_bis/index.html: -------------------------------------------------------------------------------- 1 | path (bis) 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/normal_final/index.html: -------------------------------------------------------------------------------- 1 | path (final) 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/normal_ter/index.html: -------------------------------------------------------------------------------- 1 | path (ter) 2 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/phar/phar-sample.phar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigbite/wordpress-git-content/80571aa7ec636053912a37f9425cf9c1e1862c89/vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/phar/phar-sample.phar -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/themes/theme1/blocks.html.twig: -------------------------------------------------------------------------------- 1 | {% block b1 %}block from theme 1{% endblock %} 2 | 3 | {% block b2 %}block from theme 1{% endblock %} 4 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/themes/theme2/blocks.html.twig: -------------------------------------------------------------------------------- 1 | {% use '@default_theme/blocks.html.twig' %} 2 | 3 | {% block b2 %}block from theme 2{% endblock %} 4 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Node/Expression/PHP53/FilterInclude.php: -------------------------------------------------------------------------------- 1 | addFilter(new Twig_SimpleFilter('anonymous', function () {})); 5 | 6 | return $env; 7 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Node/Expression/PHP53/FunctionInclude.php: -------------------------------------------------------------------------------- 1 | addFunction(new Twig_SimpleFunction('anonymous', function () {})); 5 | 6 | return $env; 7 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/Twig/Tests/Node/Expression/PHP53/TestInclude.php: -------------------------------------------------------------------------------- 1 | addTest(new Twig_SimpleTest('anonymous', function () {})); 5 | 6 | return $env; 7 | -------------------------------------------------------------------------------- /vendor/twig/twig/test/bootstrap.php: -------------------------------------------------------------------------------- 1 |