Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix coding standards

  • Loading branch information...
commit ee4a116936efe6c015ecd69cd55885ce8fbdf7f8 1 parent a7c7519
@ADmad ADmad authored
View
4 app/webroot/index.php
@@ -88,11 +88,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
4 app/webroot/test.php
@@ -77,11 +77,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
2  lib/Cake/Console/Templates/skel/Console/cake.php
@@ -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);
View
4 lib/Cake/Console/Templates/skel/webroot/index.php
@@ -88,11 +88,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
4 lib/Cake/Console/Templates/skel/webroot/test.php
@@ -77,11 +77,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;
}
}

3 comments on commit ee4a116

@dereuromark
Collaborator

Those changes can then be reverted again with cakephp/cakephp-codesniffer@469b0b6

@ADmad
Collaborator

First a new pear release will need to be done for the codesniffer.

@markstory
Owner

I want to fix a few more issues before making a new release.

Please sign in to comment.
Something went wrong with that request. Please try again.