I am proud of you Alaa (Y) :D

best regards ,
maisara farahat


On Sat, May 10, 2014 at 10:56 PM, Almgohar <notifications@github.com> wrote:

> In
> Entangle/entangle-symfony/public/src/entangle/src/Megasoft/EntangleBundle/Controller/UserController.php:
>
> > @@ -289,4 +290,115 @@ public function logoutAction(\Symfony\Component\HttpFoundation\Request $request)
> >          return new Response(200);
> >      }
> >
> > +    /*
> > +     * Checks that the username is unique
> > +     * @param: String  username
> > +     * @param: boolean value, true if unique. False otherwise
> > +     *
> > +     * @author: Eslam
> > +     */
> > +
> > +    private function validateUniqueUsername($username) {
> > +        $userRepo = $this->getDoctrine()->getRepository('MegasoftEntangleBundle:User');
> > +        if ($userRepo->findOneBy(array('name' => $username)) == null && $username != null && $username != "") {
>
> add comma at the end of array
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ndomar/megasoft-14/pull/441/files#r12506155>
> .
>