Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Code Cleanup
- remove unused $thisstaff variables - pass an array called $extra to the register function so that we can set the interval and file name - Error Fix: missing curly brace - Lint Fixes: misspelled method calls - Add AuditEntry stubs - Reduce lines of code
- Loading branch information
Showing
with
54 additions
and 61 deletions.
- +3 −3 include/class.dept.php
- +1 −1 include/class.email.php
- +2 −2 include/class.export.php
- +2 −2 include/class.sla.php
- +2 −2 include/class.team.php
- +13 −17 scp/categories.php
- +13 −19 scp/helptopics.php
- +14 −15 scp/pages.php
- +4 −0 setup/test/tests/stubs.php
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -241,7 +241,7 @@ function save($refetch=false) { | ||
} | ||
|
||
function update($vars, &$errors=false) { | ||
global $cfg; | ||
|
||
// very basic checks | ||
$vars['cpasswd']=$this->getPasswd(); //Current decrypted password. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -111,8 +111,8 @@ function hasFlag($flag) { | ||
} | ||
|
||
function flagChanged($flag, $var) { | ||
if (($this->hasFlag($flag) && $var != $flag) || | ||
(!$this->hasFlag($flag) && $var == $flag)) | ||
return true; | ||
} | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -135,8 +135,8 @@ function hasFlag($flag) { | ||
} | ||
|
||
function flagChanged($flag, $var) { | ||
if (($this->hasFlag($flag) && $var != $flag) || | ||
(!$this->hasFlag($flag) && $var == $flag)) | ||
return true; | ||
} | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -243,6 +243,10 @@ function HashPassword() {} | ||
|
||
class SplFileObject { | ||
function fseek() {} | ||
|
||
class AuditEntry { | ||
function getDataById() {} | ||
function getTableInfo() {} | ||
} | ||
|
||
?> |