@@ -76,7 +76,7 @@ |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * @return Diff |
|
| 79 | + * @return Diff\Diff |
|
| 80 | 80 | */ |
| 81 | 81 | public function getDiff() |
| 82 | 82 | { |
@@ -147,6 +147,7 @@ |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | + * @param string $reference |
|
| 150 | 151 | * @return bool |
| 151 | 152 | */ |
| 152 | 153 | protected function isZero($reference) |
@@ -38,6 +38,9 @@ |
||
| 38 | 38 | $this->repository->getReferences()->delete($this->getFullname()); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @return string |
|
| 43 | + */ |
|
| 41 | 44 | public function getCommitHash() |
| 42 | 45 | { |
| 43 | 46 | if (null !== $this->commitHash) { |
@@ -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; |
@@ -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 | * |
@@ -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 | */ |