diff --git a/Westdc/User/Group.php b/Westdc/User/Group.php index 3566d8c..8d83d6e 100644 --- a/Westdc/User/Group.php +++ b/Westdc/User/Group.php @@ -11,37 +11,35 @@ namespace Westdc\User; use Zend\ServiceManager\ServiceManager; use Zend\ServiceManager\ServiceManagerAwareInterface; -class Group implements ServiceManagerAwareInterface{ +class Group implements ServiceManagerAwareInterface { - protected $serviceManager; + protected $serviceManager; - private $db; + private $db; - public function setServiceManager(ServiceManager $serviceManager) - { - $this->serviceManager = $serviceManager; + public function setServiceManager (ServiceManager $serviceManager) { + $this->serviceManager = $serviceManager; - $this->init(); + $this->init(); - return $this; - } + return $this; + } - private function init() - { - $dbService = $this->serviceManager->get('Db'); - $this->db = $dbService->getPdo(); - } + private function init () { + $dbService = $this->serviceManager->get('Db'); + $this->db = $dbService->getPdo(); + } - /** - * @return mixed - */ - public function fetchAll () { + /** + * @return mixed + */ + public function fetchAll () { - $sql = "SELECT * FROM groups"; - $rs = $this->db->query($sql); + $sql = "SELECT * FROM groups"; + $rs = $this->db->query($sql); - return $rs->fetchAll(\PDO::FETCH_ASSOC); - } + return $rs->fetchAll(\PDO::FETCH_ASSOC); + } } \ No newline at end of file diff --git a/Westdc/User/User.php b/Westdc/User/User.php index 169a010..62863fe 100644 --- a/Westdc/User/User.php +++ b/Westdc/User/User.php @@ -71,5 +71,4 @@ class User extends AbstractEventManager implements ServiceManagerAwareInterface return $rs->fetchAll(\PDO::FETCH_ASSOC); } - } \ No newline at end of file