Skip to content

Commit

Permalink
Case mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro F. L committed Dec 1, 2017
1 parent 702d7fe commit 6655666
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function getExtensibleInterfaceName($extensibleClassName)
}
$modelReflection = new \ReflectionClass($extensibleClassName);
if ($modelReflection->isInterface()
&& $modelReflection->isSubClassOf(self::EXTENSIBLE_INTERFACE_NAME)
&& $modelReflection->isSubclassOf(self::EXTENSIBLE_INTERFACE_NAME)
&& $modelReflection->hasMethod('getExtensionAttributes')
) {
$this->classInterfaceMap[$extensibleClassName] = $extensibleClassName;
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/App/State/CleanupFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private function emptyDir($code, $subPath = null)
$messages[] = $dirPath . $path;
try {
$dir->delete($path);
} catch (FilesystemException $e) {
} catch (FileSystemException $e) {
$messages[] = $e->getMessage();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function testGetTagsForNotObject()
public function testGetTagsForObject()
{
$strategyReturnValue = ['test tag'];
$object = new \StdClass;
$object = new \stdClass;
$this->strategy->expects($this->once())
->method('getTags')
->with($object)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testGetTagsWithObject()
{
$emptyArray = [];

$this->assertEquals($emptyArray, $this->model->getTags(new \StdClass));
$this->assertEquals($emptyArray, $this->model->getTags(new \stdClass));

$identityInterface = $this->getMockForAbstractClass(\Magento\Framework\DataObject\IdentityInterface::class);
$this->assertEquals($emptyArray, $this->model->getTags($identityInterface));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testGetStrategyWithScalar()

public function testGetStrategyWithObject()
{
$this->assertEquals($this->dummyStrategy, $this->model->getStrategy(new \StdClass));
$this->assertEquals($this->dummyStrategy, $this->model->getStrategy(new \stdClass));
}

public function testGetStrategyWithIdentityInterface()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testGetWithScalar()

public function testGetTagsWithObject()
{
$this->assertEquals([], $this->model->getTags(new \StdClass));
$this->assertEquals([], $this->model->getTags(new \stdClass));
}

public function testGetTagsWithIdentityInterface()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public function testIsSafeMethodTrue($httpMethod)
{
$this->_model = $this->getModel();
$_SERVER['REQUEST_METHOD'] = $httpMethod;
$this->assertEquals(true, $this->_model->IsSafeMethod());
$this->assertEquals(true, $this->_model->isSafeMethod());
}

/**
Expand All @@ -375,7 +375,7 @@ public function testIsSafeMethodFalse($httpMethod)
{
$this->_model = $this->getModel();
$_SERVER['REQUEST_METHOD'] = $httpMethod;
$this->assertEquals(false, $this->_model->IsSafeMethod());
$this->assertEquals(false, $this->_model->isSafeMethod());
}

public function httpSafeMethodProvider()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function __construct(
$this->_arrayVariable = $arrayVariable;
}
}
class ThirdClassForParentCall extends firstClassForParentCall
class ThirdClassForParentCall extends FirstClassForParentCall
{
/**
* @var stdClass
Expand All @@ -155,7 +155,7 @@ public function __construct(\stdClass $stdClassObject, \ClassExtendsDefaultPhpTy
$this->_secondClass = $secondClass;
}
}
class WrongArgumentsOrder extends firstClassForParentCall
class WrongArgumentsOrder extends FirstClassForParentCall
{
/**
* @var stdClass
Expand All @@ -178,7 +178,7 @@ public function __construct(\stdClass $stdClassObject, \ClassExtendsDefaultPhpTy
$this->_secondClass = $secondClass;
}
}
class ArgumentsOnSeparateLines extends firstClassForParentCall
class ArgumentsOnSeparateLines extends FirstClassForParentCall
{
/**
* @var stdClass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function testOffsets()
$this->assertSame($this->collection->offsetExists('node1'), true);
$this->collection->offsetSet('node1', 'Hello');
$this->assertSame($this->collection->offsetExists('node1'), true);
$this->assertSame($this->collection->offsetget('node1'), 'Hello');
$this->assertSame($this->collection->offsetGet('node1'), 'Hello');
$this->collection->offsetUnset('node1');
$this->assertSame($this->collection->offsetExists('node1'), false);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Xml/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function ($errno, $errstr) {
E_WARNING
);

$result = (bool)$document->loadXml($xmlContent, LIBXML_NONET);
$result = (bool)$document->loadXML($xmlContent, LIBXML_NONET);
restore_error_handler();
// Entity load to previous setting
libxml_disable_entity_loader($loadEntities);
Expand Down

0 comments on commit 6655666

Please sign in to comment.