Skip to content

Commit

Permalink
Updates all file-level docblocks
Browse files Browse the repository at this point in the history
Updates all to use the new format (I found at least 4 different styles
throughout the component!). Also removes redundant class-level
license/copyright notices, and sorts all import statements.
  • Loading branch information
weierophinney committed Apr 17, 2018
1 parent bc449e7 commit fcb4d5a
Show file tree
Hide file tree
Showing 42 changed files with 175 additions and 297 deletions.
8 changes: 3 additions & 5 deletions src/Collector/AbstractCollector.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Collector;
Expand Down
20 changes: 3 additions & 17 deletions src/Collector/AutoHideInterface.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
<?php
/**
* ZendDeveloperTools
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Collector;

/**
* Auto hide Interface provides the ability for collectors, to specify that
* they can be hidden.
*
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface AutoHideInterface
{
Expand Down
9 changes: 3 additions & 6 deletions src/Collector/CollectorInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Collector;
Expand All @@ -13,7 +11,6 @@

/**
* Collector Interface.
*
*/
interface CollectorInterface
{
Expand Down
12 changes: 5 additions & 7 deletions src/Collector/ConfigCollector.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Collector;

use Closure;
use Serializable;
use Traversable;
use Closure;
use ZendDeveloperTools\Stub\ClosureStub;
use Zend\Mvc\MvcEvent;
use Zend\Stdlib\ArrayUtils;
use ZendDeveloperTools\Stub\ClosureStub;

/**
* Config data collector - dumps the contents of the `Config` and `ApplicationConfig` services
Expand Down
18 changes: 8 additions & 10 deletions src/Collector/DbCollector.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Collector;

use Zend\Mvc\MvcEvent;
use BjyProfiler\Db\Profiler\Profiler;
use Serializable;
use Zend\Mvc\MvcEvent;

/**
* Database (Zend\Db) Data Collector.
*
*/
class DbCollector implements CollectorInterface, AutoHideInterface, \Serializable
class DbCollector implements CollectorInterface, AutoHideInterface, Serializable
{
/**
* @var Profiler
Expand Down Expand Up @@ -129,15 +127,15 @@ public function getQueryTime($mode = null)
}

/**
* @see \Serializable
* @see Serializable
*/
public function serialize()
{
return serialize($this->profiler);
}

/**
* @see \Serializable
* @see Serializable
*/
public function unserialize($profiler)
{
Expand Down
9 changes: 3 additions & 6 deletions src/Collector/EventCollectorInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Collector;
Expand All @@ -13,7 +11,6 @@

/**
* Event Data Collector Interface.
*
*/
interface EventCollectorInterface
{
Expand Down
13 changes: 5 additions & 8 deletions src/Collector/ExceptionCollector.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Collector;

use Zend\Mvc\MvcEvent;
use Zend\Mvc\Application;
use ZendDeveloperTools\Exception\SerializableException;
use Zend\Mvc\Application;
use Zend\Mvc\MvcEvent;

/**
* Exception Data Collector.
*
*/
class ExceptionCollector extends AbstractCollector
{
Expand Down
8 changes: 3 additions & 5 deletions src/Collector/MailCollector.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Collector;
Expand Down
12 changes: 5 additions & 7 deletions src/Collector/MemoryCollector.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/
namespace ZendDeveloperTools\Collector;

use Zend\Mvc\MvcEvent;
use Zend\EventManager\Event;
use ZendDeveloperTools\EventLogging\EventContextProvider;
use Zend\EventManager\Event;
use Zend\Mvc\MvcEvent;

/**
* Memory Data Collector.
Expand Down
8 changes: 3 additions & 5 deletions src/Collector/RequestCollector.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Collector;
Expand Down
12 changes: 5 additions & 7 deletions src/Collector/TimeCollector.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/
namespace ZendDeveloperTools\Collector;

use Zend\Mvc\MvcEvent;
use Zend\EventManager\Event;
use ZendDeveloperTools\EventLogging\EventContextProvider;
use Zend\EventManager\Event;
use Zend\Mvc\MvcEvent;

/**
* Time Data Collector.
Expand Down
10 changes: 4 additions & 6 deletions src/Controller/DeveloperToolsController.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Controller;

use Zend\View\Model\ViewModel;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;

class IndexController extends AbstractActionController
{
Expand Down
6 changes: 3 additions & 3 deletions src/EventLogging/EventContextInterface.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\EventLogging;
Expand Down
9 changes: 5 additions & 4 deletions src/EventLogging/EventContextProvider.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php
/**
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\EventLogging;

use InvalidArgumentException;
use Zend\EventManager\EventInterface;

/**
Expand Down Expand Up @@ -55,7 +56,7 @@ public function setEvent(EventInterface $event)
public function getEvent()
{
if (! $this->event) {
throw new \InvalidArgumentException(sprintf(
throw new InvalidArgumentException(sprintf(
'%s: expects an event to have been set.',
__METHOD__
));
Expand Down
8 changes: 3 additions & 5 deletions src/Exception/CollectorException.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Exception;
Expand Down
8 changes: 3 additions & 5 deletions src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Exception;
Expand Down
12 changes: 6 additions & 6 deletions src/Exception/InvalidOptionException.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Exception;

class InvalidOptionException extends \InvalidArgumentException implements ExceptionInterface
use InvalidArgumentException;

class InvalidOptionException extends InvalidArgumentException implements ExceptionInterface
{
}
15 changes: 3 additions & 12 deletions src/Exception/ParameterMissingException.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
<?php
/**
* Zend Developer Tools for Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package ZendDeveloperTools
* @subpackage Exception
* @see https://github.com/zendframework/ZendDeveloperTools for the canonical source repository
* @copyright Copyright (c) 2011-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/ZendDeveloperTools/blob/master/LICENSE.md New BSD License
*/

namespace ZendDeveloperTools\Exception;

/**
* @category Zend
* @package ZendDeveloperTools
* @subpackage Exception
*/
class ParameterMissingException extends \Exception implements ExceptionInterface
{
}
Loading

0 comments on commit fcb4d5a

Please sign in to comment.