Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 90c6026

Browse files
author
Jamie Snape
committed
Fix style
1 parent 7663c78 commit 90c6026

File tree

5 files changed

+24
-15
lines changed

5 files changed

+24
-15
lines changed

.styleci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ disabled:
2626
- phpdoc_params
2727
- phpdoc_separation
2828
- phpdoc_to_comment
29+
- phpdoc_types
2930
- phpdoc_var_without_name
30-
- pre_increment
31+
3132

3233
finder:
3334
exclude:

core/models/base/FeedModelBase.php

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/** Feed Model Base */
2222
abstract class FeedModelBase extends AppModel
2323
{
24-
/** Constructor */
24+
/** Constructor. */
2525
public function __construct()
2626
{
2727
parent::__construct();
@@ -72,37 +72,45 @@ abstract protected function getFeeds(
7272
$limit = 20
7373
);
7474

75-
/** add a community */
75+
/** Add a community. */
7676
abstract protected function addCommunity($feed, $community);
7777

78-
/** Check policy */
78+
/** Check policy. */
7979
abstract public function policyCheck($feedDao, $userDao = null, $policy = 0);
8080

81-
/** get feeds (filtered by policies)
82-
* @return Array of FeedDao
81+
/**
82+
* Get feeds (filtered by policies).
83+
*
84+
* @return array feed DAOs
8385
*/
8486
public function getGlobalFeeds($loggedUserDao, $policy = 0, $limit = 20)
8587
{
8688
return $this->getFeeds($loggedUserDao, null, null, $policy, $limit);
8789
}
8890

89-
/** get feeds by user (filtered by policies)
90-
* @return Array of FeedDao
91+
/**
92+
* Get feeds by user (filtered by policies).
93+
*
94+
* @return array feed DAOs
9195
*/
9296
public function getFeedsByUser($loggedUserDao, $userDao, $policy = 0, $limit = 20)
9397
{
9498
return $this->getFeeds($loggedUserDao, $userDao, null, $policy, $limit);
9599
}
96100

97-
/** get feeds by community (filtered by policies)
98-
* @return Array of FeedDao
101+
/**
102+
* Get feeds by community (filtered by policies).
103+
*
104+
* @return array feed DAOs
99105
*/
100106
public function getFeedsByCommunity($loggedUserDao, $communityDao, $policy = 0, $limit = 20)
101107
{
102108
return $this->getFeeds($loggedUserDao, null, $communityDao, $policy, $limit);
103109
}
104110

105-
/** Create a feed
111+
/**
112+
* Create a feed.
113+
*
106114
* @return FeedDao
107115
*/
108116
public function createFeed($userDao, $type, $resource, $communityDao = null)

core/models/base/UserModelBase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,9 @@ public function createUser($email, $password, $firstname, $lastname, $admin = 0,
394394
* @param string $s Size in pixels, defaults to 80px [ 1 - 512 ]
395395
* @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ]
396396
* @param string $r Maximum rating (inclusive) [ g | pg | r | x ]
397-
* @param boole $img True to return a complete IMG tag False for just the URL
397+
* @param bool $img True to return a complete IMG tag False for just the URL
398398
* @param array $atts Optional, additional key/value attributes to include in the IMG tag
399-
* @return String containing either just a URL or a complete image tag
399+
* @return string containing either just a URL or a complete image tag
400400
* @source http://gravatar.com/site/implement/images/php/
401401
*/
402402
public function getGravatarUrl($email, $s = 32, $d = '404', $r = 'g', $img = false, $atts = array())

core/models/pdo/UserModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public function getUsersFromSearch($search, $userDao, $limit = 14, $group = true
305305
* NOTE: This may ONLY be used to authenticate site admins. This is meant to be
306306
* used during the upgrade process only, not for general authentication.
307307
*
308-
* @return True or false: whether the authentication succeeded
308+
* @return bool True if the authentication succeeded
309309
*/
310310
public function legacyAuthenticate($userDao, $instanceSalt, $password, $hash = false)
311311
{

modules/packages/models/pdo/PackageModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Packages_PackageModel extends Packages_PackageModelBase
2727
* Return all the record in the table.
2828
*
2929
* @param params Optional associative array specifying an 'os', 'arch', 'submissiontype' and 'packagetype'.
30-
* @return Array of package Daos
30+
* @return array Package DAOs
3131
*/
3232
public function get(
3333
$params = array(

0 commit comments

Comments
 (0)