Completed
Branch develop (abc062)
by Filipe
08:26
created
src/Mapper/EntityMapper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      *
79 79
      * @param EntityInterface $entity
80 80
      *
81
-     * @return self|$this|EntityInterface
81
+     * @return EntityMapper
82 82
      */
83 83
     public function delete(EntityInterface $entity)
84 84
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
 use Slick\Database\RecordList;
13 13
 use Slick\Database\Sql;
14 14
 use Slick\Orm\Descriptor\Field\FieldDescriptor;
15
-use Slick\Orm\Entity\EntityCollectionInterface;
16 15
 use Slick\Orm\EntityInterface;
17 16
 use Slick\Orm\EntityMapperInterface;
18 17
 use Slick\Orm\Entity\EntityCollection;
18
+use Slick\Orm\Entity\EntityCollectionInterface;
19 19
 use Slick\Orm\Orm;
20 20
 
21 21
 /**
Please login to merge, or discard this patch.
src/Repository/EntityRepository.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 use Slick\Database\Sql;
13 13
 use Slick\Orm\EntityInterface;
14
+use Slick\Orm\RepositoryInterface;
14 15
 use Slick\Orm\Repository\QueryObject\QueryObject;
15 16
 use Slick\Orm\Repository\QueryObject\QueryObjectInterface;
16
-use Slick\Orm\RepositoryInterface;
17 17
 
18 18
 /**
19 19
  * Class EntityRepository
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * Finds entities
30 30
      *
31
-     * @return QueryObjectInterface|\Slick\Database\Sql\Select
31
+     * @return QueryObject
32 32
      *
33 33
      * @see Slick\Database\Sql\Select
34 34
      */
Please login to merge, or discard this patch.
src/Orm.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
      * an optional third parameter specifying the priority as an integer. You
153 153
      * may use one of EmitterInterface predefined constants here if you want.
154 154
      *
155
-     * @param string|EntityInterface     $entityClass
155
+     * @param string     $entityClass
156 156
      * @param string                     $event
157 157
      * @param ListenerInterface|callable $listener
158 158
      * @param int                        $priority
Please login to merge, or discard this patch.
src/Entity.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @param array $data Partial data to save
32 32
      *
33
-     * @return mixed
33
+     * @return Mapper\EntityMapper
34 34
      */
35 35
     public function save(array $data = [])
36 36
     {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * Deletes current entity from its storage
44 44
      *
45
-     * @return self|$this|EntityInterface
45
+     * @return Mapper\EntityMapper
46 46
      */
47 47
     public function delete()
48 48
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 use Slick\Common\Exception\WriteOnlyException;
14 14
 use Slick\Common\Inspector;
15 15
 use Slick\Orm\Descriptor\EntityDescriptorRegistry;
16
-use Slick\Orm\Descriptor\Field\FieldDescriptor;
17 16
 
18 17
 /**
19 18
  * Entity
Please login to merge, or discard this patch.
src/Mapper/Relation/AbstractRelation.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
 use Slick\Orm\Descriptor\EntityDescriptorInterface;
16 16
 use Slick\Orm\Descriptor\EntityDescriptorRegistry;
17 17
 use Slick\Orm\Descriptor\Field\FieldDescriptor;
18
-use Slick\Orm\Entity\EntityCollection;
19 18
 use Slick\Orm\EntityInterface;
20 19
 use Slick\Orm\EntityMapperInterface;
20
+use Slick\Orm\Entity\EntityCollection;
21 21
 
22 22
 /**
23 23
  * Generic Entity Mapper
Please login to merge, or discard this patch.
src/Mapper/Relation/BelongsTo.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
 use Slick\Orm\Descriptor\EntityDescriptorInterface;
16 16
 use Slick\Orm\Descriptor\EntityDescriptorRegistry;
17 17
 use Slick\Orm\Descriptor\Field\FieldDescriptor;
18
-use Slick\Orm\Entity\EntityCollection;
19 18
 use Slick\Orm\EntityInterface;
20 19
 use Slick\Orm\EntityMapperInterface;
20
+use Slick\Orm\Entity\EntityCollection;
21 21
 
22 22
 /**
23 23
  * Generic Entity Mapper
Please login to merge, or discard this patch.
src/Mapper/Relation/HasMany.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @param EntityInterface $entity
74 74
      *
75
-     * @return null|EntityInterface|EntityCollection|EntityInterface[]
75
+     * @return EntityCollectionInterface
76 76
      */
77 77
     public function load(EntityInterface $entity)
78 78
     {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      * Gets the relation conditions
113 113
      *
114 114
      * @param EntityInterface $entity
115
-     * @return array
115
+     * @return string
116 116
      */
117 117
     protected function getConditions(EntityInterface $entity)
118 118
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,11 +9,10 @@
 block discarded – undo
9 9
 
10 10
 namespace Slick\Orm\Mapper\Relation;
11 11
 
12
-use Slick\Common\Utils\Text;
13 12
 use Slick\Database\Sql;
13
+use Slick\Orm\EntityInterface;
14 14
 use Slick\Orm\Entity\EntityCollection;
15 15
 use Slick\Orm\Entity\EntityCollectionInterface;
16
-use Slick\Orm\EntityInterface;
17 16
 use Slick\Orm\Event\EntityAdded;
18 17
 use Slick\Orm\Mapper\RelationInterface;
19 18
 
Please login to merge, or discard this patch.
src/Entity/EntityCollection.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * Adds an entity by entity id
128 128
      *
129
-     * @param mixed $entityId
129
+     * @param integer $entityId
130 130
      *
131 131
      * @throws EntityNotFoundException If the provided id is does not
132 132
      *  references an existing entity.
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     /**
223 223
      * Removes the element at the given index, and returns it.
224 224
      *
225
-     * @param integer|EntityInterface $index
225
+     * @param EntityInterface $index
226 226
      *
227 227
      * @return EntityInterface|null
228 228
      */
Please login to merge, or discard this patch.
src/Repository/QueryObject/QueryObject.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 use Slick\Common\Utils\Text;
13 13
 use Slick\Database\Sql;
14
+use Slick\Orm\EntityInterface;
14 15
 use Slick\Orm\Entity\EntityCollection;
15 16
 use Slick\Orm\Entity\EntityCollectionInterface;
16
-use Slick\Orm\EntityInterface;
17 17
 use Slick\Orm\Event\EntityAdded;
18 18
 use Slick\Orm\Mapper\RelationInterface;
19 19
 
Please login to merge, or discard this patch.