Completed
Push — master ( 1940ea...1c21f6 )
by Jelle
04:16
created
src/Entity/Repository/RepositoryInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
    *
26 26
    * @param \TheSportsDb\Entity\LeagueInterface $league
27 27
    *   The league to add.
28
+   * @return void
28 29
    */
29 30
   public function addLeague(LeagueInterface $league);
30 31
 }
Please login to merge, or discard this patch.
src/Entity/Proxy/Proxy.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 namespace TheSportsDb\Entity\Proxy;
8 8
 
9 9
 use TheSportsDb\Entity\EntityInterface;
10
-use TheSportsDb\Http\TheSportsDbClientInterface;
11 10
 use TheSportsDb\Entity\EntityManagerConsumerInterface;
11
+use TheSportsDb\Http\TheSportsDbClientInterface;
12 12
 
13 13
 /**
14 14
  * Interface for proxy objects.
Please login to merge, or discard this patch.
src/Entity/EntityPropertyUtil.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@
 block discarded – undo
18 18
     $return = $val;
19 19
     if (method_exists($val, 'raw')) {
20 20
       $return = $val->raw();
21
-    }
22
-    elseif (is_array($val)) {
21
+    } elseif (is_array($val)) {
23 22
       $return = array();
24 23
       foreach ($val as $v) {
25 24
         $return[] = method_exists($v, 'raw') ? $v->raw() : $v;
Please login to merge, or discard this patch.
src/Entity/EntityManager.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -130,6 +130,7 @@
 block discarded – undo
130 130
 
131 131
   /**
132 132
    * {@inheritdoc}
133
+   * @param string $entityType
133 134
    */
134 135
   public function getPropertyMapDefinition($entityType) {
135 136
     if (!isset($this->propertyMapDefinitions[$entityType])) {
Please login to merge, or discard this patch.
src/Entity/EntityInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
    *
26 26
    * @param \TheSportsDb\Entity\LeagueInterface $league
27 27
    *   The league to add.
28
+   * @return void
28 29
    */
29 30
   public function addLeague(LeagueInterface $league);
30 31
 }
Please login to merge, or discard this patch.
src/Entity/Entity.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
    * @param mixed $value
128 128
    *   The value to transform.
129
-   * @param mixed $context
129
+   * @param \stdClass $context
130 130
    *   The context for this mapping. Usually the raw entity as defined by the
131 131
    *   sportsdb api this property is from.
132 132
    * @param EntityManagerInterface $entityManager
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
    * @param array $contextPropertyMap
163 163
    *   Extra properties to map from the context
164 164
    *
165
-   * @return array
165
+   * @return string
166 166
    *   An array with following keys:
167 167
    *     - object: The raw data representing the entity.
168 168
    *     - id: The id of the entity.
Please login to merge, or discard this patch.
src/Entity/EntityManagerConsumerInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
    *
26 26
    * @param \TheSportsDb\Entity\LeagueInterface $league
27 27
    *   The league to add.
28
+   * @return void
28 29
    */
29 30
   public function addLeague(LeagueInterface $league);
30 31
 }
Please login to merge, or discard this patch.
src/Entity/Season.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -137,8 +137,6 @@
 block discarded – undo
137 137
    *   The source value of the id property.
138 138
    * @param \stdClass $context
139 139
    *   The source object representing this season.
140
-   * @param EntityManagerInterface $entityManager
141
-   *   The entity manager.
142 140
    *
143 141
    * @return string
144 142
    *   The unique identifier.
Please login to merge, or discard this patch.
src/TheSportsDb.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -265,8 +265,6 @@
 block discarded – undo
265 265
   /**
266 266
    * Get events by name.
267 267
    *
268
-   * @param string $eventName
269
-   *   The event name.
270 268
    *
271 269
    * @return \TheSportsDb\Entity\EventInterface[]
272 270
    *   The events.
Please login to merge, or discard this patch.