@@ -119,13 +119,13 @@ discard block |
||
119 | 119 | public function setFields(array $fields) |
120 | 120 | { |
121 | 121 | if (0 == count($fields)) { |
122 | - $msg = 'Fields array must not be empty for '.$this->getClassName(); |
|
122 | + $msg = 'Fields array must not be empty for ' . $this->getClassName(); |
|
123 | 123 | throw new \Exception($msg); |
124 | 124 | } |
125 | 125 | $keys = []; |
126 | 126 | foreach ($fields as $propName => $field) { |
127 | 127 | if (!$field instanceof EntityField) { |
128 | - $msg = 'Fields array must only have EntityField objects for '.$this->getClassName(); |
|
128 | + $msg = 'Fields array must only have EntityField objects for ' . $this->getClassName(); |
|
129 | 129 | throw new \Exception($msg); |
130 | 130 | } |
131 | 131 | if ($field->getIsKeyField()) { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | } |
135 | 135 | if (0 == count($keys)) { |
136 | - $msg = 'No key field supplied in fields array for '.$this->getClassName(); |
|
136 | + $msg = 'No key field supplied in fields array for ' . $this->getClassName(); |
|
137 | 137 | throw new \Exception($msg); |
138 | 138 | } |
139 | 139 | $this->fields = $fields; |