Skip to content

Commit b3a7756

Browse files
authored
Merge pull request #4 from vincentKool/VK-issue161
Vk issue161
2 parents 6122baf + feee2a4 commit b3a7756

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

phpmd.xml.dist

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,25 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
66
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
7-
<rule ref="rulesets/naming.xml"/>
7+
<rule ref="rulesets/naming.xml">
8+
<exclude name="LongVariable" />
9+
</rule>
10+
<rule ref="rulesets/naming.xml/LongVariable">
11+
<properties>
12+
<property name="maximum" value="32" />
13+
</properties>
14+
</rule>
815
<rule ref="rulesets/design.xml/ExitExpression" />
916
<rule ref="rulesets/design.xml/EvalExpression" />
1017
<rule ref="rulesets/design.xml/GotoStatement" />
1118
<rule ref="rulesets/design.xml/DepthOfInheritance" />
19+
<rule ref="rulesets/design.xml/CouplingBetweenObjects">
20+
<!-- PptSlides needs more coupling (default: 13) -->
21+
<!-- Writer/Office2007/AbstractSlide needs more coupling (default: 13) -->
22+
<properties>
23+
<property name="minimum" value="31" />
24+
</properties>
25+
</rule>
1226
<rule ref="rulesets/design.xml/NumberOfChildren">
1327
<!-- AbstractStyle needs more children (default: 15) -->
1428
<properties>

src/PhpPresentation/Shape/Line.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public function __construct($fromX, $fromY, $toX, $toY)
4343
$this->setOffsetY($fromY);
4444
$this->setWidth($toX - $fromX);
4545
$this->setHeight($toY - $fromY);
46-
4746
}
4847

4948
/**

src/PhpPresentation/Writer/ODPresentation/Content.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,5 @@ protected function writeStylePartShadow(XMLWriter $objWriter, Shadow $oShadow)
13431343
}
13441344
$objWriter->writeAttribute('draw:shadow-opacity', (100 - $oShadow->getAlpha()) . '%');
13451345
$objWriter->writeAttribute('style:mirror', 'none');
1346-
13471346
}
13481347
}

src/PhpPresentation/Writer/PowerPoint2007/AbstractSlide.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use PhpOffice\Common\Drawing as CommonDrawing;
2020
use PhpOffice\Common\Text;
2121
use PhpOffice\Common\XMLWriter;
22-
use PhpOffice\PhpPresentation\Shape\AbstractDrawing;
2322
use PhpOffice\PhpPresentation\Shape\AbstractGraphic;
2423
use PhpOffice\PhpPresentation\Shape\Chart as ShapeChart;
2524
use PhpOffice\PhpPresentation\Shape\Comment;

tests/PhpPresentation/Tests/Slide/TransitionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,5 @@ public function testTransitionType()
8888
$this->assertNull($object->getTransitionType());
8989
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide\\Transition', $object->setTransitionType(Transition::TRANSITION_RANDOM));
9090
$this->assertEquals(Transition::TRANSITION_RANDOM, $object->getTransitionType());
91-
9291
}
9392
}

tests/PhpPresentation/Tests/Writer/ODPresentation/ObjectsChartTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ public function testAxisFont()
8686
$this->assertEquals('normal', $oXMLDoc->getElementAttribute($element, 'fo:font-style', 'Object 1/content.xml'));//Italic YAxis
8787
$this->assertEquals('16pt', $oXMLDoc->getElementAttribute($element, 'fo:font-size', 'Object 1/content.xml'));//Size YAxis
8888
$this->assertEquals('Arial', $oXMLDoc->getElementAttribute($element, 'fo:font-family', 'Object 1/content.xml'));//Size YAxis
89-
9089
}
9190

9291
public function testLegend()

0 commit comments

Comments
 (0)