@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | /** |
64 | 64 | * Constructor. |
65 | 65 | * |
66 | - * @param Fabrica\Tools\Programs\Git\Repository $repository The repository |
|
66 | + * @param Repository $repository The repository |
|
67 | 67 | */ |
68 | 68 | public function __construct($repository) |
69 | 69 | { |
@@ -91,6 +91,9 @@ discard block |
||
91 | 91 | return $this->references[$fullname]; |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param string $fullname |
|
96 | + */ |
|
94 | 97 | public function has($fullname) |
95 | 98 | { |
96 | 99 | $this->initialize(); |
@@ -124,6 +127,9 @@ discard block |
||
124 | 127 | return $this->update($tag); |
125 | 128 | } |
126 | 129 | |
130 | + /** |
|
131 | + * @param string $fullname |
|
132 | + */ |
|
127 | 133 | public function delete($fullname) |
128 | 134 | { |
129 | 135 | $this->repository->run('update-ref', array('-d', $fullname)); |
@@ -138,6 +144,9 @@ discard block |
||
138 | 144 | return count($this->branches) > 0; |
139 | 145 | } |
140 | 146 | |
147 | + /** |
|
148 | + * @param string $name |
|
149 | + */ |
|
141 | 150 | public function hasBranch($name) |
142 | 151 | { |
143 | 152 | return $this->has('refs/heads/'.$name); |
@@ -204,6 +213,7 @@ discard block |
||
204 | 213 | } |
205 | 214 | |
206 | 215 | /** |
216 | + * @param Commit $hash |
|
207 | 217 | * @return array An array of references |
208 | 218 | */ |
209 | 219 | public function resolve($hash) |
@@ -394,6 +394,7 @@ discard block |
||
394 | 394 | } |
395 | 395 | |
396 | 396 | /** |
397 | + * @param null|RevisionList $revisions |
|
397 | 398 | * @return Diff |
398 | 399 | */ |
399 | 400 | public function getDiff($revisions) |
@@ -413,7 +414,7 @@ discard block |
||
413 | 414 | /** |
414 | 415 | * Returns the size of repository, in kilobytes. |
415 | 416 | * |
416 | - * @return int A sum, in kilobytes |
|
417 | + * @return null|string A sum, in kilobytes |
|
417 | 418 | * |
418 | 419 | * @throws RuntimeException An error occurred while computing size |
419 | 420 | */ |
@@ -612,6 +613,7 @@ discard block |
||
612 | 613 | * run method ensures logging and debug. |
613 | 614 | * |
614 | 615 | * @see self::run |
616 | + * @param string $command |
|
615 | 617 | */ |
616 | 618 | private function getProcess($command, $args = array()) |
617 | 619 | { |
@@ -26,6 +26,9 @@ |
||
26 | 26 | */ |
27 | 27 | protected $revision; |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $revision |
|
31 | + */ |
|
29 | 32 | public function __construct(Repository $repository, $revision) |
30 | 33 | { |
31 | 34 | $this->repository = $repository; |
@@ -24,6 +24,9 @@ |
||
24 | 24 | protected $isInitialized = false; |
25 | 25 | protected $entries; |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $hash |
|
29 | + */ |
|
27 | 30 | public function __construct(Repository $repository, $hash) |
28 | 31 | { |
29 | 32 | $this->repository = $repository; |
@@ -213,7 +213,6 @@ |
||
213 | 213 | /** |
214 | 214 | * Write documents |
215 | 215 | * |
216 | - * @param \PhpOffice\PhpWord\PhpWord $phpWord |
|
217 | 216 | * @param string $filename |
218 | 217 | * @param array $writers |
219 | 218 | */ |
@@ -225,7 +225,7 @@ |
||
225 | 225 | } |
226 | 226 | |
227 | 227 | /** |
228 | - * @param Model $obj |
|
228 | + * @param \Fabrica\Models\Infra\Ci\Model\Environment $obj |
|
229 | 229 | * |
230 | 230 | * @return bool |
231 | 231 | * |
@@ -3,11 +3,11 @@ |
||
3 | 3 | namespace Fabrica\Tools\Store; |
4 | 4 | |
5 | 5 | use Exception; |
6 | +use Fabrica\Tools\Store; |
|
6 | 7 | use PDO; |
7 | 8 | use PHPCensor\Database; |
8 | 9 | use PHPCensor\Exception\HttpException; |
9 | 10 | use PHPCensor\Model\BuildError; |
10 | -use Fabrica\Tools\Store; |
|
11 | 11 | |
12 | 12 | class BuildErrorStore extends Store |
13 | 13 | { |
@@ -37,7 +37,6 @@ |
||
37 | 37 | /** |
38 | 38 | * Leave all fabrica |
39 | 39 | * |
40 | - * @param integer $fabricaId |
|
41 | 40 | * @param integer $userId |
42 | 41 | * @return void |
43 | 42 | */ |
@@ -12,8 +12,8 @@ |
||
12 | 12 | |
13 | 13 | namespace Fabrica\Bundle\CoreBundle\Command; |
14 | 14 | |
15 | -use Symfony\Component\Console\Input\InputInterface; |
|
16 | 15 | use Symfony\Component\Console\Input\InputArgument; |
16 | +use Symfony\Component\Console\Input\InputInterface; |
|
17 | 17 | use Symfony\Component\Console\Input\InputOption; |
18 | 18 | use Symfony\Component\Console\Output\OutputInterface; |
19 | 19 |