Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 39f21d6

Browse files
committed
Cleanup SensiolabsInsight proposals
1 parent 8890d31 commit 39f21d6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Config/Config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

Data/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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];

Timer/Timer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)