Completed
Push — master ( 256a55...3c651b )
by Reginaldo
31:32 queued 13:53
created
lib/Cake/Console/HelpFormatter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 		$parser = $this->_parser;
64 64
 		$out = array();
65 65
 		$description = $parser->description();
66
-		if (!empty($description)) {
66
+		if ( ! empty($description)) {
67 67
 			$out[] = String::wrap($description, $width);
68 68
 			$out[] = '';
69 69
 		}
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 		$out[] = $this->_generateUsage();
72 72
 		$out[] = '';
73 73
 		$subcommands = $parser->subcommands();
74
-		if (!empty($subcommands)) {
74
+		if ( ! empty($subcommands)) {
75 75
 			$out[] = __d('cake_console', '<info>Subcommands:</info>');
76 76
 			$out[] = '';
77 77
 			$max = $this->_getMaxLength($subcommands) + 2;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 		}
89 89
 
90 90
 		$options = $parser->options();
91
-		if (!empty($options)) {
91
+		if ( ! empty($options)) {
92 92
 			$max = $this->_getMaxLength($options) + 8;
93 93
 			$out[] = __d('cake_console', '<info>Options:</info>');
94 94
 			$out[] = '';
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 		}
104 104
 
105 105
 		$arguments = $parser->arguments();
106
-		if (!empty($arguments)) {
106
+		if ( ! empty($arguments)) {
107 107
 			$max = $this->_getMaxLength($arguments) + 2;
108 108
 			$out[] = __d('cake_console', '<info>Arguments:</info>');
109 109
 			$out[] = '';
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 			$out[] = '';
118 118
 		}
119 119
 		$epilog = $parser->epilog();
120
-		if (!empty($epilog)) {
120
+		if ( ! empty($epilog)) {
121 121
 			$out[] = String::wrap($epilog, $width);
122 122
 			$out[] = '';
123 123
 		}
@@ -132,9 +132,9 @@  discard block
 block discarded – undo
132 132
  * @return string
133 133
  */
134 134
 	protected function _generateUsage() {
135
-		$usage = array('cake ' . $this->_parser->command());
135
+		$usage = array('cake '.$this->_parser->command());
136 136
 		$subcommands = $this->_parser->subcommands();
137
-		if (!empty($subcommands)) {
137
+		if ( ! empty($subcommands)) {
138 138
 			$usage[] = '[subcommand]';
139 139
 		}
140 140
 		$options = array();
Please login to merge, or discard this patch.
lib/Cake/Console/ShellDispatcher.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
 			ini_set('max_execution_time', 0);
79 79
 		}
80 80
 
81
-		if (!defined('CAKE_CORE_INCLUDE_PATH')) {
81
+		if ( ! defined('CAKE_CORE_INCLUDE_PATH')) {
82 82
 			define('DS', DIRECTORY_SEPARATOR);
83 83
 			define('CAKE_CORE_INCLUDE_PATH', dirname(dirname(dirname(__FILE__))));
84 84
 			define('CAKEPHP_SHELL', true);
85
-			if (!defined('CORE_PATH')) {
86
-				define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
85
+			if ( ! defined('CORE_PATH')) {
86
+				define('CORE_PATH', CAKE_CORE_INCLUDE_PATH.DS);
87 87
 			}
88 88
 		}
89 89
 	}
@@ -95,15 +95,15 @@  discard block
 block discarded – undo
95 95
  * @throws CakeException
96 96
  */
97 97
 	protected function _initEnvironment() {
98
-		if (!$this->_bootstrap()) {
99
-			$message = "Unable to load CakePHP core.\nMake sure " . DS . 'lib' . DS . 'Cake exists in ' . CAKE_CORE_INCLUDE_PATH;
98
+		if ( ! $this->_bootstrap()) {
99
+			$message = "Unable to load CakePHP core.\nMake sure ".DS.'lib'.DS.'Cake exists in '.CAKE_CORE_INCLUDE_PATH;
100 100
 			throw new CakeException($message);
101 101
 		}
102 102
 
103
-		if (!isset($this->args[0]) || !isset($this->params['working'])) {
104
-			$message = "This file has been loaded incorrectly and cannot continue.\n" .
105
-				"Please make sure that " . DS . 'lib' . DS . 'Cake' . DS . "Console is in your system path,\n" .
106
-				"and check the cookbook for the correct usage of this command.\n" .
103
+		if ( ! isset($this->args[0]) || ! isset($this->params['working'])) {
104
+			$message = "This file has been loaded incorrectly and cannot continue.\n".
105
+				"Please make sure that ".DS.'lib'.DS.'Cake'.DS."Console is in your system path,\n".
106
+				"and check the cookbook for the correct usage of this command.\n".
107 107
 				"(http://book.cakephp.org/)";
108 108
 			throw new CakeException($message);
109 109
 		}
@@ -117,32 +117,32 @@  discard block
 block discarded – undo
117 117
  * @return boolean Success.
118 118
  */
119 119
 	protected function _bootstrap() {
120
-		if (!defined('ROOT')) {
120
+		if ( ! defined('ROOT')) {
121 121
 			define('ROOT', $this->params['root']);
122 122
 		}
123
-		if (!defined('APP_DIR')) {
123
+		if ( ! defined('APP_DIR')) {
124 124
 			define('APP_DIR', $this->params['app']);
125 125
 		}
126
-		if (!defined('APP')) {
127
-			define('APP', $this->params['working'] . DS);
126
+		if ( ! defined('APP')) {
127
+			define('APP', $this->params['working'].DS);
128 128
 		}
129
-		if (!defined('WWW_ROOT')) {
130
-			define('WWW_ROOT', APP . $this->params['webroot'] . DS);
129
+		if ( ! defined('WWW_ROOT')) {
130
+			define('WWW_ROOT', APP.$this->params['webroot'].DS);
131 131
 		}
132
-		if (!defined('TMP') && !is_dir(APP . 'tmp')) {
133
-			define('TMP', CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Console' . DS . 'Templates' . DS . 'skel' . DS . 'tmp' . DS);
132
+		if ( ! defined('TMP') && ! is_dir(APP.'tmp')) {
133
+			define('TMP', CAKE_CORE_INCLUDE_PATH.DS.'Cake'.DS.'Console'.DS.'Templates'.DS.'skel'.DS.'tmp'.DS);
134 134
 		}
135
-		$boot = file_exists(ROOT . DS . APP_DIR . DS . 'Config' . DS . 'bootstrap.php');
136
-		require CORE_PATH . 'Cake' . DS . 'bootstrap.php';
135
+		$boot = file_exists(ROOT.DS.APP_DIR.DS.'Config'.DS.'bootstrap.php');
136
+		require CORE_PATH.'Cake'.DS.'bootstrap.php';
137 137
 
138
-		if (!file_exists(APP . 'Config' . DS . 'core.php')) {
139
-			include_once CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Console' . DS . 'Templates' . DS . 'skel' . DS . 'Config' . DS . 'core.php';
138
+		if ( ! file_exists(APP.'Config'.DS.'core.php')) {
139
+			include_once CAKE_CORE_INCLUDE_PATH.DS.'Cake'.DS.'Console'.DS.'Templates'.DS.'skel'.DS.'Config'.DS.'core.php';
140 140
 			App::build();
141 141
 		}
142 142
 
143 143
 		$this->setErrorHandlers();
144 144
 
145
-		if (!defined('FULL_BASE_URL')) {
145
+		if ( ! defined('FULL_BASE_URL')) {
146 146
 			$url = Configure::read('App.fullBaseUrl');
147 147
 			define('FULL_BASE_URL', $url ? $url : 'http://localhost');
148 148
 			Configure::write('App.fullBaseUrl', FULL_BASE_URL);
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 	public function dispatch() {
187 187
 		$shell = $this->shiftArgs();
188 188
 
189
-		if (!$shell) {
189
+		if ( ! $shell) {
190 190
 			$this->help();
191 191
 			return false;
192 192
 		}
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 		$added = in_array($command, $methods);
211 211
 		$private = $command[0] === '_' && method_exists($Shell, $command);
212 212
 
213
-		if (!$private) {
213
+		if ( ! $private) {
214 214
 			if ($added) {
215 215
 				$this->shiftArgs();
216 216
 				$Shell->startup();
@@ -238,13 +238,13 @@  discard block
 block discarded – undo
238 238
 		list($plugin, $shell) = pluginSplit($shell, true);
239 239
 
240 240
 		$plugin = Inflector::camelize($plugin);
241
-		$class = Inflector::camelize($shell) . 'Shell';
241
+		$class = Inflector::camelize($shell).'Shell';
242 242
 
243 243
 		App::uses('Shell', 'Console');
244 244
 		App::uses('AppShell', 'Console/Command');
245
-		App::uses($class, $plugin . 'Console/Command');
245
+		App::uses($class, $plugin.'Console/Command');
246 246
 
247
-		if (!class_exists($class)) {
247
+		if ( ! class_exists($class)) {
248 248
 			throw new MissingShellException(array(
249 249
 				'class' => $class
250 250
 			));
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 			$params['working'] = trim($params['working']);
284 284
 		}
285 285
 
286
-		if (!empty($params['working']) && (!isset($this->args[0]) || isset($this->args[0]) && $this->args[0][0] !== '.')) {
286
+		if ( ! empty($params['working']) && ( ! isset($this->args[0]) || isset($this->args[0]) && $this->args[0][0] !== '.')) {
287 287
 			if ($params['working'][0] === '.') {
288 288
 				$params['working'] = realpath($params['working']);
289 289
 			}
@@ -298,16 +298,16 @@  discard block
 block discarded – undo
298 298
 		if ($params['app'][0] === '/' || preg_match('/([a-z])(:)/i', $params['app'], $matches)) {
299 299
 			$params['root'] = dirname($params['app']);
300 300
 		} elseif (strpos($params['app'], '/')) {
301
-			$params['root'] .= '/' . dirname($params['app']);
301
+			$params['root'] .= '/'.dirname($params['app']);
302 302
 		}
303 303
 
304 304
 		$params['app'] = basename($params['app']);
305 305
 		$params['working'] = rtrim($params['root'], '/');
306
-		if (!$isWin || !preg_match('/^[A-Z]:$/i', $params['app'])) {
307
-			$params['working'] .= '/' . $params['app'];
306
+		if ( ! $isWin || ! preg_match('/^[A-Z]:$/i', $params['app'])) {
307
+			$params['working'] .= '/'.$params['app'];
308 308
 		}
309 309
 
310
-		if (!empty($matches[0]) || !empty($isWin)) {
310
+		if ( ! empty($matches[0]) || ! empty($isWin)) {
311 311
 			$params = str_replace('/', '\\', $params);
312 312
 		}
313 313
 
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
 	protected function _parsePaths($args) {
324 324
 		$parsed = array();
325 325
 		$keys = array('-working', '--working', '-app', '--app', '-root', '--root');
326
-		$args = (array)$args;
326
+		$args = (array) $args;
327 327
 		foreach ($keys as $key) {
328 328
 			while (($index = array_search($key, $args)) !== false) {
329 329
 				$keyname = str_replace('-', '', $key);
Please login to merge, or discard this patch.
lib/Cake/Console/TaskCollection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,18 +73,18 @@
 block discarded – undo
73 73
 			$task = $settings['className'];
74 74
 		}
75 75
 		list($plugin, $name) = pluginSplit($task, true);
76
-		if (!isset($alias)) {
76
+		if ( ! isset($alias)) {
77 77
 			$alias = $name;
78 78
 		}
79 79
 
80 80
 		if (isset($this->_loaded[$alias])) {
81 81
 			return $this->_loaded[$alias];
82 82
 		}
83
-		$taskClass = $name . 'Task';
84
-		App::uses($taskClass, $plugin . 'Console/Command/Task');
83
+		$taskClass = $name.'Task';
84
+		App::uses($taskClass, $plugin.'Console/Command/Task');
85 85
 
86 86
 		$exists = class_exists($taskClass);
87
-		if (!$exists) {
87
+		if ( ! $exists) {
88 88
 			throw new MissingTaskException(array(
89 89
 				'class' => $taskClass,
90 90
 				'plugin' => substr($plugin, 0, -1)
Please login to merge, or discard this patch.
lib/Cake/Console/Templates/skel/Config/core.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -349,8 +349,8 @@  discard block
 block discarded – undo
349 349
  */
350 350
 Cache::config('_cake_core_', array(
351 351
 	'engine' => $engine,
352
-	'prefix' => $prefix . 'cake_core_',
353
-	'path' => CACHE . 'persistent' . DS,
352
+	'prefix' => $prefix.'cake_core_',
353
+	'path' => CACHE.'persistent'.DS,
354 354
 	'serialize' => ($engine === 'File'),
355 355
 	'duration' => $duration
356 356
 ));
@@ -361,8 +361,8 @@  discard block
 block discarded – undo
361 361
  */
362 362
 Cache::config('_cake_model_', array(
363 363
 	'engine' => $engine,
364
-	'prefix' => $prefix . 'cake_model_',
365
-	'path' => CACHE . 'models' . DS,
364
+	'prefix' => $prefix.'cake_model_',
365
+	'path' => CACHE.'models'.DS,
366 366
 	'serialize' => ($engine === 'File'),
367 367
 	'duration' => $duration
368 368
 ));
Please login to merge, or discard this patch.
lib/Cake/Console/Templates/skel/Config/routes.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,4 +32,4 @@
 block discarded – undo
32 32
  * Load the CakePHP default routes. Only remove this if you do not want to use
33 33
  * the built-in default routes.
34 34
  */
35
-	require CAKE . 'Config' . DS . 'routes.php';
35
+	require CAKE.'Config'.DS.'routes.php';
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
  */
19 19
 	Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
20 20
 /**
21
- * ...and connect the rest of 'Pages' controller's URLs.
22
- */
21
+	 * ...and connect the rest of 'Pages' controller's URLs.
22
+	 */
23 23
 	Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
24 24
 
25 25
 /**
Please login to merge, or discard this patch.
lib/Cake/Console/Templates/skel/Console/cake.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,17 +17,17 @@
 block discarded – undo
17 17
  */
18 18
 
19 19
 $ds = DIRECTORY_SEPARATOR;
20
-$dispatcher = 'Cake' . $ds . 'Console' . $ds . 'ShellDispatcher.php';
20
+$dispatcher = 'Cake'.$ds.'Console'.$ds.'ShellDispatcher.php';
21 21
 
22 22
 if (function_exists('ini_set')) {
23 23
 	$root = dirname(dirname(dirname(__FILE__)));
24 24
 
25 25
 	// the following line differs from its sibling
26 26
 	// /app/Console/cake.php
27
-	ini_set('include_path', $root . PATH_SEPARATOR . __CAKE_PATH__ . PATH_SEPARATOR . ini_get('include_path'));
27
+	ini_set('include_path', $root.PATH_SEPARATOR.__CAKE_PATH__.PATH_SEPARATOR.ini_get('include_path'));
28 28
 }
29 29
 
30
-if (!include $dispatcher) {
30
+if ( ! include $dispatcher) {
31 31
 	trigger_error('Could not locate CakePHP core files.', E_USER_ERROR);
32 32
 }
33 33
 unset($paths, $path, $dispatcher, $root, $ds);
Please login to merge, or discard this patch.
lib/Cake/Console/Templates/skel/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,4 +7,4 @@
 block discarded – undo
7 7
  * @since         CakePHP(tm) v 0.10.0.1076
8 8
  */
9 9
 
10
-require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';
10
+require 'webroot'.DIRECTORY_SEPARATOR.'index.php';
Please login to merge, or discard this patch.
lib/Cake/Console/Templates/skel/webroot/index.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 /**
13 13
  * Use the DS to separate the directories in other defines
14 14
  */
15
-if (!defined('DS')) {
15
+if ( ! defined('DS')) {
16 16
 	define('DS', DIRECTORY_SEPARATOR);
17 17
 }
18 18
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  * The full path to the directory which holds "app", WITHOUT a trailing DS.
27 27
  *
28 28
  */
29
-if (!defined('ROOT')) {
29
+if ( ! defined('ROOT')) {
30 30
 	define('ROOT', dirname(dirname(dirname(__FILE__))));
31 31
 }
32 32
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
  * The actual directory name for the "app".
35 35
  *
36 36
  */
37
-if (!defined('APP_DIR')) {
37
+if ( ! defined('APP_DIR')) {
38 38
 	define('APP_DIR', basename(dirname(dirname(__FILE__))));
39 39
 }
40 40
 
@@ -59,35 +59,35 @@  discard block
 block discarded – undo
59 59
  * Change at your own risk.
60 60
  *
61 61
  */
62
-if (!defined('WEBROOT_DIR')) {
62
+if ( ! defined('WEBROOT_DIR')) {
63 63
 	define('WEBROOT_DIR', basename(dirname(__FILE__)));
64 64
 }
65
-if (!defined('WWW_ROOT')) {
66
-	define('WWW_ROOT', dirname(__FILE__) . DS);
65
+if ( ! defined('WWW_ROOT')) {
66
+	define('WWW_ROOT', dirname(__FILE__).DS);
67 67
 }
68 68
 
69 69
 // for built-in server
70 70
 if (php_sapi_name() === 'cli-server') {
71
-	if ($_SERVER['REQUEST_URI'] !== '/' && file_exists(WWW_ROOT . $_SERVER['PHP_SELF'])) {
71
+	if ($_SERVER['REQUEST_URI'] !== '/' && file_exists(WWW_ROOT.$_SERVER['PHP_SELF'])) {
72 72
 		return false;
73 73
 	}
74
-	$_SERVER['PHP_SELF'] = '/' . basename(__FILE__);
74
+	$_SERVER['PHP_SELF'] = '/'.basename(__FILE__);
75 75
 }
76 76
 
77
-if (!defined('CAKE_CORE_INCLUDE_PATH')) {
77
+if ( ! defined('CAKE_CORE_INCLUDE_PATH')) {
78 78
 	if (function_exists('ini_set')) {
79
-		ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
79
+		ini_set('include_path', ROOT.DS.'lib'.PATH_SEPARATOR.ini_get('include_path'));
80 80
 	}
81
-	if (!include 'Cake' . DS . 'bootstrap.php') {
81
+	if ( ! include 'Cake'.DS.'bootstrap.php') {
82 82
 		$failed = true;
83 83
 	}
84 84
 } else {
85
-	if (!include CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php') {
85
+	if ( ! include CAKE_CORE_INCLUDE_PATH.DS.'Cake'.DS.'bootstrap.php') {
86 86
 		$failed = true;
87 87
 	}
88 88
 }
89
-if (!empty($failed)) {
90
-	trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
89
+if ( ! empty($failed)) {
90
+	trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your ".DS."cake core directory and your ".DS."vendors root directory.", E_USER_ERROR);
91 91
 }
92 92
 
93 93
 App::uses('Dispatcher', 'Routing');
Please login to merge, or discard this patch.
lib/Cake/Console/Templates/skel/webroot/test.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 /**
14 14
  * Use the DS to separate the directories in other defines
15 15
  */
16
-if (!defined('DS')) {
16
+if ( ! defined('DS')) {
17 17
 	define('DS', DIRECTORY_SEPARATOR);
18 18
 }
19 19
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
  * The full path to the directory which holds "app", WITHOUT a trailing DS.
28 28
  *
29 29
  */
30
-if (!defined('ROOT')) {
30
+if ( ! defined('ROOT')) {
31 31
 	define('ROOT', dirname(dirname(dirname(__FILE__))));
32 32
 }
33 33
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
  * The actual directory name for the "app".
36 36
  *
37 37
  */
38
-if (!defined('APP_DIR')) {
38
+if ( ! defined('APP_DIR')) {
39 39
 	define('APP_DIR', basename(dirname(dirname(__FILE__))));
40 40
 }
41 41
 
@@ -57,33 +57,33 @@  discard block
 block discarded – undo
57 57
  * Change at your own risk.
58 58
  *
59 59
  */
60
-if (!defined('WEBROOT_DIR')) {
60
+if ( ! defined('WEBROOT_DIR')) {
61 61
 	define('WEBROOT_DIR', basename(dirname(__FILE__)));
62 62
 }
63
-if (!defined('WWW_ROOT')) {
64
-	define('WWW_ROOT', dirname(__FILE__) . DS);
63
+if ( ! defined('WWW_ROOT')) {
64
+	define('WWW_ROOT', dirname(__FILE__).DS);
65 65
 }
66 66
 
67
-if (!defined('CAKE_CORE_INCLUDE_PATH')) {
67
+if ( ! defined('CAKE_CORE_INCLUDE_PATH')) {
68 68
 	if (function_exists('ini_set')) {
69
-		ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
69
+		ini_set('include_path', ROOT.DS.'lib'.PATH_SEPARATOR.ini_get('include_path'));
70 70
 	}
71
-	if (!include 'Cake' . DS . 'bootstrap.php') {
71
+	if ( ! include 'Cake'.DS.'bootstrap.php') {
72 72
 		$failed = true;
73 73
 	}
74 74
 } else {
75
-	if (!include CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php') {
75
+	if ( ! include CAKE_CORE_INCLUDE_PATH.DS.'Cake'.DS.'bootstrap.php') {
76 76
 		$failed = true;
77 77
 	}
78 78
 }
79
-if (!empty($failed)) {
80
-	trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
79
+if ( ! empty($failed)) {
80
+	trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your ".DS."cake core directory and your ".DS."vendors root directory.", E_USER_ERROR);
81 81
 }
82 82
 
83 83
 if (Configure::read('debug') < 1) {
84 84
 	throw new NotFoundException(__d('cake_dev', 'Debug setting does not allow access to this URL.'));
85 85
 }
86 86
 
87
-require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php';
87
+require_once CAKE.'TestSuite'.DS.'CakeTestSuiteDispatcher.php';
88 88
 
89 89
 CakeTestSuiteDispatcher::run();
Please login to merge, or discard this patch.