Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebin committed Jun 13, 2023
1 parent 52cc7f9 commit 12db529
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor/
/.idea/
/.*.cache
/tests-report-html/
/composer.lock
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
},
"autoload": {
"psr-4": {
"MC\\": "lib/MC"
"MC\\": "lib/MC/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
"Tests\\": "tests/"
}
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions examples/callback_fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function most_common(array $row): ?string
'pill' => ['field' => 'pill', 'type' => 'number'],
'iud' => ['field' => 'iud', 'type' => 'number'],
'condom' => ['field' => 'condom', 'type' => 'number'],
'sterile_total' => ['field' => 'steril_total', 'type' => 'number'],
'sterile_total' => ['field' => 'sterile_total', 'type' => 'number'],
'other_modern' => ['field' => 'other_modern', 'type' => 'number'],
'traditional' => ['field' => 'traditional', 'type' => 'number'],
'most_common' => [
Expand All @@ -54,7 +54,7 @@ function most_common(array $row): ?string
<html lang="en">
<head>
<title>Callback fields visualization example</title>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1', {'packages': ['table']});
google.setOnLoadCallback(function() {
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
exit;
}
?>
<html>
<html lang="en">
<head>
<title>Simple single-table visualization example</title>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion lib/MC/Parser/Def/Regex.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use MC\Parser\ParseError;

/**
* Generic grammar rule for matching a regular expresion.
* Generic grammar rule for matching a regular expression.
*/
class Regex extends Def
{
Expand Down
2 changes: 1 addition & 1 deletion lib/MC/Parser/Def/Word.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Word extends Regex
{
/**
* @param string $firstChars the characters allowed as the first character in the word
* @param null|string $restChars the characters allwed as the rest of the word - defaults to same as $first_chars
* @param null|string $restChars the characters allowed as the rest of the word - defaults to same as $first_chars
*/
public function __construct(string $firstChars, string $restChars = null)
{
Expand Down

0 comments on commit 12db529

Please sign in to comment.