Skip to content

Commit 3e6a419

Browse files
committed
Remove useless @static annotations
1 parent 069c665 commit 3e6a419

File tree

5 files changed

+8
-32
lines changed

5 files changed

+8
-32
lines changed

src/PhpSpreadsheet/IOFactory.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class IOFactory
1010
* Search locations.
1111
*
1212
* @var array
13-
* @static
1413
*/
1514
private static $searchLocations = [
1615
['type' => 'IWriter', 'path' => 'PhpSpreadsheet/Writer/{0}.php', 'class' => '\\PhpOffice\\PhpSpreadsheet\\Writer\\{0}'],
@@ -21,7 +20,6 @@ class IOFactory
2120
* Autoresolve classes.
2221
*
2322
* @var array
24-
* @static
2523
*/
2624
private static $autoResolveClasses = [
2725
'Xlsx',
@@ -44,8 +42,6 @@ private function __construct()
4442
/**
4543
* Get search locations.
4644
*
47-
* @static
48-
*
4945
* @return array
5046
*/
5147
public static function getSearchLocations()
@@ -56,8 +52,6 @@ public static function getSearchLocations()
5652
/**
5753
* Set search locations.
5854
*
59-
* @static
60-
*
6155
* @param array $value
6256
*
6357
* @throws Reader\Exception
@@ -70,8 +64,6 @@ public static function setSearchLocations(array $value)
7064
/**
7165
* Add search location.
7266
*
73-
* @static
74-
*
7567
* @param string $type Example: IWriter
7668
* @param string $location Example: PhpSpreadsheet/Writer/{0}.php
7769
* @param string $classname Example: Writer\{0}
@@ -84,8 +76,6 @@ public static function addSearchLocation($type, $location, $classname)
8476
/**
8577
* Create Writer\IWriter.
8678
*
87-
* @static
88-
*
8979
* @param Spreadsheet $spreadsheet
9080
* @param string $writerType Example: Xlsx
9181
*
@@ -126,8 +116,6 @@ public static function createWriter(Spreadsheet $spreadsheet, $writerType)
126116
/**
127117
* Create Reader\IReader.
128118
*
129-
* @static
130-
*
131119
* @param string $readerType Example: Xlsx
132120
*
133121
* @throws Reader\Exception
@@ -158,8 +146,6 @@ public static function createReader($readerType)
158146
/**
159147
* Loads Spreadsheet from file using automatic Reader\IReader resolution.
160148
*
161-
* @static
162-
*
163149
* @param string $pFilename The name of the spreadsheet file
164150
*
165151
* @throws Reader\Exception
@@ -176,8 +162,6 @@ public static function load($pFilename)
176162
/**
177163
* Identify file type using automatic Reader\IReader resolution.
178164
*
179-
* @static
180-
*
181165
* @param string $pFilename The name of the spreadsheet file to identify
182166
*
183167
* @throws Reader\Exception
@@ -197,8 +181,6 @@ public static function identify($pFilename)
197181
/**
198182
* Create Reader\IReader for file using automatic Reader\IReader resolution.
199183
*
200-
* @static
201-
*
202184
* @param string $pFilename The name of the spreadsheet file
203185
*
204186
* @throws Reader\Exception

src/PhpSpreadsheet/Shared/OLE.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,6 @@ public function getDataLength($index)
472472
/**
473473
* Utility function to transform ASCII text to Unicode.
474474
*
475-
* @static
476-
*
477475
* @param string $ascii The ASCII string to transform
478476
*
479477
* @return string The string in Unicode
@@ -493,8 +491,6 @@ public static function ascToUcs($ascii)
493491
* Utility function
494492
* Returns a string for the OLE container with the date given.
495493
*
496-
* @static
497-
*
498494
* @param int $date A timestamp
499495
*
500496
* @return string The string for the OLE container
@@ -539,8 +535,6 @@ public static function localDateToOLE($date)
539535
/**
540536
* Returns a timestamp from an OLE container's date.
541537
*
542-
* @static
543-
*
544538
* @param int $string A binary string with the encoded date
545539
*
546540
* @return string The timestamp corresponding to the string

src/PhpSpreadsheet/Writer/Xls/Font.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private static function mapBold($bold)
121121
/**
122122
* Map of BIFF2-BIFF8 codes for underline styles.
123123
*
124-
* @static array of int
124+
* @var array of int
125125
*/
126126
private static $mapUnderline = [
127127
\PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_NONE => 0x00,

src/PhpSpreadsheet/Writer/Xls/Xf.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public function setFontIndex($value)
347347
/**
348348
* Map of BIFF2-BIFF8 codes for border styles.
349349
*
350-
* @static array of int
350+
* @var array of int
351351
*/
352352
private static $mapBorderStyles = [
353353
Border::BORDER_NONE => 0x00,
@@ -385,7 +385,7 @@ private static function mapBorderStyle($borderStyle)
385385
/**
386386
* Map of BIFF2-BIFF8 codes for fill types.
387387
*
388-
* @static array of int
388+
* @var array of int
389389
*/
390390
private static $mapFillTypes = [
391391
Fill::FILL_NONE => 0x00,
@@ -430,7 +430,7 @@ private static function mapFillType($fillType)
430430
/**
431431
* Map of BIFF2-BIFF8 codes for horizontal alignment.
432432
*
433-
* @static array of int
433+
* @var array of int
434434
*/
435435
private static $mapHAlignments = [
436436
Alignment::HORIZONTAL_GENERAL => 0,
@@ -461,7 +461,7 @@ private function mapHAlign($hAlign)
461461
/**
462462
* Map of BIFF2-BIFF8 codes for vertical alignment.
463463
*
464-
* @static array of int
464+
* @var array of int
465465
*/
466466
private static $mapVAlignments = [
467467
Alignment::VERTICAL_TOP => 0,

src/PhpSpreadsheet/Writer/Xlsx/Theme.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Theme extends WriterPart
1515
/**
1616
* Map of Major fonts to write.
1717
*
18-
* @static array of string
18+
* @var array of string
1919
*/
2020
private static $majorFonts = [
2121
'Jpan' => 'MS Pゴシック',
@@ -53,7 +53,7 @@ class Theme extends WriterPart
5353
/**
5454
* Map of Minor fonts to write.
5555
*
56-
* @static array of string
56+
* @var array of string
5757
*/
5858
private static $minorFonts = [
5959
'Jpan' => 'MS Pゴシック',
@@ -91,7 +91,7 @@ class Theme extends WriterPart
9191
/**
9292
* Map of core colours.
9393
*
94-
* @static array of string
94+
* @var array of string
9595
*/
9696
private static $colourScheme = [
9797
'dk2' => '1F497D',

0 commit comments

Comments
 (0)