Skip to content

Commit 8ff38e5

Browse files
committed
Clean up FQCN
1 parent 80b4ae2 commit 8ff38e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+191
-176
lines changed

src/PhpSpreadsheet/Calculation/Calculation.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Calculation
7575
/**
7676
* Instance of the spreadsheet this Calculation Engine is using.
7777
*/
78-
private ?\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet;
78+
private ?Spreadsheet $spreadsheet;
7979

8080
/**
8181
* Calculation cache.
@@ -91,7 +91,7 @@ class Calculation
9191
*/
9292
private $calculationCacheEnabled = true;
9393

94-
private \PhpOffice\PhpSpreadsheet\Calculation\Engine\BranchPruner $branchPruner;
94+
private BranchPruner $branchPruner;
9595

9696
/**
9797
* @var bool
@@ -123,7 +123,7 @@ class Calculation
123123
/**
124124
* The debug log generated by the calculation engine.
125125
*/
126-
private \PhpOffice\PhpSpreadsheet\Calculation\Engine\Logger $debugLog;
126+
private Logger $debugLog;
127127

128128
/**
129129
* Flag to determine how formula errors should be handled
@@ -149,12 +149,12 @@ class Calculation
149149
/**
150150
* Reference Helper.
151151
*/
152-
private static \PhpOffice\PhpSpreadsheet\ReferenceHelper $referenceHelper;
152+
private static ReferenceHelper $referenceHelper;
153153

154154
/**
155155
* An array of the nested cell references accessed by the calculation engine, used for the debug log.
156156
*/
157-
private \PhpOffice\PhpSpreadsheet\Calculation\Engine\CyclicReferenceStack $cyclicReferenceStack;
157+
private CyclicReferenceStack $cyclicReferenceStack;
158158

159159
/** @var array */
160160
private $cellStack = [];

src/PhpSpreadsheet/Calculation/Engine/Logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Logger
3333
/**
3434
* The calculation engine cell reference stack.
3535
*/
36-
private \PhpOffice\PhpSpreadsheet\Calculation\Engine\CyclicReferenceStack $cellStack;
36+
private CyclicReferenceStack $cellStack;
3737

3838
/**
3939
* Instantiate a Calculation engine logger.

src/PhpSpreadsheet/Calculation/Token/Stack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class Stack
99
{
10-
private \PhpOffice\PhpSpreadsheet\Calculation\Engine\BranchPruner $branchPruner;
10+
private BranchPruner $branchPruner;
1111

1212
/**
1313
* The parser stack for formulae.

src/PhpSpreadsheet/Cell/CellAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class CellAddress
99
{
10-
protected ?\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $worksheet;
10+
protected ?Worksheet $worksheet;
1111

1212
protected string $cellAddress;
1313

src/PhpSpreadsheet/Cell/ColumnRange.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class ColumnRange implements AddressRange
88
{
9-
protected ?\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $worksheet;
9+
protected ?Worksheet $worksheet;
1010

1111
protected int $from;
1212

src/PhpSpreadsheet/Cell/RowRange.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class RowRange implements AddressRange
88
{
9-
protected ?\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $worksheet;
9+
protected ?Worksheet $worksheet;
1010

1111
protected int $from;
1212

src/PhpSpreadsheet/Chart/Axis.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ public function __construct()
2727
/**
2828
* Chart Major Gridlines as.
2929
*/
30-
private ?\PhpOffice\PhpSpreadsheet\Chart\GridLines $majorGridlines = null;
30+
private ?GridLines $majorGridlines = null;
3131

3232
/**
3333
* Chart Minor Gridlines as.
3434
*/
35-
private ?\PhpOffice\PhpSpreadsheet\Chart\GridLines $minorGridlines = null;
35+
private ?GridLines $minorGridlines = null;
3636

3737
/**
3838
* Axis Number.
@@ -47,7 +47,7 @@ public function __construct()
4747

4848
private string $axisType = '';
4949

50-
private ?\PhpOffice\PhpSpreadsheet\Chart\AxisText $axisText = null;
50+
private ?AxisText $axisText = null;
5151

5252
/**
5353
* Axis Options.
@@ -75,7 +75,7 @@ public function __construct()
7575
/**
7676
* Fill Properties.
7777
*/
78-
private \PhpOffice\PhpSpreadsheet\Chart\ChartColor $fillColor;
78+
private ChartColor $fillColor;
7979

8080
private const NUMERIC_FORMAT = [
8181
Properties::FORMAT_CODE_NUMBER,

src/PhpSpreadsheet/Chart/AxisText.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class AxisText extends Properties
88
{
99
private ?int $rotation = null;
1010

11-
private \PhpOffice\PhpSpreadsheet\Style\Font $font;
11+
private Font $font;
1212

1313
public function __construct()
1414
{

src/PhpSpreadsheet/Chart/Chart.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,32 @@ class Chart
1717
/**
1818
* Worksheet.
1919
*/
20-
private ?\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $worksheet = null;
20+
private ?Worksheet $worksheet = null;
2121

2222
/**
2323
* Chart Title.
2424
*/
25-
private ?\PhpOffice\PhpSpreadsheet\Chart\Title $title;
25+
private ?Title $title;
2626

2727
/**
2828
* Chart Legend.
2929
*/
30-
private ?\PhpOffice\PhpSpreadsheet\Chart\Legend $legend;
30+
private ?Legend $legend;
3131

3232
/**
3333
* X-Axis Label.
3434
*/
35-
private ?\PhpOffice\PhpSpreadsheet\Chart\Title $xAxisLabel;
35+
private ?Title $xAxisLabel;
3636

3737
/**
3838
* Y-Axis Label.
3939
*/
40-
private ?\PhpOffice\PhpSpreadsheet\Chart\Title $yAxisLabel;
40+
private ?Title $yAxisLabel;
4141

4242
/**
4343
* Chart Plot Area.
4444
*/
45-
private ?\PhpOffice\PhpSpreadsheet\Chart\PlotArea $plotArea;
45+
private ?PlotArea $plotArea;
4646

4747
/**
4848
* Plot Visible Only.
@@ -61,12 +61,12 @@ class Chart
6161
/**
6262
* Chart Asix Y as.
6363
*/
64-
private \PhpOffice\PhpSpreadsheet\Chart\Axis $yAxis;
64+
private Axis $yAxis;
6565

6666
/**
6767
* Chart Asix X as.
6868
*/
69-
private \PhpOffice\PhpSpreadsheet\Chart\Axis $xAxis;
69+
private Axis $xAxis;
7070

7171
/**
7272
* Top-Left Cell Position.
@@ -128,9 +128,9 @@ class Chart
128128
/** @var bool */
129129
private $roundedCorners = false;
130130

131-
private \PhpOffice\PhpSpreadsheet\Chart\GridLines $borderLines;
131+
private GridLines $borderLines;
132132

133-
private \PhpOffice\PhpSpreadsheet\Chart\ChartColor $fillColor;
133+
private ChartColor $fillColor;
134134

135135
/**
136136
* Create a new Chart.

src/PhpSpreadsheet/Chart/DataSeriesValues.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ class DataSeriesValues extends Properties
4545
*/
4646
private $pointMarker;
4747

48-
private \PhpOffice\PhpSpreadsheet\Chart\ChartColor $markerFillColor;
48+
private ChartColor $markerFillColor;
4949

50-
private \PhpOffice\PhpSpreadsheet\Chart\ChartColor $markerBorderColor;
50+
private ChartColor $markerBorderColor;
5151

5252
/**
5353
* Series Point Size.
@@ -83,7 +83,7 @@ class DataSeriesValues extends Properties
8383
/** @var bool */
8484
private $bubble3D = false;
8585

86-
private ?\PhpOffice\PhpSpreadsheet\Chart\Layout $labelLayout = null;
86+
private ?Layout $labelLayout = null;
8787

8888
/** @var TrendLine[] */
8989
private $trendLines = [];

0 commit comments

Comments
 (0)