This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

minor #306 code grooming (keradus)

This PR was merged into the 4.0-dev branch.

Discussion
----------

code grooming

Commits
-------

e46c969 code grooming
  • Loading branch information...
fabpot committed Sep 6, 2017
2 parents ad64add + e46c969 commit 2a158d9ddf02f510257fff7718b00ffed9b65a34
@@ -32,6 +32,6 @@ public function testAddsMethods()
$visitor = new MethodClassVisitor();
$visitor->visit($class);
$this->assertTrue(array_key_exists('askQuestion', $class->getMethods()));
$this->assertArrayHasKey('askQuestion', $class->getMethods());
}
}
@@ -49,8 +49,8 @@ public function testAddsProperties()
$visitor = new PropertyClassVisitor($context);
$visitor->visit($class);
$this->assertTrue(array_key_exists('color', $class->getProperties()));
$this->assertTrue(array_key_exists('animal', $class->getProperties()));
$this->assertTrue(array_key_exists('enigma', $class->getProperties()));
$this->assertArrayHasKey('color', $class->getProperties());
$this->assertArrayHasKey('animal', $class->getProperties());
$this->assertArrayHasKey('enigma', $class->getProperties());
}
}
View
@@ -31,7 +31,7 @@ public function testNamespaces()
$tree = new Tree();
$generated = $tree->getTree($project);
$this->assertCount(3 ,$generated);
$this->assertCount(3, $generated);
$this->assertEquals('[Global Namespace]', $generated[0][0]);
$this->assertEquals('', $generated[0][1]);
View
@@ -56,7 +56,7 @@ protected function generateClassTreeLevel(Project $project, $level, array $names
$url = '';
if (!$project->getConfig('simulate_namespaces')) {
$url = $parts[count($parts) - 1]
&& $project->hasNamespace($namespace)
&& $project->hasNamespace($namespace)
&& (count($subnamespaces) || count($cl)) ? $namespace : '';
}
$short = $parts[count($parts) - 1] ? $parts[count($parts) - 1] : '[Global Namespace]';
View
@@ -46,7 +46,7 @@ public function getLongName()
public function setFrozen($isFrozen)
{
$this->isFrozen = (Boolean) $isFrozen;
$this->isFrozen = (bool) $isFrozen;
}
public function isFrozen()

0 comments on commit 2a158d9

Please sign in to comment.