PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
tablepress / libraries / vendor / PhpSpreadsheet / Chart / Renderer / JpGraph.php

JpGraph.php in TablePress – Tables in WordPress made easy 3.4, at libraries/vendor/PhpSpreadsheet/Chart/Renderer/JpGraph.php

41 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace TablePress\PhpOffice\PhpSpreadsheet\Chart\Renderer;
4
5 /**
6 * Jpgraph is not officially maintained in Composer, so the version there
7 * could be out of date. For that reason, all unit test requiring Jpgraph
8 * are skipped. So, do not measure code coverage for this class till that
9 * is fixed.
10 *
11 * This implementation uses abandoned package
12 * https://packagist.org/packages/jpgraph/jpgraph
13 *
14 * @codeCoverageIgnore
15 */
16 class JpGraph extends JpGraphRendererBase
17 {
18 protected static function init(): void
19 {
20 static $loaded = false;
21 if ($loaded) {
22 return;
23 }
24
25 // JpGraph is no longer included with distribution, but user may install it.
26 // So Scrutinizer's complaint that it can't find it is reasonable, but unfixable.
27 \JpGraph\JpGraph::load();
28 \JpGraph\JpGraph::module('bar');
29 \JpGraph\JpGraph::module('contour');
30 \JpGraph\JpGraph::module('line');
31 \JpGraph\JpGraph::module('pie');
32 \JpGraph\JpGraph::module('pie3d');
33 \JpGraph\JpGraph::module('radar');
34 \JpGraph\JpGraph::module('regstat');
35 \JpGraph\JpGraph::module('scatter');
36 \JpGraph\JpGraph::module('stock');
37
38 $loaded = true;
39 }
40 }
41