From 18e0dc95dd2dfb78926a7128025ef745c86ffca2 Mon Sep 17 00:00:00 2001 From: Kim Egede Jakobsen Date: Sun, 8 Sep 2013 21:19:46 +0200 Subject: [PATCH] Remove @return from docblock (for __construct && __destruct methods) --- lib/Cake/Console/ConsoleOutput.php | 3 +-- lib/Cake/I18n/L10n.php | 1 - lib/Cake/Model/Datasource/DataSource.php | 1 - lib/Cake/Model/Datasource/DboSource.php | 1 - lib/Cake/Network/CakeSocket.php | 1 - lib/Cake/TestSuite/CakeTestSuiteDispatcher.php | 1 - lib/Cake/Utility/File.php | 1 - 7 files changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/Cake/Console/ConsoleOutput.php b/lib/Cake/Console/ConsoleOutput.php index b270fce2940..3b45c6751b7 100644 --- a/lib/Cake/Console/ConsoleOutput.php +++ b/lib/Cake/Console/ConsoleOutput.php @@ -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); diff --git a/lib/Cake/I18n/L10n.php b/lib/Cake/I18n/L10n.php index bac9ee5dfa5..aba0afbf755 100644 --- a/lib/Cake/I18n/L10n.php +++ b/lib/Cake/I18n/L10n.php @@ -327,7 +327,6 @@ class L10n { /** * Class constructor - * */ public function __construct() { if (defined('DEFAULT_LANGUAGE')) { diff --git a/lib/Cake/Model/Datasource/DataSource.php b/lib/Cake/Model/Datasource/DataSource.php index ceda8a4c81d..c71b164cff3 100644 --- a/lib/Cake/Model/Datasource/DataSource.php +++ b/lib/Cake/Model/Datasource/DataSource.php @@ -431,7 +431,6 @@ public function close() { /** * Closes the current datasource. - * */ public function __destruct() { if ($this->_transactionStarted) { diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index dd6eae280b3..3fcf71f128b 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -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) { diff --git a/lib/Cake/Network/CakeSocket.php b/lib/Cake/Network/CakeSocket.php index a06c38c50a4..ca20bdfc1ad 100644 --- a/lib/Cake/Network/CakeSocket.php +++ b/lib/Cake/Network/CakeSocket.php @@ -331,7 +331,6 @@ public function disconnect() { /** * Destructor, used to disconnect from current connection. - * */ public function __destruct() { $this->disconnect(); diff --git a/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php b/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php index 90499746650..3d23bbccfda 100644 --- a/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php +++ b/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php @@ -78,7 +78,6 @@ class CakeTestSuiteDispatcher { /** * Constructor - * */ public function __construct() { $this->_baseUrl = $_SERVER['PHP_SELF']; diff --git a/lib/Cake/Utility/File.php b/lib/Cake/Utility/File.php index 9c1be6afe51..1af4c757be2 100644 --- a/lib/Cake/Utility/File.php +++ b/lib/Cake/Utility/File.php @@ -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();