Ver Fonte

Minor - flint fixes

Julio Montoya há 6 anos atrás
pai
commit
00fdaaafde

+ 0 - 1
index.php

@@ -147,7 +147,6 @@ if (!isset($_REQUEST['include'])) {
     }
 
     $announcements_block = $controller->return_announcements();
-
 }
 if (api_get_configuration_value('show_hot_sessions') === true) {
     $hotSessions = SessionManager::getHotSessions();

+ 1 - 2
main/inc/lib/system_announcements.lib.php

@@ -822,7 +822,7 @@ class SystemAnnouncementManager
      *
      * @return array
      */
-    public static function getAnnouncements($visible, $id = null) : array
+    public static function getAnnouncements($visible, $id = null): array
     {
         $user_selected_language = Database::escape_string(api_get_interface_language());
         $table = Database::get_main_table(TABLE_MAIN_SYSTEM_ANNOUNCEMENTS);
@@ -918,7 +918,6 @@ class SystemAnnouncementManager
         return $announcement;
     }
 
-
     /**
      * @return string
      */

+ 1 - 2
src/CoreBundle/Controller/IndexController.php

@@ -3,7 +3,6 @@
 
 namespace Chamilo\CoreBundle\Controller;
 
-use Chamilo\CoreBundle\Framework\PageController;
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
@@ -29,7 +28,7 @@ class IndexController extends BaseController
         return $this->render(
             '@ChamiloCore/Index/index.html.twig',
             [
-                'content' => ''
+                'content' => '',
             ]
         );
     }

+ 1 - 1
src/CoreBundle/Controller/NewsController.php

@@ -9,6 +9,7 @@ use Symfony\Component\Routing\Annotation\Route;
 /**
  * Class IndexController
  * author Julio Montoya <gugli100@gmail.com>.
+ *
  * @Route("/news")
  *
  * @package Chamilo\CoreBundle\Controller
@@ -40,7 +41,6 @@ class NewsController extends BaseController
     }
 
     /**
-     *
      * @Route("/{id}", name="news", methods={"GET", "POST"}, options={"expose"=true})
      *
      * @param int $id

+ 0 - 4
src/CoreBundle/Controller/UserController.php

@@ -3,11 +3,7 @@
 
 namespace Chamilo\CoreBundle\Controller;
 
-use Chamilo\CoreBundle\Controller\BaseController;
-use Chamilo\CoreBundle\Entity\CourseRelUser;
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
-use Symfony\Component\HttpFoundation\JsonResponse;
-use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\Routing\Annotation\Route;
 

+ 0 - 1
src/CoreBundle/Controller/UserPortalController.php

@@ -17,7 +17,6 @@ use Symfony\Component\HttpFoundation\Response;
  * @Route("/userportal")
  *
  * @package Chamilo\CoreBundle\Controller
- *
  */
 class UserPortalController extends BaseController
 {

+ 0 - 1
src/CoreBundle/Framework/PageController.php

@@ -9,7 +9,6 @@ use Display;
 use Pagerfanta\Adapter\FixedAdapter;
 use Pagerfanta\Pagerfanta;
 use Pagerfanta\View\TwitterBootstrapView;
-use SystemAnnouncementManager;
 use UserManager;
 
 /**

+ 0 - 1
src/CourseBundle/EventListener/CourseListener.php

@@ -88,7 +88,6 @@ class CourseListener
         $course = null;
         if (!empty($courseCode)) {
             /** @var Course $course */
-
             $course = $em->getRepository('ChamiloCoreBundle:Course')->findOneBy(['directory' => $courseCode]);
             if ($course === null) {
                 throw new NotFoundHttpException($translator->trans('Course does not exist'));

+ 0 - 2
whoisonline.php

@@ -55,8 +55,6 @@ if (isset($_GET['id'])) {
     if (api_get_setting('allow_social_tool') == 'true' && api_user_is_login()) {
         header("Location: ".api_get_path(WEB_CODE_PATH)."social/profile.php?u=".intval($_GET['id']));
         exit;
-    } else {
-        $social_right_content .= SocialManager::display_individual_user($_GET['id']);
     }
 }