@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ->where('id = :id', [':id' => $clientKey]) |
85 | 85 | ->one($this->db); |
86 | 86 | if ($entity !== false) { |
87 | - throw new DuplicateKeyException('Duplicate key "' . $clientKey . '"'); |
|
87 | + throw new DuplicateKeyException('Duplicate key "'.$clientKey.'"'); |
|
88 | 88 | } |
89 | 89 | $values = $client->getDirtyAttributes($attributes); |
90 | 90 | $clientParameters = []; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | ->where('id = :id', [':id' => $values[$modelKey]]) |
163 | 163 | ->one($this->db); |
164 | 164 | if ($entity !== false) { |
165 | - throw new DuplicateKeyException('Duplicate key "' . $values[$modelKey] . '"'); |
|
165 | + throw new DuplicateKeyException('Duplicate key "'.$values[$modelKey].'"'); |
|
166 | 166 | } |
167 | 167 | } |
168 | 168 | $clientKey = isset($values[$modelKey]) ? $values[$modelKey] : $client->getKey(); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | ->where('id = :id', [':id' => $authCodeKey]) |
72 | 72 | ->one($this->db); |
73 | 73 | if ($entity !== false) { |
74 | - throw new DuplicateKeyException('Duplicate key "' . $authCodeKey . '"'); |
|
74 | + throw new DuplicateKeyException('Duplicate key "'.$authCodeKey.'"'); |
|
75 | 75 | } |
76 | 76 | $values = $authCode->getDirtyAttributes($attributes); |
77 | 77 | $authCodeParameters = []; |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | ->where('id = :id', [':id' => $values[$modelKey]]) |
138 | 138 | ->one($this->db); |
139 | 139 | if ($entity !== false) { |
140 | - throw new DuplicateKeyException('Duplicate key "' . $values[$modelKey] . '"'); |
|
140 | + throw new DuplicateKeyException('Duplicate key "'.$values[$modelKey].'"'); |
|
141 | 141 | } |
142 | 142 | } |
143 | 143 | $authCodeKey = isset($values[$modelKey]) ? $values[$modelKey] : $authCode->getKey(); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | ->where('id = :id', [':id' => $scope->id]) |
73 | 73 | ->one($this->db); |
74 | 74 | if ($entity !== false) { |
75 | - throw new DuplicateKeyException('Duplicate key "' . $scope->id . '"'); |
|
75 | + throw new DuplicateKeyException('Duplicate key "'.$scope->id.'"'); |
|
76 | 76 | } |
77 | 77 | $values = $scope->getDirtyAttributes($attributes); |
78 | 78 | $scopeParameters = []; |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | ->where('id = :id', [':id' => $values[$modelKey]]) |
127 | 127 | ->one($this->db); |
128 | 128 | if ($entity !== false) { |
129 | - throw new DuplicateKeyException('Duplicate key "' . $values[$modelKey] . '"'); |
|
129 | + throw new DuplicateKeyException('Duplicate key "'.$values[$modelKey].'"'); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 | $scopeKey = isset($values[$modelKey]) ? $values[$modelKey] : $scope->getKey(); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | ->where('id = :id', [':id' => $cypherKeyKey]) |
67 | 67 | ->one($this->db); |
68 | 68 | if ($entity !== false) { |
69 | - throw new DuplicateKeyException('Duplicate key "' . $cypherKeyKey . '"'); |
|
69 | + throw new DuplicateKeyException('Duplicate key "'.$cypherKeyKey.'"'); |
|
70 | 70 | } |
71 | 71 | $values = $cypherKey->getDirtyAttributes($attributes); |
72 | 72 | $cypherKeyParameters = []; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | ->where('id = :id', [':id' => $values[$modelKey]]) |
121 | 121 | ->one($this->db); |
122 | 122 | if ($entity !== false) { |
123 | - throw new DuplicateKeyException('Duplicate key "' . $values[$modelKey] . '"'); |
|
123 | + throw new DuplicateKeyException('Duplicate key "'.$values[$modelKey].'"'); |
|
124 | 124 | } |
125 | 125 | } |
126 | 126 | $cypherKeyKey = isset($values[$modelKey]) ? $values[$modelKey] : $cypherKey->getKey(); |