@@ -67,7 +67,7 @@ |
||
| 67 | 67 | * Create circle using this->userId as owner |
| 68 | 68 | * |
| 69 | 69 | * @param $type |
| 70 | - * @param $name |
|
| 70 | + * @param string $name |
|
| 71 | 71 | * |
| 72 | 72 | * @return Circle |
| 73 | 73 | * @throws CircleTypeDisabledException |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * @param $circleId |
| 87 | - * @param $name |
|
| 87 | + * @param string $name |
|
| 88 | 88 | * |
| 89 | 89 | * @return array |
| 90 | 90 | * @throws CircleDoesNotExistException |
@@ -239,7 +239,7 @@ |
||
| 239 | 239 | * @throws CircleAlreadyExistsException |
| 240 | 240 | * @throws CircleCreationException |
| 241 | 241 | */ |
| 242 | - public function create(Circle &$circle, Member &$owner) { |
|
| 242 | + public function create(Circle & $circle, Member & $owner) { |
|
| 243 | 243 | |
| 244 | 244 | if ($circle->getType() === Circle::CIRCLES_PERSONAL) { |
| 245 | 245 | |
@@ -29,8 +29,9 @@ |
||
| 29 | 29 | class MemberAlreadyExistsException extends \Exception { |
| 30 | 30 | |
| 31 | 31 | public function __construct($message = "", $code = 0, \Exception $previous = null) { |
| 32 | - if ($message === '') |
|
| 33 | - $message = 'This user is already a member of the circle'; |
|
| 32 | + if ($message === '') { |
|
| 33 | + $message = 'This user is already a member of the circle'; |
|
| 34 | + } |
|
| 34 | 35 | |
| 35 | 36 | parent::__construct($message, $code, $previous); |
| 36 | 37 | } |
@@ -31,8 +31,9 @@ |
||
| 31 | 31 | class CircleDoesNotExistException extends \Exception { |
| 32 | 32 | |
| 33 | 33 | public function __construct($message = "", $code = 0, \Exception $previous = null) { |
| 34 | - if ($message === '') |
|
| 35 | - $message = 'The circle does not exist'; |
|
| 34 | + if ($message === '') { |
|
| 35 | + $message = 'The circle does not exist'; |
|
| 36 | + } |
|
| 36 | 37 | |
| 37 | 38 | parent::__construct($message, $code, $previous); |
| 38 | 39 | } |
@@ -29,8 +29,9 @@ |
||
| 29 | 29 | class MemberIsNotInvitedException extends \Exception { |
| 30 | 30 | |
| 31 | 31 | public function __construct($message = "", $code = 0, \Exception $previous = null) { |
| 32 | - if ($message === '') |
|
| 33 | - $message = 'This member is not invited'; |
|
| 32 | + if ($message === '') { |
|
| 33 | + $message = 'This member is not invited'; |
|
| 34 | + } |
|
| 34 | 35 | |
| 35 | 36 | parent::__construct($message, $code, $previous); |
| 36 | 37 | } |
@@ -29,8 +29,9 @@ |
||
| 29 | 29 | class CircleAlreadyExistsException extends \Exception { |
| 30 | 30 | |
| 31 | 31 | public function __construct($message = "", $code = 0, \Exception $previous = null) { |
| 32 | - if ($message === '') |
|
| 33 | - $message = 'A circle with this name already exist'; |
|
| 32 | + if ($message === '') { |
|
| 33 | + $message = 'A circle with this name already exist'; |
|
| 34 | + } |
|
| 34 | 35 | |
| 35 | 36 | parent::__construct($message, $code, $previous); |
| 36 | 37 | } |
@@ -29,8 +29,9 @@ |
||
| 29 | 29 | class MemberIsBlockedException extends \Exception { |
| 30 | 30 | |
| 31 | 31 | public function __construct($message = "", $code = 0, \Exception $previous = null) { |
| 32 | - if ($message === '') |
|
| 33 | - $message = 'This member is blocked'; |
|
| 32 | + if ($message === '') { |
|
| 33 | + $message = 'This member is blocked'; |
|
| 34 | + } |
|
| 34 | 35 | |
| 35 | 36 | parent::__construct($message, $code, $previous); |
| 36 | 37 | } |
@@ -31,8 +31,9 @@ |
||
| 31 | 31 | class MemberDoesNotExistException extends \Exception { |
| 32 | 32 | |
| 33 | 33 | public function __construct($message = "", $code = 0, \Exception $previous = null) { |
| 34 | - if ($message === '') |
|
| 35 | - $message = 'This member does not exist'; |
|
| 34 | + if ($message === '') { |
|
| 35 | + $message = 'This member does not exist'; |
|
| 36 | + } |
|
| 36 | 37 | |
| 37 | 38 | parent::__construct($message, $code, $previous); |
| 38 | 39 | } |