Completed
Pull Request — master (#662)
by Edvin
02:21
created
library/Mockery.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     /**
158 158
      * Static fetching of a mock associated with a name or explicit class poser.
159 159
      *
160
-     * @param $name
160
+     * @param string $name
161 161
      *
162 162
      * @return \Mockery\Mock
163 163
      */
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
      * Returns all public instance properties.
532 532
      *
533 533
      * @param $object
534
-     * @param $nesting
534
+     * @param integer $nesting
535 535
      *
536 536
      * @return array
537 537
      */
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
      * Returns all object getters.
556 556
      *
557 557
      * @param $object
558
-     * @param $nesting
558
+     * @param integer $nesting
559 559
      *
560 560
      * @return array
561 561
      */
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
@@ -453,6 +453,9 @@  discard block
 block discarded – undo
453 453
         }
454 454
     }
455 455
 
456
+    /**
457
+     * @return MockInterface
458
+     */
456 459
     protected function _getInstance($mockName, $constructorArgs = null)
457 460
     {
458 461
         if ($constructorArgs !== null) {
@@ -503,6 +506,9 @@  discard block
 block discarded – undo
503 506
         }
504 507
     }
505 508
 
509
+    /**
510
+     * @param Generator\MockConfiguration $config
511
+     */
506 512
     protected function checkForNamedMockClashes($config)
507 513
     {
508 514
         $name = $config->getName();
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
@@ -35,6 +35,9 @@  discard block
 block discarded – undo
35 35
         return $code;
36 36
     }
37 37
 
38
+    /**
39
+     * @param MockConfiguration $config
40
+     */
38 41
     protected function renderParams(Method $method, $config)
39 42
     {
40 43
         $class = $method->getDeclaringClass();
@@ -73,6 +76,9 @@  discard block
 block discarded – undo
73 76
         return $type ? sprintf(': %s', $type) : '';
74 77
     }
75 78
 
79
+    /**
80
+     * @param string $code
81
+     */
76 82
     protected function appendToClass($class, $code)
77 83
     {
78 84
         $lastBrace = strrpos($class, "}");
@@ -80,6 +86,9 @@  discard block
 block discarded – undo
80 86
         return $class;
81 87
     }
82 88
 
89
+    /**
90
+     * @param MockConfiguration $config
91
+     */
83 92
     private function renderMethodBody($method, $config)
84 93
     {
85 94
         $invoke = $method->isStatic() ? 'static::_mockery_handleStaticMethodCall' : '$this->_mockery_handleMethodCall';
Please login to merge, or discard this patch.
library/Mockery/Loader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     /**
52 52
      * Gets the namespace seperator used by classes in the namespace of this class loader.
53 53
      *
54
-     * @return void
54
+     * @return string
55 55
      */
56 56
     public function getNamespaceSeparator()
57 57
     {
Please login to merge, or discard this patch.
library/Mockery/MockInterface.php 1 patch
Doc Comments   +3 added 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
 
@@ -144,6 +145,7 @@  discard block
 block discarded – undo
144 145
      *
145 146
      * @param mixed $group
146 147
      * @param int $order
148
+     * @return void
147 149
      */
148 150
     public function mockery_setGroup($group, $order);
149 151
 
@@ -158,6 +160,7 @@  discard block
 block discarded – undo
158 160
      * Set current ordered number
159 161
      *
160 162
      * @param int $order
163
+     * @return integer
161 164
      */
162 165
     public function mockery_setCurrentOrder($order);
163 166
 
Please login to merge, or discard this patch.
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/Parameter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
         $this->name = $name;
12 12
     }
13 13
 
14
+    /**
15
+     * @return string
16
+     */
14 17
     public function getName()
15 18
     {
16 19
         return $this->name;
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/Mock.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      * Set expected method calls
177 177
      *
178 178
      * @param string $methodName,... one or many methods that are expected to be called in this mock
179
-     * @return \Mockery\Expectation
179
+     * @return CompositeExpectation
180 180
      */
181 181
     public function shouldReceive($methodName)
182 182
     {
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
      * current mock object. The partial may then be passed to a second process
306 306
      * to see if it fulfils the same (or exact same) contract as the original.
307 307
      *
308
-     * @param Closure $closure
308
+     * @param \Closure $closure
309 309
      */
310 310
     public function shouldExpect(\Closure $closure)
311 311
     {
@@ -705,6 +705,9 @@  discard block
 block discarded – undo
705 705
         }
706 706
     }
707 707
 
708
+    /**
709
+     * @return ReceivedMethodCalls
710
+     */
708 711
     protected function _mockery_getReceivedMethodCalls()
709 712
     {
710 713
         return $this->_mockery_receivedMethodCalls ?: $this->_mockery_receivedMethodCalls = new \Mockery\ReceivedMethodCalls();
@@ -808,7 +811,7 @@  discard block
 block discarded – undo
808 811
     }
809 812
 
810 813
     /**
811
-     * @return array
814
+     * @return MockInterface
812 815
      */
813 816
     private function getNonPublicMethods()
814 817
     {
Please login to merge, or discard this patch.