Permalink
Browse files

include calls without parentheses

  • Loading branch information...
1 parent 5c8eb5c commit fcb7f86b76bd779b35758c678b1c54f170ae31a1 @ravage84 ravage84 committed Oct 15, 2013
View
@@ -29,7 +29,7 @@
ini_set('include_path', $root . $ds . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
}
-if (!include ($dispatcher)) {
+if (!include $dispatcher) {
trigger_error('Could not locate CakePHP core files.', E_USER_ERROR);
}
unset($paths, $path, $dispatcher, $root, $ds);
View
@@ -89,11 +89,11 @@
if (function_exists('ini_set')) {
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
}
- if (!include ('Cake' . DS . 'bootstrap.php')) {
+ if (!include 'Cake' . DS . 'bootstrap.php') {
$failed = true;
}
} else {
- if (!include (CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
+ if (!include CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php') {
$failed = true;
}
}
View
@@ -79,11 +79,11 @@
if (function_exists('ini_set')) {
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
}
- if (!include ('Cake' . DS . 'bootstrap.php')) {
+ if (!include 'Cake' . DS . 'bootstrap.php') {
$failed = true;
}
} else {
- if (!include (CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
+ if (!include CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php') {
$failed = true;
}
}
@@ -29,7 +29,7 @@
ini_set('include_path', $root . PATH_SEPARATOR . __CAKE_PATH__ . PATH_SEPARATOR . ini_get('include_path'));
}
-if (!include ($dispatcher)) {
+if (!include $dispatcher) {
trigger_error('Could not locate CakePHP core files.', E_USER_ERROR);
}
unset($paths, $path, $dispatcher, $root, $ds);
@@ -80,11 +80,11 @@
if (function_exists('ini_set')) {
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
}
- if (!include ('Cake' . DS . 'bootstrap.php')) {
+ if (!include 'Cake' . DS . 'bootstrap.php') {
$failed = true;
}
} else {
- if (!include (CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
+ if (!include CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php') {
$failed = true;
}
}
@@ -70,11 +70,11 @@
if (function_exists('ini_set')) {
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
}
- if (!include ('Cake' . DS . 'bootstrap.php')) {
+ if (!include 'Cake' . DS . 'bootstrap.php') {
$failed = true;
}
} else {
- if (!include (CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
+ if (!include CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php') {
$failed = true;
}
}
View
@@ -539,7 +539,7 @@ public function renderLayout($content, $layout = null) {
public function renderCache($filename, $timeStart) {
$response = $this->response;
ob_start();
- include ($filename);
+ include $filename;
$type = $response->mapType($response->type());
if (Configure::read('debug') > 0 && $type === 'html') {

0 comments on commit fcb7f86

Please sign in to comment.