Passed
Push — develop ( f13845...a7fe95 )
by nguereza
01:43
created
src/Repository.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@  discard block
 block discarded – undo
64 64
  * @package Platine\Orm
65 65
  * @implements RepositoryInterface<Entity>
66 66
  */
67
-class Repository implements RepositoryInterface
68
-{
67
+class Repository implements RepositoryInterface {
69 68
     /**
70 69
      * The entity class
71 70
      * @var class-string
@@ -125,8 +124,7 @@  discard block
 block discarded – undo
125 124
      * @param EntityManager $manager
126 125
      * @param class-string $entityClass
127 126
      */
128
-    public function __construct(EntityManager $manager, string $entityClass)
129
-    {
127
+    public function __construct(EntityManager $manager, string $entityClass) {
130 128
         $this->manager = $manager;
131 129
         $this->entityClass = $entityClass;
132 130
     }
@@ -314,8 +312,7 @@  discard block
 block discarded – undo
314 312
     /**
315 313
      * {@inheritedoc}
316 314
      */
317
-    public function insert(Entity $entity)
318
-    {
315
+    public function insert(Entity $entity) {
319 316
         $data = Proxy::instance()->getEntityDataMapper($entity);
320 317
         $mapper = $data->getEntityMapper();
321 318
         $eventsHandlers = $mapper->getEventHandlers();
Please login to merge, or discard this patch.
src/RepositoryInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @package Platine\Orm
56 56
  * @template TEntity as Entity
57 57
  */
58
-interface RepositoryInterface
59
-{
58
+interface RepositoryInterface {
60 59
     /**
61 60
      * Return the instance of EntityQuery
62 61
      * @param string|array<int, string>|array<string, Closure> $with
Please login to merge, or discard this patch.