Skip to content

Commit

Permalink
Remove unnecessary @return tags in constructor and deconstructor docb…
Browse files Browse the repository at this point in the history
…locks.
  • Loading branch information
ndm2 committed Feb 22, 2014
1 parent 31d36c0 commit 3077199
Show file tree
Hide file tree
Showing 29 changed files with 0 additions and 35 deletions.
1 change: 0 additions & 1 deletion src/Collection/Collection.php
Expand Up @@ -32,7 +32,6 @@ class Collection extends IteratorIterator implements JsonSerializable {
* Constructor. You can provide an array or any traversable object
*
* @param array|\Traversable $items
* @return void
* @throws InvalidArgumentException if passed incorrect type for items.
*/
public function __construct($items) {
Expand Down
1 change: 0 additions & 1 deletion src/Collection/Iterator/ExtractIterator.php
Expand Up @@ -49,7 +49,6 @@ class ExtractIterator extends Collection {
* @param array|\Traversable $items The list of values to iterate
* @param string $path a dot separated string symbolizing the path to follow
* inside the hierarchy of each value so that the column can be extracted.
* @return void
*/
public function __construct($items, $path) {
$this->_path = explode('.', $path);
Expand Down
1 change: 0 additions & 1 deletion src/Collection/Iterator/FilterIterator.php
Expand Up @@ -35,7 +35,6 @@ class FilterIterator extends Collection {
*
* @param Iterator $items the items to be filtered
* @param callable $callback
* @return void
*/
public function __construct(Iterator $items, callable $callback) {
$wrapper = new CallbackFilterIterator($items, $callback);
Expand Down
1 change: 0 additions & 1 deletion src/Collection/Iterator/MapReduce.php
Expand Up @@ -109,7 +109,6 @@ class MapReduce implements IteratorAggregate {
* The first one is the list of values inside a bucket, second one is the name
* of the bucket that was created during the mapping phase and third one is an
* instance of this class.
* @return void
*/
public function __construct(\Traversable $data, callable $mapper, callable $reducer = null) {
$this->_data = $data;
Expand Down
1 change: 0 additions & 1 deletion src/Collection/Iterator/ReplaceIterator.php
Expand Up @@ -39,7 +39,6 @@ class ReplaceIterator extends Collection {
*
* @param array|\Traversable $items the items to be filtered
* @param callable $callback
* @return void
*/
public function __construct($items, callable $callback) {
$this->_callback = $callback;
Expand Down
1 change: 0 additions & 1 deletion src/Collection/Iterator/SortIterator.php
Expand Up @@ -86,7 +86,6 @@ class SortIterator extends SplHeap {
* @param integer $dir either SORT_DESC or SORT_ASC
* @param integer $type the type of comparison to perform, either SORT_STRING
* SORT_NUMERIC or SORT_NATURAL
* @return void
*/
public function __construct($items, $c, $dir = SORT_DESC, $type = SORT_NUMERIC) {
$this->_items = $items;
Expand Down
2 changes: 0 additions & 2 deletions src/Database/Connection.php
Expand Up @@ -103,8 +103,6 @@ public function __construct($config) {
* Destructor
*
* Disconnects the driver to release the connection.
*
* @return void
*/
public function __destruct() {
unset($this->_driver);
Expand Down
3 changes: 0 additions & 3 deletions src/Database/Driver.php
Expand Up @@ -50,7 +50,6 @@ abstract class Driver {
* Constructor
*
* @param array $config The configuration for the driver.
* @return void
*/
public function __construct($config = []) {
$config += $this->_baseConfig;
Expand Down Expand Up @@ -246,8 +245,6 @@ public function autoQuoting($enable = null) {

/**
* Destructor
*
* @return void
*/
public function __destruct() {
$this->_connection = null;
Expand Down
1 change: 0 additions & 1 deletion src/Database/Expression/Comparison.php
Expand Up @@ -53,7 +53,6 @@ class Comparison extends QueryExpression {
* @param mixed $value the value to be used in comparison
* @param string $type the type name used to cast the value
* @param string $conjunction the operator used for comparing field and value
* @return void
*/
public function __construct($field, $value, $type, $conjuntion) {
$this->field($field);
Expand Down
1 change: 0 additions & 1 deletion src/Database/Expression/FunctionExpression.php
Expand Up @@ -57,7 +57,6 @@ class FunctionExpression extends QueryExpression {
* If associative the key would be used as argument when value is 'literal'
* @param array types associative array of types to be associated with the
* passed arguments
* @return void
*/
public function __construct($name, $params = [], $types = []) {
$this->_name = $name;
Expand Down
1 change: 0 additions & 1 deletion src/Database/Expression/IdentifierExpression.php
Expand Up @@ -36,7 +36,6 @@ class IdentifierExpression implements ExpressionInterface {
* Constructor
*
* @param string $identifier The identifier this expression represents
* @return void
*/
public function __construct($identifier) {
$this->setIdentifier($identifier);
Expand Down
1 change: 0 additions & 1 deletion src/Database/Expression/QueryExpression.php
Expand Up @@ -57,7 +57,6 @@ class QueryExpression implements ExpressionInterface, Countable {
* @param string $conjunction the glue that will join all the string conditions at this
* level of the expression tree. For example "AND", "OR", "XOR"...
* @see QueryExpression::add() for more details on $conditions and $types
* @return void
*/
public function __construct($conditions = [], $types = [], $conjunction = 'AND') {
$this->type(strtoupper($conjunction));
Expand Down
1 change: 0 additions & 1 deletion src/Database/Expression/TupleComparison.php
Expand Up @@ -32,7 +32,6 @@ class TupleComparison extends Comparison {
* @param array $types the types names to use for casting each of the values, only
* one type per position in the value array in needed
* @param string $conjunction the operator used for comparing field and value
* @return void
*/
public function __construct($fields, $values, $types = [], $conjuntion = '=') {
parent::__construct($fields, $values, $types, $conjuntion);
Expand Down
1 change: 0 additions & 1 deletion src/Database/Expression/ValuesExpression.php
Expand Up @@ -61,7 +61,6 @@ class ValuesExpression implements ExpressionInterface {
*
* @param array $columns The list of columns that are going to be part of the values.
* @param array $types A dictionary of column -> type names
* @return void
*/
public function __construct(array $columns, array $types = []) {
$this->_columns = $columns;
Expand Down
1 change: 0 additions & 1 deletion src/Database/IdentifierQuoter.php
Expand Up @@ -37,7 +37,6 @@ class IdentifierQuoter {
* Constructor
*
* @param \Cake\Database\Driver The driver instance used to do the identifier quoting
* @return void
*/
public function __construct(Driver $driver) {
$this->_driver = $driver;
Expand Down
2 changes: 0 additions & 2 deletions src/Database/Query.php
Expand Up @@ -157,8 +157,6 @@ class Query implements ExpressionInterface, IteratorAggregate {
*
* @param \Cake\Database\Connection $connection The connection
* object to be used for transforming and executing this query
*
* @return void
*/
public function __construct($connection) {
$this->connection($connection);
Expand Down
1 change: 0 additions & 1 deletion src/Database/Schema/BaseSchema.php
Expand Up @@ -38,7 +38,6 @@ abstract class BaseSchema {
* Constructor
*
* @param \Cake\Database\Driver $driver The driver to use.
* @return void
*/
public function __construct(Driver $driver) {
$this->_driver = $driver;
Expand Down
1 change: 0 additions & 1 deletion src/Database/Statement/BufferedStatement.php
Expand Up @@ -55,7 +55,6 @@ class BufferedStatement extends StatementDecorator {
*
* @param \Cake\Database\Driver instance $driver
* @param Statement implementation such as PDOStatement
* @return void
*/
public function __construct($statement = null, $driver = null) {
parent::__construct($statement, $driver);
Expand Down
1 change: 0 additions & 1 deletion src/Database/Statement/PDOStatement.php
Expand Up @@ -30,7 +30,6 @@ class PDOStatement extends StatementDecorator {
*
* @param \PDOStatement original statement to be decorated
* @param \Cake\Database\Driver instance $driver
* @return void
*/
public function __construct(Statement $statement = null, $driver = null) {
$this->_statement = $statement;
Expand Down
1 change: 0 additions & 1 deletion src/Database/Statement/StatementDecorator.php
Expand Up @@ -52,7 +52,6 @@ class StatementDecorator implements StatementInterface, \Countable, \IteratorAgg
*
* @param Statement implementation such as PDOStatement
* @param \Cake\Database\Driver instance $driver
* @return void
*/
public function __construct($statement = null, $driver = null) {
$this->_statement = $statement;
Expand Down
1 change: 0 additions & 1 deletion src/Database/Type.php
Expand Up @@ -78,7 +78,6 @@ class Type {
* Constructor
*
* @param string $name The name identifying this type
* @return void
*/
public function __construct($name = null) {
$this->_name = $name;
Expand Down
1 change: 0 additions & 1 deletion src/Network/Http/FormData/Part.php
Expand Up @@ -77,7 +77,6 @@ class Part {
* @param string $name The name of the data.
* @param string $value The value of the data.
* @param string $disposition The type of disposition to use, defaults to form-data.
* @return void
*/
public function __construct($name, $value, $disposition = 'form-data') {
$this->_name = $name;
Expand Down
1 change: 0 additions & 1 deletion src/ORM/Association.php
Expand Up @@ -167,7 +167,6 @@ abstract class Association {
*
* @param string $name The name given to the association
* @param array $options A list of properties to be set on this object
* @return void
*/
public function __construct($name, array $options = []) {
$defaults = [
Expand Down
1 change: 0 additions & 1 deletion src/ORM/ResultSet.php
Expand Up @@ -125,7 +125,6 @@ class ResultSet implements Countable, Iterator, Serializable, JsonSerializable {
*
* @param Query from where results come
* @param \Cake\Database\StatementInterface $statement
* @return void
*/
public function __construct($query, $statement) {
$this->_query = $query;
Expand Down
1 change: 0 additions & 1 deletion src/ORM/Table.php
Expand Up @@ -187,7 +187,6 @@ class Table implements RepositoryInterface, EventListener {
* - behaviors: A BehaviorRegistry. Generally not used outside of tests.
*
* @param array config Lsit of options for this table
* @return void
*/
public function __construct(array $config = []) {
if (!empty($config['table'])) {
Expand Down
1 change: 0 additions & 1 deletion src/TestSuite/Fixture/FixtureInjector.php
Expand Up @@ -41,7 +41,6 @@ class FixtureInjector implements PHPUnit_Framework_TestListener {
* Constructor. Save internally the reference to the passed fixture manager
*
* @param \Cake\TestSuite\Fixture\FixtureManager $manager
* @return void
*/
public function __construct(FixtureManager $manager) {
$this->_fixtureManager = $manager;
Expand Down
1 change: 0 additions & 1 deletion src/TestSuite/TestPermutationDecorator.php
Expand Up @@ -41,7 +41,6 @@ class TestPermutationDecorator extends PHPUnit_Extensions_TestDecorator {
* @param \PHPUnit_Framework_Test The test or suite to decorate
* @param array $permutation An array containing callable methods that will
* be executed before the test suite is run
* @return void
*/
public function __construct(PHPUnit_Framework_Test $test, array $permutations) {
parent::__construct($test);
Expand Down
2 changes: 0 additions & 2 deletions tests/test_app/Plugin/TestPlugin/Datasource/TestSource.php
Expand Up @@ -13,8 +13,6 @@ class TestSource {

/**
* Constructor
*
* @return void
*/
public function __construct(array $settings) {
$this->settings = $settings;
Expand Down
2 changes: 0 additions & 2 deletions tests/test_app/TestApp/Controller/AuthTestController.php
Expand Up @@ -49,8 +49,6 @@ class AuthTestController extends Controller {

/**
* construct method
*
* @return void
*/
public function __construct($request = null, $response = null) {
$request->addParams(Router::parse('/auth_test'));
Expand Down

0 comments on commit 3077199

Please sign in to comment.