Completed
Push — master ( 5f4795...e3abfa )
by T
05:46
created
src/PHPSemVerCheckerGit/Console/Command/SuggestCommand.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -157,11 +157,17 @@  discard block
 block discarded – undo
157 157
 		$output->writeln('Time: ' . round($duration, 3) . ' seconds, Memory: ' . round(memory_get_peak_usage() / 1024 / 1024, 3) . ' MB');
158 158
 	}
159 159
 
160
+	/**
161
+	 * @return string
162
+	 */
160 163
 	protected function findLatestTag(Repository $repository)
161 164
 	{
162 165
 		return $this->findTag($repository, '*');
163 166
 	}
164 167
 
168
+	/**
169
+	 * @return string
170
+	 */
165 171
 	protected function findTag(Repository $repository, $tag)
166 172
 	{
167 173
 		$tags = (array)$repository->getTags();
@@ -171,6 +177,9 @@  discard block
 block discarded – undo
171 177
 		return $this->getMappedVersionTag($tags, $tagExpression->maxSatisfying($tags));
172 178
 	}
173 179
 
180
+	/**
181
+	 * @param SemanticVersion $versionTag
182
+	 */
174 183
 	private function getMappedVersionTag(array $tags, $versionTag)
175 184
 	{
176 185
 		foreach ($tags as $tag) {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@  discard block
 block discarded – undo
6 6
 use Gitter\Repository;
7 7
 use PHPSemVerChecker\Analyzer\Analyzer;
8 8
 use PHPSemVerChecker\Finder\Finder;
9
-use PHPSemVerChecker\Registry\Registry;
10 9
 use PHPSemVerChecker\Reporter\Reporter;
11 10
 use PHPSemVerChecker\Scanner\Scanner;
12 11
 use PHPSemVerChecker\SemanticVersioning\Level;
@@ -14,7 +13,6 @@  discard block
 block discarded – undo
14 13
 use RuntimeException;
15 14
 use Symfony\Component\Console\Command\Command;
16 15
 use Symfony\Component\Console\Helper\ProgressBar;
17
-use Symfony\Component\Console\Input\InputArgument;
18 16
 use Symfony\Component\Console\Input\InputInterface;
19 17
 use Symfony\Component\Console\Input\InputOption;
20 18
 use Symfony\Component\Console\Output\OutputInterface;
Please login to merge, or discard this patch.
src/PHPSemVerCheckerGit/Console/Command/CompareCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Gitter\Client;
6 6
 use PHPSemVerChecker\Analyzer\Analyzer;
7
-use PHPSemVerChecker\Configuration\LevelMapping;
8 7
 use PHPSemVerChecker\Finder\Finder;
9 8
 use PHPSemVerChecker\Reporter\Reporter;
10 9
 use PHPSemVerChecker\Scanner\Scanner;
Please login to merge, or discard this patch.