Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

fix PHPCS errors for Zend\Uri #6980

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 1 addition & 3 deletions library/Zend/Uri/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

namespace Zend\Uri\Exception;

class InvalidArgumentException
extends \InvalidArgumentException
implements ExceptionInterface
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
{
}
6 changes: 2 additions & 4 deletions library/Zend/Uri/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,10 +560,8 @@ public function makeRelative($baseUri)
return $this;
}

$pathParts = preg_split('|(/)|', $this->getPath(), null,
PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
$baseParts = preg_split('|(/)|', $baseUri->getPath(), null,
PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
$pathParts = preg_split('|(/)|', $this->getPath(), null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
$baseParts = preg_split('|(/)|', $baseUri->getPath(), null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);

// Get the intersection of existing path parts and those from the
// provided URI
Expand Down
6 changes: 3 additions & 3 deletions library/Zend/Uri/UriFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ public static function factory($uriString, $defaultScheme = null)

if ($scheme && ! isset(static::$schemeClasses[$scheme])) {
throw new Exception\InvalidArgumentException(sprintf(
'no class registered for scheme "%s"',
$scheme
));
'no class registered for scheme "%s"',
$scheme
));
}
if ($scheme && isset(static::$schemeClasses[$scheme])) {
$class = static::$schemeClasses[$scheme];
Expand Down