Completed
Push — master ( 5b2853...904b84 )
by Ricardo
03:18
created
src/Tools/Programs/Git/GitRepository.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -634,6 +634,7 @@
 block discarded – undo
634 634
     /**
635 635
      * @param  string
636 636
      * @param  callback|NULL
637
+     * @param string $cmd
637 638
      * @return string[]|NULL
638 639
      * @throws GitException
639 640
      */
Please login to merge, or discard this patch.
src/Tools/Programs/Git/Hooks.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -120,6 +120,9 @@
 block discarded – undo
120 120
         unlink($this->getPath($name));
121 121
     }
122 122
 
123
+    /**
124
+     * @param string $name
125
+     */
123 126
     protected function getPath($name)
124 127
     {
125 128
         return $this->repository->getGitDir().'/hooks/'.$name;
Please login to merge, or discard this patch.
src/Tools/Programs/Git/Log.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     }
77 77
 
78 78
     /**
79
-     * @return Diff
79
+     * @return Diff\Diff
80 80
      */
81 81
     public function getDiff()
82 82
     {
Please login to merge, or discard this patch.
src/Tools/Programs/Git/PushReference.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -147,6 +147,7 @@
 block discarded – undo
147 147
     }
148 148
 
149 149
     /**
150
+     * @param string $reference
150 151
      * @return bool
151 152
      */
152 153
     protected function isZero($reference)
Please login to merge, or discard this patch.
src/Tools/Programs/Git/Reference.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Tools/Programs/Git/ReferenceBag.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Tools/Programs/Git/Repository.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -394,6 +394,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Tools/Programs/Git/Revision.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Tools/Programs/Git/Tree.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.