File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
6
6
use Illuminate \Console \Command ;
7
-
7
+ use Illuminate \ Support \ Str ;
8
8
/**
9
9
* There is an international date format Y-m-d that is supposed to be universal, however the MSSQL implementation is flawed
10
10
* and is not universal and incorrect interprets it as Y-d-m which is beyond idiotic.
@@ -65,17 +65,17 @@ public function handle()
65
65
{
66
66
$ filetocheck = base_path ('vendor\laravel\framework\src\Illuminate\Database\Query\Grammars\SqlServerGrammar.php ' );
67
67
if (file_exists ($ filetocheck )){
68
- $ file_txt = Str (file_get_contents ($ filetocheck ));
68
+ $ file_txt = Str:: of (file_get_contents ($ filetocheck ));
69
69
$ datestr = 'return \'Y-m-d H:i:s.v \'; ' ;
70
70
if ($ file_txt ->contains ($ datestr )){
71
71
if ($ this ->option ('update ' )){
72
72
$ UpdatedFile_txt = $ file_txt ->replace ($ datestr , 'return \'Ymd H:i:s.v \'; ' );
73
73
file_put_contents ($ filetocheck ,$ UpdatedFile_txt );
74
74
75
75
$ this ->comment ("
76
- **********************************
76
+ **********************************
77
77
Incorrect Date Format value found
78
- **********************************
78
+ **********************************
79
79
File on disk: $ filetocheck " );
80
80
$ this ->info ('
81
81
------------------
You can’t perform that action at this time.
0 commit comments