Skip to content

Commit

Permalink
Cleanup: Scrutinizer docblock fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
adri committed Feb 20, 2014
1 parent 6127d6b commit f6b1383
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/VCR/Cassette.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function hasResponse(Request $request)
*
* @param Request $request Request.
*
* @return string Response for specified request.
* @return Response|null Response for specified request.
*/
public function playback(Request $request)
{
Expand Down
2 changes: 1 addition & 1 deletion src/VCR/Filter/CurlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class CurlFilter extends AbstractFilter
/**
* @param string $code
*
* @return mixed
* @return string
*/
protected function transformCode($code)
{
Expand Down
2 changes: 1 addition & 1 deletion src/VCR/Filter/SoapFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SoapFilter extends AbstractFilter
/**
* @param string $code
*
* @return mixed
* @return string
*/
protected function transformCode($code)
{
Expand Down
2 changes: 1 addition & 1 deletion src/VCR/LibraryHooks/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public static function curlSetopt($curlHandle, $option, $value)
* @param resource $curlHandle A cURL handle returned by curl_init().
* @param array $options An array specifying which options to set and their values.
*
* @return boolean Returns TRUE if all options were successfully set.
* @return boolean|null Returns TRUE if all options were successfully set.
*/
public static function curlSetoptArray($curlHandle, $options)
{
Expand Down
6 changes: 6 additions & 0 deletions src/VCR/LibraryHooks/Soap.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ public function __construct(AbstractFilter $filter, StreamProcessor $processor)
$this->filter = $filter;
}

/**
* @param string $request
* @param string $location
* @param string $action
* @param integer $version
*/
public function doRequest($request, $location, $action, $version, $one_way = 0)
{
if ($this->status === self::DISABLED) {
Expand Down
4 changes: 2 additions & 2 deletions src/VCR/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function send()
/**
* Sets the request method.
*
* @param string HTTP request method like GET, POST, PUT, ...
* @param string $method HTTP request method like GET, POST, PUT, ...
*/
public function setMethod($method)
{
Expand Down Expand Up @@ -106,7 +106,7 @@ public function getPostFilesArray()
public function getHeaders($asObjects = false)
{
if ($asObjects === true) {
return parent::getHeaders($asObjects);
return parent::getHeaders();
}

$headers = array();
Expand Down
3 changes: 3 additions & 0 deletions src/VCR/Storage/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@

interface Storage extends \Iterator
{
/**
* @return void
*/
public function storeRecording(array $recording);
}
1 change: 0 additions & 1 deletion src/VCR/Storage/Yaml.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Symfony\Component\Yaml\Parser;
use Symfony\Component\Yaml\Dumper;

use VCR\Util\Assertion;

class Yaml implements Storage
Expand Down
2 changes: 1 addition & 1 deletion src/VCR/Util/TextUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TextUtil
*
* Example: curl_multi_exec -> curlMultiExec
*
* @param string $method Lowercased text.
* @param string $underscore Lowercased text.
*
* @return string Lowercase camelcased version of specified text.
*/
Expand Down
3 changes: 3 additions & 0 deletions src/VCR/VCRFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ public static function getInstance($config = null)
return self::$instance;
}

/**
* @param string $className
*/
public static function get($className, $params = array())
{
return self::getInstance()->getOrCreate($className, $params);
Expand Down

0 comments on commit f6b1383

Please sign in to comment.