original_string: private function getUserDashboards($userLogin)
      {
          $userDashboards = $this->dashboard->getAllDashboards($userLogin);
  
          $dashboards = array();
  
          foreach ($userDashboards as $userDashboard) {
              $widgets = $this->getVisibleWidgetsWithinDashboard($userDashboard);
              $dashboards[] = $this->buildDashboard($userDashboard, $widgets);
          }
  
          return $dashboards;
      }
code: private function getUserDashboards($userLogin)
      {
          $userDashboards = $this->dashboard->getAllDashboards($userLogin);
  
          $dashboards = array();
  
          foreach ($userDashboards as $userDashboard) {
              $widgets = $this->getVisibleWidgetsWithinDashboard($userDashboard);
              $dashboards[] = $this->buildDashboard($userDashboard, $widgets);
          }
  
          return $dashboards;
      }
code_tokens: private function getUserDashboards ( $ userLogin ) { $ userDashboards = $ this -> dashboard -> getAllDashboards ( $ userLogin ) ; $ dashboards = array ( ) ; foreach ( $ userDashboards as $ userDashboard ) { $ widgets = $ this -> getVisibleWidgetsWithinDashboard ( $ userDashboard ) ; $ dashboards [ ] = $ this -> buildDashboard ( $ userDashboard , $ widgets ) ; } return $ dashboards ; }
docstring: Get all dashboards which a user has created.
  
  @param string $userLogin login of the user
  @return \array[]
docstring_tokens: Get all dashboards which a user has created .