@@ -1452,25 +1452,25 @@ protected function _junctionTableName(?string $name = null): string
1452
1452
/**
1453
1453
* Parse extra options passed in the constructor.
1454
1454
*
1455
- * @param array $opts original list of options passed in constructor
1455
+ * @param array $options original list of options passed in constructor
1456
1456
* @return void
1457
1457
*/
1458
- protected function _options (array $ opts ): void
1458
+ protected function _options (array $ options ): void
1459
1459
{
1460
- if (!empty ($ opts ['targetForeignKey ' ])) {
1461
- $ this ->setTargetForeignKey ($ opts ['targetForeignKey ' ]);
1460
+ if (!empty ($ options ['targetForeignKey ' ])) {
1461
+ $ this ->setTargetForeignKey ($ options ['targetForeignKey ' ]);
1462
1462
}
1463
- if (!empty ($ opts ['joinTable ' ])) {
1464
- $ this ->_junctionTableName ($ opts ['joinTable ' ]);
1463
+ if (!empty ($ options ['joinTable ' ])) {
1464
+ $ this ->_junctionTableName ($ options ['joinTable ' ]);
1465
1465
}
1466
- if (!empty ($ opts ['through ' ])) {
1467
- $ this ->setThrough ($ opts ['through ' ]);
1466
+ if (!empty ($ options ['through ' ])) {
1467
+ $ this ->setThrough ($ options ['through ' ]);
1468
1468
}
1469
- if (!empty ($ opts ['saveStrategy ' ])) {
1470
- $ this ->setSaveStrategy ($ opts ['saveStrategy ' ]);
1469
+ if (!empty ($ options ['saveStrategy ' ])) {
1470
+ $ this ->setSaveStrategy ($ options ['saveStrategy ' ]);
1471
1471
}
1472
- if (isset ($ opts ['sort ' ])) {
1473
- $ this ->setSort ($ opts ['sort ' ]);
1472
+ if (isset ($ options ['sort ' ])) {
1473
+ $ this ->setSort ($ options ['sort ' ]);
1474
1474
}
1475
1475
}
1476
1476
}
0 commit comments