Skip to content

Commit

Permalink
PHPCsFixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Nov 28, 2023
1 parent 2730bb6 commit e517e24
Showing 11 changed files with 22 additions and 13 deletions.
3 changes: 2 additions & 1 deletion src/Pumukit/EncoderBundle/Document/CpuStatus.php
Original file line number Diff line number Diff line change
@@ -4,13 +4,14 @@

namespace Pumukit\EncoderBundle\Document;

use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;

/**
* Pumukit\EncoderBundle\Document\CpuStatus.
*
* @MongoDB\Document(repositoryClass="Pumukit\EncoderBundle\Repository\CpuStatusRepository")
*
* @ApiResource(
* collectionOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}},
* itemOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}}
3 changes: 2 additions & 1 deletion src/Pumukit/EncoderBundle/Document/Job.php
Original file line number Diff line number Diff line change
@@ -4,14 +4,15 @@

namespace Pumukit\EncoderBundle\Document;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Symfony\Component\Validator\Constraints as Assert;
use ApiPlatform\Core\Annotation\ApiResource;

/**
* Pumukit\EncoderBundle\Document\Job.
*
* @MongoDB\Document(repositoryClass="Pumukit\EncoderBundle\Repository\JobRepository")
*
* @ApiResource(
* collectionOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}},
* itemOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}}
3 changes: 2 additions & 1 deletion src/Pumukit/SchemaBundle/Document/Annotation.php
Original file line number Diff line number Diff line change
@@ -4,11 +4,12 @@

namespace Pumukit\SchemaBundle\Document;

use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;

/**
* @MongoDB\Document(repositoryClass="Pumukit\SchemaBundle\Repository\AnnotationRepository")
*
* @ApiResource(
* collectionOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}},
* itemOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}}
3 changes: 2 additions & 1 deletion src/Pumukit/SchemaBundle/Document/Group.php
Original file line number Diff line number Diff line change
@@ -4,12 +4,13 @@

namespace Pumukit\SchemaBundle\Document;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Symfony\Component\Validator\Constraints as Assert;
use ApiPlatform\Core\Annotation\ApiResource;

/**
* @MongoDB\Document(repositoryClass="Pumukit\SchemaBundle\Repository\GroupRepository")
*
* @ApiResource(
* collectionOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}},
* itemOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}}
3 changes: 2 additions & 1 deletion src/Pumukit/SchemaBundle/Document/MultimediaObject.php
Original file line number Diff line number Diff line change
@@ -4,16 +4,17 @@

namespace Pumukit\SchemaBundle\Document;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Gedmo\Mapping\Annotation as Gedmo;
use Pumukit\SchemaBundle\Document\ObjectValue\Immutable;
use ApiPlatform\Core\Annotation\ApiResource;

/**
* @MongoDB\Document(repositoryClass="Pumukit\SchemaBundle\Repository\MultimediaObjectRepository")
*
* @MongoDB\Index(name="text_index", keys={"textindex.text"="text", "secondarytextindex.text"="text"}, options={"language_override"="indexlanguage", "default_language"="none", "weights"={"textindex.text"=10, "secondarytextindex.text"=1}})
*
* @ApiResource(
* collectionOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}},
* itemOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}}
3 changes: 2 additions & 1 deletion src/Pumukit/SchemaBundle/Document/PermissionProfile.php
Original file line number Diff line number Diff line change
@@ -4,12 +4,13 @@

namespace Pumukit\SchemaBundle\Document;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Gedmo\Mapping\Annotation as Gedmo;
use ApiPlatform\Core\Annotation\ApiResource;

/**
* @MongoDB\Document(repositoryClass="Pumukit\SchemaBundle\Repository\PermissionProfileRepository")
*
* @ApiResource(
* collectionOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}},
* itemOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}}
3 changes: 2 additions & 1 deletion src/Pumukit/SchemaBundle/Document/Person.php
Original file line number Diff line number Diff line change
@@ -4,12 +4,13 @@

namespace Pumukit\SchemaBundle\Document;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Symfony\Component\Validator\Constraints as Assert;
use ApiPlatform\Core\Annotation\ApiResource;

/**
* @MongoDB\Document(repositoryClass="Pumukit\SchemaBundle\Repository\PersonRepository")
*
* @ApiResource(
* collectionOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}},
* itemOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}}
3 changes: 2 additions & 1 deletion src/Pumukit/SchemaBundle/Document/Role.php
Original file line number Diff line number Diff line change
@@ -4,12 +4,13 @@

namespace Pumukit\SchemaBundle\Document;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Gedmo\Mapping\Annotation as Gedmo;
use ApiPlatform\Core\Annotation\ApiResource;

/**
* @MongoDB\Document(repositoryClass="Pumukit\SchemaBundle\Repository\RoleRepository")
*
* @ApiResource(
* collectionOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}},
* itemOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}}
3 changes: 2 additions & 1 deletion src/Pumukit/SchemaBundle/Document/Series.php
Original file line number Diff line number Diff line change
@@ -4,14 +4,15 @@

namespace Pumukit\SchemaBundle\Document;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use JMS\Serializer\Annotation as Serializer;
use ApiPlatform\Core\Annotation\ApiResource;

/**
* @MongoDB\Document(repositoryClass="Pumukit\SchemaBundle\Repository\SeriesRepository")
*
* @MongoDB\Index(name="text_index", keys={"textindex.text"="text", "secondarytextindex.text"="text"}, options={"language_override"="indexlanguage", "default_language"="none", "weights"={"textindex.text"=10, "secondarytextindex.text"=1}})
*
* @ApiResource(
* collectionOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}},
* itemOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}}
3 changes: 2 additions & 1 deletion src/Pumukit/SchemaBundle/Document/Tag.php
Original file line number Diff line number Diff line change
@@ -4,15 +4,16 @@

namespace Pumukit\SchemaBundle\Document;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
use ApiPlatform\Core\Annotation\ApiResource;

/**
* @MongoDB\Document(repositoryClass="Gedmo\Tree\Document\MongoDB\Repository\MaterializedPathRepository")
*
* @Gedmo\Tree(type="materializedPath", activateLocking=false)
*
* @ApiResource(
* collectionOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}},
* itemOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}}
5 changes: 2 additions & 3 deletions src/Pumukit/SchemaBundle/Document/User.php
Original file line number Diff line number Diff line change
@@ -4,17 +4,16 @@

namespace Pumukit\SchemaBundle\Document;

use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use MongoDB\BSON\ObjectId;
use Symfony\Component\Security\Core\User\UserInterface;
use ApiPlatform\Core\Annotation\ApiResource;
use Symfony\Component\Serializer\Annotation\Ignore;


/**
* @MongoDB\Document(repositoryClass="Pumukit\SchemaBundle\Repository\UserRepository")
*
* @ApiResource(
* collectionOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}},
* itemOperations={"get"={"method"="GET", "access_control"="is_granted('ROLE_ACCESS_API')"}}

0 comments on commit e517e24

Please sign in to comment.