@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $str = self::convertToLowercase($str); |
| 38 | 38 | return preg_replace_callback( |
| 39 | 39 | '/_([a-z])/', |
| 40 | - function ($match) { |
|
| 40 | + function($match) { |
|
| 41 | 41 | return strtoupper($match[1]); |
| 42 | 42 | }, |
| 43 | 43 | $str |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | * Set a single parameter |
| 127 | 127 | * |
| 128 | 128 | * @param string $key The parameter key |
| 129 | - * @param mixed $value The value to set |
|
| 129 | + * @param string $value The value to set |
|
| 130 | 130 | * |
| 131 | 131 | * @return AbstractRequest $this Provides a fluent interface |
| 132 | 132 | * @throws RuntimeException if a request parameter is modified after the request is sent |
@@ -7,9 +7,8 @@ |
||
| 7 | 7 | |
| 8 | 8 | use GuzzleHttp\ClientInterface; |
| 9 | 9 | use GuzzleHttp\Psr7\Response; |
| 10 | -use IBM\Watson\Common\Helper; |
|
| 11 | 10 | use IBM\Watson\Common\Exception\RuntimeException; |
| 12 | -use SebastianBergmann\Environment\Runtime; |
|
| 11 | +use IBM\Watson\Common\Helper; |
|
| 13 | 12 | use Symfony\Component\HttpFoundation\ParameterBag; |
| 14 | 13 | use Symfony\Component\HttpFoundation\Request; |
| 15 | 14 | |
@@ -97,6 +97,9 @@ |
||
| 97 | 97 | return $this->httpRequest; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $class |
|
| 102 | + */ |
|
| 100 | 103 | public function callCreateRequest($class, array $parameters) |
| 101 | 104 | { |
| 102 | 105 | return $this->createRequest($class, $parameters); |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace IBM\Watson\Common; |
| 5 | 5 | |
| 6 | +use IBM\Watson\Common\Helper; |
|
| 6 | 7 | use IBM\Watson\Tests\TestCase; |
| 7 | 8 | use Mockery as m; |
| 8 | -use IBM\Watson\Common\Helper; |
|
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | class HelperTest extends TestCase |