Completed
Pull Request — master (#1045)
by Mathieu
05:49 queued 04:39
created
tests/Filter/QueryBuilder.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     }
125 125
 
126 126
     /**
127
-     * @return array
127
+     * @return string[]
128 128
      */
129 129
     public function getAllAliases()
130 130
     {
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     }
133 133
 
134 134
     /**
135
-     * @return array
135
+     * @return string[]
136 136
      */
137 137
     public function getRootAliases()
138 138
     {
Please login to merge, or discard this patch.
src/Filter/CallbackFilter.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -20,6 +20,11 @@
 block discarded – undo
20 20
 
21 21
 class CallbackFilter extends Filter
22 22
 {
23
+    /**
24
+     * @param string $alias
25
+     * @param string $field
26
+     * @param string $data
27
+     */
23 28
     public function filter(ProxyQueryInterface $queryBuilder, $alias, $field, $data): void
24 29
     {
25 30
         if (!\is_callable($this->getOption('callback'))) {
Please login to merge, or discard this patch.
src/Filter/Filter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@
 block discarded – undo
24 24
      */
25 25
     protected $active = false;
26 26
 
27
+    /**
28
+     * @param \Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery $queryBuilder
29
+     */
27 30
     public function apply($queryBuilder, $value): void
28 31
     {
29 32
         $this->value = $value;
Please login to merge, or discard this patch.
src/Filter/ModelFilter.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -22,6 +22,10 @@
 block discarded – undo
22 22
 
23 23
 class ModelFilter extends Filter
24 24
 {
25
+    /**
26
+     * @param string $alias
27
+     * @param string $field
28
+     */
25 29
     public function filter(ProxyQueryInterface $queryBuilder, $alias, $field, $data): void
26 30
     {
27 31
         if (!$data || !\is_array($data) || !\array_key_exists('value', $data) || empty($data['value'])) {
Please login to merge, or discard this patch.
src/Guesser/FilterTypeGuesser.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -34,6 +34,10 @@
 block discarded – undo
34 34
 
35 35
 class FilterTypeGuesser extends AbstractTypeGuesser
36 36
 {
37
+    /**
38
+     * @param string $class
39
+     * @param string $property
40
+     */
37 41
     public function guessType($class, $property, ModelManagerInterface $modelManager)
38 42
     {
39 43
         if (!$ret = $this->getParentMetadataForProperty($class, $property, $modelManager)) {
Please login to merge, or discard this patch.
src/Guesser/TypeGuesser.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -20,6 +20,10 @@
 block discarded – undo
20 20
 
21 21
 class TypeGuesser extends AbstractTypeGuesser
22 22
 {
23
+    /**
24
+     * @param string $class
25
+     * @param string $property
26
+     */
23 27
     public function guessType($class, $property, ModelManagerInterface $modelManager)
24 28
     {
25 29
         if (!$ret = $this->getParentMetadataForProperty($class, $property, $modelManager)) {
Please login to merge, or discard this patch.
src/Model/ModelManager.php 1 patch
Doc Comments   +26 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,6 +148,9 @@  discard block
 block discarded – undo
148 148
         return $fieldDescription;
149 149
     }
150 150
 
151
+    /**
152
+     * @param \Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity\VersionedEntity $object
153
+     */
151 154
     public function create($object): void
152 155
     {
153 156
         try {
@@ -169,6 +172,9 @@  discard block
 block discarded – undo
169 172
         }
170 173
     }
171 174
 
175
+    /**
176
+     * @param \Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity\VersionedEntity $object
177
+     */
172 178
     public function update($object): void
173 179
     {
174 180
         try {
@@ -190,6 +196,9 @@  discard block
 block discarded – undo
190 196
         }
191 197
     }
192 198
 
199
+    /**
200
+     * @param \Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity\VersionedEntity $object
201
+     */
193 202
     public function delete($object): void
194 203
     {
195 204
         try {
@@ -238,6 +247,9 @@  discard block
 block discarded – undo
238 247
         }
239 248
     }
240 249
 
250
+    /**
251
+     * @param string $class
252
+     */
241 253
     public function find($class, $id)
242 254
     {
243 255
         if (!isset($id)) {
@@ -520,6 +532,9 @@  discard block
 block discarded – undo
520 532
         return ['filter' => $values];
521 533
     }
522 534
 
535
+    /**
536
+     * @param integer $page
537
+     */
523 538
     public function getPaginationParameters(DatagridInterface $datagrid, $page)
524 539
     {
525 540
         $values = $datagrid->getValues();
@@ -540,6 +555,10 @@  discard block
 block discarded – undo
540 555
         ];
541 556
     }
542 557
 
558
+    /**
559
+     * @param string $class
560
+     * @param string $instance
561
+     */
543 562
     public function modelTransform($class, $instance)
544 563
     {
545 564
         return $instance;
@@ -597,6 +616,9 @@  discard block
 block discarded – undo
597 616
         return $instance;
598 617
     }
599 618
 
619
+    /**
620
+     * @param string $class
621
+     */
600 622
     public function getModelCollectionInstance($class)
601 623
     {
602 624
         return new \Doctrine\Common\Collections\ArrayCollection();
@@ -612,6 +634,9 @@  discard block
 block discarded – undo
612 634
         return $collection->contains($element);
613 635
     }
614 636
 
637
+    /**
638
+     * @param string $element
639
+     */
615 640
     public function collectionAddElement(&$collection, &$element)
616 641
     {
617 642
         return $collection->add($element);
@@ -627,7 +652,7 @@  discard block
 block discarded – undo
627 652
      *
628 653
      * @param string $property
629 654
      *
630
-     * @return mixed
655
+     * @return string
631 656
      */
632 657
     protected function camelize($property)
633 658
     {
Please login to merge, or discard this patch.