Skip to content

Commit 088835b

Browse files
committed
Fix code style
1 parent 2499f9c commit 088835b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/classes/System/OS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ class OS
66
{
77
public static function isWindows()
88
{
9-
return (strtoupper(substr(php_uname(), 0, 7)) === 'WINDOWS');
9+
return strtoupper(substr(php_uname(), 0, 7)) === 'WINDOWS';
1010
}
1111
}

src/db.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function db_is_sqlite()
99
$connection = DB::getDefaultConnection();
1010
$driver = Config::get("database.connections.{$connection}.driver");
1111

12-
return ($driver == 'sqlite');
12+
return $driver === 'sqlite';
1313
}
1414
}
1515

@@ -19,7 +19,7 @@ function db_is_mysql()
1919
$connection = DB::getDefaultConnection();
2020
$driver = Config::get("database.connections.{$connection}.driver");
2121

22-
return ($driver == 'mysql');
22+
return $driver === 'mysql';
2323
}
2424
}
2525

@@ -35,6 +35,6 @@ function db_mysql_now()
3535
function db_mysql_variable($name)
3636
{
3737
$result = (array) DB::selectOne('show variables where variable_name = ?', [$name]);
38-
return (isset($result['Value']) ? $result['Value'] : false);
38+
return isset($result['Value']) ? $result['Value'] : false;
3939
}
4040
}

src/json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ function is_json($string, $return = false)
1212
return false;
1313
}
1414

15-
return ($return ? $decoded : true);
15+
return $return ? $decoded : true;
1616
}
1717
}

0 commit comments

Comments
 (0)