Skip to content

Commit 31cfb43

Browse files
committed
minor cleanup
1 parent 8bd5404 commit 31cfb43

File tree

11 files changed

+52
-11
lines changed

11 files changed

+52
-11
lines changed

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
/tests export-ignore
5+
.gitattributes export-ignore
6+
.gitignore export-ignore
7+
.scrutinizer.yml export-ignore
8+
.travis.yml export-ignore

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# no backup files, editor temp
2+
*~
3+
\#*
4+
*.bak
5+
.idea/
6+
coverage.clover

src/Exceptions/UnrecognizedInputException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* UnrecognizedInputException
77
*
88
* When parsing input expected to be in po format, one or more lines that could not
9-
* be recognized were encoutered.
9+
* be recognized were encountered.
1010
*
1111
* @category Exceptions
1212
* @package Po

src/PoEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ protected function dumpEntryComments()
234234

235235
/**
236236
* format a string for output by escaping control and double quote
237-
* characters, then surrouding with double quotes
237+
* characters, then surrounding with double quotes
238238
*
239239
* @param string|null $value string to prepare
240240
* @param boolean $bare true for bare output, default false adds leading

src/PoInitAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ abstract public function msginitString($source, $refname);
195195

196196
/**
197197
* Prepare a string from tokenized output for use in a po file. Remove any
198-
* surrounding quotes, escape control characters and double qoutes.
198+
* surrounding quotes, escape control characters and double quotes.
199199
*
200200
* @param string $string raw string (T_STRING) identified by php token_get_all
201201
*

src/PoInitPHP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,6 @@ public function msginitString($source, $refname)
122122
*/
123123
protected function stripComment($string)
124124
{
125-
return trim(str_replace(array('//','/*','*/'), '', $string));
125+
return trim(str_replace(array('//', '/*', '*/'), '', $string));
126126
}
127127
}

src/PoTokens.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Geekwright\Po;
44

55
/**
6-
* Constants representing line indentification tokens found in a GNU gettext
6+
* Constants representing line identification tokens found in a GNU gettext
77
* style PO or POT file
88
*
99
* @category Tokens

tests/PoFileTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ public function testMergeEntry()
207207
$entry3->add(PoTokens::OBSOLETE, 'msgid "Hello."');
208208
$entry3->add(PoTokens::OBSOLETE, 'msgstr "Bonjour!"');
209209
$this->assertFalse($pofile->mergeEntry($entry3));
210-
211210
}
212211

213212
/**

tests/PoInitSmartyTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ class PoInitSmartyTest extends \PHPUnit_Framework_TestCase
1818
protected function setUp()
1919
{
2020
if (!class_exists('\Smarty')) {
21-
$this->markTestSkipped(
22-
'Smarty is not available.'
23-
);
21+
$this->markTestSkipped('Smarty is not available.');
2422
}
2523
$smarty = new \Smarty;
2624
$this->object = new PoInitSmarty($smarty, new PoFile);

tests/files/inittest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function gettext_noop($value)
3535
this comment should be ignored
3636
*/
3737
gettext_noop("Select a file or a folder"),
38-
/* refering to floppy disk drive */
38+
/* referring to floppy disk drive */
3939
gettext_noop("When ejecting the drive, close the apps that are locking it"),
4040
gettext_noop("You do not have sufficient privileges for this operation."),
4141
);

0 commit comments

Comments
 (0)