@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | if (isset($codeTypeTag[0])) { |
75 | 75 | $start = mb_strpos($codeTypeTag[0], '['); |
76 | 76 | $end = mb_strpos($codeTypeTag[0], ']'); |
77 | - $language = mb_substr($codeTypeTag[0], $start + 1, $end - ($start + 1)); |
|
77 | + $language = mb_substr($codeTypeTag[0], $start+1, $end-($start+1)); |
|
78 | 78 | } else { |
79 | 79 | // will use php as a defualt language type when none is provided |
80 | 80 | $language = 'php'; |
@@ -100,11 +100,11 @@ discard block |
||
100 | 100 | { |
101 | 101 | $config = ConfigProvider::getInstance(); |
102 | 102 | |
103 | - $whole_match = $matches[1]; |
|
104 | - $link_text = $this->runSpanGamut($matches[2]); |
|
105 | - $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
106 | - $title =& $matches[7]; |
|
107 | - $attr = $this->doExtraAttributes("a", $dummy =& $matches[8]); |
|
103 | + $whole_match = $matches[1]; |
|
104 | + $link_text = $this->runSpanGamut($matches[2]); |
|
105 | + $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
106 | + $title = & $matches[7]; |
|
107 | + $attr = $this->doExtraAttributes("a", $dummy = & $matches[8]); |
|
108 | 108 | |
109 | 109 | $external = false; |
110 | 110 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $result = "<a href=\"$url\""; |
127 | 127 | if (isset($title)) { |
128 | 128 | $title = $this->encodeAttribute($title); |
129 | - $result .= " title=\"$title\""; |
|
129 | + $result .= " title=\"$title\""; |
|
130 | 130 | } |
131 | 131 | if ($external) { |
132 | 132 | $result .= " target=\"$url\""; |
@@ -205,6 +205,6 @@ discard block |
||
205 | 205 | $text .= "</tbody>\n"; |
206 | 206 | $text .= "</table>"; |
207 | 207 | |
208 | - return $this->hashBlock($text) . "\n"; |
|
208 | + return $this->hashBlock($text)."\n"; |
|
209 | 209 | } |
210 | 210 | } |
@@ -207,7 +207,7 @@ |
||
207 | 207 | |
208 | 208 | if (isset($params['clearCache']) && $params['clearCache'] == 'true') { |
209 | 209 | try { |
210 | - FileUtils::deleteDirectoryContents($this->dataDir, array('.htaccess','html','images','pdf','xls')); |
|
210 | + FileUtils::deleteDirectoryContents($this->dataDir, array('.htaccess', 'html', 'images', 'pdf', 'xls')); |
|
211 | 211 | |
212 | 212 | $this->setStatusMessage(View::displayUpdateMessage('Cache contents deleted successfully.')); |
213 | 213 |
@@ -511,19 +511,19 @@ discard block |
||
511 | 511 | } |
512 | 512 | // found the current job |
513 | 513 | if ($this->name == $jobs[$i]) { |
514 | - if (isset($jobs[$i - 1])) { |
|
514 | + if (isset($jobs[$i-1])) { |
|
515 | 515 | // set the previous job if it exists |
516 | - $this->previousJob = $jobs[$i - 1]; |
|
516 | + $this->previousJob = $jobs[$i-1]; |
|
517 | 517 | self::$logger->debug('Previous job ['.$this->previousJob.']'); |
518 | 518 | } |
519 | - if (isset($jobs[$i + 1])) { |
|
519 | + if (isset($jobs[$i+1])) { |
|
520 | 520 | // set the next job if it exists |
521 | - $this->nextJob = $jobs[$i + 1]; |
|
521 | + $this->nextJob = $jobs[$i+1]; |
|
522 | 522 | self::$logger->debug('Next job ['.$this->nextJob.']'); |
523 | 523 | } |
524 | 524 | } |
525 | 525 | // the last job in the sequence |
526 | - if ($i == ($numOfJobs - 1)) { |
|
526 | + if ($i == ($numOfJobs-1)) { |
|
527 | 527 | $this->lastJob = $jobs[$i]; |
528 | 528 | } |
529 | 529 | } |
@@ -687,9 +687,9 @@ discard block |
||
687 | 687 | $this->unitEndTime->getYear() |
688 | 688 | ); |
689 | 689 | |
690 | - self::$logger->debug('<<getUnitDuration ['.$intEndTime - $intStartTime.']'); |
|
690 | + self::$logger->debug('<<getUnitDuration ['.$intEndTime-$intStartTime.']'); |
|
691 | 691 | |
692 | - return $intEndTime - $intStartTime; |
|
692 | + return $intEndTime-$intStartTime; |
|
693 | 693 | } |
694 | 694 | |
695 | 695 | /** |
@@ -1159,7 +1159,7 @@ discard block |
||
1159 | 1159 | */ |
1160 | 1160 | |
1161 | 1161 | // the server hostname + today's date less 1 hour (i.e. yesterday where time is < 1:00AM) |
1162 | - $var1 = rtrim(strtr(base64_encode(SecurityUtils::encrypt($host.date('Ymd', (time() - 3600)))), '+/', '-_'), '='); |
|
1162 | + $var1 = rtrim(strtr(base64_encode(SecurityUtils::encrypt($host.date('Ymd', (time()-3600)))), '+/', '-_'), '='); |
|
1163 | 1163 | // the server's IP plus $var1 |
1164 | 1164 | $var2 = rtrim(strtr(base64_encode(SecurityUtils::encrypt($ip.$var1)), '+/', '-_'), '='); |
1165 | 1165 |