@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | public static function install($app = 'application') |
| 23 | 23 | { |
| 24 | 24 | self::recursiveCopy( |
| 25 | - dirname(__FILE__) . '/application/tests', |
|
| 26 | - $app . '/' . static::TEST_FOLDER |
|
| 25 | + dirname(__FILE__).'/application/tests', |
|
| 26 | + $app.'/'.static::TEST_FOLDER |
|
| 27 | 27 | ); |
| 28 | 28 | self::fixPath($app); |
| 29 | 29 | } |
@@ -33,10 +33,10 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | private static function fixPath($app = 'application') |
| 35 | 35 | { |
| 36 | - $file = $app . '/' . static::TEST_FOLDER . '/Bootstrap.php'; |
|
| 36 | + $file = $app.'/'.static::TEST_FOLDER.'/Bootstrap.php'; |
|
| 37 | 37 | $contents = file_get_contents($file); |
| 38 | 38 | |
| 39 | - if (! file_exists('system')) { |
|
| 39 | + if ( ! file_exists('system')) { |
|
| 40 | 40 | if (file_exists('vendor/codeigniter/framework/system')) { |
| 41 | 41 | $contents = str_replace( |
| 42 | 42 | '$system_path = \'../../system\';', |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - if (! file_exists('index.php')) { |
|
| 51 | + if ( ! file_exists('index.php')) { |
|
| 52 | 52 | if (file_exists('public/index.php')) { |
| 53 | 53 | // CodeIgniter 3.0.6 and after |
| 54 | 54 | $contents = str_replace( |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | "define('FCPATH', realpath(dirname(__FILE__).'/../../public').'/');", |
| 63 | 63 | $contents |
| 64 | 64 | ); |
| 65 | - } elseif (file_exists($app . '/public/index.php')) { |
|
| 65 | + } elseif (file_exists($app.'/public/index.php')) { |
|
| 66 | 66 | // CodeIgniter 3.0.6 and after |
| 67 | 67 | $contents = str_replace( |
| 68 | 68 | "define('FCPATH', realpath(dirname(__FILE__).'/../..').DIRECTORY_SEPARATOR);", |
@@ -92,10 +92,10 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | public static function update($app = 'application') |
| 94 | 94 | { |
| 95 | - $target_dir = $app . '/' . static::TEST_FOLDER . '/_ci_phpunit_test'; |
|
| 95 | + $target_dir = $app.'/'.static::TEST_FOLDER.'/_ci_phpunit_test'; |
|
| 96 | 96 | self::recursiveUnlink($target_dir); |
| 97 | 97 | self::recursiveCopy( |
| 98 | - dirname(__FILE__) . '/application/tests/_ci_phpunit_test', |
|
| 98 | + dirname(__FILE__).'/application/tests/_ci_phpunit_test', |
|
| 99 | 99 | $target_dir |
| 100 | 100 | ); |
| 101 | 101 | } |
@@ -117,12 +117,12 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | foreach ($iterator as $file) { |
| 119 | 119 | if ($file->isDir()) { |
| 120 | - @mkdir($dst . '/' . $iterator->getSubPathName()); |
|
| 120 | + @mkdir($dst.'/'.$iterator->getSubPathName()); |
|
| 121 | 121 | } else { |
| 122 | - $success = copy($file, $dst . '/' . $iterator->getSubPathName()); |
|
| 122 | + $success = copy($file, $dst.'/'.$iterator->getSubPathName()); |
|
| 123 | 123 | if ($success) { |
| 124 | - if (! $this->silent) { |
|
| 125 | - echo 'copied: ' . $dst . '/' . $iterator->getSubPathName() . PHP_EOL; |
|
| 124 | + if ( ! $this->silent) { |
|
| 125 | + echo 'copied: '.$dst.'/'.$iterator->getSubPathName().PHP_EOL; |
|
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | 128 | } |