|
31 | 31 | } else {
|
32 | 32 | if (is_file(__DIR__ . '/../../Common/src/Common/Autoloader.php')) {
|
33 | 33 | include_once __DIR__ . '/../../Common/src/Common/Autoloader.php';
|
34 |
| - \PhpOffice\Common\Autoloader::register(); |
| 34 | + PhpOffice\Common\Autoloader::register(); |
35 | 35 | } else {
|
36 | 36 | throw new Exception('Can not find the vendor or the common folder!');
|
37 | 37 | }
|
|
109 | 109 | /**
|
110 | 110 | * Write documents.
|
111 | 111 | *
|
112 |
| - * @param \PhpOffice\PhpPresentation\PhpPresentation $phpPresentation |
| 112 | + * @param PhpPresentation $phpPresentation |
113 | 113 | * @param string $filename
|
114 | 114 | * @param array $writers
|
115 | 115 | *
|
@@ -180,7 +180,7 @@ function getEndingNotes($writers)
|
180 | 180 | /**
|
181 | 181 | * Creates a templated slide.
|
182 | 182 | */
|
183 |
| -function createTemplatedSlide(PHPPresentation $objPHPPresentation): Slide |
| 183 | +function createTemplatedSlide(PhpPresentation $objPHPPresentation): Slide |
184 | 184 | {
|
185 | 185 | // Create slide
|
186 | 186 | $slide = $objPHPPresentation->createSlide();
|
@@ -326,7 +326,7 @@ protected function displayPhpPresentationInfo(PhpPresentation $oPHPPpt): void
|
326 | 326 | }
|
327 | 327 | }
|
328 | 328 | $oNote = $oSlide->getNote();
|
329 |
| - if ($oNote->getShapeCollection()->count() > 0) { |
| 329 | + if (count($oNote->getShapeCollection()) > 0) { |
330 | 330 | $this->append('<dt>Notes</dt>');
|
331 | 331 | foreach ($oNote->getShapeCollection() as $oShape) {
|
332 | 332 | if ($oShape instanceof RichText) {
|
@@ -366,11 +366,11 @@ protected function displayShapeInfo(AbstractShape $oShape): void
|
366 | 366 | $this->append('<dd>None</dd>');
|
367 | 367 | } else {
|
368 | 368 | switch ($oShape->getFill()->getFillType()) {
|
369 |
| - case \PhpOffice\PhpPresentation\Style\Fill::FILL_NONE: |
| 369 | + case PhpOffice\PhpPresentation\Style\Fill::FILL_NONE: |
370 | 370 | $this->append('<dd>None</dd>');
|
371 | 371 |
|
372 | 372 | break;
|
373 |
| - case \PhpOffice\PhpPresentation\Style\Fill::FILL_SOLID: |
| 373 | + case PhpOffice\PhpPresentation\Style\Fill::FILL_SOLID: |
374 | 374 | $this->append('<dd>Solid (');
|
375 | 375 | $this->append('Color : #' . $oShape->getFill()->getStartColor()->getRGB());
|
376 | 376 | $this->append(' - Alpha : ' . $oShape->getFill()->getStartColor()->getAlpha() . '%');
|
@@ -442,6 +442,7 @@ protected function displayShapeInfo(AbstractShape $oShape): void
|
442 | 442 | $this->append('<abbr title="Italic">Italic</abbr> : ' . ($oRichText->getFont()->isItalic() ? 'Y' : 'N') . ' - ');
|
443 | 443 | $this->append('<abbr title="Underline">Underline</abbr> : Underline::' . $this->getConstantName('\PhpOffice\PhpPresentation\Style\Font', $oRichText->getFont()->getUnderline()) . ' - ');
|
444 | 444 | $this->append('<abbr title="Strikethrough">Strikethrough</abbr> : ' . ($oRichText->getFont()->isStrikethrough() ? 'Y' : 'N') . ' - ');
|
| 445 | + $this->append('<abbr title="Baseline">Baseline</abbr> : ' . $oRichText->getFont()->getBaseline() . ' - '); |
445 | 446 | $this->append('<abbr title="SubScript">SubScript</abbr> : ' . ($oRichText->getFont()->isSubScript() ? 'Y' : 'N') . ' - ');
|
446 | 447 | $this->append('<abbr title="SuperScript">SuperScript</abbr> : ' . ($oRichText->getFont()->isSuperScript() ? 'Y' : 'N'));
|
447 | 448 | $this->append('</dd>');
|
|
0 commit comments