This repository was archived by the owner on Oct 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ final class Config
37
37
*/
38
38
public static function factory (array $ param , $ class = 'ConfigDefault ' )
39
39
{
40
- // @todo support more filetypes
41
40
if (in_array ($ class , self ::$ whitelist )) {
42
41
if (false === strpos ($ class , 'Asm ' )) {
43
42
$ class = __NAMESPACE__ . '\\' . $ class ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function set()
56
56
57
57
// iterate arguments reversed to build replacement array
58
58
foreach (array_reverse ($ args ) as $ key ) {
59
- if (null == $ replace ) {
59
+ if (null === $ replace ) {
60
60
$ replace = [$ key => $ val ];
61
61
} else {
62
62
$ replace = [$ key => $ replace ];
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function isTimerActive($type)
67
67
if (isset ($ this ->currentConf ['holiday ' ]['use_general ' ])
68
68
&& true === (bool )$ this ->currentConf ['holiday ' ]['use_general ' ]
69
69
) {
70
- if (false == $ this ->isHoliday ()) {
70
+ if (false === $ this ->isHoliday ()) {
71
71
$ return = $ this ->checkDate ();
72
72
}
73
73
} elseif (0 < count ($ this ->config ->get ('holidays ' ))) {
@@ -130,7 +130,7 @@ private function checkDate()
130
130
break ;
131
131
case (array_key_exists ('time ' , $ this ->currentConf ) && array_key_exists ('day ' , $ this ->currentConf )):
132
132
// first check if we're on configured day
133
- if (true == $ this ->checkDays ()) {
133
+ if (true === $ this ->checkDays ()) {
134
134
// then see if we're in the timeframe
135
135
$ return = $ this ->checkTime ();
136
136
}
You can’t perform that action at this time.
0 commit comments