add code style check
diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
new file mode 100644
index 0000000..df23e3d
--- /dev/null
+++ b/.github/workflows/continuous-integration.yml
@@ -0,0 +1,20 @@
+name: CI
+
+on:
+ push:
+ pull_request:
+ workflow_dispatch:
+
+jobs:
+ cs-check:
+ name: "Lint: (php-cs-fixer)"
+ runs-on: ubuntu-latest
+ steps:
+
+ - uses: actions/checkout@v2
+
+ - uses: OskarStark/php-cs-fixer-ga@2.18.0
+ with:
+ args: --dry-run --diff --config=.php_cs
+
+
diff --git a/.gitignore b/.gitignore
index bf68473..64a3f93 100755
--- a/.gitignore
+++ b/.gitignore
@@ -1,17 +1,3 @@
-owncloud/config/config.php
-.buildpath
-.project
-.settings/
-.gitignore~
-concrete5/application/config/database.php
-concrete5/application/config/doctrine/*
-concrete5/application/files/cache/*
-.idea/*
-.idea/
-.idea
-config/site.php
-files/cache/*
-files/tmp/*
-concrete5/application/config/generated_overrides/concrete.php
-concrete5/application/config/generated_overrides/*
-owncloud/data/*
+/vendor
+/coverage
+/.php_cs.cache
\ No newline at end of file
diff --git a/.php_cs b/.php_cs
new file mode 100644
index 0000000..092d480
--- /dev/null
+++ b/.php_cs
@@ -0,0 +1,16 @@
+<?php
+
+$finder = PhpCsFixer\Finder::create()
+ ->in(__DIR__)
+;
+
+return PhpCsFixer\Config::create()
+ ->setRules([
+ '@PSR2' => true,
+ '@DoctrineAnnotation' => true,
+ '@PhpCsFixer' => true,
+ 'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
+ 'php_unit_test_class_requires_covers' => false
+ ])
+ ->setFinder($finder)
+;
\ No newline at end of file
diff --git a/blocks/bacluc_event_block/controller.php b/blocks/bacluc_event_block/controller.php
index aa84230..b41c8fd 100755
--- a/blocks/bacluc_event_block/controller.php
+++ b/blocks/bacluc_event_block/controller.php
@@ -30,28 +30,28 @@
use Concrete\Core\Support\Facade\Application;
use Concrete\Package\BaclucC5Crud\Controller as PackageController;
use Concrete\Package\BaclucEventPackage\Controller as EventPackageController;
+use function DI\autowire;
use DI\ContainerBuilder;
+use function DI\create;
use DI\DependencyException;
+use function DI\factory;
use DI\NotFoundException;
+use function DI\value;
use Exception;
use Psr\Container\ContainerInterface;
use ReflectionException;
-use function DI\autowire;
-use function DI\create;
-use function DI\factory;
-use function DI\value;
-class Controller extends BlockController
-{
+class Controller extends BlockController {
use Concrete5CrudController;
/**
* Controller constructor.
+ *
+ * @param null|mixed $obj
*/
- public function __construct($obj = null)
- {
+ public function __construct($obj = null) {
parent::__construct($obj);
- $this->initializeCrud($this, [$this, "createCrudController"], $this->bID);
+ $this->initializeCrud($this, [$this, 'createCrudController'], $this->bID);
}
/**
@@ -59,28 +59,55 @@
* @throws NotFoundException
* @throws ReflectionException
*/
- public function action_view()
- {
+ public function action_view() {
$this->view();
}
-
- private function processAction(ActionProcessor $actionProcessor, ...$additionalParams)
- {
- return $actionProcessor->process($this->request->query->all() ?: [],
- $this->request->post(null) ?: [],
- array_key_exists(0, $additionalParams) ? $additionalParams[0] : null);
+ /**
+ * @param $blockId
+ * @param $editId
+ *
+ * @throws DependencyException
+ * @throws NotFoundException
+ * @throws ReflectionException
+ */
+ public function action_show_cancellations($blockId, $editId) {
+ $this->processAction(
+ $this->createEventCancellationController()
+ ->getActionFor(EventActionRegistryFactory::SHOW_CANCELLATIONS, $blockId),
+ $editId
+ );
}
/**
- * @return CrudController
+ * @return string
+ */
+ public function getBlockTypeDescription() {
+ return t('Create, Edit or Delete Events');
+ }
+
+ /**
+ * @return string
+ */
+ public function getBlockTypeName() {
+ return t('BaclucEventBlock');
+ }
+
+ private function processAction(ActionProcessor $actionProcessor, ...$additionalParams) {
+ return $actionProcessor->process(
+ $this->request->query->all() ?: [],
+ $this->request->post(null) ?: [],
+ array_key_exists(0, $additionalParams) ? $additionalParams[0] : null
+ );
+ }
+
+ /**
* @throws DependencyException
* @throws NotFoundException
* @throws Exception
* @throws ReflectionException
*/
- private function createCrudController(): CrudController
- {
+ private function createCrudController(): CrudController {
$entityManager = PackageController::getEntityManagerStatic();
$entityClass = Event::class;
$entityFieldOverrides = new EntityFieldOverrideBuilder($entityClass);
@@ -91,53 +118,42 @@
$containerBuilder = new ContainerBuilder();
$definitions =
- DIContainerFactory::createDefinition($entityManager,
+ DIContainerFactory::createDefinition(
+ $entityManager,
$entityClass,
- "",
+ '',
$entityFieldOverrides->build(),
$this->bID,
- FormType::$BLOCK_VIEW);
+ FormType::$BLOCK_VIEW
+ );
$definitions[BlockController::class] = value($this);
$definitions[CurrentUrlSupplier::class] = autowire(Concrete5CurrentUrlSupplier::class);
$definitions[Renderer::class] =
create(Concrete5Renderer::class)->constructor($this, $packageController->getPackagePath());
- $definitions[ViewActionRegistry::class] = factory([ViewActionRegistryFactory::class, "createActionRegistry"]);
+ $definitions[ViewActionRegistry::class] = factory([ViewActionRegistryFactory::class, 'createActionRegistry']);
$definitions[RowActionConfiguration::class] = autowire(EventRowActionConfiguration::class);
$containerBuilder->addDefinitions($definitions);
$container = $containerBuilder->build();
+
return $container->get(CrudController::class);
}
/**
- * @param $blockId
- * @param $editId
- * @throws DependencyException
- * @throws NotFoundException
- * @throws ReflectionException
- */
- public function action_show_cancellations($blockId, $editId) {
- $this->processAction($this->createEventCancellationController()
- ->getActionFor(EventActionRegistryFactory::SHOW_CANCELLATIONS, $blockId),
- $editId);
- }
-
- /**
- * @return CrudController
* @throws DependencyException
* @throws NotFoundException
* @throws Exception
* @throws ReflectionException
*/
- private function createEventCancellationController(): CrudController
- {
+ private function createEventCancellationController(): CrudController {
$entityManager = PackageController::getEntityManagerStatic();
$entityClass = EventCancellation::class;
$entityFieldOverrides = new EntityFieldOverrideBuilder($entityClass);
- $entityFieldOverrides->forField("event")
+ $entityFieldOverrides->forField('event')
->forType(TableField::class)
->useFactory(DontShowTableField::create())
- ->buildField();
+ ->buildField()
+ ;
$definitions = DIContainerFactory::createDefinition(
$entityManager,
@@ -145,7 +161,8 @@
NextEventConfiguration::class,
$entityFieldOverrides->build(),
$this->bID,
- FormType::$BLOCK_VIEW);
+ FormType::$BLOCK_VIEW
+ );
$app = Application::getFacadeApplication();
/** @var PackageController $packageController */
@@ -161,24 +178,7 @@
$definitions[NoEditIdFallbackActionProcessor::class] = autowire(ShowErrorActionProcessor::class);
$containerBuilder->addDefinitions($definitions);
$container = $containerBuilder->build();
+
return $container->get(CrudController::class);
}
-
- /**
- * @return string
- */
- public function getBlockTypeDescription()
- {
- return t("Create, Edit or Delete Events");
- }
-
- /**
- * @return string
- */
- public function getBlockTypeName()
- {
- return t("BaclucEventBlock");
- }
-
-
}
diff --git a/blocks/bacluc_next_event_block/add.php b/blocks/bacluc_next_event_block/add.php
index 075147d..acb018e 100755
--- a/blocks/bacluc_next_event_block/add.php
+++ b/blocks/bacluc_next_event_block/add.php
@@ -1,4 +1,3 @@
<?php
-/**
- * Needed that concrete5 knows the block must be configured
- */
+
+// Needed that concrete5 knows the block must be configured
diff --git a/blocks/bacluc_next_event_block/controller.php b/blocks/bacluc_next_event_block/controller.php
index f1af8aa..a5fab47 100755
--- a/blocks/bacluc_next_event_block/controller.php
+++ b/blocks/bacluc_next_event_block/controller.php
@@ -37,75 +37,126 @@
use Concrete\Core\Support\Facade\Facade;
use Concrete\Package\BaclucC5Crud\Controller as PackageController;
use Concrete\Package\BaclucEventPackage\Controller as EventPackageController;
+use function DI\autowire;
use DI\ContainerBuilder;
+use function DI\create;
use DI\DependencyException;
+use function DI\factory;
use DI\NotFoundException;
+use function DI\value;
use Exception;
use Psr\Container\ContainerInterface;
use ReflectionException;
-use function DI\autowire;
-use function DI\create;
-use function DI\factory;
-use function DI\value;
-class Controller extends BlockController
-{
+class Controller extends BlockController {
use Concrete5BlockConfigController;
/**
* Controller constructor.
+ *
+ * @param null|mixed $obj
*/
- public function __construct($obj = null)
- {
+ public function __construct($obj = null) {
parent::__construct($obj);
- $this->initializeConfig($this, [$this, "createConfigController"], $this->bID);
+ $this->initializeConfig($this, [$this, 'createConfigController'], $this->bID);
$app = Facade::getFacadeApplication();
/** @var Localization $localisation */
$localization = $app->make('Concrete\Core\Localization\Localization');
- $localization->setLocale("de_CH");
+ $localization->setLocale('de_CH');
}
-
/**
* @throws DependencyException
* @throws NotFoundException
* @throws ReflectionException
*/
- public function view()
- {
+ public function view() {
$this->processAction($this->createCrudController()
- ->getActionFor(EventActionRegistryFactory::SHOW_NEXT_EVENT, $this->bID));
+ ->getActionFor(EventActionRegistryFactory::SHOW_NEXT_EVENT, $this->bID));
}
/**
* @param $blockId
* @param $editId
+ *
* @throws DependencyException
* @throws NotFoundException
* @throws ReflectionException
*/
- public function action_cancel_form($blockId)
- {
+ public function action_cancel_form($blockId) {
$this->view();
}
- private function processAction(ActionProcessor $actionProcessor, ...$additionalParams)
- {
- return $actionProcessor->process($this->request->query->all() ?: [],
- $this->request->post(null) ?: [],
- array_key_exists(0, $additionalParams) ? $additionalParams[0] : null);
+ /**
+ * @param $blockId
+ * @param $editId
+ *
+ * @throws DependencyException
+ * @throws NotFoundException
+ * @throws ReflectionException
+ */
+ public function action_show_cancel_event_form($blockId, $editId) {
+ if ($blockId != $this->bID) {
+ return $this->view();
+ }
+ $this->processAction(
+ $this->createEventCancellationController()
+ ->getActionFor(EventActionRegistryFactory::SHOW_CANCEL_EVENT_FORM, $blockId),
+ $editId
+ );
}
/**
- * @return CrudController
+ * @param $blockId
+ * @param $editId
+ *
+ * @throws DependencyException
+ * @throws NotFoundException
+ * @throws ReflectionException
+ */
+ public function action_post_cancel_event_form($blockId, $editId) {
+ $this->processAction(
+ $this->createEventCancellationController()
+ ->getActionFor(EventActionRegistryFactory::POST_CANCEL_EVENT_FORM, $blockId),
+ $editId
+ );
+ if (null == $this->blockViewRenderOverride) {
+ Redirect::page(Page::getCurrentPage())->send();
+
+ exit();
+ }
+ }
+
+ /**
+ * @return string
+ */
+ public function getBlockTypeDescription() {
+ return t('Show next Event of Group');
+ }
+
+ /**
+ * @return string
+ */
+ public function getBlockTypeName() {
+ return t('BaclucNextEventBlock');
+ }
+
+ private function processAction(ActionProcessor $actionProcessor, ...$additionalParams) {
+ return $actionProcessor->process(
+ $this->request->query->all() ?: [],
+ $this->request->post(null) ?: [],
+ array_key_exists(0, $additionalParams) ? $additionalParams[0] : null
+ );
+ }
+
+ /**
* @throws DependencyException
* @throws NotFoundException
* @throws Exception
* @throws ReflectionException
*/
- private function createCrudController(): CrudController
- {
+ private function createCrudController(): CrudController {
$entityManager = PackageController::getEntityManagerStatic();
$entityClass = Event::class;
$entityFieldOverrides = new EntityFieldOverrideBuilder($entityClass);
@@ -116,7 +167,8 @@
NextEventConfiguration::class,
$entityFieldOverrides->build(),
$this->bID,
- FormType::$BLOCK_VIEW);
+ FormType::$BLOCK_VIEW
+ );
$app = Application::getFacadeApplication();
/** @var PackageController $packageController */
@@ -129,70 +181,33 @@
$definitions[ActionRegistry::class] = factory(function (ContainerInterface $container) {
return $container->get(EventActionRegistryFactory::class)->createActionRegistry();
});
- $definitions[ViewActionRegistry::class] = factory([ViewActionRegistryFactory::class, "createActionRegistry"]);
+ $definitions[ViewActionRegistry::class] = factory([ViewActionRegistryFactory::class, 'createActionRegistry']);
$definitions[TableViewEntrySupplier::class] = autowire(ShowNextEventEntrySupplier::class);
$definitions[NoEditIdFallbackActionProcessor::class] = autowire(ShowNextEvent::class);
$containerBuilder->addDefinitions($definitions);
$container = $containerBuilder->build();
+
return $container->get(CrudController::class);
}
-
/**
- * @param $blockId
- * @param $editId
- * @throws DependencyException
- * @throws NotFoundException
- * @throws ReflectionException
- */
- public function action_show_cancel_event_form($blockId, $editId)
- {
- if ($blockId != $this->bID) {
- return $this->view();
- }
- $this->processAction($this->createEventCancellationController()
- ->getActionFor(EventActionRegistryFactory::SHOW_CANCEL_EVENT_FORM, $blockId),
- $editId);
- }
-
- /**
- * @param $blockId
- * @param $editId
- * @throws DependencyException
- * @throws NotFoundException
- * @throws ReflectionException
- */
- public function action_post_cancel_event_form($blockId, $editId)
- {
- $this->processAction($this->createEventCancellationController()
- ->getActionFor(EventActionRegistryFactory::POST_CANCEL_EVENT_FORM, $blockId),
- $editId);
- if ($this->blockViewRenderOverride == null) {
- Redirect::page(Page::getCurrentPage())->send();
- exit();
- }
- }
-
-
- /**
- * @return CrudController
* @throws DependencyException
* @throws NotFoundException
* @throws Exception
* @throws ReflectionException
*/
- private function createEventCancellationController(): CrudController
- {
+ private function createEventCancellationController(): CrudController {
$entityManager = PackageController::getEntityManagerStatic();
$entityClass = EventCancellation::class;
$entityFieldOverrides = new EntityFieldOverrideBuilder($entityClass);
- $entityFieldOverrides->forField("event")
+ $entityFieldOverrides->forField('event')
->forType(FormField::class)
->useFactory(DontShowFormField::create())
->forType(FieldValidator::class)
->useFactory(IgnoreFieldForValidation::create())
- ->buildField();
+ ->buildField()
+ ;
$definitions = DIContainerFactory::createDefinition(
$entityManager,
@@ -200,7 +215,8 @@
NextEventConfiguration::class,
$entityFieldOverrides->build(),
$this->bID,
- FormType::$BLOCK_VIEW);
+ FormType::$BLOCK_VIEW
+ );
$app = Application::getFacadeApplication();
/** @var PackageController $packageController */
@@ -213,24 +229,25 @@
$definitions[ActionRegistry::class] = factory(function (ContainerInterface $container) {
return $container->get(EventActionRegistryFactory::class)->createActionRegistry();
});
- $definitions[ViewActionRegistry::class] = factory([ViewActionRegistryFactory::class, "createActionRegistry"]);
+ $definitions[ViewActionRegistry::class] = factory([ViewActionRegistryFactory::class, 'createActionRegistry']);
$definitions[NoEditIdFallbackActionProcessor::class] = autowire(ShowNextEvent::class);
$definitions[SubmitFormViewAction::class] =
- factory([ViewActionRegistry::class, "getByName"])->parameter("name",
- EventActionRegistryFactory::POST_CANCEL_EVENT_FORM);
+ factory([ViewActionRegistry::class, 'getByName'])->parameter(
+ 'name',
+ EventActionRegistryFactory::POST_CANCEL_EVENT_FORM
+ );
$containerBuilder->addDefinitions($definitions);
$container = $containerBuilder->build();
+
return $container->get(CrudController::class);
}
/**
- * @return CrudController
* @throws DependencyException
* @throws NotFoundException
* @throws Exception
*/
- private function createConfigController(): CrudController
- {
+ private function createConfigController(): CrudController {
$entityManager = PackageController::getEntityManagerStatic();
$entityClass = NextEventConfiguration::class;
@@ -238,32 +255,17 @@
/** @var PackageController $packageController */
$packageController = $app->make(PackageService::class)->getByHandle(EventPackageController::PACKAGE_HANDLE);
- $container = DIContainerFactory::createContainer($this,
+ $container = DIContainerFactory::createContainer(
+ $this,
$entityManager,
$entityClass,
- "",
+ '',
(new EntityFieldOverrideBuilder($entityClass))->build(),
$this->bID,
$packageController->getPackagePath(),
- FormType::$BLOCK_CONFIGURATION);
+ FormType::$BLOCK_CONFIGURATION
+ );
+
return $container->get(CrudController::class);
}
-
- /**
- * @return string
- */
- public function getBlockTypeDescription()
- {
- return t("Show next Event of Group");
- }
-
- /**
- * @return string
- */
- public function getBlockTypeName()
- {
- return t("BaclucNextEventBlock");
- }
-
-
}
diff --git a/blocks/bacluc_next_event_block/edit.php b/blocks/bacluc_next_event_block/edit.php
index 44396f6..acb018e 100755
--- a/blocks/bacluc_next_event_block/edit.php
+++ b/blocks/bacluc_next_event_block/edit.php
@@ -1,4 +1,3 @@
<?php
-/**
- * Needed that concrete5 knows the block must be configured
- */
\ No newline at end of file
+
+// Needed that concrete5 knows the block must be configured
diff --git a/composer.json b/composer.json
new file mode 100755
index 0000000..3ff84e1
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,15 @@
+{
+ "require-dev": {
+ "friendsofphp/php-cs-fixer": "2.18.0",
+ "php": ">=7"
+ },
+ "autoload": {
+ "psr-4": {
+ "BaclucEventPackage\\": "src"
+ }
+ },
+ "scripts": {
+ "cs-check": "vendor/bin/php-cs-fixer fix --dry-run",
+ "cs-fix": "vendor/bin/php-cs-fixer fix"
+ }
+}
diff --git a/composer.lock b/composer.lock
new file mode 100644
index 0000000..a5766fa
--- /dev/null
+++ b/composer.lock
@@ -0,0 +1,1973 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
+ "This file is @generated automatically"
+ ],
+ "content-hash": "0ed9f61bff9181d8f92e7de98f5375c8",
+ "packages": [],
+ "packages-dev": [
+ {
+ "name": "composer/semver",
+ "version": "3.2.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/semver.git",
+ "reference": "a02fdf930a3c1c3ed3a49b5f63859c0c20e10464"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/semver/zipball/a02fdf930a3c1c3ed3a49b5f63859c0c20e10464",
+ "reference": "a02fdf930a3c1c3ed3a49b5f63859c0c20e10464",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.3.2 || ^7.0 || ^8.0"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^0.12.54",
+ "symfony/phpunit-bridge": "^4.2 || ^5"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "3.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Composer\\Semver\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nils Adermann",
+ "email": "naderman@naderman.de",
+ "homepage": "http://www.naderman.de"
+ },
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ },
+ {
+ "name": "Rob Bast",
+ "email": "rob.bast@gmail.com",
+ "homepage": "http://robbast.nl"
+ }
+ ],
+ "description": "Semver library that offers utilities, version constraint parsing and validation.",
+ "keywords": [
+ "semantic",
+ "semver",
+ "validation",
+ "versioning"
+ ],
+ "funding": [
+ {
+ "url": "https://packagist.com",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/composer",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/composer/composer",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-11-13T08:59:24+00:00"
+ },
+ {
+ "name": "composer/xdebug-handler",
+ "version": "1.4.5",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/xdebug-handler.git",
+ "reference": "f28d44c286812c714741478d968104c5e604a1d4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/f28d44c286812c714741478d968104c5e604a1d4",
+ "reference": "f28d44c286812c714741478d968104c5e604a1d4",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.3.2 || ^7.0 || ^8.0",
+ "psr/log": "^1.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Composer\\XdebugHandler\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "John Stevenson",
+ "email": "john-stevenson@blueyonder.co.uk"
+ }
+ ],
+ "description": "Restarts a process without Xdebug.",
+ "keywords": [
+ "Xdebug",
+ "performance"
+ ],
+ "funding": [
+ {
+ "url": "https://packagist.com",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/composer",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/composer/composer",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-11-13T08:04:11+00:00"
+ },
+ {
+ "name": "doctrine/annotations",
+ "version": "1.11.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/annotations.git",
+ "reference": "ce77a7ba1770462cd705a91a151b6c3746f9c6ad"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/annotations/zipball/ce77a7ba1770462cd705a91a151b6c3746f9c6ad",
+ "reference": "ce77a7ba1770462cd705a91a151b6c3746f9c6ad",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/lexer": "1.*",
+ "ext-tokenizer": "*",
+ "php": "^7.1 || ^8.0"
+ },
+ "require-dev": {
+ "doctrine/cache": "1.*",
+ "doctrine/coding-standard": "^6.0 || ^8.1",
+ "phpstan/phpstan": "^0.12.20",
+ "phpunit/phpunit": "^7.5 || ^9.1.5"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.11.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Guilherme Blanco",
+ "email": "guilhermeblanco@gmail.com"
+ },
+ {
+ "name": "Roman Borschel",
+ "email": "roman@code-factory.org"
+ },
+ {
+ "name": "Benjamin Eberlei",
+ "email": "kontakt@beberlei.de"
+ },
+ {
+ "name": "Jonathan Wage",
+ "email": "jonwage@gmail.com"
+ },
+ {
+ "name": "Johannes Schmitt",
+ "email": "schmittjoh@gmail.com"
+ }
+ ],
+ "description": "Docblock Annotations Parser",
+ "homepage": "https://www.doctrine-project.org/projects/annotations.html",
+ "keywords": [
+ "annotations",
+ "docblock",
+ "parser"
+ ],
+ "time": "2020-10-26T10:28:16+00:00"
+ },
+ {
+ "name": "doctrine/lexer",
+ "version": "1.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/lexer.git",
+ "reference": "e864bbf5904cb8f5bb334f99209b48018522f042"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/lexer/zipball/e864bbf5904cb8f5bb334f99209b48018522f042",
+ "reference": "e864bbf5904cb8f5bb334f99209b48018522f042",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2 || ^8.0"
+ },
+ "require-dev": {
+ "doctrine/coding-standard": "^6.0",
+ "phpstan/phpstan": "^0.11.8",
+ "phpunit/phpunit": "^8.2"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.2.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Guilherme Blanco",
+ "email": "guilhermeblanco@gmail.com"
+ },
+ {
+ "name": "Roman Borschel",
+ "email": "roman@code-factory.org"
+ },
+ {
+ "name": "Johannes Schmitt",
+ "email": "schmittjoh@gmail.com"
+ }
+ ],
+ "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.",
+ "homepage": "https://www.doctrine-project.org/projects/lexer.html",
+ "keywords": [
+ "annotations",
+ "docblock",
+ "lexer",
+ "parser",
+ "php"
+ ],
+ "funding": [
+ {
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-05-25T17:44:05+00:00"
+ },
+ {
+ "name": "friendsofphp/php-cs-fixer",
+ "version": "v2.18.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
+ "reference": "cbc5b50bfa2688a1afca20e5a8c71f058e9ccbef"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/cbc5b50bfa2688a1afca20e5a8c71f058e9ccbef",
+ "reference": "cbc5b50bfa2688a1afca20e5a8c71f058e9ccbef",
+ "shasum": ""
+ },
+ "require": {
+ "composer/semver": "^1.4 || ^2.0 || ^3.0",
+ "composer/xdebug-handler": "^1.2",
+ "doctrine/annotations": "^1.2",
+ "ext-json": "*",
+ "ext-tokenizer": "*",
+ "php": "^5.6 || ^7.0 || ^8.0",
+ "php-cs-fixer/diff": "^1.3",
+ "symfony/console": "^3.4.43 || ^4.1.6 || ^5.0",
+ "symfony/event-dispatcher": "^3.0 || ^4.0 || ^5.0",
+ "symfony/filesystem": "^3.0 || ^4.0 || ^5.0",
+ "symfony/finder": "^3.0 || ^4.0 || ^5.0",
+ "symfony/options-resolver": "^3.0 || ^4.0 || ^5.0",
+ "symfony/polyfill-php70": "^1.0",
+ "symfony/polyfill-php72": "^1.4",
+ "symfony/process": "^3.0 || ^4.0 || ^5.0",
+ "symfony/stopwatch": "^3.0 || ^4.0 || ^5.0"
+ },
+ "require-dev": {
+ "justinrainbow/json-schema": "^5.0",
+ "keradus/cli-executor": "^1.4",
+ "mikey179/vfsstream": "^1.6",
+ "php-coveralls/php-coveralls": "^2.4.2",
+ "php-cs-fixer/accessible-object": "^1.0",
+ "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2",
+ "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1",
+ "phpspec/prophecy-phpunit": "^1.1 || ^2.0",
+ "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.13 || ^9.5",
+ "phpunitgoodpractices/polyfill": "^1.5",
+ "phpunitgoodpractices/traits": "^1.9.1",
+ "sanmai/phpunit-legacy-adapter": "^6.4 || ^8.2.1",
+ "symfony/phpunit-bridge": "^5.2.1",
+ "symfony/yaml": "^3.0 || ^4.0 || ^5.0"
+ },
+ "suggest": {
+ "ext-dom": "For handling output formats in XML",
+ "ext-mbstring": "For handling non-UTF8 characters.",
+ "php-cs-fixer/phpunit-constraint-isidenticalstring": "For IsIdenticalString constraint.",
+ "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "For XmlMatchesXsd constraint.",
+ "symfony/polyfill-mbstring": "When enabling `ext-mbstring` is not possible."
+ },
+ "bin": [
+ "php-cs-fixer"
+ ],
+ "type": "application",
+ "autoload": {
+ "psr-4": {
+ "PhpCsFixer\\": "src/"
+ },
+ "classmap": [
+ "tests/Test/AbstractFixerTestCase.php",
+ "tests/Test/AbstractIntegrationCaseFactory.php",
+ "tests/Test/AbstractIntegrationTestCase.php",
+ "tests/Test/Assert/AssertTokensTrait.php",
+ "tests/Test/IntegrationCase.php",
+ "tests/Test/IntegrationCaseFactory.php",
+ "tests/Test/IntegrationCaseFactoryInterface.php",
+ "tests/Test/InternalIntegrationCaseFactory.php",
+ "tests/Test/IsIdenticalConstraint.php",
+ "tests/TestCase.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Dariusz Rumiński",
+ "email": "dariusz.ruminski@gmail.com"
+ }
+ ],
+ "description": "A tool to automatically fix PHP code style",
+ "funding": [
+ {
+ "url": "https://github.com/keradus",
+ "type": "github"
+ }
+ ],
+ "time": "2021-01-18T03:31:06+00:00"
+ },
+ {
+ "name": "php-cs-fixer/diff",
+ "version": "v1.3.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHP-CS-Fixer/diff.git",
+ "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/dbd31aeb251639ac0b9e7e29405c1441907f5759",
+ "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.6 || ^7.0 || ^8.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0",
+ "symfony/process": "^3.3"
+ },
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Kore Nordmann",
+ "email": "mail@kore-nordmann.de"
+ },
+ {
+ "name": "SpacePossum"
+ }
+ ],
+ "description": "sebastian/diff v2 backport support for PHP5.6",
+ "homepage": "https://github.com/PHP-CS-Fixer",
+ "keywords": [
+ "diff"
+ ],
+ "time": "2020-10-14T08:39:05+00:00"
+ },
+ {
+ "name": "psr/container",
+ "version": "1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/container.git",
+ "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
+ "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Container\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Common Container Interface (PHP FIG PSR-11)",
+ "homepage": "https://github.com/php-fig/container",
+ "keywords": [
+ "PSR-11",
+ "container",
+ "container-interface",
+ "container-interop",
+ "psr"
+ ],
+ "time": "2017-02-14T16:28:37+00:00"
+ },
+ {
+ "name": "psr/event-dispatcher",
+ "version": "1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/event-dispatcher.git",
+ "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0",
+ "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\EventDispatcher\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Standard interfaces for event handling.",
+ "keywords": [
+ "events",
+ "psr",
+ "psr-14"
+ ],
+ "time": "2019-01-08T18:20:26+00:00"
+ },
+ {
+ "name": "psr/log",
+ "version": "1.1.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/log.git",
+ "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
+ "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Log\\": "Psr/Log/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Common interface for logging libraries",
+ "homepage": "https://github.com/php-fig/log",
+ "keywords": [
+ "log",
+ "psr",
+ "psr-3"
+ ],
+ "time": "2020-03-23T09:12:05+00:00"
+ },
+ {
+ "name": "symfony/console",
+ "version": "v5.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/console.git",
+ "reference": "47c02526c532fb381374dab26df05e7313978976"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/console/zipball/47c02526c532fb381374dab26df05e7313978976",
+ "reference": "47c02526c532fb381374dab26df05e7313978976",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.5",
+ "symfony/polyfill-mbstring": "~1.0",
+ "symfony/polyfill-php73": "^1.8",
+ "symfony/polyfill-php80": "^1.15",
+ "symfony/service-contracts": "^1.1|^2",
+ "symfony/string": "^5.1"
+ },
+ "conflict": {
+ "symfony/dependency-injection": "<4.4",
+ "symfony/dotenv": "<5.1",
+ "symfony/event-dispatcher": "<4.4",
+ "symfony/lock": "<4.4",
+ "symfony/process": "<4.4"
+ },
+ "provide": {
+ "psr/log-implementation": "1.0"
+ },
+ "require-dev": {
+ "psr/log": "~1.0",
+ "symfony/config": "^4.4|^5.0",
+ "symfony/dependency-injection": "^4.4|^5.0",
+ "symfony/event-dispatcher": "^4.4|^5.0",
+ "symfony/lock": "^4.4|^5.0",
+ "symfony/process": "^4.4|^5.0",
+ "symfony/var-dumper": "^4.4|^5.0"
+ },
+ "suggest": {
+ "psr/log": "For using the console logger",
+ "symfony/event-dispatcher": "",
+ "symfony/lock": "",
+ "symfony/process": ""
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Console\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Console Component",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "cli",
+ "command line",
+ "console",
+ "terminal"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-12-18T08:03:05+00:00"
+ },
+ {
+ "name": "symfony/deprecation-contracts",
+ "version": "v2.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/deprecation-contracts.git",
+ "reference": "5fa56b4074d1ae755beb55617ddafe6f5d78f665"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5fa56b4074d1ae755beb55617ddafe6f5d78f665",
+ "reference": "5fa56b4074d1ae755beb55617ddafe6f5d78f665",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.2-dev"
+ },
+ "thanks": {
+ "name": "symfony/contracts",
+ "url": "https://github.com/symfony/contracts"
+ }
+ },
+ "autoload": {
+ "files": [
+ "function.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "A generic function and convention to trigger deprecation notices",
+ "homepage": "https://symfony.com",
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-09-07T11:33:47+00:00"
+ },
+ {
+ "name": "symfony/event-dispatcher",
+ "version": "v5.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/event-dispatcher.git",
+ "reference": "1c93f7a1dff592c252574c79a8635a8a80856042"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1c93f7a1dff592c252574c79a8635a8a80856042",
+ "reference": "1c93f7a1dff592c252574c79a8635a8a80856042",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.5",
+ "symfony/deprecation-contracts": "^2.1",
+ "symfony/event-dispatcher-contracts": "^2",
+ "symfony/polyfill-php80": "^1.15"
+ },
+ "conflict": {
+ "symfony/dependency-injection": "<4.4"
+ },
+ "provide": {
+ "psr/event-dispatcher-implementation": "1.0",
+ "symfony/event-dispatcher-implementation": "2.0"
+ },
+ "require-dev": {
+ "psr/log": "~1.0",
+ "symfony/config": "^4.4|^5.0",
+ "symfony/dependency-injection": "^4.4|^5.0",
+ "symfony/error-handler": "^4.4|^5.0",
+ "symfony/expression-language": "^4.4|^5.0",
+ "symfony/http-foundation": "^4.4|^5.0",
+ "symfony/service-contracts": "^1.1|^2",
+ "symfony/stopwatch": "^4.4|^5.0"
+ },
+ "suggest": {
+ "symfony/dependency-injection": "",
+ "symfony/http-kernel": ""
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\EventDispatcher\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony EventDispatcher Component",
+ "homepage": "https://symfony.com",
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-12-18T08:03:05+00:00"
+ },
+ {
+ "name": "symfony/event-dispatcher-contracts",
+ "version": "v2.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/event-dispatcher-contracts.git",
+ "reference": "0ba7d54483095a198fa51781bc608d17e84dffa2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/0ba7d54483095a198fa51781bc608d17e84dffa2",
+ "reference": "0ba7d54483095a198fa51781bc608d17e84dffa2",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.5",
+ "psr/event-dispatcher": "^1"
+ },
+ "suggest": {
+ "symfony/event-dispatcher-implementation": ""
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.2-dev"
+ },
+ "thanks": {
+ "name": "symfony/contracts",
+ "url": "https://github.com/symfony/contracts"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Contracts\\EventDispatcher\\": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Generic abstractions related to dispatching event",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "abstractions",
+ "contracts",
+ "decoupling",
+ "interfaces",
+ "interoperability",
+ "standards"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-09-07T11:33:47+00:00"
+ },
+ {
+ "name": "symfony/filesystem",
+ "version": "v5.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/filesystem.git",
+ "reference": "fa8f8cab6b65e2d99a118e082935344c5ba8c60d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/fa8f8cab6b65e2d99a118e082935344c5ba8c60d",
+ "reference": "fa8f8cab6b65e2d99a118e082935344c5ba8c60d",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.5",
+ "symfony/polyfill-ctype": "~1.8"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Filesystem\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Filesystem Component",
+ "homepage": "https://symfony.com",
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-11-30T17:05:38+00:00"
+ },
+ {
+ "name": "symfony/finder",
+ "version": "v5.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/finder.git",
+ "reference": "0b9231a5922fd7287ba5b411893c0ecd2733e5ba"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/0b9231a5922fd7287ba5b411893c0ecd2733e5ba",
+ "reference": "0b9231a5922fd7287ba5b411893c0ecd2733e5ba",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.5"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Finder\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Finder Component",
+ "homepage": "https://symfony.com",
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-12-08T17:02:38+00:00"
+ },
+ {
+ "name": "symfony/options-resolver",
+ "version": "v5.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/options-resolver.git",
+ "reference": "87a2a4a766244e796dd9cb9d6f58c123358cd986"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/options-resolver/zipball/87a2a4a766244e796dd9cb9d6f58c123358cd986",
+ "reference": "87a2a4a766244e796dd9cb9d6f58c123358cd986",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.5",
+ "symfony/deprecation-contracts": "^2.1",
+ "symfony/polyfill-php73": "~1.0",
+ "symfony/polyfill-php80": "^1.15"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\OptionsResolver\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony OptionsResolver Component",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "config",
+ "configuration",
+ "options"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-10-24T12:08:07+00:00"
+ },
+ {
+ "name": "symfony/polyfill-ctype",
+ "version": "v1.22.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-ctype.git",
+ "reference": "c6c942b1ac76c82448322025e084cadc56048b4e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e",
+ "reference": "c6c942b1ac76c82448322025e084cadc56048b4e",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "suggest": {
+ "ext-ctype": "For best performance"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.22-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Ctype\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Gert de Pagter",
+ "email": "BackEndTea@gmail.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill for ctype functions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "ctype",
+ "polyfill",
+ "portable"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-01-07T16:49:33+00:00"
+ },
+ {
+ "name": "symfony/polyfill-intl-grapheme",
+ "version": "v1.22.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-intl-grapheme.git",
+ "reference": "267a9adeb8ecb8071040a740930e077cdfb987af"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/267a9adeb8ecb8071040a740930e077cdfb987af",
+ "reference": "267a9adeb8ecb8071040a740930e077cdfb987af",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "suggest": {
+ "ext-intl": "For best performance"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.22-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Intl\\Grapheme\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill for intl's grapheme_* functions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "grapheme",
+ "intl",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-01-07T16:49:33+00:00"
+ },
+ {
+ "name": "symfony/polyfill-intl-normalizer",
+ "version": "v1.22.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-intl-normalizer.git",
+ "reference": "6e971c891537eb617a00bb07a43d182a6915faba"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/6e971c891537eb617a00bb07a43d182a6915faba",
+ "reference": "6e971c891537eb617a00bb07a43d182a6915faba",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "suggest": {
+ "ext-intl": "For best performance"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.22-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Intl\\Normalizer\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ],
+ "classmap": [
+ "Resources/stubs"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill for intl's Normalizer class and related functions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "intl",
+ "normalizer",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-01-07T17:09:11+00:00"
+ },
+ {
+ "name": "symfony/polyfill-mbstring",
+ "version": "v1.22.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-mbstring.git",
+ "reference": "f377a3dd1fde44d37b9831d68dc8dea3ffd28e13"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/f377a3dd1fde44d37b9831d68dc8dea3ffd28e13",
+ "reference": "f377a3dd1fde44d37b9831d68dc8dea3ffd28e13",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "suggest": {
+ "ext-mbstring": "For best performance"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.22-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Mbstring\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill for the Mbstring extension",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "mbstring",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-01-07T16:49:33+00:00"
+ },
+ {
+ "name": "symfony/polyfill-php70",
+ "version": "v1.20.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-php70.git",
+ "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/5f03a781d984aae42cebd18e7912fa80f02ee644",
+ "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "type": "metapackage",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.20-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-10-23T14:02:19+00:00"
+ },
+ {
+ "name": "symfony/polyfill-php72",
+ "version": "v1.22.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-php72.git",
+ "reference": "cc6e6f9b39fe8075b3dabfbaf5b5f645ae1340c9"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/cc6e6f9b39fe8075b3dabfbaf5b5f645ae1340c9",
+ "reference": "cc6e6f9b39fe8075b3dabfbaf5b5f645ae1340c9",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.22-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Php72\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-01-07T16:49:33+00:00"
+ },
+ {
+ "name": "symfony/polyfill-php73",
+ "version": "v1.22.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-php73.git",
+ "reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/a678b42e92f86eca04b7fa4c0f6f19d097fb69e2",
+ "reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.22-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Php73\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ],
+ "classmap": [
+ "Resources/stubs"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-01-07T16:49:33+00:00"
+ },
+ {
+ "name": "symfony/polyfill-php80",
+ "version": "v1.22.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-php80.git",
+ "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dc3063ba22c2a1fd2f45ed856374d79114998f91",
+ "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.22-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Php80\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ],
+ "classmap": [
+ "Resources/stubs"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Ion Bazan",
+ "email": "ion.bazan@gmail.com"
+ },
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-01-07T16:49:33+00:00"
+ },
+ {
+ "name": "symfony/process",
+ "version": "v5.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/process.git",
+ "reference": "bd8815b8b6705298beaa384f04fabd459c10bedd"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/process/zipball/bd8815b8b6705298beaa384f04fabd459c10bedd",
+ "reference": "bd8815b8b6705298beaa384f04fabd459c10bedd",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.5",
+ "symfony/polyfill-php80": "^1.15"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Process\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Process Component",
+ "homepage": "https://symfony.com",
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-12-08T17:03:37+00:00"
+ },
+ {
+ "name": "symfony/service-contracts",
+ "version": "v2.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/service-contracts.git",
+ "reference": "d15da7ba4957ffb8f1747218be9e1a121fd298a1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d15da7ba4957ffb8f1747218be9e1a121fd298a1",
+ "reference": "d15da7ba4957ffb8f1747218be9e1a121fd298a1",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.5",
+ "psr/container": "^1.0"
+ },
+ "suggest": {
+ "symfony/service-implementation": ""
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.2-dev"
+ },
+ "thanks": {
+ "name": "symfony/contracts",
+ "url": "https://github.com/symfony/contracts"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Contracts\\Service\\": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Generic abstractions related to writing services",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "abstractions",
+ "contracts",
+ "decoupling",
+ "interfaces",
+ "interoperability",
+ "standards"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-09-07T11:33:47+00:00"
+ },
+ {
+ "name": "symfony/stopwatch",
+ "version": "v5.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/stopwatch.git",
+ "reference": "2b105c0354f39a63038a1d8bf776ee92852813af"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/stopwatch/zipball/2b105c0354f39a63038a1d8bf776ee92852813af",
+ "reference": "2b105c0354f39a63038a1d8bf776ee92852813af",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.5",
+ "symfony/service-contracts": "^1.0|^2"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Stopwatch\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Stopwatch Component",
+ "homepage": "https://symfony.com",
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-11-01T16:14:45+00:00"
+ },
+ {
+ "name": "symfony/string",
+ "version": "v5.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/string.git",
+ "reference": "5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/string/zipball/5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed",
+ "reference": "5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.5",
+ "symfony/polyfill-ctype": "~1.8",
+ "symfony/polyfill-intl-grapheme": "~1.0",
+ "symfony/polyfill-intl-normalizer": "~1.0",
+ "symfony/polyfill-mbstring": "~1.0",
+ "symfony/polyfill-php80": "~1.15"
+ },
+ "require-dev": {
+ "symfony/error-handler": "^4.4|^5.0",
+ "symfony/http-client": "^4.4|^5.0",
+ "symfony/translation-contracts": "^1.1|^2",
+ "symfony/var-exporter": "^4.4|^5.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\String\\": ""
+ },
+ "files": [
+ "Resources/functions.php"
+ ],
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony String component",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "grapheme",
+ "i18n",
+ "string",
+ "unicode",
+ "utf-8",
+ "utf8"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-12-05T07:33:16+00:00"
+ }
+ ],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": [],
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": [],
+ "platform-dev": {
+ "php": ">=7"
+ },
+ "plugin-api-version": "1.1.0"
+}
diff --git a/controller.php b/controller.php
index c0cf010..cb5318d 100755
--- a/controller.php
+++ b/controller.php
@@ -2,7 +2,7 @@
namespace Concrete\Package\BaclucEventPackage;
-defined('C5_EXECUTE') or die(_("Access Denied."));
+defined('C5_EXECUTE') or exit(_('Access Denied.'));
use Concrete\Core\Block\BlockType\BlockType;
use Concrete\Core\Block\BlockType\Set;
@@ -10,56 +10,53 @@
use Doctrine\ORM\EntityManagerInterface;
use Exception;
-class Controller extends Package
-{
+class Controller extends Package {
const PACKAGE_HANDLE = 'bacluc_event_package';
- protected $pkgHandle = self::PACKAGE_HANDLE;
- protected $appVersionRequired = '5.7.4';
- protected $pkgVersion = '0.0.1';
- protected $pkgAutoloaderRegistries = array(
- 'src' => 'BaclucEventPackage'
- );
+ protected $pkgHandle = self::PACKAGE_HANDLE;
+ protected $appVersionRequired = '5.7.4';
+ protected $pkgVersion = '0.0.1';
+ protected $pkgAutoloaderRegistries = [
+ 'src' => 'BaclucEventPackage',
+ ];
- public function getPackageName()
- {
- return t("BaclucEventPackage");
+ public function getPackageName() {
+ return t('BaclucEventPackage');
}
- public function getPackageDescription()
- {
- return t("Package to Manage Events");
+ public function getPackageDescription() {
+ return t('Package to Manage Events');
}
- public function install()
- {
+ public function install() {
$em = $this->app->make(EntityManagerInterface::class);
//begin transaction, so when block install fails, but parent::install was successfully, you don't have to uninstall the package
$em->getConnection()->beginTransaction();
+
try {
$pkg = parent::install();
//add blocktypeset
if (!Set::getByHandle('bacluc_event_set')) {
Set::add('bacluc_event_set', 'Appointment', $pkg);
}
- BlockType::installBlockType("bacluc_event_block", $pkg);
- Set::getByHandle('bacluc_event_set')->addBlockType(BlockType::getByHandle("bacluc_event_block"));
- BlockType::installBlockType("bacluc_next_event_block", $pkg);
- Set::getByHandle('bacluc_event_set')->addBlockType(BlockType::getByHandle("bacluc_next_event_block"));
+ BlockType::installBlockType('bacluc_event_block', $pkg);
+ Set::getByHandle('bacluc_event_set')->addBlockType(BlockType::getByHandle('bacluc_event_block'));
+ BlockType::installBlockType('bacluc_next_event_block', $pkg);
+ Set::getByHandle('bacluc_event_set')->addBlockType(BlockType::getByHandle('bacluc_next_event_block'));
$em->getConnection()->commit();
} catch (Exception $e) {
$em->getConnection()->rollBack();
+
throw $e;
}
}
- public function uninstall()
- {
- $eventblock = BlockType::getByHandle("bacluc_event_block");
- $nextEventBlock = BlockType::getByHandle("bacluc_next_event_block");
+ public function uninstall() {
+ $eventblock = BlockType::getByHandle('bacluc_event_block');
+ $nextEventBlock = BlockType::getByHandle('bacluc_next_event_block');
$em = $this->app->make(EntityManagerInterface::class);
$em->getConnection()->beginTransaction();
- try {
+ try {
if (is_object($eventblock)) {
$eventblock->delete();
}
@@ -70,16 +67,14 @@
$em->getConnection()->commit();
} catch (Exception $e) {
$em->getConnection()->rollBack();
+
throw $e;
}
}
- public function getPackageDependencies()
- {
+ public function getPackageDependencies() {
return [
- "bacluc_c5_crud" => true
+ 'bacluc_c5_crud' => true,
];
}
-
-
-}
\ No newline at end of file
+}
diff --git a/resources/view/nextevent.php b/resources/view/nextevent.php
index 548ef2a..3851168 100644
--- a/resources/view/nextevent.php
+++ b/resources/view/nextevent.php
@@ -1,45 +1,45 @@
<?php
-$title = $title ?: "";
-$date_from = $date_from ?: "";
-$date_to = $date_to ?: "";
-$description = $description ?: "";
+$title = $title ?: '';
+$date_from = $date_from ?: '';
+$date_to = $date_to ?: '';
+$description = $description ?: '';
$actions = $actions ?: [];
$eventId = $eventId ?: [];
-$address = $address ?: "";
+$address = $address ?: '';
if (isset($eventfound) && $eventfound) {
?>
<div class="bacluc_event bacluc_event_next_event_block">
<div class="row">
- <div class="col-xs-12 title"><?= $title ?></div>
+ <div class="col-xs-12 title"><?php echo $title; ?></div>
<div class="col-xs-12 addressrow">
<div class="row">
<div class="col-xs-12 col-sm-12">
- <span class='prefix address_prefix'><?= t("Address:") ?></span> <?= $address ?>
+ <span class='prefix address_prefix'><?php echo t('Address:'); ?></span> <?php echo $address; ?>
</div>
</div>
</div>
<div class="col-xs-12 daterow">
<div class="row">
<div class="col-xs-12 col-sm-6">
- <span class='prefix from_prefix'><?= t("From:") ?></span> <?= $date_from ?>
+ <span class='prefix from_prefix'><?php echo t('From:'); ?></span> <?php echo $date_from; ?>
</div>
<div class="col-xs-12 col-sm-6">
- <span class='prefix to_prefix'><?= t("To:") ?></span> <?= $date_to ?>
+ <span class='prefix to_prefix'><?php echo t('To:'); ?></span> <?php echo $date_to; ?>
</div>
</div>
</div>
- <div class="col-xs-12 description"><?= $description ?></div>
+ <div class="col-xs-12 description"><?php echo $description; ?></div>
</div>
<div class="row">
<div class="col-xs-12">
<?php foreach ($actions as $action) { ?>
- <?php /** @var $action \BaclucC5Crud\View\ViewActionDefinition */ ?>
- <a href="<?= $this->action($action->getAction()) . "/$eventId" ?>">
- <button type="submit" class="btn inlinebtn actionbutton <?= $action->getButtonClass() ?>"
- aria-label="<?= t($action->getAriaLabel()) ?>"
- title="<?= t($action->getTitle()) ?>">
- <i class="fa <?= $action->getIconClass() ?>" aria-hidden="true"> </i>
- <span><?= t("Cancel") ?></span>
+ <?php /** @var \BaclucC5Crud\View\ViewActionDefinition $action */ ?>
+ <a href="<?php echo $this->action($action->getAction())."/{$eventId}"; ?>">
+ <button type="submit" class="btn inlinebtn actionbutton <?php echo $action->getButtonClass(); ?>"
+ aria-label="<?php echo t($action->getAriaLabel()); ?>"
+ title="<?php echo t($action->getTitle()); ?>">
+ <i class="fa <?php echo $action->getIconClass(); ?>" aria-hidden="true"> </i>
+ <span><?php echo t('Cancel'); ?></span>
</button>
</a>
<?php } ?>
@@ -48,10 +48,10 @@
</div>
<?php
} else {
- ?>
+ ?>
<div class="bacluc_event bacluc_event_next_event_block">
- <?php echo t("No Events found"); ?>
+ <?php echo t('No Events found'); ?>
</div>
<?php
-}
+ }
?>
diff --git a/src/CancellationsRepository.php b/src/CancellationsRepository.php
index 390db7e..431b195 100644
--- a/src/CancellationsRepository.php
+++ b/src/CancellationsRepository.php
@@ -1,9 +1,7 @@
<?php
-
namespace BaclucEventPackage;
-
use BaclucC5Crud\Entity\Identifiable;
use BaclucC5Crud\Entity\OrderConfigEntry;
use BaclucC5Crud\Entity\Repository;
@@ -13,8 +11,7 @@
use Doctrine\ORM\NoResultException;
use RuntimeException;
-class CancellationsRepository implements Repository
-{
+class CancellationsRepository implements Repository {
/**
* @var Repository
*/
@@ -24,79 +21,73 @@
*/
private $entityManager;
-
- public function __construct(Repository $standardRepository, EntityManager $entityManager)
- {
+ public function __construct(Repository $standardRepository, EntityManager $entityManager) {
$this->standardRepository = $standardRepository;
$this->entityManager = $entityManager;
}
-
- public function create()
- {
+ public function create() {
return $this->standardRepository->create();
}
- public function persist(Identifiable $entity)
- {
+ public function persist(Identifiable $entity) {
return $this->standardRepository->persist($entity);
}
/**
- * @inheritDoc
+ * {@inheritDoc}
*/
- public function getAll(int $offset = 0, int $limit = null, array $orderEntries = [])
- {
- if (sizeof($orderEntries) == 0) {
- $orderEntries = [new OrderConfigEntry("name")];
+ public function getAll(int $offset = 0, int $limit = null, array $orderEntries = []) {
+ if (0 == sizeof($orderEntries)) {
+ $orderEntries = [new OrderConfigEntry('name')];
}
+
return $this->standardRepository->getAll($offset, $limit, $orderEntries);
}
- public function getById(int $id)
- {
+ public function getById(int $id) {
return $this->standardRepository->getById($id);
}
- public function delete(Identifiable $toDeleteEntity)
- {
+ public function delete(Identifiable $toDeleteEntity) {
return $this->standardRepository->delete($toDeleteEntity);
}
- public function getCancellationsOfEvent(int $eventId, int $offset, int $limit)
- {
+ public function getCancellationsOfEvent(int $eventId, int $offset, int $limit) {
$qb = $this->entityManager->createQueryBuilder();
$qb->select('cancellation')
- ->from(EventCancellation::class, "cancellation")
- ->join("cancellation.event", "event")
- ->where($qb->expr()->eq("event.id", ":eventId"))
+ ->from(EventCancellation::class, 'cancellation')
+ ->join('cancellation.event', 'event')
+ ->where($qb->expr()->eq('event.id', ':eventId'))
->setFirstResult($offset)
->setMaxResults($limit)
->orderBy('cancellation.name')
- ->setParameter("eventId", $eventId);
+ ->setParameter('eventId', $eventId)
+ ;
$query = $qb->getQuery();
+
return $query->getResult();
}
- public function countCancellationsOfEvent(int $eventId)
- {
+ public function countCancellationsOfEvent(int $eventId) {
$qb = $this->entityManager->createQueryBuilder();
$qb->select('count(cancellation)')
- ->from(EventCancellation::class, "cancellation")
- ->join("cancellation.event", "event")
- ->where($qb->expr()->eq("event.id", ":eventId"))
+ ->from(EventCancellation::class, 'cancellation')
+ ->join('cancellation.event', 'event')
+ ->where($qb->expr()->eq('event.id', ':eventId'))
->orderBy('cancellation.name')
- ->setParameter("eventId", $eventId);
+ ->setParameter('eventId', $eventId)
+ ;
$query = $qb->getQuery();
+
try {
return $query->getSingleScalarResult();
} catch (NoResultException | NonUniqueResultException $e) {
- throw new RuntimeException("Error getting count of result " . $e->getMessage());
+ throw new RuntimeException('Error getting count of result '.$e->getMessage());
}
}
- public function count()
- {
+ public function count() {
$this->standardRepository->count();
}
-}
\ No newline at end of file
+}
diff --git a/src/Event.php b/src/Event.php
index 5d224fd..0804531 100755
--- a/src/Event.php
+++ b/src/Event.php
@@ -1,4 +1,5 @@
<?php
+
namespace BaclucEventPackage;
use BaclucC5Crud\Entity\Identifiable;
@@ -16,21 +17,20 @@
use Doctrine\ORM\Mapping\ManyToMany;
use Doctrine\ORM\Mapping\Table;
-
/**
- * Class Event
+ * Class Event.
+ *
* @IgnoreAnnotation("package")\n*
* @Entity
* @Table(name="bacluc_event")
- *
*/
-class Event implements Identifiable
-{
- use SetterTrait, GetterTrait;
+class Event implements Identifiable {
+ use SetterTrait;
+ use GetterTrait;
/**
* @var int
- * @Id @Column(type="integer", nullable=false, options={"unsigned":true})
+ * @Id @Column(type="integer", nullable=false, options={"unsigned": true})
* @GeneratedValue(strategy="AUTO")
*/
protected $id;
@@ -66,31 +66,25 @@
*/
protected $eventGroups;
-
/**
* @var string
* @Column(type="string")
- *
*/
protected $address;
- public function __construct()
- {
+ public function __construct() {
$this->eventGroups = new ArrayCollection();
}
- public function getId()
- {
+ public function getId() {
return $this->id;
}
- public function setId(int $id)
- {
+ public function setId(int $id) {
$this->id = $id;
}
- public static function getIdFieldName(): string
- {
- return "id";
+ public static function getIdFieldName(): string {
+ return 'id';
}
-}
\ No newline at end of file
+}
diff --git a/src/EventActionRegistryFactory.php b/src/EventActionRegistryFactory.php
index f8dc5c8..0d00dcd 100644
--- a/src/EventActionRegistryFactory.php
+++ b/src/EventActionRegistryFactory.php
@@ -1,20 +1,17 @@
<?php
-
namespace BaclucEventPackage;
-
use BaclucC5Crud\Controller\ActionProcessor;
use BaclucC5Crud\Controller\ActionRegistry;
use BaclucC5Crud\Controller\ActionRegistryFactory;
use BaclucEventPackage\NextEvent\ShowNextEvent;
-class EventActionRegistryFactory
-{
- const SHOW_NEXT_EVENT = "show_next_event";
- const SHOW_CANCEL_EVENT_FORM = "show_cancel_event_form";
- const POST_CANCEL_EVENT_FORM = "post_cancel_event_form";
- const SHOW_CANCELLATIONS = "show_cancellations";
+class EventActionRegistryFactory {
+ const SHOW_NEXT_EVENT = 'show_next_event';
+ const SHOW_CANCEL_EVENT_FORM = 'show_cancel_event_form';
+ const POST_CANCEL_EVENT_FORM = 'post_cancel_event_form';
+ const SHOW_CANCELLATIONS = 'show_cancellations';
/**
* @var ActionProcessor[]
@@ -28,7 +25,6 @@
PostCancelEventForm $postCancelEventForm,
ShowCancellations $showCancellations
) {
-
$this->actions = $actionRegistryFactory->createActionRegistry()->getActions();
$this->actions[] = $showNextEvent;
$this->actions[] = $showCancelEventForm;
@@ -36,9 +32,7 @@
$this->actions[] = $showCancellations;
}
-
- public function createActionRegistry(): ActionRegistry
- {
+ public function createActionRegistry(): ActionRegistry {
return new ActionRegistry($this->actions);
}
-}
\ No newline at end of file
+}
diff --git a/src/EventCancellation.php b/src/EventCancellation.php
index 2d3be9d..b1d2bd3 100644
--- a/src/EventCancellation.php
+++ b/src/EventCancellation.php
@@ -1,6 +1,5 @@
<?php
-
namespace BaclucEventPackage;
use BaclucC5Crud\Entity\Identifiable;
@@ -16,19 +15,19 @@
use Doctrine\ORM\Mapping\Table;
/**
- * Class Event
+ * Class Event.
+ *
* @IgnoreAnnotation("package")\n*
* @Entity
* @Table(name="bacluc_event_cancellation")
- *
*/
-class EventCancellation implements Identifiable
-{
- use SetterTrait, GetterTrait;
+class EventCancellation implements Identifiable {
+ use SetterTrait;
+ use GetterTrait;
/**
* @var int
- * @Id @Column(type="integer", nullable=false, options={"unsigned":true})
+ * @Id @Column(type="integer", nullable=false, options={"unsigned": true})
* @GeneratedValue(strategy="AUTO")
*/
private $id;
@@ -43,22 +42,18 @@
* @var Event
* @ManyToOne(targetEntity="BaclucEventPackage\Event")
* @JoinColumn(name="event_id", onDelete="CASCADE", nullable=false)
- *
*/
private $event;
- public function getId()
- {
+ public function getId() {
return $this->id;
}
- public function setId(int $id)
- {
+ public function setId(int $id) {
$this->id = $id;
}
- public static function getIdFieldName(): string
- {
- return "id";
+ public static function getIdFieldName(): string {
+ return 'id';
}
-}
\ No newline at end of file
+}
diff --git a/src/EventCancellationsTableEntrySupplier.php b/src/EventCancellationsTableEntrySupplier.php
index c90f875..7eb1809 100644
--- a/src/EventCancellationsTableEntrySupplier.php
+++ b/src/EventCancellationsTableEntrySupplier.php
@@ -1,14 +1,11 @@
<?php
-
namespace BaclucEventPackage;
-
use BaclucC5Crud\Controller\PaginationConfiguration;
use BaclucC5Crud\Entity\TableViewEntrySupplier;
-class EventCancellationsTableEntrySupplier implements TableViewEntrySupplier
-{
+class EventCancellationsTableEntrySupplier implements TableViewEntrySupplier {
/**
* @var int
*/
@@ -18,22 +15,20 @@
*/
private $cancellationsRepository;
- public function __construct(int $eventId, CancellationsRepository $cancellationsRepository)
- {
+ public function __construct(int $eventId, CancellationsRepository $cancellationsRepository) {
$this->eventId = $eventId;
$this->cancellationsRepository = $cancellationsRepository;
}
-
- public function getEntries(PaginationConfiguration $paginationConfiguration)
- {
- return $this->cancellationsRepository->getCancellationsOfEvent($this->eventId,
+ public function getEntries(PaginationConfiguration $paginationConfiguration) {
+ return $this->cancellationsRepository->getCancellationsOfEvent(
+ $this->eventId,
$paginationConfiguration->getOffset(),
- $paginationConfiguration->getPageSize());
+ $paginationConfiguration->getPageSize()
+ );
}
- public function count()
- {
+ public function count() {
return $this->cancellationsRepository->countCancellationsOfEvent($this->eventId);
}
-}
\ No newline at end of file
+}
diff --git a/src/EventRepository.php b/src/EventRepository.php
index 979d4dc..118864f 100644
--- a/src/EventRepository.php
+++ b/src/EventRepository.php
@@ -1,9 +1,7 @@
<?php
-
namespace BaclucEventPackage;
-
use BaclucC5Crud\Entity\Identifiable;
use BaclucC5Crud\Entity\OrderConfigEntry;
use BaclucC5Crud\Entity\Repository;
@@ -11,8 +9,7 @@
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
-class EventRepository implements Repository
-{
+class EventRepository implements Repository {
/**
* @var Repository
*/
@@ -22,69 +19,61 @@
*/
private $entityManager;
-
/**
* EventRepository constructor.
- * @param Repository $standardRepository
+ *
* @param EntityManagerInterface $entityManager
*/
- public function __construct(Repository $standardRepository, EntityManager $entityManager)
- {
+ public function __construct(Repository $standardRepository, EntityManager $entityManager) {
$this->standardRepository = $standardRepository;
$this->entityManager = $entityManager;
}
-
- public function create()
- {
+ public function create() {
return $this->standardRepository->create();
}
- public function persist(Identifiable $entity)
- {
+ public function persist(Identifiable $entity) {
return $this->standardRepository->persist($entity);
}
/**
- * @inheritDoc
+ * {@inheritDoc}
*/
- public function getAll(int $offset = 0, int $limit = null, array $orderEntries = [])
- {
- if (sizeof($orderEntries) == 0) {
- $orderEntries = [new OrderConfigEntry("date_from", false), new OrderConfigEntry("date_to", false)];
+ public function getAll(int $offset = 0, int $limit = null, array $orderEntries = []) {
+ if (0 == sizeof($orderEntries)) {
+ $orderEntries = [new OrderConfigEntry('date_from', false), new OrderConfigEntry('date_to', false)];
}
+
return $this->standardRepository->getAll($offset, $limit, $orderEntries);
}
- public function getById(int $id)
- {
+ public function getById(int $id) {
return $this->standardRepository->getById($id);
}
- public function delete(Identifiable $toDeleteEntity)
- {
+ public function delete(Identifiable $toDeleteEntity) {
return $this->standardRepository->delete($toDeleteEntity);
}
- public function getLastEventOfGroup(array $groupIds)
- {
+ public function getLastEventOfGroup(array $groupIds) {
$qb = $this->entityManager->createQueryBuilder();
$qb->select('event')
- ->from(Event::class, "event")
- ->join("event.eventGroups", "groups")
- ->where($qb->expr()->in("groups.gID", ":groupIds"))
- ->andWhere($qb->expr()->gte("event.date_to", ":date"))
+ ->from(Event::class, 'event')
+ ->join('event.eventGroups', 'groups')
+ ->where($qb->expr()->in('groups.gID', ':groupIds'))
+ ->andWhere($qb->expr()->gte('event.date_to', ':date'))
->orderBy('event.date_from')
->setMaxResults(1)
- ->setParameter("groupIds", $groupIds)
- ->setParameter("date", new DateTime());
+ ->setParameter('groupIds', $groupIds)
+ ->setParameter('date', new DateTime())
+ ;
$query = $qb->getQuery();
+
return $query->getResult();
}
-
- public function count()
- {
+ public function count() {
return $this->standardRepository->count();
}
-}
\ No newline at end of file
+}
diff --git a/src/EventRowActionConfiguration.php b/src/EventRowActionConfiguration.php
index 728276e..d5c44ac 100644
--- a/src/EventRowActionConfiguration.php
+++ b/src/EventRowActionConfiguration.php
@@ -1,15 +1,12 @@
<?php
-
namespace BaclucEventPackage;
-
use BaclucC5Crud\Controller\DefaultRowActionConfiguration;
use BaclucC5Crud\Controller\RowActionConfiguration;
use BaclucC5Crud\View\ViewActionRegistry;
-class EventRowActionConfiguration implements RowActionConfiguration
-{
+class EventRowActionConfiguration implements RowActionConfiguration {
/**
* @var ViewActionRegistry
*/
@@ -27,14 +24,13 @@
$this->defaultRowActionConfiguration = $defaultRowActionConfiguration;
}
-
/**
- * @inheritDoc
+ * {@inheritDoc}
*/
- public function getActions(): array
- {
+ public function getActions(): array {
$viewActionDefinitions = $this->defaultRowActionConfiguration->getActions();
$viewActionDefinitions[] = $this->viewActionRegistry->getByName(EventActionRegistryFactory::SHOW_CANCELLATIONS);
+
return $viewActionDefinitions;
}
-}
\ No newline at end of file
+}
diff --git a/src/Group.php b/src/Group.php
index 23333a1..130d653 100755
--- a/src/Group.php
+++ b/src/Group.php
@@ -3,7 +3,7 @@
* Created by PhpStorm.
* User: lucius
* Date: 01.02.16
- * Time: 23:08
+ * Time: 23:08.
*/
namespace BaclucEventPackage;
@@ -22,27 +22,26 @@
/**
* Class Group
- * package Concrete\Package\BasicTablePackage\Src
+ * package Concrete\Package\BasicTablePackage\Src.
+ *
* @Entity
- * @Table(name="Groups"
- * , indexes={
- * @Index(name="gName",
- * columns={"gName"}),
- * @Index(name="gBadgeFID",
- * columns={"gBadgeFID"}),
- * @Index(name="pkgID",
- * columns={"pkgID"})
+ * @Table(name="Groups", indexes={
+ * @Index(name="gName",
+ * columns={"gName"}),
+ * @Index(name="gBadgeFID",
+ * columns={"gBadgeFID"}),
+ * @Index(name="pkgID",
+ * columns={"pkgID"})
* }
* )
- *
*/
-class Group implements WithUniqueStringRepresentation, Identifiable
-{
- use SetterTrait, GetterTrait;
+class Group implements WithUniqueStringRepresentation, Identifiable {
+ use SetterTrait;
+ use GetterTrait;
/**
* @var int
- * @Id @Column(type="integer", nullable=false, options={"unsigned":true})
+ * @Id @Column(type="integer", nullable=false, options={"unsigned": true})
* @GeneratedValue(strategy="AUTO")
*/
private $gID;
@@ -60,12 +59,11 @@
private $gDescription;
/**
- * @var boolean
- * @Column(type="boolean", options={"default"=0})
+ * @var bool
+ * @Column(type="boolean", options={"default": 0})
*/
private $gUserExpirationIsEnabled;
-
/**
* @var string
* @Column(type="string", length=12)
@@ -80,8 +78,7 @@
/**
* @var int
- * @Column(type="integer", length=10, nullable=false, options={"unsigned":true, "default"=0})
- *
+ * @Column(type="integer", length=10, nullable=false, options={"unsigned": true, "default": 0})
*/
private $gUserExpirationInterval;
@@ -92,19 +89,17 @@
private $gUserExpirationAction;
/**
- * @var boolean
- * @Column(type="boolean", nullable=false, options={"default"=0})
+ * @var bool
+ * @Column(type="boolean", nullable=false, options={"default": 0})
*/
private $gIsBadge;
/**
* @var int
- * @Column(type="integer", length=10, nullable=false, options={"unsigned":true, "default"=0})
- *
+ * @Column(type="integer", length=10, nullable=false, options={"unsigned": true, "default": 0})
*/
private $gBadgeFID;
-
/**
* @var string
* @Column(type="string", length=255)
@@ -113,31 +108,31 @@
/**
* @var int
- * @Column(type="integer", length=11, nullable=false, options={"default"=0})
+ * @Column(type="integer", length=11, nullable=false, options={"default": 0})
*/
private $gBadgeCommunityPointValue;
/**
- * @var boolean
- * @Column(type="boolean", nullable=false, options={"default"=0})
+ * @var bool
+ * @Column(type="boolean", nullable=false, options={"default": 0})
*/
private $gIsAutomated;
/**
- * @var boolean
- * @Column(type="boolean", nullable=false, options={"default"=0})
+ * @var bool
+ * @Column(type="boolean", nullable=false, options={"default": 0})
*/
private $gCheckAutomationOnRegister;
/**
- * @var boolean
- * @Column(type="boolean", nullable=false, options={"default"=0})
+ * @var bool
+ * @Column(type="boolean", nullable=false, options={"default": 0})
*/
private $gCheckAutomationOnLogin;
/**
- * @var boolean
- * @Column(type="boolean", nullable=false, options={"default"=0})
+ * @var bool
+ * @Column(type="boolean", nullable=false, options={"default": 0})
*/
private $gCheckAutomationOnJobRun;
@@ -149,36 +144,30 @@
/**
* @var int
- * @Column(type="integer", length=10, nullable=false, options={"unsigned":true, "default"=0})
- *
+ * @Column(type="integer", length=10, nullable=false, options={"unsigned": true, "default": 0})
*/
private $pkgID;
/**
* @return string
*/
- public function __toString()
- {
+ public function __toString() {
return $this->gName;
}
- public function createUniqueString(): string
- {
+ public function createUniqueString(): string {
return $this->gName;
}
- public function getId()
- {
+ public function getId() {
return $this->gID;
}
- public function setId(int $id)
- {
+ public function setId(int $id) {
$this->gID = $id;
}
- public static function getIdFieldName(): string
- {
- return "gID";
+ public static function getIdFieldName(): string {
+ return 'gID';
}
-}
\ No newline at end of file
+}
diff --git a/src/NextEvent/NextEventConfiguration.php b/src/NextEvent/NextEventConfiguration.php
index a4cc410..d82effc 100644
--- a/src/NextEvent/NextEventConfiguration.php
+++ b/src/NextEvent/NextEventConfiguration.php
@@ -1,9 +1,7 @@
<?php
-
namespace BaclucEventPackage\NextEvent;
-
use BaclucC5Crud\Entity\Identifiable;
use BaclucC5Crud\Lib\GetterTrait;
use BaclucC5Crud\Lib\SetterTrait;
@@ -18,22 +16,14 @@
use Doctrine\ORM\Mapping\Table;
/**
- * Class ExampleEntity
* @IgnoreAnnotation("package")
* Concrete\Package\BaclucC5Crud\Src
* @Entity
* @Table(name="NextEventConfiguration")
*/
-class NextEventConfiguration implements Identifiable
-{
- use GetterTrait, SetterTrait;
-
- /**
- * Id of the block the configuration references
- * @var int
- * @Id @Column(type="integer")
- */
- private $id;
+class NextEventConfiguration implements Identifiable {
+ use GetterTrait;
+ use SetterTrait;
/**
* @var Group[]
@@ -46,25 +36,29 @@
protected $showNextEventOfGroups;
/**
+ * Id of the block the configuration references.
+ *
+ * @var int
+ * @Id @Column(type="integer")
+ */
+ private $id;
+
+ /**
* NextEventConfiguration constructor.
*/
- public function __construct()
- {
+ public function __construct() {
$this->showNextEventOfGroups = new ArrayCollection();
}
- public function getId()
- {
+ public function getId() {
return $this->id;
}
- public function setId(int $id)
- {
+ public function setId(int $id) {
$this->id = $id;
}
- public static function getIdFieldName(): string
- {
- return "id";
+ public static function getIdFieldName(): string {
+ return 'id';
}
-}
\ No newline at end of file
+}
diff --git a/src/NextEvent/ShowNextEvent.php b/src/NextEvent/ShowNextEvent.php
index 9589cac..d27ecf6 100644
--- a/src/NextEvent/ShowNextEvent.php
+++ b/src/NextEvent/ShowNextEvent.php
@@ -1,20 +1,17 @@
<?php
-
namespace BaclucEventPackage\NextEvent;
-
use BaclucC5Crud\Controller\PaginationConfiguration;
use BaclucC5Crud\Controller\Renderer;
use BaclucC5Crud\Controller\VariableSetter;
+use function BaclucC5Crud\Lib\collect as collect;
use BaclucC5Crud\TableViewService;
use BaclucC5Crud\View\ViewActionRegistry;
use BaclucEventPackage\EventActionRegistryFactory;
use BaclucEventPackage\NoEditIdFallbackActionProcessor;
-use function BaclucC5Crud\Lib\collect as collect;
-class ShowNextEvent implements NoEditIdFallbackActionProcessor
-{
+class ShowNextEvent implements NoEditIdFallbackActionProcessor {
/**
* @var TableViewService
*/
@@ -34,9 +31,6 @@
/**
* ShowFormActionProcessor constructor.
- * @param TableViewService $tableViewService
- * @param VariableSetter $variableSetter
- * @param Renderer $renderer
*/
public function __construct(
TableViewService $tableViewService,
@@ -50,14 +44,11 @@
$this->viewActionRegistry = $viewActionRegistry;
}
-
- function getName(): string
- {
+ public function getName(): string {
return EventActionRegistryFactory::SHOW_NEXT_EVENT;
}
- function process(array $get, array $post, ...$additionalParameters)
- {
+ public function process(array $get, array $post, ...$additionalParameters) {
$tableView = $this->tableViewService->getTableView(new PaginationConfiguration(0, null));
$rows = $tableView->getRows();
@@ -67,16 +58,17 @@
} else {
$eventfound = false;
}
- $this->variableSetter->set("eventfound", $eventfound);
+ $this->variableSetter->set('eventfound', $eventfound);
if ($eventfound) {
foreach ($detailEntry as $key => $value) {
$this->variableSetter->set($key, $value);
}
- $this->variableSetter->set("eventId", array_keys($rows)[0]);
+ $this->variableSetter->set('eventId', array_keys($rows)[0]);
}
- $this->variableSetter->set("actions",
- [$this->viewActionRegistry->getByName(EventActionRegistryFactory::SHOW_CANCEL_EVENT_FORM)]);
- $this->renderer->render("view/nextevent");
+ $this->variableSetter->set(
+ 'actions',
+ [$this->viewActionRegistry->getByName(EventActionRegistryFactory::SHOW_CANCEL_EVENT_FORM)]
+ );
+ $this->renderer->render('view/nextevent');
}
-
-}
\ No newline at end of file
+}
diff --git a/src/NextEvent/ShowNextEventEntrySupplier.php b/src/NextEvent/ShowNextEventEntrySupplier.php
index 76998d3..fe2dad4 100644
--- a/src/NextEvent/ShowNextEventEntrySupplier.php
+++ b/src/NextEvent/ShowNextEventEntrySupplier.php
@@ -1,17 +1,14 @@
<?php
-
namespace BaclucEventPackage\NextEvent;
-
use BaclucC5Crud\Controller\PaginationConfiguration;
use BaclucC5Crud\Entity\ConfigurationSupplier;
use BaclucC5Crud\Entity\TableViewEntrySupplier;
-use BaclucEventPackage\EventRepository;
use function BaclucC5Crud\Lib\collect as collect;
+use BaclucEventPackage\EventRepository;
-class ShowNextEventEntrySupplier implements TableViewEntrySupplier
-{
+class ShowNextEventEntrySupplier implements TableViewEntrySupplier {
/**
* @var EventRepository
*/
@@ -21,17 +18,15 @@
*/
private $configurationSupplier;
-
- public function __construct(EventRepository $eventRepository, ConfigurationSupplier $configurationSupplier)
- {
+ public function __construct(EventRepository $eventRepository, ConfigurationSupplier $configurationSupplier) {
$this->eventRepository = $eventRepository;
$this->configurationSupplier = $configurationSupplier;
}
- public function getEntries(PaginationConfiguration $paginationConfiguration)
- {
+ public function getEntries(PaginationConfiguration $paginationConfiguration) {
/** @var NextEventConfiguration $configuration */
$configuration = $this->configurationSupplier->getConfiguration();
+
return $this->eventRepository->getLastEventOfGroup(collect($configuration->showNextEventOfGroups)
->map(function ($group) {
return $group->gID;
@@ -39,8 +34,7 @@
->toArray());
}
- public function count()
- {
+ public function count() {
return 1;
}
-}
\ No newline at end of file
+}
diff --git a/src/NoEditIdFallbackActionProcessor.php b/src/NoEditIdFallbackActionProcessor.php
index 38a405e..27f0aa8 100644
--- a/src/NoEditIdFallbackActionProcessor.php
+++ b/src/NoEditIdFallbackActionProcessor.php
@@ -1,12 +1,8 @@
<?php
-
namespace BaclucEventPackage;
-
use BaclucC5Crud\Controller\ActionProcessor;
-interface NoEditIdFallbackActionProcessor extends ActionProcessor
-{
-
-}
\ No newline at end of file
+interface NoEditIdFallbackActionProcessor extends ActionProcessor {
+}
diff --git a/src/PostCancelEventForm.php b/src/PostCancelEventForm.php
index 2c870b6..b97693f 100644
--- a/src/PostCancelEventForm.php
+++ b/src/PostCancelEventForm.php
@@ -1,9 +1,7 @@
<?php
-
namespace BaclucEventPackage;
-
use BaclucC5Crud\Controller\ActionProcessor;
use BaclucC5Crud\Controller\Renderer;
use BaclucC5Crud\Controller\Validation\ValidationResultItem;
@@ -13,13 +11,12 @@
use BaclucC5Crud\Controller\VariableSetter;
use BaclucC5Crud\Entity\Repository;
use BaclucC5Crud\FormViewAfterValidationFailedService;
+use function BaclucC5Crud\Lib\collect as collect;
use BaclucC5Crud\View\CancelFormViewAction;
use BaclucC5Crud\View\SubmitFormViewAction;
-use function BaclucC5Crud\Lib\collect as collect;
-class PostCancelEventForm implements ActionProcessor
-{
- const FORM_VIEW = "view/form";
+class PostCancelEventForm implements ActionProcessor {
+ const FORM_VIEW = 'view/form';
/**
* @var Validator
*/
@@ -59,15 +56,6 @@
/**
* PostFormActionProcessor constructor.
- * @param Validator $validator
- * @param FormViewAfterValidationFailedService $formViewAfterValidationFailedService
- * @param Repository $repository
- * @param PersistorConfiguration $peristorConfiguration
- * @param VariableSetter $variableSetter
- * @param Renderer $renderer
- * @param NoEditIdFallbackActionProcessor $noEditIdFallbackActionProcessor
- * @param SubmitFormViewAction $submitFormAction
- * @param CancelFormViewAction $cancelFormAction
*/
public function __construct(
Validator $validator,
@@ -91,19 +79,17 @@
$this->cancelFormAction = $cancelFormAction;
}
- function getName(): string
- {
+ public function getName(): string {
return EventActionRegistryFactory::POST_CANCEL_EVENT_FORM;
}
- function process(array $get, array $post, ...$additionalParameters)
- {
+ public function process(array $get, array $post, ...$additionalParameters) {
$editId = null;
- if (count($additionalParameters) == 1 && $additionalParameters[0] != null) {
+ if (1 == count($additionalParameters) && null != $additionalParameters[0]) {
$editId = $additionalParameters[0];
}
- if ($editId == null) {
- return call_user_func_array([$this->noEditIdFallbackActionProcessor, "process"], func_get_args());
+ if (null == $editId) {
+ return call_user_func_array([$this->noEditIdFallbackActionProcessor, 'process'], func_get_args());
}
$validationResult = $this->validator->validate($post);
@@ -115,7 +101,8 @@
})
->map(function (ValidationResultItem $validationResultItem) {
return $validationResultItem->getPostValue();
- });
+ })
+ ;
$postValues['event'] = $editId;
$entity = $this->repository->create();
@@ -128,20 +115,19 @@
$this->repository->persist($entity);
} else {
$formView = $this->formViewAfterValidationFailedService->getFormView($validationResult);
- $this->variableSetter->set("fields", $formView->getFields());
- $this->variableSetter->set("editId", $editId);
+ $this->variableSetter->set('fields', $formView->getFields());
+ $this->variableSetter->set('editId', $editId);
$validationErrors = collect($validationResult)
->keyBy(function (ValidationResultItem $resultItem) {
return $resultItem->getName();
})->map(function (ValidationResultItem $resultItem) {
return $resultItem->getMessages();
});
- $this->variableSetter->set("validationErrors", $validationErrors);
- $this->variableSetter->set("addFormTags", true);
- $this->variableSetter->set("submitFormAction", $this->submitFormAction);
- $this->variableSetter->set("cancelFormAction", $this->cancelFormAction);
+ $this->variableSetter->set('validationErrors', $validationErrors);
+ $this->variableSetter->set('addFormTags', true);
+ $this->variableSetter->set('submitFormAction', $this->submitFormAction);
+ $this->variableSetter->set('cancelFormAction', $this->cancelFormAction);
$this->renderer->render(self::FORM_VIEW);
}
}
-
-}
\ No newline at end of file
+}
diff --git a/src/ShowCancelEventForm.php b/src/ShowCancelEventForm.php
index 460c1df..9522fa7 100644
--- a/src/ShowCancelEventForm.php
+++ b/src/ShowCancelEventForm.php
@@ -1,9 +1,7 @@
<?php
-
namespace BaclucEventPackage;
-
use BaclucC5Crud\Controller\ActionProcessor;
use BaclucC5Crud\Controller\ActionProcessors\ShowEditEntryForm;
use BaclucC5Crud\Controller\Renderer;
@@ -12,8 +10,7 @@
use BaclucC5Crud\View\FormView\TextField;
use BaclucC5Crud\View\SubmitFormViewAction;
-class ShowCancelEventForm implements ActionProcessor
-{
+class ShowCancelEventForm implements ActionProcessor {
/**
* @var VariableSetter
*/
@@ -43,25 +40,21 @@
$this->cancelFormAction = $cancelFormAction;
}
-
- function getName(): string
- {
+ public function getName(): string {
return EventActionRegistryFactory::SHOW_CANCEL_EVENT_FORM;
}
- function process(array $get, array $post, ...$additionalParameters)
- {
- $textField = new TextField("Name", "name", "");
+ public function process(array $get, array $post, ...$additionalParameters) {
+ $textField = new TextField('Name', 'name', '');
$editId = null;
- if (count($additionalParameters) == 1) {
+ if (1 == count($additionalParameters)) {
$editId = $additionalParameters[0];
}
- $this->variableSetter->set("fields", [$textField]);
- $this->variableSetter->set("editId", $editId);
- $this->variableSetter->set("addFormTags", true);
- $this->variableSetter->set("submitFormAction", $this->submitFormAction);
- $this->variableSetter->set("cancelFormAction", $this->cancelFormAction);
+ $this->variableSetter->set('fields', [$textField]);
+ $this->variableSetter->set('editId', $editId);
+ $this->variableSetter->set('addFormTags', true);
+ $this->variableSetter->set('submitFormAction', $this->submitFormAction);
+ $this->variableSetter->set('cancelFormAction', $this->cancelFormAction);
$this->renderer->render(ShowEditEntryForm::FORM_VIEW);
}
-
-}
\ No newline at end of file
+}
diff --git a/src/ShowCancellations.php b/src/ShowCancellations.php
index 0cce01a..4f0a2ae 100644
--- a/src/ShowCancellations.php
+++ b/src/ShowCancellations.php
@@ -1,9 +1,7 @@
<?php
-
namespace BaclucEventPackage;
-
use BaclucC5Crud\Controller\ActionProcessor;
use BaclucC5Crud\Controller\ActionRegistryFactory;
use BaclucC5Crud\Controller\PaginationParser;
@@ -14,9 +12,8 @@
use BaclucC5Crud\View\TableView\TableViewFieldConfiguration;
use BaclucC5Crud\View\ViewActionRegistry;
-class ShowCancellations implements ActionProcessor
-{
- const TABLE_VIEW = "view/table";
+class ShowCancellations implements ActionProcessor {
+ const TABLE_VIEW = 'view/table';
/**
* @var VariableSetter
*/
@@ -64,20 +61,17 @@
$this->paginationParser = $paginationParser;
}
- function getName(): string
- {
+ public function getName(): string {
return EventActionRegistryFactory::SHOW_CANCELLATIONS;
}
-
- function process(array $get, array $post, ...$additionalParameters)
- {
+ public function process(array $get, array $post, ...$additionalParameters) {
$editId = null;
- if (count($additionalParameters) == 1 && $additionalParameters[0] != null) {
+ if (1 == count($additionalParameters) && null != $additionalParameters[0]) {
$editId = $additionalParameters[0];
}
- if ($editId == null) {
- return call_user_func_array([$this->noEditIdFallbackActionProcessor, "process"], func_get_args());
+ if (null == $editId) {
+ return call_user_func_array([$this->noEditIdFallbackActionProcessor, 'process'], func_get_args());
}
$eventCancellationsTableEntrySupplier =
@@ -87,17 +81,18 @@
$paginationConfiguration = $this->paginationParser->parse($get);
$tableView = $tableViewService->getTableView($paginationConfiguration);
- $this->variableSetter->set("headers", $tableView->getHeaders());
- $this->variableSetter->set("rows", $tableView->getRows());
- $this->variableSetter->set("actions",
- [$this->viewActionRegistry->getByName(ActionRegistryFactory::BACK_TO_MAIN)]);
- $this->variableSetter->set("rowactions", []);
- $this->variableSetter->set("count", $tableView->getCount());
- $this->variableSetter->set("currentPage", $paginationConfiguration->getCurrentPage());
- $this->variableSetter->set("pageSize", $paginationConfiguration->getPageSize());
- $pageSizeField = new IntegerField("Entries to display", "pageSize", $paginationConfiguration->getPageSize());
- $this->variableSetter->set("pageSizeField", $pageSizeField);
+ $this->variableSetter->set('headers', $tableView->getHeaders());
+ $this->variableSetter->set('rows', $tableView->getRows());
+ $this->variableSetter->set(
+ 'actions',
+ [$this->viewActionRegistry->getByName(ActionRegistryFactory::BACK_TO_MAIN)]
+ );
+ $this->variableSetter->set('rowactions', []);
+ $this->variableSetter->set('count', $tableView->getCount());
+ $this->variableSetter->set('currentPage', $paginationConfiguration->getCurrentPage());
+ $this->variableSetter->set('pageSize', $paginationConfiguration->getPageSize());
+ $pageSizeField = new IntegerField('Entries to display', 'pageSize', $paginationConfiguration->getPageSize());
+ $this->variableSetter->set('pageSizeField', $pageSizeField);
$this->renderer->render(self::TABLE_VIEW);
}
-
-}
\ No newline at end of file
+}
diff --git a/src/ShowErrorActionProcessor.php b/src/ShowErrorActionProcessor.php
index 4b7d18d..e741382 100644
--- a/src/ShowErrorActionProcessor.php
+++ b/src/ShowErrorActionProcessor.php
@@ -1,12 +1,8 @@
<?php
-
namespace BaclucEventPackage;
-
use BaclucC5Crud\Controller\ActionProcessors\ShowErrorActionProcessor as CrudShowErrorActionProcessor;
-class ShowErrorActionProcessor extends CrudShowErrorActionProcessor implements NoEditIdFallbackActionProcessor
-{
-
-}
\ No newline at end of file
+class ShowErrorActionProcessor extends CrudShowErrorActionProcessor implements NoEditIdFallbackActionProcessor {
+}
diff --git a/src/ViewActionRegistryFactory.php b/src/ViewActionRegistryFactory.php
index 1ebd50c..d96a9e9 100644
--- a/src/ViewActionRegistryFactory.php
+++ b/src/ViewActionRegistryFactory.php
@@ -1,48 +1,50 @@
<?php
-
namespace BaclucEventPackage;
-
use BaclucC5Crud\View\ViewActionDefinition;
use BaclucC5Crud\View\ViewActionRegistry;
use BaclucC5Crud\View\ViewActionRegistryFactory as CrudViewActionRegistryFactory;
-class ViewActionRegistryFactory
-{
+class ViewActionRegistryFactory {
/**
* @var CrudViewActionRegistryFactory
*/
private $viewActionRegistryFactory;
- public function __construct(CrudViewActionRegistryFactory $viewActionRegistryFactory)
- {
+ public function __construct(CrudViewActionRegistryFactory $viewActionRegistryFactory) {
$this->viewActionRegistryFactory = $viewActionRegistryFactory;
}
- public function createActionRegistry(): ViewActionRegistry
- {
+ public function createActionRegistry(): ViewActionRegistry {
$viewActionRegistry = $this->viewActionRegistryFactory->createActionRegistry();
$existingActions = $viewActionRegistry->getActions();
$existingActions[] =
- new ViewActionDefinition(EventActionRegistryFactory::SHOW_CANCEL_EVENT_FORM,
- "cancel-event",
- "cancel",
- "cancel",
- "fa-sign-out");
+ new ViewActionDefinition(
+ EventActionRegistryFactory::SHOW_CANCEL_EVENT_FORM,
+ 'cancel-event',
+ 'cancel',
+ 'cancel',
+ 'fa-sign-out'
+ );
$existingActions[] =
- new ViewActionDefinition(EventActionRegistryFactory::POST_CANCEL_EVENT_FORM,
- "",
- "Save Cancellation",
- "Save Cancellation",
- "");
+ new ViewActionDefinition(
+ EventActionRegistryFactory::POST_CANCEL_EVENT_FORM,
+ '',
+ 'Save Cancellation',
+ 'Save Cancellation',
+ ''
+ );
$existingActions[] =
- new ViewActionDefinition(EventActionRegistryFactory::SHOW_CANCELLATIONS,
- "show-cancellations",
- "Show Cancellations",
- "Show Cancellations",
- "fa-list-ul");
+ new ViewActionDefinition(
+ EventActionRegistryFactory::SHOW_CANCELLATIONS,
+ 'show-cancellations',
+ 'Show Cancellations',
+ 'Show Cancellations',
+ 'fa-list-ul'
+ );
+
return new ViewActionRegistry($existingActions);
}
-}
\ No newline at end of file
+}