Completed
Push — master ( ad5bbf...fdfb1a )
by Dave
03:55
created
library/Mockery/Expectation.php 1 patch
Doc Comments   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,8 +155,6 @@  discard block
 block discarded – undo
155 155
     /**
156 156
      * Return a string with the method name and arguments formatted
157 157
      *
158
-     * @param string $name Name of the expected method
159
-     * @param array $args List of arguments to the method
160 158
      * @return string
161 159
      */
162 160
     public function __toString()
@@ -189,7 +187,6 @@  discard block
 block discarded – undo
189 187
     /**
190 188
      * Sets public properties with queued values to the mock object
191 189
      *
192
-     * @param array $args
193 190
      * @return mixed
194 191
      */
195 192
     protected function _setValues()
@@ -267,7 +264,7 @@  discard block
 block discarded – undo
267 264
     /**
268 265
      * Verify this expectation
269 266
      *
270
-     * @return bool
267
+     * @return boolean|null
271 268
      */
272 269
     public function verify()
273 270
     {
Please login to merge, or discard this patch.
library/Mockery/Generator/MockConfiguration.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -287,6 +287,9 @@  discard block
 block discarded – undo
287 287
         return $this->targetClassName;
288 288
     }
289 289
 
290
+    /**
291
+     * @return null|TargetClassInterface
292
+     */
290 293
     public function getTargetClass()
291 294
     {
292 295
         if ($this->targetClass) {
@@ -372,6 +375,9 @@  discard block
 block discarded – undo
372 375
         return $this->targetObject;
373 376
     }
374 377
 
378
+    /**
379
+     * @return string
380
+     */
375 381
     public function getName()
376 382
     {
377 383
         return $this->name;
Please login to merge, or discard this patch.
library/Mockery/Generator/Parameter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@
 block discarded – undo
41 41
         return new DefinedTargetClass($this->rfp->getClass());
42 42
     }
43 43
 
44
+    /**
45
+     * @return string
46
+     */
44 47
     public function getTypeHintAsString()
45 48
     {
46 49
         if (method_exists($this->rfp, 'getTypehintText')) {
Please login to merge, or discard this patch.
library/Mockery/Generator/StringManipulation/Pass/MethodDefinitionPass.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -54,6 +54,9 @@  discard block
 block discarded – undo
54 54
         return $code;
55 55
     }
56 56
 
57
+    /**
58
+     * @param MockConfiguration $config
59
+     */
57 60
     protected function renderParams(Method $method, $config)
58 61
     {
59 62
         $class = $method->getDeclaringClass();
@@ -92,6 +95,9 @@  discard block
 block discarded – undo
92 95
         return $type ? sprintf(': %s', $type) : '';
93 96
     }
94 97
 
98
+    /**
99
+     * @param string $code
100
+     */
95 101
     protected function appendToClass($class, $code)
96 102
     {
97 103
         $lastBrace = strrpos($class, "}");
@@ -128,6 +134,9 @@  discard block
 block discarded – undo
128 134
         return $typeHint .= ' ';
129 135
     }
130 136
 
137
+    /**
138
+     * @param MockConfiguration $config
139
+     */
131 140
     private function renderMethodBody($method, $config)
132 141
     {
133 142
         $invoke = $method->isStatic() ? 'static::_mockery_handleStaticMethodCall' : '$this->_mockery_handleMethodCall';
Please login to merge, or discard this patch.
library/helpers.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use Mockery\Matcher\AnyArgs;
4
-use Mockery\Matcher\NoArgs;
5 4
 /**
6 5
  * Mockery
7 6
  *
Please login to merge, or discard this patch.
library/Mockery.php 1 patch
Doc Comments   +13 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * Static shortcut to \Mockery\Container::mock().
74 74
      *
75
-     * @param array $args
75
+     * @param string $args
76 76
      *
77 77
      * @return \Mockery\MockInterface
78 78
      */
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     /**
167 167
      * Static fetching of a mock associated with a name or explicit class poser.
168 168
      *
169
-     * @param $name
169
+     * @param string $name
170 170
      *
171 171
      * @return \Mockery\Mock
172 172
      */
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
      * Returns all public instance properties.
576 576
      *
577 577
      * @param $object
578
-     * @param $nesting
578
+     * @param integer $nesting
579 579
      *
580 580
      * @return array
581 581
      */
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
      * Returns all object getters.
600 600
      *
601 601
      * @param $object
602
-     * @param $nesting
602
+     * @param integer $nesting
603 603
      *
604 604
      * @return array
605 605
      */
@@ -824,16 +824,25 @@  discard block
 block discarded – undo
824 824
         return empty($methodNames);
825 825
     }
826 826
 
827
+    /**
828
+     * @param string $fqn
829
+     */
827 830
     public static function declareClass($fqn)
828 831
     {
829 832
         return static::declareType($fqn, "class");
830 833
     }
831 834
 
835
+    /**
836
+     * @param string $fqn
837
+     */
832 838
     public static function declareInterface($fqn)
833 839
     {
834 840
         return static::declareType($fqn, "interface");
835 841
     }
836 842
 
843
+    /**
844
+     * @param string $type
845
+     */
837 846
     private static function declareType($fqn, $type)
838 847
     {
839 848
         $targetCode = "<?php ";
Please login to merge, or discard this patch.
library/Mockery/Mock.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -735,6 +735,9 @@  discard block
 block discarded – undo
735 735
         }
736 736
     }
737 737
 
738
+    /**
739
+     * @return ReceivedMethodCalls
740
+     */
738 741
     protected function _mockery_getReceivedMethodCalls()
739 742
     {
740 743
         return $this->_mockery_receivedMethodCalls ?: $this->_mockery_receivedMethodCalls = new \Mockery\ReceivedMethodCalls();
@@ -814,7 +817,7 @@  discard block
 block discarded – undo
814 817
      * Uses reflection to get the list of all
815 818
      * methods within the current mock object
816 819
      *
817
-     * @return array
820
+     * @return \ReflectionMethod[]
818 821
      */
819 822
     protected function mockery_getMethods()
820 823
     {
Please login to merge, or discard this patch.