Skip to content

Commit 8788d75

Browse files
committed
Cleaned unused method, property, variable or parameter
1 parent b452245 commit 8788d75

File tree

14 files changed

+14
-47
lines changed

14 files changed

+14
-47
lines changed

src/BeSimple/SoapBundle/Converter/TypeRepository.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ public function getXmlTypeMapping($phpType)
4848

4949
public function fixTypeInformation(ServiceDefinition $definition)
5050
{
51-
$typeMap = $this->defaultTypeMap;
52-
5351
foreach($definition->getAllTypes() as $type) {
5452
$phpType = $type->getPhpType();
5553
$xmlType = $type->getXmlType();

src/BeSimple/SoapBundle/DependencyInjection/BeSimpleSoapExtension.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private function registerClientConfiguration(array $config, ContainerBuilder $co
8484

8585
foreach ($config as $client => $options) {
8686
$definition = new DefinitionDecorator('besimple.soap.client.builder');
87-
$context = $container->setDefinition(sprintf('besimple.soap.client.builder.%s', $client), $definition);
87+
$container->setDefinition(sprintf('besimple.soap.client.builder.%s', $client), $definition);
8888

8989
$definition->replaceArgument(0, $options['wsdl']);
9090

@@ -118,7 +118,7 @@ private function registerClientConfiguration(array $config, ContainerBuilder $co
118118
private function createClientClassmap($client, array $classmap, ContainerBuilder $container)
119119
{
120120
$definition = new DefinitionDecorator('besimple.soap.classmap');
121-
$context = $container->setDefinition(sprintf('besimple.soap.classmap.%s', $client), $definition);
121+
$container->setDefinition(sprintf('besimple.soap.classmap.%s', $client), $definition);
122122

123123
$definition->setMethodCalls(array(
124124
array('set', array($classmap)),
@@ -130,7 +130,7 @@ private function createClientClassmap($client, array $classmap, ContainerBuilder
130130
private function createClient($client, ContainerBuilder $container)
131131
{
132132
$definition = new DefinitionDecorator('besimple.soap.client');
133-
$context = $container->setDefinition(sprintf('besimple.soap.client.%s', $client), $definition);
133+
$container->setDefinition(sprintf('besimple.soap.client.%s', $client), $definition);
134134

135135
$definition->setFactoryService(sprintf('besimple.soap.client.builder.%s', $client));
136136
}
@@ -142,7 +142,7 @@ private function createWebServiceContext(array $config, ContainerBuilder $contai
142142

143143
$contextId = 'besimple.soap.context.'.$config['name'];
144144
$definition = new DefinitionDecorator('besimple.soap.context.'.$bindingSuffix);
145-
$context = $container->setDefinition($contextId, $definition);
145+
$container->setDefinition($contextId, $definition);
146146

147147
if (isset($config['cache_type'])) {
148148
$config['cache_type'] = $this->getCacheType($config['cache_type']);

src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralRequestMessageBinder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ protected function processType($phpType, $message)
5454
if ($type instanceof ArrayOfType) {
5555
$isArray = true;
5656
$array = array();
57-
$arrayType = $type;
5857

5958
$type = $this->typeRepository->getType($type->get('item')->getType());
6059
}

src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralResponseMessageBinder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ private function processType($phpType, $message)
4242
$type = $this->typeRepository->getType($phpType);
4343
if ($type instanceof ArrayOfType) {
4444
$isArray = true;
45-
$arrayType = $type;
4645

4746
$type = $this->typeRepository->getType($type->get('item')->getType());
4847
}

src/BeSimple/SoapBundle/ServiceDefinition/Definition.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
*/
2222
class Definition extends BaseDefinition
2323
{
24-
private $complexTypes;
25-
2624
public function __construct(TypeRepository $typeRepository)
2725
{
2826
$this->typeRepository = $typeRepository;

src/BeSimple/SoapBundle/ServiceDefinition/Loader/AnnotationClassLoader.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -141,30 +141,6 @@ private function getController(\ReflectionClass $class, \ReflectionMethod $metho
141141
}
142142
}
143143

144-
/**
145-
* @param \ReflectionMethod $method
146-
* @param \BeSimple\SoapBundle\ServiceDefinition\Annotation\Param $annotation
147-
*
148-
* @return \BeSimple\SoapBundle\ServiceDefinition\Type
149-
*/
150-
private function getArgumentType(\ReflectionMethod $method, Annotation\Param $annotation)
151-
{
152-
$phpType = $annotation->getPhpType();
153-
$xmlType = $annotation->getXmlType();
154-
155-
if (null === $phpType) {
156-
foreach ($method->getParameters() as $param) {
157-
if ($param->name === $annotation->getName()) {
158-
$phpType = $param->getClass()->name;
159-
160-
break;
161-
}
162-
}
163-
}
164-
165-
return new Definition\Type($phpType, $xmlType);
166-
}
167-
168144
private function loadType($phpType)
169145
{
170146
if (false !== $arrayOf = $this->typeRepository->getArrayOf($phpType)) {

src/BeSimple/SoapBundle/ServiceDefinition/Loader/AnnotationFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function load($file, $type = null)
6161
$path = $this->locator->locate($file);
6262

6363
if ($class = $this->findClass($path)) {
64-
return $definition = $this->loader->load($class, $type);
64+
return $this->loader->load($class, $type);
6565
}
6666

6767
return null;

src/BeSimple/SoapBundle/WebServiceContext.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
*/
2727
class WebServiceContext
2828
{
29-
private $converterRepository;
30-
3129
private $options;
3230

3331
private $serviceDefinition;

src/BeSimple/SoapClient/MimeFilter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function filterRequest(SoapRequest $request)
9090

9191
// TODO
9292
$headers = $multipart->getHeadersForHttp();
93-
list($name, $contentType) = explode(': ', $headers[0]);
93+
list(, $contentType) = explode(': ', $headers[0]);
9494

9595
$request->setContentType($contentType);
9696
}
@@ -135,4 +135,4 @@ public function filterResponse(SoapResponse $response)
135135
$response->setAttachments($attachmentsRecieved);
136136
}
137137
}
138-
}
138+
}

src/BeSimple/SoapClient/WsSecurityFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function filterRequest(CommonSoapRequest $request)
210210
$referenceList = XmlSecurityEnc::createReferenceList($encryptedKey);
211211
// token reference to encrypted key
212212
$keyInfo = $this->createKeyInfo($filterHelper, self::TOKEN_REFERENCE_SECURITY_TOKEN, $guid);
213-
$nodes = $this->createNodeListForEncryption($dom, $security);
213+
$nodes = $this->createNodeListForEncryption($dom);
214214
foreach ($nodes as $node) {
215215
$type = XmlSecurityEnc::ELEMENT;
216216
if ($node->localName == 'Body') {

0 commit comments

Comments
 (0)