Completed
Push — refonte ( 64e01a...7173e3 )
by Arnaud
03:31
created
src/Event/Subscriber/ExtraConfigurationSubscriber.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,6 +138,10 @@  discard block
 block discarded – undo
138 138
         ];
139 139
     }
140 140
 
141
+    /**
142
+     * @param string $entityClass
143
+     * @param string $adminName
144
+     */
141 145
     private function addDefaultFields(array &$configuration, $entityClass, $adminName)
142 146
     {
143 147
         $fieldsMapping = [
@@ -343,7 +347,7 @@  discard block
 block discarded – undo
343 347
     /**
344 348
      * Return the default action field if found.
345 349
      *
346
-     * @param array $fields
350
+     * @param string[] $fields
347 351
      *
348 352
      * @return string|null
349 353
      */
@@ -420,6 +424,9 @@  discard block
 block discarded – undo
420 424
         return $metadata;
421 425
     }
422 426
 
427
+    /**
428
+     * @param string $type
429
+     */
423 430
     private function getOperatorFromFieldType($type)
424 431
     {
425 432
         $mapping = [
Please login to merge, or discard this patch.
src/Factory/FieldFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
     /**
173 173
      * @param array               $configuration
174 174
      * @param ActionConfiguration $actionConfiguration
175
-     * @return array
175
+     * @return string
176 176
      * @throws Exception
177 177
      */
178 178
     private function resolveTopLevelConfiguration(array $configuration, ActionConfiguration $actionConfiguration)
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Message/MessageHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      * using the logger using info channel
64 64
      *
65 65
      * @param $flashMessage
66
-     * @param null $logMessage
66
+     * @param string $logMessage
67 67
      */
68 68
     public function handleSuccess($flashMessage, $logMessage = null)
69 69
     {
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminTestBase.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     }
162 162
 
163 163
     /**
164
-     * @return KernelInterface | PHPUnit_Framework_MockObject_MockObject
164
+     * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject
165 165
      */
166 166
     protected function mockKernel()
167 167
     {
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
172 172
     }
173 173
 
174 174
     /**
175
-     * @param $name
176
-     * @return ActionInterface | PHPUnit_Framework_MockObject_MockObject
175
+     * @param string $name
176
+     * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject
177 177
      */
178 178
     protected function mockAction($name)
179 179
     {
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     }
190 190
 
191 191
     /**
192
-     * @return ActionConfiguration | PHPUnit_Framework_MockObject_MockObject
192
+     * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject
193 193
      */
194 194
     protected function mockActionConfiguration()
195 195
     {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
     /**
247 247
      * Return a mock of an entity repository
248 248
      *
249
-     * @return RepositoryInterface | PHPUnit_Framework_MockObject_MockObject
249
+     * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject
250 250
      */
251 251
     protected function mockEntityRepository()
252 252
     {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     }
257 257
 
258 258
     /**
259
-     * @return EntityManager | PHPUnit_Framework_MockObject_MockObject
259
+     * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject
260 260
      */
261 261
     protected function mockEntityManager()
262 262
     {
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     }
279 279
 
280 280
     /**
281
-     * @return Registry | PHPUnit_Framework_MockObject_MockObject
281
+     * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject
282 282
      *
283 283
      * @deprecated
284 284
      */
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
     }
297 297
 
298 298
     /**
299
-     * @return ActionFactory | PHPUnit_Framework_MockObject_MockObject
299
+     * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject
300 300
      */
301 301
     protected function mockActionFactory()
302 302
     {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     }
313 313
 
314 314
     /**
315
-     * @return TokenStorageInterface | PHPUnit_Framework_MockObject_MockObject
315
+     * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject
316 316
      */
317 317
     protected function mockTokenStorage()
318 318
     {
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
     }
339 339
 
340 340
     /**
341
-     * @return MessageHandlerInterface | PHPUnit_Framework_MockObject_MockObject
341
+     * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject
342 342
      */
343 343
     protected function mockMessageHandler()
344 344
     {
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
     }
352 352
 
353 353
     /**
354
-     * @return TranslatorInterface | PHPUnit_Framework_MockObject_MockObject
354
+     * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject
355 355
      */
356 356
     protected function mockTranslator()
357 357
     {
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
     /**
393 393
      * @param $class
394 394
      *
395
-     * @return PHPUnit_Framework_MockObject_MockObject|mixed
395
+     * @return \PHPUnit\Framework\MockObject\MockObject
396 396
      */
397 397
     protected function getMockWithoutConstructor($class)
398 398
     {
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/Utils/FakeEntityManager.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     /**
275 275
      * Check if the Entity manager is open or closed.
276 276
      *
277
-     * @return bool
277
+     * @return boolean|null
278 278
      */
279 279
     public function isOpen()
280 280
     {
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
     /**
346 346
      * Checks whether the state of the filter collection is clean.
347 347
      *
348
-     * @return boolean True, if the filter collection is clean.
348
+     * @return boolean|null True, if the filter collection is clean.
349 349
      */
350 350
     public function isFiltersStateClean()
351 351
     {
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
     /**
356 356
      * Checks whether the Entity Manager has filters.
357 357
      *
358
-     * @return boolean True, if the EM has a filter collection.
358
+     * @return boolean|null True, if the EM has a filter collection.
359 359
      */
360 360
     public function hasFilters()
361 361
     {
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
      *
518 518
      * @param object $object
519 519
      *
520
-     * @return bool
520
+     * @return boolean|null
521 521
      */
522 522
     public function contains($object)
523 523
     {
Please login to merge, or discard this patch.