Passed
Push — master ( 977fa1...0d215e )
by Jan
04:21
created
src/Services/TreeBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
         $secure_class_name = str_replace('\\', '_', $class_name);
167 167
         $key = 'list_'.$this->keyGenerator->generateKey().'_'.$secure_class_name.$parent_id;
168 168
 
169
-        $ret = $this->cache->get($key, function (ItemInterface $item) use ($class_name, $parent, $secure_class_name) {
169
+        $ret = $this->cache->get($key, function(ItemInterface $item) use ($class_name, $parent, $secure_class_name) {
170 170
             // Invalidate when groups, a element with the class or the user changes
171 171
             $item->tag(['groups', 'tree_list', $this->keyGenerator->generateKey(), $secure_class_name]);
172 172
             /**
Please login to merge, or discard this patch.
src/Services/StructuralElementRecursionHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     {
81 81
         $em = $this->em;
82 82
 
83
-        $this->execute($element, static function (StructuralDBElement $element) use ($em) {
83
+        $this->execute($element, static function(StructuralDBElement $element) use ($em) {
84 84
             $em->remove($element);
85 85
         });
86 86
 
Please login to merge, or discard this patch.
src/Services/ToolsTreeBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     {
78 78
         $key = 'tree_tools_'.$this->keyGenerator->generateKey();
79 79
 
80
-        return $this->cache->get($key, function (ItemInterface $item) {
80
+        return $this->cache->get($key, function(ItemInterface $item) {
81 81
             //Invalidate tree, whenever group or the user changes
82 82
             $item->tag(['tree_tools', 'groups', $this->keyGenerator->generateKey()]);
83 83
 
Please login to merge, or discard this patch.
src/Services/AmountFormatter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     protected function configureOptions(OptionsResolver $resolver)
41 41
     {
42 42
         $resolver->setDefaults([
43
-            'show_prefix' => function (Options $options) {
43
+            'show_prefix' => function(Options $options) {
44 44
                 if (null !== $options['measurement_unit']) {
45 45
                     /** @var MeasurementUnit $unit */
46 46
                     $unit = $options['measurement_unit'];
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
                 return false;
52 52
             },
53
-            'is_integer' => function (Options $options) {
53
+            'is_integer' => function(Options $options) {
54 54
                 if (null !== $options['measurement_unit']) {
55 55
                     /** @var MeasurementUnit $unit */
56 56
                     $unit = $options['measurement_unit'];
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
                 return true;
62 62
             },
63
-            'unit' => function (Options $options) {
63
+            'unit' => function(Options $options) {
64 64
                 if (null !== $options['measurement_unit']) {
65 65
                     /** @var MeasurementUnit $unit */
66 66
                     $unit = $options['measurement_unit'];
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
         $resolver->setAllowedTypes('decimals', 'int');
78 78
 
79
-        $resolver->setNormalizer('decimals', function (Options $options, $value) {
79
+        $resolver->setNormalizer('decimals', function(Options $options, $value) {
80 80
             // If the unit is integer based, then dont show any decimals
81 81
             if ($options['is_integer']) {
82 82
                 return 0;
Please login to merge, or discard this patch.
src/Twig/AppExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     public function getTests()
80 80
     {
81 81
         return [
82
-            new TwigTest('instanceof', function ($var, $instance) {
82
+            new TwigTest('instanceof', function($var, $instance) {
83 83
                 return $var instanceof $instance;
84 84
             }),
85 85
         ];
Please login to merge, or discard this patch.
src/Entity/Attachments/Attachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -477,7 +477,7 @@
 block discarded – undo
477 477
         if ($only_http) {   //Check if scheme is HTTPS or HTTP
478 478
             $scheme = parse_url($string, PHP_URL_SCHEME);
479 479
             if ('http' !== $scheme && 'https' !== $scheme) {
480
-                return false;   //All other schemes are not valid.
480
+                return false; //All other schemes are not valid.
481 481
             }
482 482
         }
483 483
         if ($path_required) {
Please login to merge, or discard this patch.
src/Entity/Base/StructuralDBElement.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,6 @@
 block discarded – undo
176 176
 
177 177
     /**
178 178
      *  Get the comment of the element.
179
-
180 179
      *
181 180
      * @return string the comment
182 181
      */
Please login to merge, or discard this patch.
src/DataTables/AttachmentDataTable.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $dataTable->add('picture', TextColumn::class, [
70 70
             'label' => '',
71
-            'render' => function ($value, Attachment $context) {
71
+            'render' => function($value, Attachment $context) {
72 72
                 if ($context->isPicture()
73 73
                     && !$context->isExternal()
74 74
                     && $this->attachmentHelper->isFileExisting($context)) {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
         $dataTable->add('name', TextColumn::class, [
89 89
             'label' => $this->translator->trans('attachment.edit.name'),
90
-            'render' => function ($value, Attachment $context) {
90
+            'render' => function($value, Attachment $context) {
91 91
                 //Link to external source
92 92
                 if ($context->isExternal()) {
93 93
                     return sprintf(
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
         $dataTable->add('attachment_type', TextColumn::class, [
113 113
             'field' => 'attachment_type.name',
114
-            'render' => function ($value, Attachment $context) {
114
+            'render' => function($value, Attachment $context) {
115 115
                 return sprintf(
116 116
                     '<a href="%s">%s</a>',
117 117
                     $this->entityURLGenerator->editURL($context->getAttachmentType()),
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         $dataTable->add('element', TextColumn::class, [
124 124
             'label' => $this->translator->trans('attachment.table.element'),
125 125
             //'propertyPath' => 'element.name',
126
-            'render' => function ($value, Attachment $context) {
126
+            'render' => function($value, Attachment $context) {
127 127
                 return sprintf(
128 128
                     '<a href="%s">%s</a>',
129 129
                     $this->entityURLGenerator->infoURL($context->getElement()),
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         ]);
138 138
 
139 139
         $dataTable->add('filesize', TextColumn::class, [
140
-            'render' => function ($value, Attachment $context) {
140
+            'render' => function($value, Attachment $context) {
141 141
                 if ($this->attachmentHelper->isFileExisting($context)) {
142 142
                     return $this->attachmentHelper->getHumanFileSize($context);
143 143
                 }
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
         $dataTable->createAdapter(ORMAdapter::class, [
203 203
             'entity' => Attachment::class,
204
-            'query' => function (QueryBuilder $builder) {
204
+            'query' => function(QueryBuilder $builder) {
205 205
                 $this->getQuery($builder);
206 206
             },
207 207
         ]);
Please login to merge, or discard this patch.
src/DataTables/Column/EntityColumn.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,12 +60,12 @@
 block discarded – undo
60 60
 
61 61
         $resolver->setRequired('property');
62 62
 
63
-        $resolver->setDefault('field', function (Options $option) {
63
+        $resolver->setDefault('field', function(Options $option) {
64 64
             return $option['property'].'.name';
65 65
         });
66 66
 
67
-        $resolver->setDefault('render', function (Options $options) {
68
-            return function ($value, Part $context) use ($options) {
67
+        $resolver->setDefault('render', function(Options $options) {
68
+            return function($value, Part $context) use ($options) {
69 69
                 /** @var DBElement $entity */
70 70
                 $entity = $this->accessor->getValue($context, $options['property']);
71 71
 
Please login to merge, or discard this patch.