Completed
Push — master ( 7608d5...c7e8fc )
by Jan
04:19
created
src/Services/ToolsTreeBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,9 +66,9 @@
 block discarded – undo
66 66
      */
67 67
     public function getTree() : array
68 68
     {
69
-        $key = "tree_tools_" .  $this->keyGenerator->generateKey();
69
+        $key = "tree_tools_".$this->keyGenerator->generateKey();
70 70
 
71
-        return $this->cache->get($key, function (ItemInterface $item) {
71
+        return $this->cache->get($key, function(ItemInterface $item) {
72 72
             //Invalidate tree, whenever group or the user changes
73 73
             $item->tag(["tree_tools", "groups", $this->keyGenerator->generateKey()]);
74 74
 
Please login to merge, or discard this patch.
src/Controller/AdminPages/BaseAdminController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $em->flush();
96 96
             //$this->addFlash('success', $translator->trans('part.created_flash'));
97 97
 
98
-            return $this->redirectToRoute($this->route_base . '_edit', ['id' => $new_entity->getID()]);
98
+            return $this->redirectToRoute($this->route_base.'_edit', ['id' => $new_entity->getID()]);
99 99
         }
100 100
 
101 101
         //Import form
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
             foreach ($errors as $name => $error) {
116 116
                 /** @var $error ConstraintViolationList */
117
-                $this->addFlash('error', $name . ':' . $error);
117
+                $this->addFlash('error', $name.':'.$error);
118 118
             }
119 119
         }
120 120
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             //Show errors to user:
134 134
             foreach ($errors as $name => $error) {
135 135
                 /** @var $error ConstraintViolationList */
136
-                $this->addFlash('error', $name . ':' . $error);
136
+                $this->addFlash('error', $name.':'.$error);
137 137
             }
138 138
         }
139 139
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             $this->addFlash('success', 'attachment_type.deleted');
175 175
         }
176 176
 
177
-        return $this->redirectToRoute($this->route_base .  '_new');
177
+        return $this->redirectToRoute($this->route_base.'_new');
178 178
     }
179 179
 
180 180
     protected function _exportAll(EntityManagerInterface $em, EntityExporter $exporter, Request $request)
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
         $entities = $em->getRepository($this->entity_class)->findAll();
187 187
 
188
-        return $exporter->exportEntityFromRequest($entities,$request);
188
+        return $exporter->exportEntityFromRequest($entities, $request);
189 189
     }
190 190
 
191 191
     protected function _exportEntity(NamedDBElement $entity, EntityExporter $exporter, Request $request)
Please login to merge, or discard this patch.
src/Form/Part/PartLotType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             'disable_not_selectable' => true,
62 62
             'attr' => ['class' => 'selectpicker form-control-sm', 'data-live-search' => true]]);
63 63
 
64
-        $builder->add('amount',NumberType::class, [ 'html5' => true,
64
+        $builder->add('amount', NumberType::class, ['html5' => true,
65 65
             'label' => 'part_lot.edit.amount',
66 66
             'attr' => ['class' => 'form-control-sm', 'min' => 0, 'step' => 'any']
67 67
         ]);
Please login to merge, or discard this patch.
src/Form/Type/StructuralEntityType.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
     public function buildForm(FormBuilderInterface $builder, array $options)
74 74
     {
75 75
         $builder->addModelTransformer(new CallbackTransformer(
76
-            function ($value) use ($options){
76
+            function($value) use ($options){
77 77
                 return $this->transform($value, $options);
78
-            }, function ($value) use ($options) {
78
+            }, function($value) use ($options) {
79 79
                 return $this->reverseTransform($value, $options);
80 80
         }));
81 81
     }
@@ -85,15 +85,15 @@  discard block
 block discarded – undo
85 85
         $resolver->setRequired(['class']);
86 86
         $resolver->setDefaults(['attr' => ['class' => 'selectpicker', 'data-live-search' => true],
87 87
             'show_fullpath_in_subtext' => true, //When this is enabled, the full path will be shown in subtext
88
-            'subentities_of' => null,   //Only show entities with the given parent class
89
-            'disable_not_selectable' => false,  //Disable entries with not selectable property
90
-            'choice_loader' => function (Options $options) {
91
-                return new CallbackChoiceLoader(function () use ($options) {
88
+            'subentities_of' => null, //Only show entities with the given parent class
89
+            'disable_not_selectable' => false, //Disable entries with not selectable property
90
+            'choice_loader' => function(Options $options) {
91
+                return new CallbackChoiceLoader(function() use ($options) {
92 92
                     return $this->getEntries($options);
93 93
                 });
94
-            }, 'choice_label' => function ($choice, $key, $value) {
94
+            }, 'choice_label' => function($choice, $key, $value) {
95 95
                 return $this->generateChoiceLabels($choice, $key, $value);
96
-            }, 'choice_attr' => function ($choice, $key, $value) {
96
+            }, 'choice_attr' => function($choice, $key, $value) {
97 97
                 return $this->generateChoiceAttr($choice, $key, $value);
98 98
             }
99 99
         ]);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
 
130 130
         $tmp = str_repeat('   ', $choice->getLevel()); //Use 3 spaces for intendation
131
-        $tmp .=  htmlspecialchars($choice->getName($parent));
131
+        $tmp .= htmlspecialchars($choice->getName($parent));
132 132
         return $tmp;
133 133
     }
134 134
 
Please login to merge, or discard this patch.