Skip to content

Commit 8282c7d

Browse files
committed
remove timestamp to avoid unnecessary diffs
1 parent bf6fcc0 commit 8282c7d

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

examples/docs/generator/generate.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@
115115

116116
// Generate Stub Class
117117
if(file_exists($fullpath) === false) {
118-
$search = ['%__NAMESPACE__%', '%__CLASSNAME__%', '%__TIMESTAMP__%', '%__ASCIIDOC__%'];
119-
$replace = [$namespace, $filename, date('Y-m-d H:i:s'), $key];
118+
$search = ['%__NAMESPACE__%', '%__CLASSNAME__%', '%__ASCIIDOC__%'];
119+
$replace = [$namespace, $filename, $key];
120120
$skel = file_get_contents('./skeletons/class.skel');
121121
$class = str_replace($search, $replace, $skel);
122122

@@ -148,8 +148,8 @@
148148
}
149149
}
150150

151-
$search = ['%__TAG__%', '%__LINE__%', '%__TIMESTAMP__%', '%__METHOD_NAME__%', '%__CURL_EXAMPLE__%', '%__CURL_STRING__%'];
152-
$replace = [$example['hash'], $example['line_no'], date('Y-m-d H:i:s'), $methodName, $curlExample, $curlString];
151+
$search = ['%__TAG__%', '%__LINE__%', '%__METHOD_NAME__%', '%__CURL_EXAMPLE__%', '%__CURL_STRING__%'];
152+
$replace = [$example['hash'], $example['line_no'], $methodName, $curlExample, $curlString];
153153
$skel = file_get_contents('./skeletons/method.skel');
154154
$method = str_replace($search, $replace, $skel);
155155
$class = str_replace('// %__METHOD__%', $method, $class);

examples/docs/generator/skeletons/class.skel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ use Elasticsearch\Examples\Docs\Testers\SimpleExamplesTester;
1212
*
1313
* Class: %__CLASSNAME__%
1414
*
15-
* Date: %__TIMESTAMP__%
16-
*
1715
* @source %__ASCIIDOC__%
1816
* @category Elasticsearch\Examples\Docs
1917
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2

examples/docs/generator/skeletons/method.skel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/**
22
* Tag: %__TAG__%
33
* Line: %__LINE__%
4-
* Date: %__TIMESTAMP__%
54
*/
65
public function %__METHOD_NAME__%()
76
{

0 commit comments

Comments
 (0)