Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor/
composer.lock
phpunit.xml
.idea/*
2 changes: 1 addition & 1 deletion Converter/TypeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition;
use BeSimple\SoapBundle\Util\Assert;
use BeSimple\SoapBundle\Util\QName;
use BeSimple\SoapBundle\Util\String;
use BeSimple\SoapBundle\Util\Strings;

/**
* @author Christian Kerl <christian-kerl@web.de>
Expand Down
4 changes: 2 additions & 2 deletions Converter/XopIncludeTypeConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

use BeSimple\SoapBundle\Soap\SoapRequest;
use BeSimple\SoapBundle\Soap\SoapResponse;
use BeSimple\SoapBundle\Util\String;
use BeSimple\SoapBundle\Util\Strings;

/**
* @author Christian Kerl <christian-kerl@web.de>
Expand All @@ -39,7 +39,7 @@ public function convertXmlToPhp(SoapRequest $request, $data)

$ref = $include->getAttribute('href');

if (String::startsWith($ref, 'cid:')) {
if (Strings::startsWith($ref, 'cid:')) {
$cid = urldecode(substr($ref, 4));

return $request->getSoapAttachments()->get($cid)->getContent();
Expand Down
4 changes: 2 additions & 2 deletions ServiceDefinition/Dumper/WsdlTypeStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition;
use BeSimple\SoapBundle\ServiceDefinition\Loader\AnnotationComplexTypeLoader;
use BeSimple\SoapBundle\ServiceDefinition\Strategy\ComplexType;
use BeSimple\SoapBundle\Util\String;
use BeSimple\SoapBundle\Util\Strings;

use Zend\Soap\Exception;
use Zend\Soap\Wsdl as BaseWsdl;
Expand Down Expand Up @@ -68,7 +68,7 @@ public function addComplexType($type)
throw new \LogicException(sprintf('Cannot add complex type "%s", no context is set for this composite strategy.', $type));
}

$strategy = String::endsWith($type, '[]') ? $this->getArrayStrategy() : $this->getTypeStrategy();
$strategy = Strings::endsWith($type, '[]') ? $this->getArrayStrategy() : $this->getTypeStrategy();

return $strategy->addComplexType($type);
}
Expand Down
2 changes: 1 addition & 1 deletion Util/String.php → Util/Strings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @author Christian Kerl <christian-kerl@web.de>
*/
class String
class Strings
{
/**
* Checks if a string starts with a given string.
Expand Down