From 241c44a69406ff01605281d63cdec2f356acb14b Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Mon, 16 Jan 2017 18:36:31 +0100 Subject: [PATCH] fixed PHPDoc author (#766) * fixed PHPDoc author * removed useless comments --- Admin/SiteAdmin.php | 2 -- Cache/BlockEsiCache.php | 2 -- Consumer/CleanupSnapshotConsumer.php | 2 -- Consumer/CleanupSnapshotsConsumer.php | 2 -- Controller/Api/BlockController.php | 4 ---- Controller/Api/PageController.php | 5 ----- Controller/Api/SiteController.php | 4 ---- Controller/Api/SnapshotController.php | 4 ---- DependencyInjection/SonataPageExtension.php | 4 +--- Entity/BlockInteractor.php | 2 -- Entity/SnapshotManager.php | 2 -- Listener/ExceptionListener.php | 2 -- Listener/RequestListener.php | 2 -- Model/SnapshotPageProxy.php | 2 -- Page/PageServiceManager.php | 2 -- Page/Service/BasePageService.php | 2 -- Page/Service/DefaultPageService.php | 2 -- Page/TemplateManager.php | 2 -- Route/RoutePageGenerator.php | 2 -- Tests/Block/BlockContextManagerTest.php | 2 -- Tests/Command/BaseCommandTest.php | 2 -- Tests/Controller/Api/AjaxControllerTest.php | 3 --- Tests/Controller/Api/BlockControllerTest.php | 3 --- Tests/Controller/Api/PageControllerTest.php | 3 --- Tests/Controller/Api/SiteControllerTest.php | 3 --- Tests/Controller/Api/SnapshotControllerTest.php | 3 --- Tests/Entity/BlockManagerTest.php | 3 --- Tests/Entity/PageManagerTest.php | 3 --- Tests/Entity/SiteManagerTest.php | 3 --- Tests/Entity/SnapshotManagerTest.php | 3 --- Twig/Extension/PageExtension.php | 2 -- 31 files changed, 1 insertion(+), 81 deletions(-) diff --git a/Admin/SiteAdmin.php b/Admin/SiteAdmin.php index 31749af2d..8642d515f 100644 --- a/Admin/SiteAdmin.php +++ b/Admin/SiteAdmin.php @@ -32,8 +32,6 @@ class SiteAdmin extends AbstractAdmin protected $routePageGenerator; /** - * Constructor. - * * @param string $code A Sonata admin code * @param string $class A Sonata admin class name * @param string $baseControllerName A Sonata admin base controller name diff --git a/Cache/BlockEsiCache.php b/Cache/BlockEsiCache.php index 5107e3c4e..116aeac19 100644 --- a/Cache/BlockEsiCache.php +++ b/Cache/BlockEsiCache.php @@ -52,8 +52,6 @@ class BlockEsiCache extends VarnishCache protected $recorder; /** - * Constructor. - * * @param string $token A token * @param array $servers An array of servers * @param RouterInterface $router A router instance diff --git a/Consumer/CleanupSnapshotConsumer.php b/Consumer/CleanupSnapshotConsumer.php index c4f0f4860..83573f5a4 100644 --- a/Consumer/CleanupSnapshotConsumer.php +++ b/Consumer/CleanupSnapshotConsumer.php @@ -32,8 +32,6 @@ class CleanupSnapshotConsumer implements ConsumerInterface protected $pageManager; /** - * Constructor. - * * @param SnapshotManagerInterface $snapshotManager A snapshot manager instance * @param PageManagerInterface $pageManager A page manager instance */ diff --git a/Consumer/CleanupSnapshotsConsumer.php b/Consumer/CleanupSnapshotsConsumer.php index 15119f631..4820097a4 100644 --- a/Consumer/CleanupSnapshotsConsumer.php +++ b/Consumer/CleanupSnapshotsConsumer.php @@ -37,8 +37,6 @@ class CleanupSnapshotsConsumer implements ConsumerInterface protected $pageManager; /** - * Constructor. - * * @param BackendInterface $asyncBackend An asynchronous backend instance * @param BackendInterface $runtimeBackend A runtime backend instance * @param PageManagerInterface $pageManager A page manager instance diff --git a/Controller/Api/BlockController.php b/Controller/Api/BlockController.php index e459b77f7..35b415c1f 100644 --- a/Controller/Api/BlockController.php +++ b/Controller/Api/BlockController.php @@ -22,8 +22,6 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** - * Class BlockController. - * * @author Vincent Composieux */ class BlockController @@ -39,8 +37,6 @@ class BlockController protected $formFactory; /** - * Constructor. - * * @param BlockManagerInterface $blockManager * @param FormFactoryInterface $formFactory */ diff --git a/Controller/Api/PageController.php b/Controller/Api/PageController.php index b8f8044f5..ec1759bba 100644 --- a/Controller/Api/PageController.php +++ b/Controller/Api/PageController.php @@ -30,9 +30,6 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** - * Class PageController. - * - * * @author Hugo Briand */ class PageController @@ -63,8 +60,6 @@ class PageController protected $backend; /** - * Constructor. - * * @param SiteManagerInterface $siteManager * @param PageManagerInterface $pageManager * @param BlockManagerInterface $blockManager diff --git a/Controller/Api/SiteController.php b/Controller/Api/SiteController.php index 44534c29b..3eabbf293 100644 --- a/Controller/Api/SiteController.php +++ b/Controller/Api/SiteController.php @@ -25,8 +25,6 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** - * Class SiteController. - * * @author Raphaƫl Benitte */ class SiteController @@ -42,8 +40,6 @@ class SiteController protected $formFactory; /** - * Constructor. - * * @param SiteManagerInterface $siteManager * @param FormFactoryInterface $formFactory */ diff --git a/Controller/Api/SnapshotController.php b/Controller/Api/SnapshotController.php index ca33a062f..08d1744a9 100644 --- a/Controller/Api/SnapshotController.php +++ b/Controller/Api/SnapshotController.php @@ -21,8 +21,6 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** - * Class SnapshotController. - * * @author Benoit de Jacobet */ class SnapshotController @@ -33,8 +31,6 @@ class SnapshotController protected $snapshotManager; /** - * Constructor. - * * @param SnapshotManagerInterface $snapshotManager */ public function __construct(SnapshotManagerInterface $snapshotManager) diff --git a/DependencyInjection/SonataPageExtension.php b/DependencyInjection/SonataPageExtension.php index 3a4a76ca9..0e3ea9478 100644 --- a/DependencyInjection/SonataPageExtension.php +++ b/DependencyInjection/SonataPageExtension.php @@ -21,9 +21,7 @@ use Symfony\Component\HttpKernel\DependencyInjection\Extension; /** - * PageExtension. - * - * @author Thomas Rabaix + * @author Thomas Rabaix */ class SonataPageExtension extends Extension { diff --git a/Entity/BlockInteractor.php b/Entity/BlockInteractor.php index 0b97f49bc..b3f904f0a 100644 --- a/Entity/BlockInteractor.php +++ b/Entity/BlockInteractor.php @@ -40,8 +40,6 @@ class BlockInteractor implements BlockInteractorInterface protected $blockManager; /** - * Constructor. - * * @param RegistryInterface $registry Doctrine registry * @param BlockManagerInterface $blockManager Block manager */ diff --git a/Entity/SnapshotManager.php b/Entity/SnapshotManager.php index aab85cd91..f25a308e9 100644 --- a/Entity/SnapshotManager.php +++ b/Entity/SnapshotManager.php @@ -47,8 +47,6 @@ class SnapshotManager extends BaseEntityManager implements SnapshotManagerInterf protected $snapshotPageProxyFactory; /** - * Constructor. - * * @param string $class Namespace of entity class * @param ManagerRegistry $registry An entity manager instance * @param array $templates An array of templates diff --git a/Listener/ExceptionListener.php b/Listener/ExceptionListener.php index d206202ff..2106446ee 100644 --- a/Listener/ExceptionListener.php +++ b/Listener/ExceptionListener.php @@ -76,8 +76,6 @@ class ExceptionListener protected $status; /** - * Constructor. - * * @param SiteSelectorInterface $siteSelector Site selector * @param CmsManagerSelectorInterface $cmsManagerSelector CMS Manager selector * @param bool $debug Debug mode diff --git a/Listener/RequestListener.php b/Listener/RequestListener.php index f9f0394b4..a2eb95e1a 100644 --- a/Listener/RequestListener.php +++ b/Listener/RequestListener.php @@ -44,8 +44,6 @@ class RequestListener protected $decoratorStrategy; /** - * Constructor. - * * @param CmsManagerSelectorInterface $cmsSelector Cms manager selector * @param SiteSelectorInterface $siteSelector Site selector * @param DecoratorStrategyInterface $decoratorStrategy Decorator strategy diff --git a/Model/SnapshotPageProxy.php b/Model/SnapshotPageProxy.php index 4048d0115..5ff3d9d81 100644 --- a/Model/SnapshotPageProxy.php +++ b/Model/SnapshotPageProxy.php @@ -49,8 +49,6 @@ class SnapshotPageProxy implements SnapshotPageProxyInterface private $transformer; /** - * Constructor. - * * @param SnapshotManagerInterface $manager Snapshot manager * @param TransformerInterface $transformer The transformer object * @param SnapshotInterface $snapshot Snapshot object diff --git a/Page/PageServiceManager.php b/Page/PageServiceManager.php index deccae562..b80d7b047 100644 --- a/Page/PageServiceManager.php +++ b/Page/PageServiceManager.php @@ -43,8 +43,6 @@ class PageServiceManager implements PageServiceManagerInterface protected $router; /** - * Constructor. - * * @param RouterInterface $router Router */ public function __construct(RouterInterface $router) diff --git a/Page/Service/BasePageService.php b/Page/Service/BasePageService.php index 2257d4078..09d8ac9cf 100644 --- a/Page/Service/BasePageService.php +++ b/Page/Service/BasePageService.php @@ -26,8 +26,6 @@ abstract class BasePageService implements PageServiceInterface protected $name; /** - * Constructor. - * * @param string $name Page service name */ public function __construct($name) diff --git a/Page/Service/DefaultPageService.php b/Page/Service/DefaultPageService.php index 35759a023..af34a1cd3 100644 --- a/Page/Service/DefaultPageService.php +++ b/Page/Service/DefaultPageService.php @@ -37,8 +37,6 @@ class DefaultPageService extends BasePageService protected $seoPage; /** - * Constructor. - * * @param string $name Page service name * @param TemplateManagerInterface $templateManager Template manager * @param SeoPageInterface $seoPage SEO page object diff --git a/Page/TemplateManager.php b/Page/TemplateManager.php index 8b40c32d9..77a6059db 100644 --- a/Page/TemplateManager.php +++ b/Page/TemplateManager.php @@ -56,8 +56,6 @@ class TemplateManager implements TemplateManagerInterface protected $defaultTemplatePath = 'SonataPageBundle::layout.html.twig'; /** - * Constructor. - * * @param EngineInterface $engine Templating engine * @param array $defaultParameters An array of default view parameters */ diff --git a/Route/RoutePageGenerator.php b/Route/RoutePageGenerator.php index e90dfd448..8134552d3 100644 --- a/Route/RoutePageGenerator.php +++ b/Route/RoutePageGenerator.php @@ -47,8 +47,6 @@ class RoutePageGenerator protected $exceptionListener; /** - * Constructor. - * * @param RouterInterface $router A Symfony router service * @param PageManagerInterface $pageManager A Sonata Page manager * @param DecoratorStrategyInterface $decoratorStrategy A Sonata page decorator strategy service diff --git a/Tests/Block/BlockContextManagerTest.php b/Tests/Block/BlockContextManagerTest.php index 091bf9f49..567dbbfb7 100644 --- a/Tests/Block/BlockContextManagerTest.php +++ b/Tests/Block/BlockContextManagerTest.php @@ -14,8 +14,6 @@ use Sonata\PageBundle\Block\BlockContextManager; /** - * Class BlockContextManagerTest. - * * @author Sullivan Senechal */ class BlockContextManagerTest extends \PHPUnit_Framework_TestCase diff --git a/Tests/Command/BaseCommandTest.php b/Tests/Command/BaseCommandTest.php index be155930e..bdd4b0195 100644 --- a/Tests/Command/BaseCommandTest.php +++ b/Tests/Command/BaseCommandTest.php @@ -14,8 +14,6 @@ use Sonata\PageBundle\Command\BaseCommand; /** - * Class BaseCommandTest. - * * @author Vincent Composieux */ class BaseCommandTest extends \PHPUnit_Framework_TestCase diff --git a/Tests/Controller/Api/AjaxControllerTest.php b/Tests/Controller/Api/AjaxControllerTest.php index a957ba328..ba41965cf 100644 --- a/Tests/Controller/Api/AjaxControllerTest.php +++ b/Tests/Controller/Api/AjaxControllerTest.php @@ -16,9 +16,6 @@ use Symfony\Component\HttpFoundation\Response; /** - * Class BlockControllerTest. - * - * * @author Vincent Composieux */ class AjaxControllerTest extends \PHPUnit_Framework_TestCase diff --git a/Tests/Controller/Api/BlockControllerTest.php b/Tests/Controller/Api/BlockControllerTest.php index 3126fb24b..bbe7717a7 100644 --- a/Tests/Controller/Api/BlockControllerTest.php +++ b/Tests/Controller/Api/BlockControllerTest.php @@ -15,9 +15,6 @@ use Symfony\Component\HttpFoundation\Request; /** - * Class BlockControllerTest. - * - * * @author Vincent Composieux */ class BlockControllerTest extends \PHPUnit_Framework_TestCase diff --git a/Tests/Controller/Api/PageControllerTest.php b/Tests/Controller/Api/PageControllerTest.php index b5be64152..3cf506d3f 100644 --- a/Tests/Controller/Api/PageControllerTest.php +++ b/Tests/Controller/Api/PageControllerTest.php @@ -15,9 +15,6 @@ use Symfony\Component\HttpFoundation\Request; /** - * Class PageControllerTest. - * - * * @author Hugo Briand */ class PageControllerTest extends \PHPUnit_Framework_TestCase diff --git a/Tests/Controller/Api/SiteControllerTest.php b/Tests/Controller/Api/SiteControllerTest.php index f06d95c8a..e0451859b 100644 --- a/Tests/Controller/Api/SiteControllerTest.php +++ b/Tests/Controller/Api/SiteControllerTest.php @@ -15,9 +15,6 @@ use Symfony\Component\HttpFoundation\Request; /** - * Class SiteControllerTest. - * - * * @author Benoit de Jacobet */ class SiteControllerTest extends \PHPUnit_Framework_TestCase diff --git a/Tests/Controller/Api/SnapshotControllerTest.php b/Tests/Controller/Api/SnapshotControllerTest.php index 53cf8b790..a9187e198 100644 --- a/Tests/Controller/Api/SnapshotControllerTest.php +++ b/Tests/Controller/Api/SnapshotControllerTest.php @@ -14,9 +14,6 @@ use Sonata\PageBundle\Controller\Api\SnapshotController; /** - * Class SnapshotControllerTest. - * - * * @author Benoit de Jacobet */ class SnapshotControllerTest extends \PHPUnit_Framework_TestCase diff --git a/Tests/Entity/BlockManagerTest.php b/Tests/Entity/BlockManagerTest.php index b95687a1b..395fa9050 100644 --- a/Tests/Entity/BlockManagerTest.php +++ b/Tests/Entity/BlockManagerTest.php @@ -13,9 +13,6 @@ use Sonata\PageBundle\Entity\BlockManager; -/** - * Class BlockManagerTest. - */ class BlockManagerTest extends \PHPUnit_Framework_TestCase { public function testGetPager() diff --git a/Tests/Entity/PageManagerTest.php b/Tests/Entity/PageManagerTest.php index 09b921afc..ccf5441d7 100644 --- a/Tests/Entity/PageManagerTest.php +++ b/Tests/Entity/PageManagerTest.php @@ -14,9 +14,6 @@ use Sonata\PageBundle\Entity\PageManager; use Sonata\PageBundle\Tests\Model\Page; -/** - * Class PageManagerTest. - */ class PageManagerTest extends \PHPUnit_Framework_TestCase { public function testFixUrl() diff --git a/Tests/Entity/SiteManagerTest.php b/Tests/Entity/SiteManagerTest.php index 66e1b0785..7eb8d2fb8 100644 --- a/Tests/Entity/SiteManagerTest.php +++ b/Tests/Entity/SiteManagerTest.php @@ -13,9 +13,6 @@ use Sonata\PageBundle\Entity\SiteManager; -/** - * Class SiteManagerTest. - */ class SiteManagerTest extends \PHPUnit_Framework_TestCase { public function testGetPager() diff --git a/Tests/Entity/SnapshotManagerTest.php b/Tests/Entity/SnapshotManagerTest.php index 54454ed39..56bf8c5c4 100644 --- a/Tests/Entity/SnapshotManagerTest.php +++ b/Tests/Entity/SnapshotManagerTest.php @@ -13,9 +13,6 @@ use Sonata\PageBundle\Entity\SnapshotManager; -/** - * Class SnapshotManagerTest. - */ class SnapshotManagerTest extends \PHPUnit_Framework_TestCase { public function testSetTemplates() diff --git a/Twig/Extension/PageExtension.php b/Twig/Extension/PageExtension.php index 0bdd2d51c..ca10d085e 100644 --- a/Twig/Extension/PageExtension.php +++ b/Twig/Extension/PageExtension.php @@ -72,8 +72,6 @@ class PageExtension extends \Twig_Extension implements \Twig_Extension_InitRunti private $hideDisabledBlocks; /** - * Constructor. - * * @param CmsManagerSelectorInterface $cmsManagerSelector A CMS manager selector * @param SiteSelectorInterface $siteSelector A site selector * @param RouterInterface $router The Router