| @@ 151-159 (lines=9) @@ | ||
| 148 | $user = UserRepository::getUser($username, $this->container); |
|
| 149 | ||
| 150 | // Don't continue if the user doesn't exist. |
|
| 151 | if (!$user->existsOnProject($projectData)) { |
|
| 152 | $this->addFlash('danger', 'user-not-found'); |
|
| 153 | return $this->redirectToRoute('topedits', [ |
|
| 154 | 'project' => $project, |
|
| 155 | 'namespace' => $namespace, |
|
| 156 | 'start' => $start, |
|
| 157 | 'end' => $end, |
|
| 158 | ]); |
|
| 159 | } |
|
| 160 | ||
| 161 | // Reject users with a crazy high edit count. |
|
| 162 | if ($user->hasTooManyEdits($projectData)) { |
|
| @@ 127-134 (lines=8) @@ | ||
| 124 | $user = UserRepository::getUser($username, $this->container); |
|
| 125 | ||
| 126 | // Don't continue if the user doesn't exist. |
|
| 127 | if (!$user->existsOnProject($projectData)) { |
|
| 128 | $this->addFlash('danger', 'user-not-found'); |
|
| 129 | return $this->redirectToRoute('topedits', [ |
|
| 130 | 'project' => $project, |
|
| 131 | 'namespace' => $namespace, |
|
| 132 | 'article' => $article, |
|
| 133 | ]); |
|
| 134 | } |
|
| 135 | ||
| 136 | // Reject users with a crazy high edit count. |
|
| 137 | if ($user->hasTooManyEdits($projectData)) { |
|