Completed
Branch merging-leagues-tournaments (46817d)
by Benedikt
01:48
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.
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/Helpers/SpecificationHandler.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
   /**
59 59
    * @param $class
60 60
    * @param $id
61
-   * @return mixed
61
+   * @return string
62 62
    */
63 63
   abstract protected function getReference($class, $id);
64 64
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
    * @param BaseEntityInterface $object the object to fill
68 68
    * @param array $specification the specification how to fill the object
69 69
    * @param array $inputArray the input array
70
-   * @return mixed the object
70
+   * @return BaseEntityInterface the object
71 71
    */
72 72
   protected function setFromSpecification(BaseEntityInterface $object, array $specification, array $inputArray)
73 73
   {
Please login to merge, or discard this patch.
src/Helpers/TransformerFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 {
22 22
 //<editor-fold desc="Public Methods">
23 23
   /**
24
-   * @return Callable
24
+   * @return Closure
25 25
    */
26 26
   static function booleanTransformer(): Callable
27 27
   {
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
   /**
76 76
    * @param array $mapping
77
-   * @return Callable
77
+   * @return Closure
78 78
    */
79 79
   static function finiteMappingTransformation(array $mapping): Callable
80 80
   {
Please login to merge, or discard this patch.
src/TestHelpers/UnitTestCase.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
    * Creates a stub with a given set of stubbed methods, which will return the given results
113 113
    * @param string $class the class name
114 114
    * @param array $methodResults a dictionary mapping method names to results of this methods
115
-   * @return MockObject|mixed the configured stub
115
+   * @return MockObject the configured stub
116 116
    */
117 117
   protected function createStub(string $class, array $methodResults = []): MockObject
118 118
   {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
    * @param string $class the class to mock
125 125
    * @param string $entityId the id to assign
126 126
    * @param string $getterMethod the name of the getter method
127
-   * @return MockObject|mixed the mocked instance
127
+   * @return MockObject the mocked instance
128 128
    */
129 129
   protected function createStubWithId(string $class, $entityId = "entity-id", $getterMethod = 'getId')
130 130
   {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
    * @param array $results the result arrays the queries should return
138 138
    * @param string[] $expectedQueries the expected queries if set
139 139
    * @param string[] $otherMockedMethods list of other methods to mock
140
-   * @return MockObject|EntityManager the mocked entity manager
140
+   * @return \Doctrine\ORM\EntityManagerInterface the mocked entity manager
141 141
    * @throws ReflectionException
142 142
    */
143 143
   protected function getEntityManagerMockForQueries(array $results, array $expectedQueries = [],
Please login to merge, or discard this patch.
tests/Unit/Http/Controllers/UserControllerTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
   /**
183 183
    * @param EntityManagerInterface|null $entityManager
184 184
    * @param ObjectCreatorServiceInterface|null $objectCreatorService
185
-   * @param array $stubbedMethods
185
+   * @param string[] $stubbedMethods
186 186
    * @return UserController|MockObject
187 187
    * @throws ReflectionException
188 188
    */
Please login to merge, or discard this patch.