Completed
Pull Request — master (#1045)
by Mathieu
11:02
created
src/Model/ModelManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -618,7 +618,7 @@
 block discarded – undo
618 618
      *
619 619
      * @param string $property
620 620
      *
621
-     * @return mixed
621
+     * @return string
622 622
      */
623 623
     protected function camelize($property)
624 624
     {
Please login to merge, or discard this patch.
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/ModelAutocompleteFilter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * For the record, the $alias value is provided by the association method (and the entity join method)
80 80
      *  so the field value is not used here.
81 81
      *
82
-     * @param ProxyQueryInterface|QueryBuilder $queryBuilder
82
+     * @param ProxyQueryInterface $queryBuilder
83 83
      * @param string                           $alias
84 84
      * @param mixed                            $data
85 85
      *
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     /**
106
-     * @param ProxyQueryInterface|QueryBuilder $queryBuilder
106
+     * @param ProxyQueryInterface $queryBuilder
107 107
      * @param string                           $alias
108 108
      * @param mixed                            $data
109 109
      *
Please login to merge, or discard this patch.
src/Filter/Filter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     }
57 57
 
58 58
     /**
59
-     * @param ProxyQueryInterface|QueryBuilder $queryBuilder
59
+     * @param ProxyQueryInterface $queryBuilder
60 60
      * @param mixed                            $parameter
61 61
      */
62 62
     protected function applyWhere(ProxyQueryInterface $queryBuilder, $parameter): void
Please login to merge, or discard this patch.
tests/Model/ModelManagerTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -736,6 +736,9 @@
 block discarded – undo
736 736
         $this->assertNull($model->getNormalizedIdentifier(null));
737 737
     }
738 738
 
739
+    /**
740
+     * @param string $class
741
+     */
739 742
     private function getMetadata($class, $isVersioned)
740 743
     {
741 744
         $metadata = new ClassMetadata($class);
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@  discard block
 block discarded – undo
21 21
 use Doctrine\DBAL\Types\Type;
22 22
 use Doctrine\ORM\Configuration;
23 23
 use Doctrine\ORM\EntityManager;
24
-use Doctrine\ORM\EntityManagerInterface;
25 24
 use Doctrine\ORM\Mapping\ClassMetadata;
26 25
 use Doctrine\ORM\Mapping\ClassMetadataFactory;
27 26
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
@@ -59,7 +58,6 @@  discard block
 block discarded – undo
59 58
 use Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity\UuidEntity;
60 59
 use Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity\VersionedEntity;
61 60
 use Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Util\NonIntegerIdentifierTestClass;
62
-use Symfony\Bridge\Doctrine\RegistryInterface;
63 61
 
64 62
 class ModelManagerTest extends TestCase
65 63
 {
Please login to merge, or discard this patch.
src/Block/AuditBlockService.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 use Sonata\BlockBundle\Model\BlockInterface;
21 21
 use Symfony\Component\HttpFoundation\Response;
22 22
 use Symfony\Component\OptionsResolver\OptionsResolver;
23
-use Symfony\Component\Templating\EngineInterface;
24 23
 use Twig\Environment;
25 24
 
26 25
 /**
Please login to merge, or discard this patch.
tests/Builder/FormContractorTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
 use Sonata\AdminBundle\Form\Type\ModelListType;
25 25
 use Sonata\AdminBundle\Form\Type\ModelType;
26 26
 use Sonata\AdminBundle\Model\ModelManagerInterface;
27
-use Sonata\CoreBundle\Form\Type\CollectionType as DeprecatedCollectionType;
28 27
 use Sonata\DoctrineORMAdminBundle\Builder\FormContractor;
29 28
 use Sonata\DoctrineORMAdminBundle\Model\ModelManager;
30 29
 use Sonata\Form\Type\CollectionType;
Please login to merge, or discard this patch.