Completed
Push — master ( 63987b...3d7485 )
by Dave
03:09
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.php 1 patch
Doc Comments   +12 added lines, -3 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     /**
165 165
      * Static fetching of a mock associated with a name or explicit class poser.
166 166
      *
167
-     * @param $name
167
+     * @param string $name
168 168
      *
169 169
      * @return \Mockery\Mock
170 170
      */
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
      * Returns all public instance properties.
578 578
      *
579 579
      * @param $object
580
-     * @param $nesting
580
+     * @param integer $nesting
581 581
      *
582 582
      * @return array
583 583
      */
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
      * Returns all object getters.
602 602
      *
603 603
      * @param $object
604
-     * @param $nesting
604
+     * @param integer $nesting
605 605
      *
606 606
      * @return array
607 607
      */
@@ -826,16 +826,25 @@  discard block
 block discarded – undo
826 826
         return empty($methodNames);
827 827
     }
828 828
 
829
+    /**
830
+     * @param string $fqn
831
+     */
829 832
     public static function declareClass($fqn)
830 833
     {
831 834
         return static::declareType($fqn, "class");
832 835
     }
833 836
 
837
+    /**
838
+     * @param string $fqn
839
+     */
834 840
     public static function declareInterface($fqn)
835 841
     {
836 842
         return static::declareType($fqn, "interface");
837 843
     }
838 844
 
845
+    /**
846
+     * @param string $type
847
+     */
839 848
     private static function declareType($fqn, $type)
840 849
     {
841 850
         $targetCode = "<?php ";
Please login to merge, or discard this patch.
library/Mockery/MockInterface.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,6 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * Allows additional methods to be mocked that do not explicitly exist on mocked class
52 52
      * @param String $method name of the method to be mocked
53
+     * @return Mock
53 54
      */
54 55
     public function shouldAllowMockingMethod($method);
55 56
 
@@ -89,7 +90,7 @@  discard block
 block discarded – undo
89 90
     /**
90 91
      * @param null|string $method
91 92
      * @param null $args
92
-     * @return mixed
93
+     * @return HigherOrderMessage|null
93 94
      */
94 95
     public function shouldNotHaveReceived($method, $args = null);
95 96
 
@@ -130,6 +131,7 @@  discard block
 block discarded – undo
130 131
      *
131 132
      * @param mixed $group
132 133
      * @param int $order
134
+     * @return void
133 135
      */
134 136
     public function mockery_setGroup($group, $order);
135 137
 
@@ -144,6 +146,7 @@  discard block
 block discarded – undo
144 146
      * Set current ordered number
145 147
      *
146 148
      * @param int $order
149
+     * @return integer
147 150
      */
148 151
     public function mockery_setCurrentOrder($order);
149 152
 
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
@@ -701,6 +701,9 @@  discard block
 block discarded – undo
701 701
         }
702 702
     }
703 703
 
704
+    /**
705
+     * @return ReceivedMethodCalls
706
+     */
704 707
     protected function _mockery_getReceivedMethodCalls()
705 708
     {
706 709
         return $this->_mockery_receivedMethodCalls ?: $this->_mockery_receivedMethodCalls = new \Mockery\ReceivedMethodCalls();
@@ -804,7 +807,7 @@  discard block
 block discarded – undo
804 807
     }
805 808
 
806 809
     /**
807
-     * @return array
810
+     * @return MockInterface
808 811
      */
809 812
     private function getNonPublicMethods()
810 813
     {
Please login to merge, or discard this patch.
library/Mockery/Container.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -455,6 +455,9 @@  discard block
 block discarded – undo
455 455
         }
456 456
     }
457 457
 
458
+    /**
459
+     * @return MockInterface
460
+     */
458 461
     protected function _getInstance($mockName, $constructorArgs = null)
459 462
     {
460 463
         if ($constructorArgs !== null) {
@@ -480,6 +483,9 @@  discard block
 block discarded – undo
480 483
         return $instance;
481 484
     }
482 485
 
486
+    /**
487
+     * @param Generator\MockConfiguration $config
488
+     */
483 489
     protected function checkForNamedMockClashes($config)
484 490
     {
485 491
         $name = $config->getName();
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.