@@ -573,6 +573,9 @@ discard block |
||
| 573 | 573 | } |
| 574 | 574 | } |
| 575 | 575 | |
| 576 | + /** |
|
| 577 | + * @param string $docComment |
|
| 578 | + */ |
|
| 576 | 579 | private static function cleanUpMultiLineAnnotation($docComment) |
| 577 | 580 | { |
| 578 | 581 | //removing initial ' * ' for docComment |
@@ -742,7 +745,7 @@ discard block |
||
| 742 | 745 | * @param string $className |
| 743 | 746 | * @param string $methodName |
| 744 | 747 | * |
| 745 | - * @return bool |
|
| 748 | + * @return boolean|null |
|
| 746 | 749 | */ |
| 747 | 750 | public static function getErrorHandlerSettings($className, $methodName) |
| 748 | 751 | { |
@@ -862,7 +865,7 @@ discard block |
||
| 862 | 865 | * @param string $className |
| 863 | 866 | * @param string $methodName |
| 864 | 867 | * |
| 865 | - * @return bool |
|
| 868 | + * @return boolean|null |
|
| 866 | 869 | */ |
| 867 | 870 | public static function getPreserveGlobalStateSettings($className, $methodName) |
| 868 | 871 | { |
@@ -938,7 +941,7 @@ discard block |
||
| 938 | 941 | * @param string $methodName |
| 939 | 942 | * @param string $settingName |
| 940 | 943 | * |
| 941 | - * @return bool |
|
| 944 | + * @return boolean|null |
|
| 942 | 945 | */ |
| 943 | 946 | private static function getBooleanAnnotationSetting($className, $methodName, $settingName) |
| 944 | 947 | { |
@@ -1127,7 +1130,7 @@ discard block |
||
| 1127 | 1130 | /** |
| 1128 | 1131 | * @param ReflectionMethod $method |
| 1129 | 1132 | * |
| 1130 | - * @return bool |
|
| 1133 | + * @return integer |
|
| 1131 | 1134 | */ |
| 1132 | 1135 | private static function isBeforeMethod(ReflectionMethod $method) |
| 1133 | 1136 | { |
@@ -1147,7 +1150,7 @@ discard block |
||
| 1147 | 1150 | /** |
| 1148 | 1151 | * @param ReflectionMethod $method |
| 1149 | 1152 | * |
| 1150 | - * @return bool |
|
| 1153 | + * @return integer |
|
| 1151 | 1154 | */ |
| 1152 | 1155 | private static function isAfterMethod(ReflectionMethod $method) |
| 1153 | 1156 | { |
@@ -1158,9 +1161,9 @@ discard block |
||
| 1158 | 1161 | * Trims any extensions from version string that follows after |
| 1159 | 1162 | * the <major>.<minor>[.<patch>] format |
| 1160 | 1163 | * |
| 1161 | - * @param $version (Optional) |
|
| 1164 | + * @param string $version (Optional) |
|
| 1162 | 1165 | * |
| 1163 | - * @return mixed |
|
| 1166 | + * @return string |
|
| 1164 | 1167 | */ |
| 1165 | 1168 | private static function sanitizeVersionNumber($version) |
| 1166 | 1169 | { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * Returns the bank account's balance. |
| 29 | 29 | * |
| 30 | - * @return float |
|
| 30 | + * @return integer |
|
| 31 | 31 | */ |
| 32 | 32 | public function getBalance() |
| 33 | 33 | { |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | /** |
| 66 | 66 | * Create CoverallsV1JobsCommand. |
| 67 | 67 | * |
| 68 | - * @return \Satooshi\Bundle\CoverallsBundle\Console\CoverallsV1JobsCommand |
|
| 68 | + * @return CoverallsV1JobsCommand |
|
| 69 | 69 | */ |
| 70 | 70 | protected function createCoverallsV1JobsCommand() |
| 71 | 71 | { |
@@ -176,7 +176,7 @@ |
||
| 176 | 176 | /** |
| 177 | 177 | * Return JsonFile. |
| 178 | 178 | * |
| 179 | - * @return JsonFile |
|
| 179 | + * @return Satooshi\Bundle\CoverallsV1Bundle\Entity\JsonFile|null |
|
| 180 | 180 | */ |
| 181 | 181 | public function getJsonFile() |
| 182 | 182 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Constructor. |
| 26 | 26 | * |
| 27 | - * @param GitCommand $gitCommand Git command |
|
| 27 | + * @param GitCommand $command Git command |
|
| 28 | 28 | */ |
| 29 | 29 | public function __construct(GitCommand $command) |
| 30 | 30 | { |
@@ -22,7 +22,6 @@ discard block |
||
| 22 | 22 | * |
| 23 | 23 | * @param string $coverallsYmlPath Path to .coveralls.yml. |
| 24 | 24 | * @param string $rootDir Path to project root directory. |
| 25 | - * @param InputInterface $input|null Input arguments. |
|
| 26 | 25 | * |
| 27 | 26 | * @return \Satooshi\Bundle\CoverallsV1Bundle\Config\Configuration |
| 28 | 27 | * |
@@ -82,7 +81,6 @@ discard block |
||
| 82 | 81 | * |
| 83 | 82 | * @param array $options Processed configuration. |
| 84 | 83 | * @param string $rootDir Path to project root directory. |
| 85 | - * @param InputInterface $input|null Input arguments. |
|
| 86 | 84 | * |
| 87 | 85 | * @return \Satooshi\Bundle\CoverallsV1Bundle\Config\Configuration |
| 88 | 86 | */ |
@@ -557,7 +557,7 @@ |
||
| 557 | 557 | /** |
| 558 | 558 | * Set git data. |
| 559 | 559 | * |
| 560 | - * @param array $git Git data. |
|
| 560 | + * @param Git $git Git data. |
|
| 561 | 561 | * |
| 562 | 562 | * @return \Satooshi\Bundle\CoverallsV1Bundle\Entity\JsonFile |
| 563 | 563 | */ |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * @param int $statements Number of statements. |
| 86 | 86 | * @param int $coveredStatements Number of covered statements. |
| 87 | 87 | * |
| 88 | - * @return float |
|
| 88 | + * @return integer |
|
| 89 | 89 | */ |
| 90 | 90 | protected function calculateLineCoverage($statements, $coveredStatements) |
| 91 | 91 | { |
@@ -126,6 +126,9 @@ |
||
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | + /** |
|
| 130 | + * @param string $lines |
|
| 131 | + */ |
|
| 129 | 132 | protected function indent($lines) |
| 130 | 133 | { |
| 131 | 134 | return trim(str_replace("\n", "\n ", $lines)); |