@@ -130,7 +130,4 @@ |
||
130 | 130 | throw new Exception($label . ' can not be empty'); |
131 | 131 | } |
132 | 132 | |
133 | - return $string; |
|
134 | - }; |
|
135 | - } |
|
136 | -} |
|
133 | + return $string |
|
137 | 134 | \ No newline at end of file |
@@ -130,7 +130,4 @@ |
||
130 | 130 | throw new Exception($label . ' can not be empty'); |
131 | 131 | } |
132 | 132 | |
133 | - return $string; |
|
134 | - }; |
|
135 | - } |
|
136 | -} |
|
133 | + return $string |
|
137 | 134 | \ No newline at end of file |
@@ -130,7 +130,4 @@ |
||
130 | 130 | throw new Exception($label . ' can not be empty'); |
131 | 131 | } |
132 | 132 | |
133 | - return $string; |
|
134 | - }; |
|
135 | - } |
|
136 | -} |
|
133 | + return $string |
|
137 | 134 | \ No newline at end of file |
@@ -130,7 +130,4 @@ |
||
130 | 130 | throw new Exception($label . ' can not be empty'); |
131 | 131 | } |
132 | 132 | |
133 | - return $string; |
|
134 | - }; |
|
135 | - } |
|
136 | -} |
|
133 | + return $string |
|
137 | 134 | \ No newline at end of file |
@@ -130,7 +130,4 @@ |
||
130 | 130 | throw new Exception($label . ' can not be empty'); |
131 | 131 | } |
132 | 132 | |
133 | - return $string; |
|
134 | - }; |
|
135 | - } |
|
136 | -} |
|
133 | + return $string |
|
137 | 134 | \ No newline at end of file |
@@ -60,7 +60,7 @@ |
||
60 | 60 | // (o.publishedResource = :id OR o.id = :id) ORDER BY o.publishedResource IS NULL LIMIT 1 |
61 | 61 | $criteriaReset = false; |
62 | 62 | foreach ($identifiers as $identifier => $value) { |
63 | - $predicates = $queryBuilder->expr()->orX($queryBuilder->expr()->eq("$alias.$configuration->associationName", ":id_$identifier"), $queryBuilder->expr()->eq("$alias.$identifier", ":id_$identifier"), ); |
|
63 | + $predicates = $queryBuilder->expr()->orX($queryBuilder->expr()->eq("$alias.$configuration->associationName", ":id_$identifier"), $queryBuilder->expr()->eq("$alias.$identifier", ":id_$identifier"),); |
|
64 | 64 | |
65 | 65 | // Reset queryBuilder to prevent an invalid DQL |
66 | 66 | if (!$criteriaReset) { |
@@ -138,8 +138,7 @@ |
||
138 | 138 | $request = $requestStack->getMasterRequest(); |
139 | 139 | |
140 | 140 | $path = ($request && $this->redirectPathQueryKey) ? |
141 | - $request->query->get($this->redirectPathQueryKey, $this->defaultRedirectPath) : |
|
142 | - $this->defaultRedirectPath; |
|
141 | + $request->query->get($this->redirectPathQueryKey, $this->defaultRedirectPath) : $this->defaultRedirectPath; |
|
143 | 142 | |
144 | 143 | if (null === $path) { |
145 | 144 | throw new UnexpectedValueException(sprintf('The querystring key `%s` could not be found in the request to generate a token URL', $this->redirectPathQueryKey)); |
@@ -70,9 +70,4 @@ |
||
70 | 70 | $output->writeln(sprintf('RefreshTokens for user <comment>%s</comment> successfully expired.', $username)); |
71 | 71 | } else { |
72 | 72 | $this->storage->expireAll(null); |
73 | - $output->writeln('RefreshTokens for all users successfully expired.'); |
|
74 | - } |
|
75 | - |
|
76 | - return 0; |
|
77 | - } |
|
78 | -} |
|
73 | + $output->writeln |
|
79 | 74 | \ No newline at end of file |
@@ -70,9 +70,4 @@ |
||
70 | 70 | $output->writeln(sprintf('RefreshTokens for user <comment>%s</comment> successfully expired.', $username)); |
71 | 71 | } else { |
72 | 72 | $this->storage->expireAll(null); |
73 | - $output->writeln('RefreshTokens for all users successfully expired.'); |
|
74 | - } |
|
75 | - |
|
76 | - return 0; |
|
77 | - } |
|
78 | -} |
|
73 | + $output->writeln |
|
79 | 74 | \ No newline at end of file |
@@ -70,9 +70,4 @@ |
||
70 | 70 | $output->writeln(sprintf('RefreshTokens for user <comment>%s</comment> successfully expired.', $username)); |
71 | 71 | } else { |
72 | 72 | $this->storage->expireAll(null); |
73 | - $output->writeln('RefreshTokens for all users successfully expired.'); |
|
74 | - } |
|
75 | - |
|
76 | - return 0; |
|
77 | - } |
|
78 | -} |
|
73 | + $output->writeln |
|
79 | 74 | \ No newline at end of file |
@@ -70,9 +70,4 @@ |
||
70 | 70 | $output->writeln(sprintf('RefreshTokens for user <comment>%s</comment> successfully expired.', $username)); |
71 | 71 | } else { |
72 | 72 | $this->storage->expireAll(null); |
73 | - $output->writeln('RefreshTokens for all users successfully expired.'); |
|
74 | - } |
|
75 | - |
|
76 | - return 0; |
|
77 | - } |
|
78 | -} |
|
73 | + $output->writeln |
|
79 | 74 | \ No newline at end of file |
@@ -70,9 +70,4 @@ |
||
70 | 70 | $output->writeln(sprintf('RefreshTokens for user <comment>%s</comment> successfully expired.', $username)); |
71 | 71 | } else { |
72 | 72 | $this->storage->expireAll(null); |
73 | - $output->writeln('RefreshTokens for all users successfully expired.'); |
|
74 | - } |
|
75 | - |
|
76 | - return 0; |
|
77 | - } |
|
78 | -} |
|
73 | + $output->writeln |
|
79 | 74 | \ No newline at end of file |
@@ -40,8 +40,7 @@ |
||
40 | 40 | $timestamped, |
41 | 41 | $configuration->createdAtField, |
42 | 42 | $isNew ? |
43 | - new \DateTimeImmutable() : |
|
44 | - $classMetadata->getFieldValue($timestamped, $configuration->createdAtField) |
|
43 | + new \DateTimeImmutable() : $classMetadata->getFieldValue($timestamped, $configuration->createdAtField) |
|
45 | 44 | ); |
46 | 45 | $classMetadata->setFieldValue($timestamped, $configuration->modifiedAtField, new \DateTime()); |
47 | 46 | } |