Completed
Branch master (bb495d)
by Tomáš
06:13
created
Category
src/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 								->children()
25 25
 									->scalarNode('class')
26 26
 										->validate()
27
-											->ifTrue(function ($class) {
27
+											->ifTrue(function($class) {
28 28
 												return !class_exists($class);
29 29
 											})
30 30
 											->thenInvalid("Class doesn't exist.")
Please login to merge, or discard this patch.
src/DependencyInjection/OneGuardDynamicConfigurationExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 	public function load(array $configs, ContainerBuilder $container) {
18 18
 		$loader = new YamlFileLoader(
19 19
 			$container,
20
-			new FileLocator(__DIR__.'/../Resources/config')
20
+			new FileLocator(__DIR__ . '/../Resources/config')
21 21
 		);
22 22
 		$loader->load('services.yml');
23 23
 
Please login to merge, or discard this patch.
src/Form/ConfigurationValueType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
 	public function buildForm(FormBuilderInterface $builder, array $options) {
35 35
 		$builder
36
-			->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
36
+			->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
37 37
 				/* @var $configurationValue ConfigurationValue */
38 38
 				$configurationValue = $event->getData();
39 39
 				$definition = $this->registry->get($configurationValue->getKey());
Please login to merge, or discard this patch.
src/Form/EntityConfigurationValueType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
 	public function buildForm(FormBuilderInterface $builder, array $options) {
22 22
 		parent::buildForm($builder, $options);
23 23
 		$builder->addModelTransformer(new CallbackTransformer(
24
-			function ($id) use ($options) {
24
+			function($id) use ($options) {
25 25
 				return $id === null ? null : $this->doctrine->getRepository($options['class'])->find($id);
26 26
 			},
27
-			function ($entity) use ($options) {
27
+			function($entity) use ($options) {
28 28
 				return $entity === null ?
29 29
 					null : $this->doctrine->getEntityManagerForClass($options['class'])->getUnitOfWork()->getSingleIdentifierValue($entity);
30 30
 			}
Please login to merge, or discard this patch.
src/Controller/ConfigurationValueController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,13 +48,13 @@
 block discarded – undo
48 48
 	 */
49 49
 	public function assignAction(Request $request) {
50 50
 		$configurationValues = $this->entityManager->getRepository(ConfigurationValue::class)->findAll();
51
-		$existingValueKeys = array_map(function (ConfigurationValue $value) {
51
+		$existingValueKeys = array_map(function(ConfigurationValue $value) {
52 52
 			return $value->getKey();
53 53
 		}, $configurationValues);
54 54
 		$missingValueKeys = array_diff($this->registry->keys(), $existingValueKeys);
55 55
 		$configurationValues = array_merge(
56 56
 			$configurationValues,
57
-			array_map(function (string $key) {
57
+			array_map(function(string $key) {
58 58
 				$value = new ConfigurationValue();
59 59
 				$value->setKey($key);
60 60
 				return $value;
Please login to merge, or discard this patch.