Passed
Push — develop ( f13845...a7fe95 )
by nguereza
01:43
created
src/Relation/ShareRelation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -260,11 +260,11 @@  discard block
 block discarded – undo
260 260
             }
261 261
         };
262 262
 
263
-        $linkKey = new ForeignKey(array_map(function ($value) use ($junctionTable) {
263
+        $linkKey = new ForeignKey(array_map(function($value) use ($junctionTable) {
264 264
             return 'hidden_' . $junctionTable . $value;
265 265
         }, $this->foreignKey->columns()));
266 266
 
267
-        $select->join($joinTable, function (Join $join) use ($junctionTable, $joinTable) {
267
+        $select->join($joinTable, function(Join $join) use ($junctionTable, $joinTable) {
268 268
             if ($this->junction !== null) {
269 269
                 foreach ($this->junction->columns() as $pkColumn => $fkColumn) {
270 270
                     $join->on($junctionTable . '.' . $fkColumn, $joinTable . '.' . $pkColumn);
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
             }
371 371
         };
372 372
 
373
-        $select->join($joinTable, function (Join $join) use ($junctionTable, $joinTable) {
373
+        $select->join($joinTable, function(Join $join) use ($junctionTable, $joinTable) {
374 374
             if ($this->junction !== null) {
375 375
                 foreach ($this->junction->columns() as $pkColumn => $fkColumn) {
376 376
                     $join->on($junctionTable . '.' . $fkColumn, $joinTable . '.' . $pkColumn);
Please login to merge, or discard this patch.
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.