Skip to content

Commit e27a986

Browse files
committed
Code cleanup
1 parent 9a7b262 commit e27a986

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/PHPFUI/MySQLSlowQuery/BaseObject.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,11 @@ abstract public function __construct(array $paramters = []);
1313
*/
1414
public function __get(string $field)
1515
{
16-
17-
18-
if (! \array_key_exists($field, $this->fields))
16+
if (! \array_key_exists($field, $this->fields))
1917
{
2018
throw new Exception\Get("{$field} is not a valid field for " . static::class);
2119
}
2220

23-
24-
25-
2621
return $this->fields[$field];
2722
}
2823

src/PHPFUI/MySQLSlowQuery/Parser.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,7 @@ private function parse() : void
179179

180180
break;
181181
}
182-
183-
184-
$query[] = \trim($line);
185-
182+
$query[] = \trim($line);
186183
}
187184

188185
if (\strlen($line) && '#' === $line[0])

0 commit comments

Comments
 (0)