@@ -50,6 +50,9 @@ discard block |
||
| 50 | 50 | return $this; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $str |
|
| 55 | + */ |
|
| 53 | 56 | public function setTypeString($str) { |
| 54 | 57 | $this->typeString = $str; |
| 55 | 58 | |
@@ -60,6 +63,9 @@ discard block |
||
| 60 | 63 | return $this->typeString; |
| 61 | 64 | } |
| 62 | 65 | |
| 66 | + /** |
|
| 67 | + * @param string $str |
|
| 68 | + */ |
|
| 63 | 69 | public function setTypeLongString($str) { |
| 64 | 70 | $this->typeLongString = $str; |
| 65 | 71 | } |
@@ -44,6 +44,9 @@ discard block |
||
| 44 | 44 | return $this; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $str |
|
| 49 | + */ |
|
| 47 | 50 | public function setLevelString($str) { |
| 48 | 51 | $this->levelString = $str; |
| 49 | 52 | |
@@ -195,6 +198,9 @@ discard block |
||
| 195 | 198 | } |
| 196 | 199 | |
| 197 | 200 | |
| 201 | + /** |
|
| 202 | + * @param integer $level |
|
| 203 | + */ |
|
| 198 | 204 | public static function levelString($level) { |
| 199 | 205 | switch ($level) { |
| 200 | 206 | case self::LEVEL_NONE: |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | 79 | * @param $circleId |
| 80 | - * @param $name |
|
| 80 | + * @param string $name |
|
| 81 | 81 | * |
| 82 | 82 | * @return array |
| 83 | 83 | * @throws CircleDoesNotExistException |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | 158 | * return if member already exists |
| 159 | - * @param $member |
|
| 159 | + * @param null|Member $member |
|
| 160 | 160 | * |
| 161 | 161 | * @return bool |
| 162 | 162 | */ |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | /** |
| 171 | 171 | * Invite a Member to a private Circle, or accept his request. |
| 172 | 172 | * |
| 173 | - * @param $member |
|
| 173 | + * @param null|Member $member |
|
| 174 | 174 | */ |
| 175 | 175 | private function inviteMemberToPrivateCircle(&$member) { |
| 176 | 176 | if ($member->getStatus() === Member::STATUS_REQUEST) { |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | */ |
| 74 | 74 | public function isCircleAllowed($type) { |
| 75 | 75 | if ($this->allowedCircle === -1) { |
| 76 | - $this->allowedCircle = (int) $this->getAppValue(self::CIRCLES_ALLOW_CIRCLES); |
|
| 76 | + $this->allowedCircle = (int)$this->getAppValue(self::CIRCLES_ALLOW_CIRCLES); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | return ((int)$type & (int)$this->allowedCircle); |