Browse Source

Inline check.

This variable is never re-used.
Mark Story 8 years ago
parent
commit
7b96d7250d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Datasource/EntityTrait.php

+ 1 - 2
src/Datasource/EntityTrait.php

@@ -227,8 +227,7 @@ trait EntityTrait
      */
     public function set($property, $value = null, array $options = [])
     {
-        $isString = is_string($property);
-        if ($isString && $property !== '') {
+        if (is_string($property) && $property !== '') {
             $guard = false;
             $property = [$property => $value];
         } else {