Skip to content

Commit 1772813

Browse files
committed
Code and comment enhancements.
1 parent dc5fb76 commit 1772813

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MySqlFix.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public static function fixTableComments($theSourceCode)
180180
$level = 0;
181181
foreach ($source_lines as $i => $line)
182182
{
183-
if ($table_name)
183+
if (isset($table_name))
184184
{
185185
if (preg_match('/\)|\(/', $source_lines[$i], $matches))
186186
{
@@ -247,7 +247,7 @@ public static function fixTableComments($theSourceCode)
247247
*
248248
* @return string
249249
*/
250-
static protected function escapeMysqlString($unescaped_string)
250+
protected static function escapeMysqlString($unescaped_string)
251251
{
252252
// We prefer to use mysqli::escape_string but this method requires a connection. Since ERD Concepts generates
253253
// SQL code in UTF-8 and $unescaped_string is not user input (from the evil internet) we can safely use addslashes.

0 commit comments

Comments
 (0)