summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_internal_runtime_cachemodify.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_runtime_cachemodify.php')
-rw-r--r--lib/smarty3/sysplugins/smarty_internal_runtime_cachemodify.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/smarty3/sysplugins/smarty_internal_runtime_cachemodify.php b/lib/smarty3/sysplugins/smarty_internal_runtime_cachemodify.php
index a91874a..6e12d2a 100644
--- a/lib/smarty3/sysplugins/smarty_internal_runtime_cachemodify.php
+++ b/lib/smarty3/sysplugins/smarty_internal_runtime_cachemodify.php
@@ -6,7 +6,6 @@
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
- *
**/
class Smarty_Internal_Runtime_CacheModify
{
@@ -15,7 +14,10 @@ class Smarty_Internal_Runtime_CacheModify
*
* @param \Smarty_Template_Cached $cached
* @param \Smarty_Internal_Template $_template
- * @param string $content
+ * @param string $content
+ *
+ * @throws \Exception
+ * @throws \SmartyException
*/
public function cacheModifiedCheck(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template, $content)
{
@@ -29,17 +31,15 @@ class Smarty_Internal_Runtime_CacheModify
case 'fpm-fcgi': // php-fpm >= 5.3.3
header('Status: 304 Not Modified');
break;
-
case 'cli':
- if ( /* ^phpunit */
+ if (/* ^phpunit */
!empty($_SERVER[ 'SMARTY_PHPUNIT_DISABLE_HEADERS' ]) /* phpunit$ */
) {
$_SERVER[ 'SMARTY_PHPUNIT_HEADERS' ][] = '304 Not Modified';
}
break;
-
default:
- if ( /* ^phpunit */
+ if (/* ^phpunit */
!empty($_SERVER[ 'SMARTY_PHPUNIT_DISABLE_HEADERS' ]) /* phpunit$ */
) {
$_SERVER[ 'SMARTY_PHPUNIT_HEADERS' ][] = '304 Not Modified';
@@ -51,7 +51,7 @@ class Smarty_Internal_Runtime_CacheModify
} else {
switch (PHP_SAPI) {
case 'cli':
- if ( /* ^phpunit */
+ if (/* ^phpunit */
!empty($_SERVER[ 'SMARTY_PHPUNIT_DISABLE_HEADERS' ]) /* phpunit$ */
) {
$_SERVER[ 'SMARTY_PHPUNIT_HEADERS' ][] =