Skip to content

Commit

Permalink
correct return types in doc blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Jul 5, 2013
1 parent ba02678 commit af455b4
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 8 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/ExtractTask.php
Expand Up @@ -247,6 +247,7 @@ public function execute() {
* @param string $domain
* @param string $msgid
* @param array $details
* @return void
*/
protected function _addTranslation($domain, $msgid, $details = array()) {
if (empty($this->_translations[$domain][$msgid])) {
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Console/ConsoleErrorHandler.php
Expand Up @@ -96,6 +96,7 @@ public function handleError($code, $description, $file = null, $line = null, $co
* Wrapper for exit(), used for testing.
*
* @param int $code The exit code.
* @return void
*/
protected function _stop($code = 0) {
exit($code);
Expand Down
2 changes: 2 additions & 0 deletions lib/Cake/Controller/Component/Acl/AclInterface.php
Expand Up @@ -28,6 +28,7 @@ interface AclInterface {
* @param string $aro ARO The requesting object identifier.
* @param string $aco ACO The controlled object identifier.
* @param string $action Action (defaults to *)
* @return boolean Success
*/
public function check($aro, $aco, $action = "*");

Expand Down Expand Up @@ -65,6 +66,7 @@ public function inherit($aro, $aco, $action = "*");
* Initialization method for the Acl implementation
*
* @param AclComponent $component
* @return void
*/
public function initialize(Component $component);

Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Model/Behavior/TranslateBehavior.php
Expand Up @@ -628,6 +628,7 @@ public function bindTranslation(Model $Model, $fields, $reset = true) {
*
* @param Model $Model Model instance
* @param string $field The field to update.
* @return void
*/
protected function _removeField(Model $Model, $field) {
if (array_key_exists($field, $this->settings[$Model->alias])) {
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Model/Validator/CakeValidationSet.php
Expand Up @@ -331,6 +331,7 @@ public function offsetGet($index) {
*
* @param string $index name of the rule
* @param CakeValidationRule|array rule to add to $index
* @return void
*/
public function offsetSet($index, $rule) {
$this->setRule($index, $rule);
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Network/CakeSocket.php
Expand Up @@ -186,6 +186,7 @@ public function connect() {
*
* @param int $code
* @param string $message
* @return void
*/
protected function _connectionErrorHandler($code, $message) {
$this->_connectionErrors[] = $message;
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Core/ConfigureTest.php
Expand Up @@ -447,7 +447,7 @@ public function testDump() {
/**
* Test dumping only some of the data.
*
* @return
* @return void
*/
public function testDumpPartial() {
Configure::config('test_reader', new PhpReader(TMP));
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/I18n/I18nTest.php
Expand Up @@ -194,7 +194,7 @@ public function testMoRulesZero() {
/**
* Assertions for rules zero.
*
* @return
* @return void
*/
public function assertRulesZero() {
$singular = $this->__singular();
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
Expand Up @@ -2508,7 +2508,7 @@ public function testArrayConditionsParsing() {
/**
* Test that array conditions with only one element work.
*
* @return
* @return void
*/
public function testArrayConditionsOneElement() {
$conditions = array('id' => array(1));
Expand Down
3 changes: 2 additions & 1 deletion lib/Cake/Test/Case/Model/ModelReadTest.php
Expand Up @@ -3765,7 +3765,7 @@ public function testFindNeighbors() {
/**
* Test find(neighbors) with missing fields so no neighbors are found.
*
* @return
* @return void
*/
public function testFindNeighborsNoPrev() {
$this->loadFixtures('User', 'Article', 'Comment', 'Tag', 'ArticlesTag', 'Attachment');
Expand All @@ -3786,6 +3786,7 @@ public function testFindNeighborsNoPrev() {
);
$this->assertEquals($expected, $result);
}

/**
* testFindCombinedRelations method
*
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Utility/SecurityTest.php
Expand Up @@ -265,7 +265,7 @@ public function testRijndael() {
/**
* Test that rijndael() can still decrypt values with a fixed iv.
*
* @return
* @return void
*/
public function testRijndaelBackwardCompatibility() {
$this->skipIf(!function_exists('mcrypt_encrypt'));
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/View/HelperTest.php
Expand Up @@ -309,7 +309,7 @@ public function testSetEntity($entity, $expected, $modelKey, $fieldKey) {
/**
* test setEntity with setting a scope.
*
* @return
* @return void
*/
public function testSetEntityScoped() {
$this->Helper->setEntity('HelperTestPost', true);
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/View/XmlView.php
Expand Up @@ -94,9 +94,9 @@ public function render($view = null, $layout = null) {
}

/**
* Serialize view vars
* Serialize view vars.
*
* @param array $serialize The viewVars that need to be serialized
* @param array $serialize The viewVars that need to be serialized.
* @return string The serialized data
*/
protected function _serialize($serialize) {
Expand Down
2 changes: 2 additions & 0 deletions lib/Cake/basics.php
Expand Up @@ -68,6 +68,7 @@ function config() {
* @param boolean $var Variable to show debug information for.
* @param boolean $showHtml If set to true, the method prints the debug data in a browser-friendly way.
* @param boolean $showFrom If set to true, the method prints from where the function was called.
* @return void
* @link http://book.cakephp.org/2.0/en/development/debugging.html#basic-debugging
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#debug
*/
Expand Down Expand Up @@ -235,6 +236,7 @@ function pluginSplit($name, $dotAppend = false, $plugin = null) {
*
* @see debug()
* @param array $var Variable to print out
* @return void
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#pr
*/
function pr($var) {
Expand Down

0 comments on commit af455b4

Please sign in to comment.