mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[task/code-sniffer] Remove the IN_PHPBB check side-effect from class files.
PHPBB3-11980
This commit is contained in:
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
class asset
|
||||
{
|
||||
protected $components = array();
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
abstract class base implements template
|
||||
{
|
||||
/**
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stores variables assigned to template.
|
||||
*
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
interface template
|
||||
{
|
||||
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class holds all DEFINE variables from the current page load
|
||||
*/
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
class environment extends \Twig_Environment
|
||||
{
|
||||
/** @var array */
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
class extension extends \Twig_Extension
|
||||
{
|
||||
/** @var \phpbb\template\context */
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
class lexer extends \Twig_Lexer
|
||||
{
|
||||
public function tokenize($code, $filename = null)
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Twig Template loader
|
||||
* @package phpBB3
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\node;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class definenode extends \Twig_Node
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\node;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class event extends \Twig_Node
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\node\expression\binary;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class equalequal extends \Twig_Node_Expression_Binary
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\node\expression\binary;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class notequalequal extends \Twig_Node_Expression_Binary
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\node;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class includenode extends \Twig_Node_Include
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\node;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class includephp extends \Twig_Node
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\node;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class php extends \Twig_Node
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\tokenparser;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class defineparser extends \Twig_TokenParser
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\tokenparser;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class event extends \Twig_TokenParser
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\tokenparser;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class includejs extends \Twig_TokenParser
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\tokenparser;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class includeparser extends \Twig_TokenParser_Include
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\tokenparser;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class includephp extends \Twig_TokenParser
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig\tokenparser;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class php extends \Twig_TokenParser
|
||||
{
|
||||
|
@@ -9,14 +9,6 @@
|
||||
|
||||
namespace phpbb\template\twig;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Twig Template class.
|
||||
* @package phpBB3
|
||||
|
Reference in New Issue
Block a user