Completed
Push — master ( 883177...535c69 )
by Benedikt
06:09
created
src/Entity/Helpers/SubClassData.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
   /**
87 87
    * Adds an subclass property if it is not already existent. The default value is used as value.
88 88
    * @param string $name the property name
89
-   * @param mixed $default the default value for the property
89
+   * @param string|null $default the default value for the property
90 90
    * @return $this|SubClassData
91 91
    */
92 92
   public function addPropertyIfNotExistent(string $name, $default)
Please login to merge, or discard this patch.
src/Entity/Helpers/SubClassDataInterface.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,13 +23,14 @@  discard block
 block discarded – undo
23 23
    * Adds an subclass property if it is not already existent. The default value is used as value.
24 24
    * @param string $name the property name
25 25
    * @param mixed $default the default value for the property
26
-   * @return $this|SubClassData
26
+   * @return SubClassData
27 27
    */
28 28
   public function addPropertyIfNotExistent(string $name, $default);
29 29
 
30 30
   /**
31 31
    * clones the subclass data from other into this
32 32
    * @param SubClassData $other
33
+   * @return void
33 34
    */
34 35
   public function cloneSubClassDataFrom($other);
35 36
 
@@ -51,7 +52,7 @@  discard block
 block discarded – undo
51 52
   /**
52 53
    * Initializes the subclassData structure and adds the given keys with null values to it.
53 54
    * @param string[] $keys the keys of the subclass data properties (the names).
54
-   * @return $this|SubClassData
55
+   * @return SubClassData
55 56
    */
56 57
   public function initSubClassData(array $keys);
57 58
 
@@ -66,7 +67,7 @@  discard block
 block discarded – undo
66 67
    * Sets a property with the given name and the given value
67 68
    * @param string $name the name of the property to set
68 69
    * @param mixed $value the new value for the property
69
-   * @return $this|SubClassData
70
+   * @return SubClassData
70 71
    * @throws PropertyNotExistingException
71 72
    */
72 73
   public function setProperty(string $name, $value);
Please login to merge, or discard this patch.
src/Service/RankingSystem/EloRanking.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 //<editor-fold desc="Private Methods">
112 112
   /**
113 113
    * @param RankingSystemChangeInterface[] $changes
114
-   * @param Collection|PlayerInterface[] $players
114
+   * @param Collection $players
115 115
    * @param TournamentHierarchyEntity $entity
116 116
    * @param RankingSystemInterface $ranking
117 117
    */
Please login to merge, or discard this patch.
src/Service/RankingSystem/RankingSystemService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
   }
215 215
 
216 216
   /**
217
-   * @param Collection|PlayerInterface[] $players
217
+   * @param Collection $players
218 218
    * @param RankingSystemListInterface $list
219 219
    * @return RankingSystemListEntryInterface[] $entries
220 220
    */
Please login to merge, or discard this patch.
tests/Unit/Service/RankingSystem/RankingSystemServiceTest.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -1223,6 +1223,7 @@
 block discarded – undo
1223 1223
    * prepares a new ranking system service for update ranking from
1224 1224
    * @param MockObject $ranking the ranking entity
1225 1225
    * @param EntityManagerInterface|null $entityManager the entity manager or null if a mock should be used
1226
+   * @param MockObject[] $listsArray
1226 1227
    * @return RankingSystemService
1227 1228
    */
1228 1229
   private function prepareUpdateRankingFrom(MockObject $ranking, ?EntityManagerInterface $entityManager = null,
Please login to merge, or discard this patch.
src/Service/LoadingService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
    * Computes the key corresponding to the given entity in the given property map, or null if no key was found.
152 152
    * @param mixed $entity the entity to search the key for
153 153
    * @param string[][][] $propertyMap a property map which maps classes to lists of groups of properties to fetch
154
-   * @return null|string
154
+   * @return integer|null
155 155
    */
156 156
   private function keyOfPropertyMap($entity, $propertyMap): ?string
157 157
   {
Please login to merge, or discard this patch.
src/Providers/FmLibServiceProvider.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,6 @@
 block discarded – undo
21 21
 use Tfboe\FmLib\Entity\Helpers\UTCDateTimeType;
22 22
 use Tfboe\FmLib\Exceptions\Handler;
23 23
 use Tfboe\FmLib\Http\Middleware\Authenticate;
24
-use Tfboe\FmLib\Service\DeletionService;
25
-use Tfboe\FmLib\Service\DeletionServiceInterface;
26 24
 use Tfboe\FmLib\Service\DynamicServiceLoadingService;
27 25
 use Tfboe\FmLib\Service\DynamicServiceLoadingServiceInterface;
28 26
 use Tfboe\FmLib\Service\LoadingService;
Please login to merge, or discard this patch.
tests/Unit/Service/PlayerServiceTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 use Tfboe\FmLib\Entity\TeamInterface;
21 21
 use Tfboe\FmLib\Entity\TeamMembershipInterface;
22 22
 use Tfboe\FmLib\Entity\TournamentInterface;
23
-use Tfboe\FmLib\Service\DeletionServiceInterface;
24 23
 use Tfboe\FmLib\Service\LoadingServiceInterface;
25 24
 use Tfboe\FmLib\Service\PlayerService;
26 25
 use Tfboe\FmLib\Service\RankingSystemServiceInterface;
Please login to merge, or discard this patch.