@@ -315,18 +315,18 @@ discard block |
||
315 | 315 | switch (strtoupper($cmd)) { |
316 | 316 | case '$BEGINBLOCK': |
317 | 317 | if (!$this->processBeginBlockCmd($parms, $cmdTPosBegin, $cmdTPosEnd)) { |
318 | - return false; |
|
319 | - } |
|
318 | + return false; |
|
319 | + } |
|
320 | 320 | break; |
321 | 321 | case '$ENDBLOCK': |
322 | 322 | if (!$this->processEndBlockCmd($parms, $cmdTPosBegin, $cmdTPosEnd)) { |
323 | - return false; |
|
324 | - } |
|
323 | + return false; |
|
324 | + } |
|
325 | 325 | break; |
326 | 326 | case '$INCLUDE': |
327 | 327 | if (!$this->processincludeCmd($parms, $cmdTPosBegin, $cmdTPosEnd)) { |
328 | - return false; |
|
329 | - } |
|
328 | + return false; |
|
329 | + } |
|
330 | 330 | $resumeFromStart = true; |
331 | 331 | break; |
332 | 332 | default: |
@@ -848,8 +848,8 @@ discard block |
||
848 | 848 | switch ($this->outputMode) { |
849 | 849 | case 0: // output to PHP output stream |
850 | 850 | if (!print($s)) { |
851 | - $this->outputError = true; |
|
852 | - } |
|
851 | + $this->outputError = true; |
|
852 | + } |
|
853 | 853 | break; |
854 | 854 | case 1: // output to file |
855 | 855 | $rc = fwrite($this->outputFileHandle, $s); |
@@ -26,14 +26,14 @@ |
||
26 | 26 | $config['DB_PORT'] = env('DB_PORT'); |
27 | 27 | if (empty($config['DB_TYPE'])) { |
28 | 28 | switch ($config['DB_PORT']) { |
29 | - case 3306: |
|
30 | - $config['DB_TYPE'] = 'mysql'; |
|
31 | - break; |
|
32 | - case 5432: |
|
33 | - $config['DB_TYPE'] = 'pgsql'; |
|
34 | - break; |
|
35 | - default: |
|
36 | - error('Database on non-standard port ' . $config['DB_PORT'] . ' and env DB_TYPE not present'); |
|
29 | + case 3306: |
|
30 | + $config['DB_TYPE'] = 'mysql'; |
|
31 | + break; |
|
32 | + case 5432: |
|
33 | + $config['DB_TYPE'] = 'pgsql'; |
|
34 | + break; |
|
35 | + default: |
|
36 | + error('Database on non-standard port ' . $config['DB_PORT'] . ' and env DB_TYPE not present'); |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 | } |
@@ -264,7 +264,7 @@ |
||
264 | 264 | */ |
265 | 265 | function javascript_tag($filename) |
266 | 266 | { |
267 | - user_error(__FUNCTION__.' is deprecated', E_USER_DEPRECATED); |
|
267 | + user_error(__FUNCTION__.' is deprecated', E_USER_DEPRECATED); |
|
268 | 268 | } |
269 | 269 | |
270 | 270 | function format_warning($msg, $id = "") { |