Skip to content

Commit

Permalink
Remove @return from docblock (for __construct && __destruct methods)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimegede committed Nov 11, 2013
1 parent f0205f5 commit 18e0dc9
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions lib/Cake/Console/ConsoleOutput.php
Expand Up @@ -286,8 +286,7 @@ public function outputAs($type = null) {
}

/**
* clean up and close handles
*
* Clean up and close handles
*/
public function __destruct() {
fclose($this->_output);
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/I18n/L10n.php
Expand Up @@ -327,7 +327,6 @@ class L10n {

/**
* Class constructor
*
*/
public function __construct() {
if (defined('DEFAULT_LANGUAGE')) {
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Model/Datasource/DataSource.php
Expand Up @@ -431,7 +431,6 @@ public function close() {

/**
* Closes the current datasource.
*
*/
public function __destruct() {
if ($this->_transactionStarted) {
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Model/Datasource/DboSource.php
Expand Up @@ -3306,7 +3306,6 @@ public function getQueryCache($sql, $params = array()) {

/**
* Used for storing in cache the results of the in-memory methodCache
*
*/
public function __destruct() {
if ($this->_methodCacheChange) {
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Network/CakeSocket.php
Expand Up @@ -331,7 +331,6 @@ public function disconnect() {

/**
* Destructor, used to disconnect from current connection.
*
*/
public function __destruct() {
$this->disconnect();
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/TestSuite/CakeTestSuiteDispatcher.php
Expand Up @@ -78,7 +78,6 @@ class CakeTestSuiteDispatcher {

/**
* Constructor
*
*/
public function __construct() {
$this->_baseUrl = $_SERVER['PHP_SELF'];
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Utility/File.php
Expand Up @@ -96,7 +96,6 @@ public function __construct($path, $create = false, $mode = 0755) {

/**
* Closes the current file if it is opened
*
*/
public function __destruct() {
$this->close();
Expand Down

0 comments on commit 18e0dc9

Please sign in to comment.