Browse
For agents
About
TablePress – Tables in WordPress made easy
/
3.4
TablePress – Tables in WordPress made easy
v3.4
Switch version
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
Overview
Code
tablepress
/
libraries
/
vendor
/
PhpSpreadsheet
/
Reader
/
Xlsx
/
BaseParserClass.php
BaseParserClass.php
in TablePress – Tables in WordPress made easy 3.4, at libraries/vendor/PhpSpreadsheet/Reader/Xlsx/BaseParserClass.php
25 lines
427 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
3
namespace
TablePress
\
PhpOffice
\
PhpSpreadsheet
\
Reader
\
Xlsx
;
4
5
use
Stringable
;
6
7
class
BaseParserClass
8
{
9
/**
10
*
@param
mixed
$value
11
*/
12
protected
static
function
boolean
(
$
value
)
:
bool
13
{
14
if
(
is_object
(
$
value
)
)
{
15
$
value
=
(
method_exists
(
$
value
,
'
__toString
'
)
)
?
(
(
string
)
$
value
)
:
'
true
'
;
16
}
17
18
if
(
is_numeric
(
$
value
)
)
{
19
return
(
bool
)
$
value
;
20
}
21
22
return
$
value
===
'
true
'
||
$
value
===
'
TRUE
'
;
23
}
24
}
25