@@ -544,6 +544,9 @@ discard block  | 
                                                    ||
| 544 | 544 | return $mapper;  | 
                                                        
| 545 | 545 | }  | 
                                                        
| 546 | 546 | |
| 547 | + /**  | 
                                                        |
| 548 | + * @param string $class  | 
                                                        |
| 549 | + */  | 
                                                        |
| 547 | 550 | protected function configureFields($function, BaseMapper $mapper, $class = null)  | 
                                                        
| 548 | 551 |      { | 
                                                        
| 549 | 552 |          if (!$class) { | 
                                                        
@@ -805,6 +808,9 @@ discard block  | 
                                                    ||
| 805 | 808 | return $baseRoute;  | 
                                                        
| 806 | 809 | }  | 
                                                        
| 807 | 810 | |
| 811 | + /**  | 
                                                        |
| 812 | + * @param string $callbackType  | 
                                                        |
| 813 | + */  | 
                                                        |
| 808 | 814 | protected function manageCallback($mapper, &$options, $callbackType)  | 
                                                        
| 809 | 815 |      { | 
                                                        
| 810 | 816 | $option = $options[$callbackType];  | 
                                                        
@@ -831,12 +837,18 @@ discard block  | 
                                                    ||
| 831 | 837 | return $callBackFunction;  | 
                                                        
| 832 | 838 | }  | 
                                                        
| 833 | 839 | |
| 840 | + /**  | 
                                                        |
| 841 | + * @param BaseMapper $mapper  | 
                                                        |
| 842 | + */  | 
                                                        |
| 834 | 843 | protected function manageQueryCallback($mapper, &$options)  | 
                                                        
| 835 | 844 |      { | 
                                                        
| 836 | 845 | $callback = $this->manageCallback($mapper, $options, 'query');  | 
                                                        
| 837 | 846 | $options['query'] = $callback;  | 
                                                        
| 838 | 847 | }  | 
                                                        
| 839 | 848 | |
| 849 | + /**  | 
                                                        |
| 850 | + * @param BaseMapper $mapper  | 
                                                        |
| 851 | + */  | 
                                                        |
| 840 | 852 | protected function manageChoicesCallback($mapper, &$options)  | 
                                                        
| 841 | 853 |      { | 
                                                        
| 842 | 854 | $callback = $this->manageCallback($mapper, $options, 'choicesCallback');  | 
                                                        
@@ -847,6 +859,9 @@ discard block  | 
                                                    ||
| 847 | 859 | });  | 
                                                        
| 848 | 860 | }  | 
                                                        
| 849 | 861 | |
| 862 | + /**  | 
                                                        |
| 863 | + * @param BaseMapper $mapper  | 
                                                        |
| 864 | + */  | 
                                                        |
| 850 | 865 | public function manageServiceCallback($mapper, &$options)  | 
                                                        
| 851 | 866 |      { | 
                                                        
| 852 | 867 | $this->manageCallback($mapper, $options, 'serviceCallback');  | 
                                                        
@@ -71,11 +71,9 @@ discard block  | 
                                                    ||
| 71 | 71 | |
| 72 | 72 | $fcts = [  | 
                                                        
| 73 | 73 | 'tabs' => $mapper instanceof ShowMapper ?  | 
                                                        
| 74 | - ['getter' => 'getShowTabs', 'setter' => 'setShowTabs'] :  | 
                                                        |
| 75 | - ['getter' => 'getFormTabs', 'setter' => 'setFormTabs'],  | 
                                                        |
| 74 | + ['getter' => 'getShowTabs', 'setter' => 'setShowTabs'] : ['getter' => 'getFormTabs', 'setter' => 'setFormTabs'],  | 
                                                        |
| 76 | 75 | 'groups' => $mapper instanceof ShowMapper ?  | 
                                                        
| 77 | - ['getter' => 'getShowGroups', 'setter' => 'setShowGroups'] :  | 
                                                        |
| 78 | - ['getter' => 'getFormGroups', 'setter' => 'setFormGroups'],  | 
                                                        |
| 76 | + ['getter' => 'getShowGroups', 'setter' => 'setShowGroups'] : ['getter' => 'getFormGroups', 'setter' => 'setFormGroups'],  | 
                                                        |
| 79 | 77 | ];  | 
                                                        
| 80 | 78 | |
| 81 | 79 | // Figure out if we have to display tabs on the Show view  | 
                                                        
@@ -265,11 +263,9 @@ discard block  | 
                                                    ||
| 265 | 263 | |
| 266 | 264 | $fcts = [  | 
                                                        
| 267 | 265 | 'tabs' => $mapper instanceof ShowMapper ?  | 
                                                        
| 268 | - ['getter' => 'getShowTabs', 'setter' => 'setShowTabs'] :  | 
                                                        |
| 269 | - ['getter' => 'getFormTabs', 'setter' => 'setFormTabs'],  | 
                                                        |
| 266 | + ['getter' => 'getShowTabs', 'setter' => 'setShowTabs'] : ['getter' => 'getFormTabs', 'setter' => 'setFormTabs'],  | 
                                                        |
| 270 | 267 | 'groups' => $mapper instanceof ShowMapper ?  | 
                                                        
| 271 | - ['getter' => 'getShowGroups', 'setter' => 'setShowGroups'] :  | 
                                                        |
| 272 | - ['getter' => 'getFormGroups', 'setter' => 'setFormGroups'],  | 
                                                        |
| 268 | + ['getter' => 'getShowGroups', 'setter' => 'setShowGroups'] : ['getter' => 'getFormGroups', 'setter' => 'setFormGroups'],  | 
                                                        |
| 273 | 269 | ];  | 
                                                        
| 274 | 270 | |
| 275 | 271 | // if a grouped organization can be shapped  | 
                                                        
@@ -667,7 +663,7 @@ discard block  | 
                                                    ||
| 667 | 663 |                      if (!is_array($fields) && isset($blast[$class][ListMapper::class]['add']['_export_format'][$fields])) { | 
                                                        
| 668 | 664 | $blast[$class][ListMapper::class]['add']['_export_format'][$format] = // the global fields array  | 
                                                        
| 669 | 665 | $fields = // the local fields array  | 
                                                        
| 670 | - $blast[$class][ListMapper::class]['add']['_export_format'][$fields]; // the source fields array  | 
                                                        |
| 666 | + $blast[$class][ListMapper::class]['add']['_export_format'][$fields]; // the source fields array  | 
                                                        |
| 671 | 667 | }  | 
                                                        
| 672 | 668 | |
| 673 | 669 | // removes a specific format  | 
                                                        
@@ -842,7 +838,7 @@ discard block  | 
                                                    ||
| 842 | 838 | $callback = $this->manageCallback($mapper, $options, 'choicesCallback');  | 
                                                        
| 843 | 839 | |
| 844 | 840 | $options['choices'] = $callback;  | 
                                                        
| 845 | -        $options['choice_loader'] = new CallbackChoiceLoader(function () use ($options) { | 
                                                        |
| 841 | +        $options['choice_loader'] = new CallbackChoiceLoader(function() use ($options) { | 
                                                        |
| 846 | 842 | return $options['choices'];  | 
                                                        
| 847 | 843 | });  | 
                                                        
| 848 | 844 | }  |