Skip to content

Commit 556e0ab

Browse files
committed
Cleanup formatting errors
1 parent 1a6987e commit 556e0ab

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

src/collector/backend/parser/UnitCollectingVisitor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private function resolveExpressionValue(\PhpParser\Node\Expr $expr) {
378378

379379
if ($expr instanceof \PhpParser\Node\Expr\ConstFetch) {
380380
$reference = join('\\', $expr->name->parts);
381-
if (in_array(strtolower($reference),array('true','false'))) {
381+
if (in_array(strtolower($reference), array('true', 'false'))) {
382382
return array(
383383
'type' => 'boolean',
384384
'value' => $reference

src/collector/project/AbstractUnitObject.php

-2
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,6 @@ public function importTraitExports(AbstractUnitObject $trait, TraitUseObject $us
514514
}
515515
}
516516

517-
518-
519517
foreach($trait->getConstants() as $constant) {
520518
$container->appendChild( $this->dom->importNode($constant->export(), TRUE) );
521519
}

src/collector/project/Tokenizer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function toXML($source) {
6565
$this->writer->setIndent(true);
6666
$this->writer->startDocument();
6767
$this->writer->startElement('source');
68-
$this->writer->writeAttribute('xmlns','http://xml.phpdox.net/token');
68+
$this->writer->writeAttribute('xmlns', 'http://xml.phpdox.net/token');
6969
$this->writer->startElement('line');
7070
$this->writer->writeAttribute('no', 1);
7171

src/generator/engine/html/Html.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private function renderSourceIndexes(fDOMDocument $treeDom) {
179179
$proc = $this->getXSLTProcessor('directory.xsl');
180180
$dirList = $treeDom->query('/phpdox:source//phpdox:dir');
181181
foreach($dirList as $dirNode) {
182-
$dirNode->setAttributeNS('ctx://engine/html','ctx:engine', 'current');
182+
$dirNode->setAttributeNS('ctx://engine/html', 'ctx:engine', 'current');
183183

184184
$parents = $dirNode->query('ancestor-or-self::phpdox:dir');
185185
$elements = array();
@@ -192,7 +192,7 @@ private function renderSourceIndexes(fDOMDocument $treeDom) {
192192
$proc->setParameter('', 'base', str_repeat('../', count($elements) - 1));
193193
$this->saveDomDocument( $proc->transformToDoc($treeDom), join('/', $elements));
194194

195-
$dirNode->removeAttributeNS('ctx://engine/html','engine');
195+
$dirNode->removeAttributeNS('ctx://engine/html', 'engine');
196196
}
197197
}
198198

src/generator/project/objects/MemberObject.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ public function asDom() {
1919
}
2020

2121
public function isPublic() {
22-
return $this->node->getAttribute('visibility','public') == 'public';
22+
return $this->node->getAttribute('visibility', 'public') == 'public';
2323
}
2424

2525
public function isPrivate() {
26-
return $this->node->getAttribute('visibility','public') == 'private';
26+
return $this->node->getAttribute('visibility', 'public') == 'private';
2727
}
2828

2929
public function isProtected() {
30-
return $this->node->getAttribute('visibility','public') == 'protected';
30+
return $this->node->getAttribute('visibility', 'public') == 'protected';
3131
}
3232

3333
}

src/generator/project/objects/MethodObject.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ public function getName() {
2323
}
2424

2525
public function isPublic() {
26-
return $this->node->getAttribute('visibility','public') == 'public';
26+
return $this->node->getAttribute('visibility', 'public') == 'public';
2727
}
2828

2929
public function isPrivate() {
30-
return $this->node->getAttribute('visibility','public') == 'private';
30+
return $this->node->getAttribute('visibility', 'public') == 'private';
3131
}
3232

3333
public function isProtected() {
34-
return $this->node->getAttribute('visibility','public') == 'protected';
34+
return $this->node->getAttribute('visibility', 'public') == 'protected';
3535
}
3636

3737
}

0 commit comments

Comments
 (0)