mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #335 from rchavik/remove-timestamp-lines
Removing timestamp lines from generated files
This commit is contained in:
commit
8dd9846676
4 changed files with 2 additions and 6 deletions
|
@ -218,8 +218,7 @@ class SchemaShell extends Shell {
|
|||
}
|
||||
}
|
||||
$db = ConnectionManager::getDataSource($this->Schema->connection);
|
||||
$contents = "#" . $Schema->name . " sql generated on: " . date('Y-m-d H:i:s') . " : " . time() . "\n\n";
|
||||
$contents .= $db->dropSchema($Schema) . "\n\n". $db->createSchema($Schema);
|
||||
$contents = "\n\n" . $db->dropSchema($Schema) . "\n\n". $db->createSchema($Schema);
|
||||
|
||||
if ($write) {
|
||||
if (strpos($write, '.sql') === false) {
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
*/
|
||||
?>
|
||||
<?php echo '<?php' . "\n"; ?>
|
||||
/* <?php echo $model; ?> Fixture generated on: <?php echo date('Y-m-d H:i:s') . " : ". time(); ?> */
|
||||
|
||||
/**
|
||||
* <?php echo $model; ?>Fixture
|
||||
*
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
echo "<?php\n";
|
||||
echo "/* ". $className ." Test cases generated on: " . date('Y-m-d H:i:s') . " : ". time() . "*/\n";
|
||||
?>
|
||||
App::uses('<?php echo $fullClassName; ?>', '<?php echo $realType; ?>');
|
||||
|
||||
|
|
|
@ -379,7 +379,7 @@ class CakeSchema extends Object {
|
|||
$out .= "}\n";
|
||||
|
||||
$file = new SplFileObject($path . DS . $file, 'w+');
|
||||
$content = "<?php \n/* {$name} schema generated on: " . date('Y-m-d H:i:s') . " : ". time() . "*/\n{$out}?>";
|
||||
$content = "<?php\n{$out}";
|
||||
if ($file->fwrite($content)) {
|
||||
return $content;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue