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
3737 */
3838 public static function factory (array $ param , $ class = 'ConfigDefault ' )
3939 {
40- // @todo support more filetypes
4140 if (in_array ($ class , self ::$ whitelist )) {
4241 if (false === strpos ($ class , 'Asm ' )) {
4342 $ class = __NAMESPACE__ . '\\' . $ class ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function set()
5656
5757 // iterate arguments reversed to build replacement array
5858 foreach (array_reverse ($ args ) as $ key ) {
59- if (null == $ replace ) {
59+ if (null === $ replace ) {
6060 $ replace = [$ key => $ val ];
6161 } else {
6262 $ replace = [$ key => $ replace ];
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function isTimerActive($type)
6767 if (isset ($ this ->currentConf ['holiday ' ]['use_general ' ])
6868 && true === (bool )$ this ->currentConf ['holiday ' ]['use_general ' ]
6969 ) {
70- if (false == $ this ->isHoliday ()) {
70+ if (false === $ this ->isHoliday ()) {
7171 $ return = $ this ->checkDate ();
7272 }
7373 } elseif (0 < count ($ this ->config ->get ('holidays ' ))) {
@@ -130,7 +130,7 @@ private function checkDate()
130130 break ;
131131 case (array_key_exists ('time ' , $ this ->currentConf ) && array_key_exists ('day ' , $ this ->currentConf )):
132132 // first check if we're on configured day
133- if (true == $ this ->checkDays ()) {
133+ if (true === $ this ->checkDays ()) {
134134 // then see if we're in the timeframe
135135 $ return = $ this ->checkTime ();
136136 }
You can’t perform that action at this time.
0 commit comments