Fix some namespaces and phpdoc

This commit is contained in:
Nicolas Hart 2017-07-29 22:51:50 +02:00
parent d69a66a58e
commit 52b84c11a5
9 changed files with 17 additions and 8 deletions

View file

@ -3,6 +3,8 @@
namespace Wallabag\AnnotationBundle\Repository; namespace Wallabag\AnnotationBundle\Repository;
use Doctrine\ORM\EntityRepository; use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Wallabag\AnnotationBundle\Entity\Annotation;
/** /**
* AnnotationRepository. * AnnotationRepository.

View file

@ -8,6 +8,7 @@ use JMS\Serializer\SerializationContext;
use Nelmio\ApiDocBundle\Annotation\ApiDoc; use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Wallabag\CoreBundle\Entity\Entry; use Wallabag\CoreBundle\Entity\Entry;

View file

@ -8,6 +8,7 @@ use Graby\SiteConfig\ConfigBuilder;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
use Wallabag\CoreBundle\Repository\SiteCredentialRepository; use Wallabag\CoreBundle\Repository\SiteCredentialRepository;
use Wallabag\UserBundle\Entity\User;
class GrabySiteConfigBuilder implements SiteConfigBuilder class GrabySiteConfigBuilder implements SiteConfigBuilder
{ {
@ -27,7 +28,7 @@ class GrabySiteConfigBuilder implements SiteConfigBuilder
private $logger; private $logger;
/** /**
* @var Wallabag\UserBundle\Entity\User|null * @var User|null
*/ */
private $currentUser; private $currentUser;

View file

@ -2,12 +2,12 @@
namespace Wallabag\CoreBundle\Helper; namespace Wallabag\CoreBundle\Helper;
use JMS\Serializer;
use JMS\Serializer\SerializationContext; use JMS\Serializer\SerializationContext;
use JMS\Serializer\SerializerBuilder; use JMS\Serializer\SerializerBuilder;
use PHPePub\Core\EPub; use PHPePub\Core\EPub;
use PHPePub\Core\Structure\OPF\DublinCore; use PHPePub\Core\Structure\OPF\DublinCore;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Wallabag\CoreBundle\Entity\Entry;
/** /**
* This class doesn't have unit test BUT it's fully covered by a functional test with ExportControllerTest. * This class doesn't have unit test BUT it's fully covered by a functional test with ExportControllerTest.
@ -427,7 +427,7 @@ class EntriesExport
* *
* @param string $format * @param string $format
* *
* @return Serializer * @return string
*/ */
private function prepareSerializingContent($format) private function prepareSerializingContent($format)
{ {

View file

@ -3,9 +3,10 @@
namespace Wallabag\CoreBundle\Repository; namespace Wallabag\CoreBundle\Repository;
use Doctrine\ORM\EntityRepository; use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query; use Doctrine\ORM\QueryBuilder;
use Pagerfanta\Adapter\DoctrineORMAdapter; use Pagerfanta\Adapter\DoctrineORMAdapter;
use Pagerfanta\Pagerfanta; use Pagerfanta\Pagerfanta;
use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Entity\Tag; use Wallabag\CoreBundle\Entity\Tag;
class EntryRepository extends EntityRepository class EntryRepository extends EntityRepository
@ -74,7 +75,7 @@ class EntryRepository extends EntityRepository
* *
* @param int $userId * @param int $userId
* @param string $term * @param string $term
* @param strint $currentRoute * @param string $currentRoute
* *
* @return QueryBuilder * @return QueryBuilder
*/ */
@ -126,7 +127,7 @@ class EntryRepository extends EntityRepository
* @param int $since * @param int $since
* @param string $tags * @param string $tags
* *
* @return array * @return Pagerfanta
*/ */
public function findEntries($userId, $isArchived = null, $isStarred = null, $isPublic = null, $sort = 'created', $order = 'ASC', $since = 0, $tags = '') public function findEntries($userId, $isArchived = null, $isStarred = null, $isPublic = null, $sort = 'created', $order = 'ASC', $since = 0, $tags = '')
{ {
@ -172,7 +173,7 @@ class EntryRepository extends EntityRepository
* *
* @param int $userId * @param int $userId
* *
* @return Entry * @return array
*/ */
public function findOneWithTags($userId) public function findOneWithTags($userId)
{ {

View file

@ -3,6 +3,7 @@
namespace Wallabag\CoreBundle\Repository; namespace Wallabag\CoreBundle\Repository;
use Doctrine\ORM\EntityRepository; use Doctrine\ORM\EntityRepository;
use Wallabag\CoreBundle\Entity\Tag;
class TagRepository extends EntityRepository class TagRepository extends EntityRepository
{ {

View file

@ -3,7 +3,9 @@
namespace Wallabag\ImportBundle\Controller; namespace Wallabag\ImportBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Wallabag\ImportBundle\Form\Type\UploadImportType; use Wallabag\ImportBundle\Form\Type\UploadImportType;
/** /**

View file

@ -4,7 +4,6 @@ namespace Wallabag\ImportBundle\Import;
use Wallabag\CoreBundle\Entity\Entry; use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Event\EntrySavedEvent; use Wallabag\CoreBundle\Event\EntrySavedEvent;
use Wallabag\UserBundle\Entity\User;
abstract class BrowserImport extends AbstractImport abstract class BrowserImport extends AbstractImport
{ {

View file

@ -3,6 +3,8 @@
namespace Wallabag\UserBundle\Repository; namespace Wallabag\UserBundle\Repository;
use Doctrine\ORM\EntityRepository; use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Wallabag\UserBundle\Entity\User;
class UserRepository extends EntityRepository class UserRepository extends EntityRepository
{ {