Skip to content

Commit

Permalink
fix some introspections, coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
havvg committed Apr 9, 2013
1 parent 11a8504 commit fbc1b3a
Show file tree
Hide file tree
Showing 194 changed files with 7,529 additions and 5,934 deletions.
7 changes: 4 additions & 3 deletions generator/bin/phing.php
Expand Up @@ -5,6 +5,7 @@
* This is the Phing command line launcher. It starts up the system environment
* tests for all important paths and properties and kicks of the main command-
* line entry point of phing located in phing.Phing
*
* @version $Revision: 552 $
*/

Expand All @@ -15,7 +16,7 @@
$autoloaded = false;
foreach (array($dirname . '/../../', $dirname . '/../../../../../') as $dir) {
if (file_exists($file = realpath($dir) . '/vendor/autoload.php')) {
set_include_path($dir . '/vendor/phing/phing/classes' . PATH_SEPARATOR . get_include_path() );
set_include_path($dir . '/vendor/phing/phing/classes' . PATH_SEPARATOR . get_include_path());
include_once $file;

$autoloaded = true;
Expand All @@ -26,12 +27,12 @@
/* set classpath */
if (getenv('PHP_CLASSPATH')) {
if (!defined('PHP_CLASSPATH')) {
define('PHP_CLASSPATH', getenv('PHP_CLASSPATH') . PATH_SEPARATOR . get_include_path());
define('PHP_CLASSPATH', getenv('PHP_CLASSPATH') . PATH_SEPARATOR . get_include_path());
}
ini_set('include_path', PHP_CLASSPATH);
} else {
if (!defined('PHP_CLASSPATH')) {
define('PHP_CLASSPATH', get_include_path());
define('PHP_CLASSPATH', get_include_path());
}
}

Expand Down

0 comments on commit fbc1b3a

Please sign in to comment.