@@ -536,6 +536,10 @@ discard block |
||
536 | 536 | return null; |
537 | 537 | } |
538 | 538 | |
539 | + /** |
|
540 | + * @param string $entity |
|
541 | + * @param string|null $against |
|
542 | + */ |
|
539 | 543 | protected function matchEntity($entity, $tests, $against) |
540 | 544 | { |
541 | 545 | if ($entity == 'version') { |
@@ -805,7 +809,7 @@ discard block |
||
805 | 809 | } |
806 | 810 | |
807 | 811 | /** |
808 | - * @param $regex |
|
812 | + * @param string $regex |
|
809 | 813 | * @param $against |
810 | 814 | * @param null $matches |
811 | 815 | * @return int |
@@ -883,7 +887,7 @@ discard block |
||
883 | 887 | /** |
884 | 888 | * Try to get the device from cache if available. |
885 | 889 | * |
886 | - * @param $key string The key. |
|
890 | + * @param string|null $key string The key. |
|
887 | 891 | * |
888 | 892 | * @return DeviceInterface|null |
889 | 893 | */ |
@@ -901,7 +905,7 @@ discard block |
||
901 | 905 | /** |
902 | 906 | * Try to save the detected device in cache. |
903 | 907 | * |
904 | - * @param $key string The key. |
|
908 | + * @param string|null $key string The key. |
|
905 | 909 | * @param DeviceInterface $obj The device. |
906 | 910 | * |
907 | 911 | * @return bool false if not succeeded. |