Skip to content

Commit 9b203a1

Browse files
authored
Verify spelling fixes pass check-spelling
2 parents 52bdba5 + ea54dae commit 9b203a1

9 files changed

Lines changed: 12 additions & 12 deletions

File tree

app/Http/Controllers/LinkController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function performRedirect(Request $request, $short_url, $secret_key=false)
7272
$link_secret_key = $link->secret_key;
7373
if ($link_secret_key) {
7474
if (!$secret_key) {
75-
// if we do not receieve a secret key
75+
// if we do not receive a secret key
7676
// when we are expecting one, return a 403
7777
return abort(403);
7878
}

docs/developer-guide/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Response:
232232
```
233233

234234
## HTTP Error Codes
235-
The API will return an error code if your request was malformed or another error occured while processing your request.
235+
The API will return an error code if your request was malformed or another error occurred while processing your request.
236236

237237
### HTTP 400 Bad Request
238238
This status code is returned in the following circumstances:

docs/developer-guide/api_errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
To diagnose an unexpected or unhandled error, turn on the `APP_DEBUG` flag by setting
33
it to `true` in `.env`
44

5-
`SERVER_ERROR`: A generic, unhandled error has occured.
5+
`SERVER_ERROR`: A generic, unhandled error has occurred.
66

77
`JSON_ONLY`: Only JSON-encoded data is available for this endpoint.
88

@@ -18,7 +18,7 @@ it to `true` in `.env`
1818

1919
`CREATION_ERROR`: An error occurred while creating the object.
2020

21-
`AUTH_ERROR`: An error occured while attempting to authenticate the user to the API.
21+
`AUTH_ERROR`: An error occurred while attempting to authenticate the user to the API.
2222

2323
`QUOTA_EXCEEDED`: User's API usage has exceeded alloted quota.
2424

public/js/AdminCtrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ polr.controller('AdminCtrl', function($scope, $compile, $timeout) {
261261
$('#new-user-form').clearForm();
262262
$scope.datatables['admin_users_table'].ajax.reload();
263263
}, function () {
264-
toastr.error("An error occured while creating the user.", "Error");
264+
toastr.error("An error occurred while creating the user.", "Error");
265265
});
266266
}
267267

public/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ $(function() {
3030
} else if (msg == 'invalid') {
3131
$('#link-availability-status').html('<span style="color:orange"><i class="fa fa-exclamation-triangle"></i> Invalid Custom URL Ending</span>');
3232
} else {
33-
$('#link-availability-status').html(' <span style="color:red"><i class="fa fa-exclamation-circle"></i> An error occured. Try again</span>' + msg);
33+
$('#link-availability-status').html(' <span style="color:red"><i class="fa fa-exclamation-circle"></i> An error occurred. Try again</span>' + msg);
3434
}
3535
});
3636

3737
request.fail(function(jqXHR, textStatus) {
38-
$('#link-availability-status').html(' <span style="color:red"><i class="fa fa-exclamation-circle"></i> An error occured. Try again</span>' + textstatus);
38+
$('#link-availability-status').html(' <span style="color:red"><i class="fa fa-exclamation-circle"></i> An error occurred. Try again</span>' + textstatus);
3939
});
4040
});
4141
min = 1;

resources/views/about.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@endif
2323

2424
<p>{{env('APP_NAME')}} is powered by Polr 2, an open source, minimalist link shortening platform. The Polr Project is in no way associated with this site.
25-
Learn more at <a href='https://github.com/Cydrobolt/polr'>its Github page</a> or its <a href="//project.polr.me">project site</a>.
25+
Learn more at <a href='https://github.com/Cydrobolt/polr'>its GitHub page</a> or its <a href="//project.polr.me">project site</a>.
2626
<br />Polr is licensed under the GNU GPL License.
2727
</p>
2828
</div>

resources/views/setup.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
</p>
224224
<select name='setting:acct_registration_recaptcha' class='form-control'>
225225
<option value='false'>Do not require reCAPTCHA for registration</option>
226-
<option value='true'>Require reCATPCHA for registration</option>
226+
<option value='true'>Require reCAPTCHA for registration</option>
227227
</select>
228228

229229
<p>
@@ -281,7 +281,7 @@
281281

282282
<div>
283283
Polr Version {{env('VERSION')}} released {{env('VERSION_RELMONTH')}} {{env('VERSION_RELDAY')}}, {{env('VERSION_RELYEAR')}} -
284-
<a href='//github.com/cydrobolt/polr' target='_blank'>Github</a>
284+
<a href='//github.com/cydrobolt/polr' target='_blank'>GitHub</a>
285285

286286
<div class='footer-well'>
287287
&copy; Copyright {{env('VERSION_RELYEAR')}}

tests/LinkControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class LinkControllerTest extends TestCase
88
* @return void
99
*/
1010
public function testRequestGetNotExistShortUrl() {
11-
$response = $this->call('GET', '/notexist');
11+
$response = $this->call('GET', '/nonexistent');
1212
$this->assertTrue($response->isRedirection());
1313
$this->assertRedirectedTo(env('SETTING_INDEX_REDIRECT'));
1414
}

util/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
setup_env_lines = re.sub(r'(?is)VERSION_RELDAY=\w+', 'VERSION_RELDAY={}'.format(now.day), setup_env_lines)
2121
setup_env_lines = re.sub(r'(?is)VERSION_RELYEAR=\w+', 'VERSION_RELYEAR={}'.format(now.year), setup_env_lines)
2222

23-
# Overwite existing file
23+
# Overwrite existing file
2424
setup_env.seek(0)
2525
setup_env.write(setup_env_lines)
2626
setup_env.truncate()

0 commit comments

Comments
 (0)