Skip to content

Commit e876906

Browse files
committed
Merge pull request cakephp#1401 from dereuromark/master
CS fixes
2 parents c478d60 + af455b4 commit e876906

File tree

21 files changed

+32
-20
lines changed

21 files changed

+32
-20
lines changed

lib/Cake/Console/Command/Task/ExtractTask.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ public function execute() {
247247
* @param string $domain
248248
* @param string $msgid
249249
* @param array $details
250+
* @return void
250251
*/
251252
protected function _addTranslation($domain, $msgid, $details = array()) {
252253
if (empty($this->_translations[$domain][$msgid])) {

lib/Cake/Console/ConsoleErrorHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public function handleError($code, $description, $file = null, $line = null, $co
9696
* Wrapper for exit(), used for testing.
9797
*
9898
* @param int $code The exit code.
99+
* @return void
99100
*/
100101
protected function _stop($code = 0) {
101102
exit($code);

lib/Cake/Controller/Component/Acl/AclInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ interface AclInterface {
2828
* @param string $aro ARO The requesting object identifier.
2929
* @param string $aco ACO The controlled object identifier.
3030
* @param string $action Action (defaults to *)
31+
* @return boolean Success
3132
*/
3233
public function check($aro, $aco, $action = "*");
3334

@@ -65,6 +66,7 @@ public function inherit($aro, $aco, $action = "*");
6566
* Initialization method for the Acl implementation
6667
*
6768
* @param AclComponent $component
69+
* @return void
6870
*/
6971
public function initialize(Component $component);
7072

lib/Cake/Log/CakeLog.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ public static function configured() {
255255
* }}}
256256
*
257257
* @param array $levels array
258-
* @param bool $append true to append, false to replace
259-
* @return array active log levels
258+
* @param boolean $append true to append, false to replace
259+
* @return array Active log levels
260260
*/
261261
public static function levels($levels = array(), $append = true) {
262262
if (empty(self::$_Collection)) {
@@ -278,7 +278,7 @@ public static function levels($levels = array(), $append = true) {
278278
/**
279279
* Reset log levels to the original value
280280
*
281-
* @return array default log levels
281+
* @return array Default log levels
282282
*/
283283
public static function defaultLevels() {
284284
self::$_levelMap = self::$_defaultLevels;
@@ -304,7 +304,7 @@ public static function drop($streamName) {
304304
* Checks whether $streamName is enabled
305305
*
306306
* @param string $streamName to check
307-
* @return bool
307+
* @return boolean
308308
* @throws CakeLogException
309309
*/
310310
public static function enabled($streamName) {

lib/Cake/Model/Behavior/TranslateBehavior.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ public function bindTranslation(Model $Model, $fields, $reset = true) {
628628
*
629629
* @param Model $Model Model instance
630630
* @param string $field The field to update.
631+
* @return void
631632
*/
632633
protected function _removeField(Model $Model, $field) {
633634
if (array_key_exists($field, $this->settings[$Model->alias])) {

lib/Cake/Model/Validator/CakeValidationSet.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ public function offsetGet($index) {
331331
*
332332
* @param string $index name of the rule
333333
* @param CakeValidationRule|array rule to add to $index
334+
* @return void
334335
*/
335336
public function offsetSet($index, $rule) {
336337
$this->setRule($index, $rule);

lib/Cake/Network/CakeRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ public function domain($tldLength = 1) {
673673
*
674674
* @param integer $tldLength Number of segments your tld contains. For example: `example.com` contains 1 tld.
675675
* While `example.co.uk` contains 2.
676-
* @return array of subdomains.
676+
* @return array An array of subdomains.
677677
*/
678678
public function subdomains($tldLength = 1) {
679679
$segments = explode('.', $this->host());

lib/Cake/Network/CakeSocket.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ public function connect() {
186186
*
187187
* @param int $code
188188
* @param string $message
189+
* @return void
189190
*/
190191
protected function _connectionErrorHandler($code, $message) {
191192
$this->_connectionErrors[] = $message;

lib/Cake/Test/Case/Controller/Component/Acl/DbAclTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ public function testRevoke() {
498498
* Generates a list of the current aro and aco structures and a grid dump of the permissions that are defined
499499
* Only designed to work with the db based ACL
500500
*
501-
* @param bool $treesToo
501+
* @param boolean $treesToo
502502
* @return void
503503
*/
504504
protected function _debug($printTreesToo = false) {

lib/Cake/Test/Case/Core/ConfigureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ public function testDump() {
447447
/**
448448
* Test dumping only some of the data.
449449
*
450-
* @return
450+
* @return void
451451
*/
452452
public function testDumpPartial() {
453453
Configure::config('test_reader', new PhpReader(TMP));

0 commit comments

Comments
 (0)