Minor - format code

pull/3016/head
Julio Montoya 5 years ago
parent 09ec663003
commit f4547bbcc8
  1. 2
      plugin/advanced_subscription/src/HookAdvancedSubscription.php
  2. 4
      plugin/advanced_subscription/test/ws_session_user.php
  3. 4
      src/CoreBundle/Entity/Resource/ResourceFile.php
  4. 2
      src/CoreBundle/Repository/ResourceRepository.php

@ -1,5 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Hook Observer for Advanced subscription plugin.
*
@ -7,6 +8,7 @@
*
* @package chamilo.plugin.advanced_subscription
*/
use Chamilo\CoreBundle\Hook\HookObserver;
use Chamilo\CoreBundle\Hook\Interfaces\HookAdminBlockEventInterface;
use Chamilo\CoreBundle\Hook\Interfaces\HookAdminBlockObserverInterface;

@ -1,5 +1,6 @@
<?php
/* For license terms, see /license.txt */
/**
* A script to test session details by user web service.
*
@ -8,9 +9,6 @@
use Chamilo\CoreBundle\Framework\Container;
/**
* Init.
*/
require_once __DIR__.'/../config.php';
// Protect test
api_protect_admin_script();

@ -7,12 +7,14 @@ use Chamilo\MediaBundle\Entity\Media;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
use Symfony\Component\Validator\Constraints as Assert;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @ORM\Entity
*
* @Vich\Uploadable
*
* @ORM\Table(name="resource_file")
*/
class ResourceFile

@ -289,7 +289,7 @@ class ResourceRepository
* @param ResourceNode $resourceNode
* @param array $userList User id list
*/
private function addResourceToUserList(ResourceNode $resourceNode, array $userList)
public function addResourceToUserList(ResourceNode $resourceNode, array $userList)
{
$em = $this->getEntityManager();

Loading…
Cancel
Save