File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -211,14 +211,6 @@ public function equals(Definition $definition)
211
211
return false ;
212
212
}
213
213
214
- if (count ($ this ->name ) !== count ($ definition ->name )) {
215
- return false ;
216
- }
217
-
218
- if (count ($ this ->description ) !== count ($ definition ->description )) {
219
- return false ;
220
- }
221
-
222
214
if (null !== $ this ->name xor null !== $ definition ->name ) {
223
215
return false ;
224
216
}
@@ -228,6 +220,10 @@ public function equals(Definition $definition)
228
220
}
229
221
230
222
if (null !== $ this ->name ) {
223
+ if (count ($ this ->name ) !== count ($ definition ->name )) {
224
+ return false ;
225
+ }
226
+
231
227
foreach ($ this ->name as $ language => $ value ) {
232
228
if (!isset ($ definition ->name [$ language ])) {
233
229
return false ;
@@ -240,6 +236,10 @@ public function equals(Definition $definition)
240
236
}
241
237
242
238
if (null !== $ this ->description ) {
239
+ if (count ($ this ->description ) !== count ($ definition ->description )) {
240
+ return false ;
241
+ }
242
+
243
243
foreach ($ this ->description as $ language => $ value ) {
244
244
if (!isset ($ definition ->description [$ language ])) {
245
245
return false ;
You can’t perform that action at this time.
0 commit comments