From 7df80cb32ca9b7d0fe452320ddc3563a1e373e2f Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 31 Jan 2015 19:09:34 +0100 Subject: CS --- src/Wallabag/CoreBundle/Entity/Config.php | 12 +++++------ src/Wallabag/CoreBundle/Entity/Entries.php | 29 +++++++++++++------------- src/Wallabag/CoreBundle/Entity/Tags.php | 8 +++---- src/Wallabag/CoreBundle/Entity/TagsEntries.php | 12 +++++------ src/Wallabag/CoreBundle/Entity/Users.php | 21 +++++++++---------- src/Wallabag/CoreBundle/Entity/UsersConfig.php | 16 +++++++------- 6 files changed, 44 insertions(+), 54 deletions(-) (limited to 'src/Wallabag/CoreBundle/Entity') diff --git a/src/Wallabag/CoreBundle/Entity/Config.php b/src/Wallabag/CoreBundle/Entity/Config.php index d60b2df0..045ca308 100644 --- a/src/Wallabag/CoreBundle/Entity/Config.php +++ b/src/Wallabag/CoreBundle/Entity/Config.php @@ -35,12 +35,10 @@ class Config */ private $value; - - /** * Get id * - * @return integer + * @return integer */ public function getId() { @@ -50,7 +48,7 @@ class Config /** * Set name * - * @param string $name + * @param string $name * @return Config */ public function setName($name) @@ -63,7 +61,7 @@ class Config /** * Get name * - * @return string + * @return string */ public function getName() { @@ -73,7 +71,7 @@ class Config /** * Set value * - * @param string $value + * @param string $value * @return Config */ public function setValue($value) @@ -86,7 +84,7 @@ class Config /** * Get value * - * @return string + * @return string */ public function getValue() { diff --git a/src/Wallabag/CoreBundle/Entity/Entries.php b/src/Wallabag/CoreBundle/Entity/Entries.php index 3c061a37..9da5102c 100644 --- a/src/Wallabag/CoreBundle/Entity/Entries.php +++ b/src/Wallabag/CoreBundle/Entity/Entries.php @@ -66,12 +66,10 @@ class Entries */ private $userId; - - /** * Get id * - * @return integer + * @return integer */ public function getId() { @@ -81,7 +79,7 @@ class Entries /** * Set title * - * @param string $title + * @param string $title * @return Entries */ public function setTitle($title) @@ -94,7 +92,7 @@ class Entries /** * Get title * - * @return string + * @return string */ public function getTitle() { @@ -104,7 +102,7 @@ class Entries /** * Set url * - * @param string $url + * @param string $url * @return Entries */ public function setUrl($url) @@ -117,7 +115,7 @@ class Entries /** * Get url * - * @return string + * @return string */ public function getUrl() { @@ -127,7 +125,7 @@ class Entries /** * Set isRead * - * @param string $isRead + * @param string $isRead * @return Entries */ public function setIsRead($isRead) @@ -140,7 +138,7 @@ class Entries /** * Get isRead * - * @return string + * @return string */ public function getIsRead() { @@ -150,13 +148,14 @@ class Entries public function toggleArchive() { $this->isRead = $this->getIsRead() ^ 1; + return $this; } /** * Set isFav * - * @param string $isFav + * @param string $isFav * @return Entries */ public function setIsFav($isFav) @@ -169,7 +168,7 @@ class Entries /** * Get isFav * - * @return string + * @return string */ public function getIsFav() { @@ -186,7 +185,7 @@ class Entries /** * Set content * - * @param string $content + * @param string $content * @return Entries */ public function setContent($content) @@ -199,7 +198,7 @@ class Entries /** * Get content * - * @return string + * @return string */ public function getContent() { @@ -209,7 +208,7 @@ class Entries /** * Set userId * - * @param string $userId + * @param string $userId * @return Entries */ public function setUserId($userId) @@ -222,7 +221,7 @@ class Entries /** * Get userId * - * @return string + * @return string */ public function getUserId() { diff --git a/src/Wallabag/CoreBundle/Entity/Tags.php b/src/Wallabag/CoreBundle/Entity/Tags.php index 6fe16a53..eab91ba0 100644 --- a/src/Wallabag/CoreBundle/Entity/Tags.php +++ b/src/Wallabag/CoreBundle/Entity/Tags.php @@ -28,12 +28,10 @@ class Tags */ private $value; - - /** * Get id * - * @return integer + * @return integer */ public function getId() { @@ -43,7 +41,7 @@ class Tags /** * Set value * - * @param string $value + * @param string $value * @return Tags */ public function setValue($value) @@ -56,7 +54,7 @@ class Tags /** * Get value * - * @return string + * @return string */ public function getValue() { diff --git a/src/Wallabag/CoreBundle/Entity/TagsEntries.php b/src/Wallabag/CoreBundle/Entity/TagsEntries.php index ad01cf57..6b0cea0d 100644 --- a/src/Wallabag/CoreBundle/Entity/TagsEntries.php +++ b/src/Wallabag/CoreBundle/Entity/TagsEntries.php @@ -35,12 +35,10 @@ class TagsEntries */ private $tagId; - - /** * Get id * - * @return integer + * @return integer */ public function getId() { @@ -50,7 +48,7 @@ class TagsEntries /** * Set entryId * - * @param integer $entryId + * @param integer $entryId * @return TagsEntries */ public function setEntryId($entryId) @@ -63,7 +61,7 @@ class TagsEntries /** * Get entryId * - * @return integer + * @return integer */ public function getEntryId() { @@ -73,7 +71,7 @@ class TagsEntries /** * Set tagId * - * @param integer $tagId + * @param integer $tagId * @return TagsEntries */ public function setTagId($tagId) @@ -86,7 +84,7 @@ class TagsEntries /** * Get tagId * - * @return integer + * @return integer */ public function getTagId() { diff --git a/src/Wallabag/CoreBundle/Entity/Users.php b/src/Wallabag/CoreBundle/Entity/Users.php index 96867bd6..e0b1fb39 100644 --- a/src/Wallabag/CoreBundle/Entity/Users.php +++ b/src/Wallabag/CoreBundle/Entity/Users.php @@ -4,7 +4,6 @@ namespace Wallabag\CoreBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Security\Core\User\UserInterface; -use Symfony\Component\Security\Core\User\EquatableInterface; use Symfony\Component\Security\Core\User\AdvancedUserInterface; /** @@ -71,7 +70,7 @@ class Users implements AdvancedUserInterface, \Serializable /** * Get id * - * @return integer + * @return integer */ public function getId() { @@ -81,7 +80,7 @@ class Users implements AdvancedUserInterface, \Serializable /** * Set username * - * @param string $username + * @param string $username * @return Users */ public function setUsername($username) @@ -94,7 +93,7 @@ class Users implements AdvancedUserInterface, \Serializable /** * Get username * - * @return string + * @return string */ public function getUsername() { @@ -120,7 +119,7 @@ class Users implements AdvancedUserInterface, \Serializable /** * Set password * - * @param string $password + * @param string $password * @return Users */ public function setPassword($password) @@ -133,7 +132,7 @@ class Users implements AdvancedUserInterface, \Serializable /** * Get password * - * @return string + * @return string */ public function getPassword() { @@ -143,7 +142,7 @@ class Users implements AdvancedUserInterface, \Serializable /** * Set name * - * @param string $name + * @param string $name * @return Users */ public function setName($name) @@ -156,7 +155,7 @@ class Users implements AdvancedUserInterface, \Serializable /** * Get name * - * @return string + * @return string */ public function getName() { @@ -166,7 +165,7 @@ class Users implements AdvancedUserInterface, \Serializable /** * Set email * - * @param string $email + * @param string $email * @return Users */ public function setEmail($email) @@ -179,7 +178,7 @@ class Users implements AdvancedUserInterface, \Serializable /** * Get email * - * @return string + * @return string */ public function getEmail() { @@ -208,7 +207,7 @@ class Users implements AdvancedUserInterface, \Serializable */ public function unserialize($serialized) { - list ( + list( $this->id, ) = unserialize($serialized); } diff --git a/src/Wallabag/CoreBundle/Entity/UsersConfig.php b/src/Wallabag/CoreBundle/Entity/UsersConfig.php index 26fb44ee..0742edbc 100644 --- a/src/Wallabag/CoreBundle/Entity/UsersConfig.php +++ b/src/Wallabag/CoreBundle/Entity/UsersConfig.php @@ -42,12 +42,10 @@ class UsersConfig */ private $value; - - /** * Get id * - * @return integer + * @return integer */ public function getId() { @@ -57,7 +55,7 @@ class UsersConfig /** * Set userId * - * @param string $userId + * @param string $userId * @return UsersConfig */ public function setUserId($userId) @@ -70,7 +68,7 @@ class UsersConfig /** * Get userId * - * @return string + * @return string */ public function getUserId() { @@ -80,7 +78,7 @@ class UsersConfig /** * Set name * - * @param string $name + * @param string $name * @return UsersConfig */ public function setName($name) @@ -93,7 +91,7 @@ class UsersConfig /** * Get name * - * @return string + * @return string */ public function getName() { @@ -103,7 +101,7 @@ class UsersConfig /** * Set value * - * @param string $value + * @param string $value * @return UsersConfig */ public function setValue($value) @@ -116,7 +114,7 @@ class UsersConfig /** * Get value * - * @return string + * @return string */ public function getValue() { -- cgit v1.2.3