Completed
Push — wip-platform ( 03cba6...2999ab )
by
unknown
05:53 queued 02:49
created
tests/Functional/BlastCoreBundleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
     public function testServicesAreInitializable()
31 31
     {
32
-        $serviceIds = array_filter($this->container->getServiceIds(), function ($serviceId) {
32
+        $serviceIds = array_filter($this->container->getServiceIds(), function($serviceId) {
33 33
             return 0 === strpos($serviceId, 'blast_core.');
34 34
         });
35 35
 
Please login to merge, or discard this patch.
tests/Unit/Generator/BlastGeneratorTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -62,18 +62,18 @@
 block discarded – undo
62 62
         $map = [
63 63
             ['Model', ['foo', 'bar', 'not_an_id']],
64 64
             ['Ledom', ['id', 'zoo', 'rab']],
65
-         ];
65
+            ];
66 66
         $modelManagerMock
67
-             ->expects($this->any())
68
-             ->method('getExportFields')
69
-             ->will($this->returnValueMap($map));
67
+                ->expects($this->any())
68
+                ->method('getExportFields')
69
+                ->will($this->returnValueMap($map));
70 70
 
71 71
         $this->modelManager = $modelManagerMock;
72 72
         $this->object = new BlastGenerator(
73
-             $this->blastFile,
74
-             $this->modelManager,
75
-             $this->skeletonDirectory
76
-         );
73
+                $this->blastFile,
74
+                $this->modelManager,
75
+                $this->skeletonDirectory
76
+            );
77 77
     }
78 78
 
79 79
     protected function tearDown()
Please login to merge, or discard this patch.
Admin/CoreAdmin.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -167,6 +167,9 @@
 block discarded – undo
167 167
         return $classes;
168 168
     }
169 169
 
170
+    /**
171
+     * @param string $function
172
+     */
170 173
     private function fallbackConfiguration(BaseMapper $mapper, $function)
171 174
     {
172 175
         // fallback
Please login to merge, or discard this patch.
Admin/Traits/CollectionsManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      *
34 34
      * @param $collections      array or string, describing the collections to manage
35 35
      *
36
-     * @return CoreAdmin $this
36
+     * @return CollectionsManager $this
37 37
      * */
38 38
     public function addManagedCollections($collections)
39 39
     {
Please login to merge, or discard this patch.
Admin/Traits/EmbeddedAdmin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     }
33 33
 
34 34
     /**
35
-     * @param FormMapper $mapper
35
+     * @param ShowMapper $mapper
36 36
      */
37 37
     public function configureShowFields(ShowMapper $mapper)
38 38
     {
Please login to merge, or discard this patch.
Admin/Traits/ListActions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
      *
130 130
      * @param  $name        string|null
131 131
      *
132
-     * @return self
132
+     * @return boolean
133 133
      **/
134 134
     public function hasListAction($name)
135 135
     {
Please login to merge, or discard this patch.
Admin/Traits/Mapper.php 3 patches
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -544,6 +544,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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];
@@ -833,12 +839,18 @@  discard block
 block discarded – undo
833 839
         return $callBackFunction;
834 840
     }
835 841
 
842
+    /**
843
+     * @param BaseMapper $mapper
844
+     */
836 845
     protected function manageQueryCallback($mapper, &$options)
837 846
     {
838 847
         $callback = $this->manageCallback($mapper, $options, 'query');
839 848
         $options['query'] = $callback;
840 849
     }
841 850
 
851
+    /**
852
+     * @param BaseMapper $mapper
853
+     */
842 854
     protected function manageChoicesCallback($mapper, &$options)
843 855
     {
844 856
         $callback = $this->manageCallback($mapper, $options, 'choicesCallback');
@@ -850,6 +862,9 @@  discard block
 block discarded – undo
850 862
         unset($options['choicesCallback']);
851 863
     }
852 864
 
865
+    /**
866
+     * @param BaseMapper $mapper
867
+     */
853 868
     public function manageServiceCallback($mapper, &$options)
854 869
     {
855 870
         $this->manageCallback($mapper, $options, 'serviceCallback');
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             ->get('logger')
66 66
             ->debug(sprintf(
67 67
                 '[BlastCoreBundle] Processing the configuration in this order: %s',
68
-                 implode(', ', $classes)
68
+                    implode(', ', $classes)
69 69
             ))
70 70
         ;
71 71
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -10 removed lines patch added patch discarded remove patch
@@ -71,11 +71,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
@@ -844,7 +840,7 @@  discard block
 block discarded – undo
844 840
         $callback = $this->manageCallback($mapper, $options, 'choicesCallback');
845 841
 
846 842
         $options['choices'] = $callback;
847
-        $options['choice_loader'] = new CallbackChoiceLoader(function () use ($options) {
843
+        $options['choice_loader'] = new CallbackChoiceLoader(function() use ($options) {
848 844
             return $options['choices'];
849 845
         });
850 846
         unset($options['choicesCallback']);
Please login to merge, or discard this patch.
Admin/Traits/Templates.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     /**
21 21
      * @param type $mapper
22 22
      *
23
-     * @return type
23
+     * @return Templates
24 24
      */
25 25
     protected function fixTemplates($mapper)
26 26
     {
Please login to merge, or discard this patch.
Command/PatcherApplyCommand.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -102,6 +102,9 @@
 block discarded – undo
102 102
         }
103 103
     }
104 104
 
105
+    /**
106
+     * @param string $targetFile
107
+     */
105 108
     private function getCommand($targetFile, $patchFile)
106 109
     {
107 110
         return sprintf(
Please login to merge, or discard this patch.