136136 *
137137 * Note that key is ignored, because actual field name is part of criteria and/or expression.
138138 */
139-
140139class Doctrine2 extends CodeceptionModule implements DependsOnModule, DataMapper
141140{
142141
@@ -515,7 +514,7 @@ public function haveInRepository($classNameOrInstance, array $data = [])
515514 private function instantiateAndPopulateEntity (string $ className , array $ data , array &$ instances )
516515 {
517516 $ rpa = new ReflectionPropertyAccessor ();
518- [$ scalars ,$ relations ] = $ this ->splitScalarsAndRelations ($ className , $ data );
517+ [$ scalars , $ relations ] = $ this ->splitScalarsAndRelations ($ className , $ data );
519518 // Pass relations that are already objects to the constructor, too
520519 $ properties = array_merge (
521520 $ scalars ,
@@ -880,11 +879,11 @@ protected function proceedSeeInRepository(string $entity, array $params = []): a
880879 * $email = $I->grabFromRepository(User::class, 'email', ['name' => 'davert']);
881880 * ```
882881 *
883- * @version 1.1
884882 * @param class-string $entity
885883 * @param string $field
886884 * @param array $params
887885 * @return mixed
886+ * @version 1.1
888887 */
889888 public function grabFromRepository (string $ entity , string $ field , array $ params = [])
890889 {
@@ -911,7 +910,7 @@ public function grabFromRepository(string $entity, string $field, array $params
911910 *
912911 * @template T
913912 * @param class-string<T> $entity
914- * @param array $params. For `IS NULL`, use `['field' => null]`
913+ * @param array $params . For `IS NULL`, use `['field' => null]`
915914 * @return list<T>
916915 * @version 1.1
917916 */
@@ -941,7 +940,7 @@ public function grabEntitiesFromRepository(string $entity, array $params = []):
941940 *
942941 * @template T
943942 * @param class-string<T> $entity
944- * @param array $params. For `IS NULL`, use `['field' => null]`
943+ * @param array $params . For `IS NULL`, use `['field' => null]`
945944 * @return T
946945 * @version 1.1
947946 */
@@ -1004,7 +1003,7 @@ public function _getEntityManager(): EntityManagerInterface
10041003 */
10051004 private function debugEntityCreation (object $ instance , $ pks ): void
10061005 {
1007- $ message = get_class ($ instance ). ' entity created with ' ;
1006+ $ message = get_class ($ instance ) . ' entity created with ' ;
10081007
10091008 if (!is_array ($ pks )) {
10101009 $ pks = [$ pks ];
@@ -1015,9 +1014,9 @@ private function debugEntityCreation(object $instance, $pks): void
10151014
10161015 foreach ($ pks as $ pk ) {
10171016 if ($ this ->isDoctrineEntity ($ pk )) {
1018- $ message .= get_class ($ pk ). ': ' . var_export ($ this ->extractPrimaryKey ($ pk ), true ). ', ' ;
1017+ $ message .= get_class ($ pk ) . ': ' . var_export ($ this ->extractPrimaryKey ($ pk ), true ) . ', ' ;
10191018 } else {
1020- $ message .= var_export ($ pk , true ). ', ' ;
1019+ $ message .= var_export ($ pk , true ) . ', ' ;
10211020 }
10221021 }
10231022
0 commit comments