Completed
Pull Request — master (#352)
by php-br
61:36
created
src/Oro/Bundle/CommentBundle/Controller/Api/Rest/CommentController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,16 +3,13 @@
 block discarded – undo
3 3
 namespace Oro\Bundle\CommentBundle\Controller\Api\Rest;
4 4
 
5 5
 use Nelmio\ApiDocBundle\Annotation\ApiDoc;
6
-
7 6
 use FOS\RestBundle\Util\Codes;
8 7
 use FOS\RestBundle\Controller\Annotations\NamePrefix;
9 8
 use FOS\RestBundle\Controller\Annotations\RouteResource;
10 9
 use FOS\RestBundle\Controller\Annotations\QueryParam;
11
-
12 10
 use Symfony\Component\Form\FormInterface;
13 11
 use Symfony\Component\HttpFoundation\JsonResponse;
14 12
 use Symfony\Component\HttpFoundation\Response;
15
-
16 13
 use Oro\Bundle\SoapBundle\Form\Handler\ApiFormHandler;
17 14
 use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController;
18 15
 use Oro\Bundle\SoapBundle\Request\Parameters\Filter\HttpDateTimeParameterFilter;
Please login to merge, or discard this patch.
src/Oro/Bundle/CommentBundle/Entity/Manager/CommentApiManager.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @param int    $entityId
90 90
      * @param int    $page
91 91
      * @param int    $limit
92
-     * @param array  $filters
92
+     * @param Criteria  $filters
93 93
      *
94 94
      * @return array
95 95
      */
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
     }
357 357
 
358 358
     /**
359
-     * @param $entity
359
+     * @param Comment $entity
360 360
      *
361 361
      * @return File
362 362
      */
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -8,10 +8,8 @@
 block discarded – undo
8 8
 use Doctrine\Common\Util\ClassUtils;
9 9
 use Doctrine\ORM\EntityNotFoundException;
10 10
 use Doctrine\ORM\QueryBuilder;
11
-
12 11
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
13 12
 use Symfony\Component\PropertyAccess\PropertyAccess;
14
-
15 13
 use Oro\Bundle\AttachmentBundle\Manager\AttachmentManager;
16 14
 use Oro\Bundle\CommentBundle\Entity\Comment;
17 15
 use Oro\Bundle\CommentBundle\Entity\Repository\CommentRepository;
Please login to merge, or discard this patch.
src/Oro/Bundle/CommentBundle/EventListener/CommentLifecycleListener.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,11 +3,9 @@
 block discarded – undo
3 3
 namespace Oro\Bundle\CommentBundle\EventListener;
4 4
 
5 5
 use Symfony\Component\Security\Core\User\UserInterface;
6
-
7 6
 use Doctrine\ORM\Event\LifecycleEventArgs;
8 7
 use Doctrine\ORM\EntityManager;
9 8
 use Doctrine\ORM\UnitOfWork;
10
-
11 9
 use Oro\Bundle\EntityConfigBundle\DependencyInjection\Utils\ServiceLink;
12 10
 use Oro\Bundle\CommentBundle\Entity\Comment;
13 11
 
Please login to merge, or discard this patch.
src/Oro/Bundle/CommentBundle/Form/Handler/CommentApiHandler.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Symfony\Component\Form\FormInterface;
6 6
 use Symfony\Component\HttpFoundation\Request;
7
-
8 7
 use Doctrine\Common\Persistence\ObjectManager;
9
-
10 8
 use Oro\Bundle\EntityConfigBundle\Config\ConfigManager;
11 9
 use Oro\Bundle\CommentBundle\Entity\Comment;
12 10
 
Please login to merge, or discard this patch.
src/Oro/Bundle/CommentBundle/Migration/Extension/CommentExtension.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Doctrine\DBAL\Schema\Schema;
6 6
 use Doctrine\DBAL\DBALException;
7 7
 use Doctrine\DBAL\Schema\SchemaException;
8
-
9 8
 use Oro\Bundle\EntityExtendBundle\Migration\Extension\ExtendExtension;
10 9
 use Oro\Bundle\EntityExtendBundle\Migration\Extension\ExtendExtensionAwareInterface;
11 10
 use Oro\Bundle\EntityExtendBundle\Migration\OroOptions;
Please login to merge, or discard this patch.
Oro/Bundle/CommentBundle/Tests/Functional/DataFixtures/LoadCommentData.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,10 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\Common\Persistence\ObjectManager;
6 6
 use Doctrine\Common\DataFixtures\DependentFixtureInterface;
7
-
8 7
 use Symfony\Component\DependencyInjection\ContainerInterface;
9 8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
10
-
11 9
 use Oro\Bundle\UserBundle\Migrations\Data\ORM\LoadAdminUserData;
12 10
 use Oro\Bundle\CommentBundle\Entity\Comment;
13 11
 
Please login to merge, or discard this patch.
CommentBundle/Tests/Unit/EventListener/CommentLifecycleListenerTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\ORM\UnitOfWork;
6 6
 use Doctrine\ORM\Event\PreUpdateEventArgs;
7
-
8 7
 use Oro\Bundle\CommentBundle\EventListener\CommentLifecycleListener;
9 8
 use Oro\Bundle\SecurityBundle\SecurityFacade;
10 9
 use Oro\Bundle\CommentBundle\Entity\Comment;
Please login to merge, or discard this patch.
src/Oro/Bundle/ConfigBundle/Config/AbstractScopeManager.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\Common\Cache\CacheProvider;
6 6
 use Doctrine\Common\Persistence\ManagerRegistry;
7
-
8 7
 use Oro\Bundle\ConfigBundle\Entity\Config;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
src/Oro/Bundle/ConfigBundle/Config/ConfigApiManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
21 21
         $this->configProvider = $configProvider;
22 22
     }
23 23
 
24
+    /**
25
+     * @param string $scope
26
+     */
24 27
     public function addConfigManager($scope, $manager)
25 28
     {
26 29
         $this->configManagers[$scope] = $manager;
Please login to merge, or discard this patch.