Skip to content

Commit a613c57

Browse files
authored
Apply fixes from StyleCI (#94)
1 parent 7ea382b commit a613c57

10 files changed

+50
-13
lines changed

src/DictLoaderInterface.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
/*
44
* This file is part of the overtrue/pinyin.
55
*
6-
* (c) 2016 overtrue <[email protected]>
6+
* (c) overtrue <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
710
*/
811

912
namespace Overtrue\Pinyin;

src/FileDictLoader.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
/*
44
* This file is part of the overtrue/pinyin.
55
*
6-
* (c) 2016 overtrue <[email protected]>
6+
* (c) overtrue <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
710
*/
811

912
namespace Overtrue\Pinyin;

src/GeneratorFileDictLoader.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
/*
44
* This file is part of the overtrue/pinyin.
55
*
6-
* (c) 2016 Seven Du <[email protected]>
6+
* (c) overtrue <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
710
*/
811

912
namespace Overtrue\Pinyin;
1013

1114
use Closure;
12-
use Exception;
1315
use SplFileObject;
1416
use Generator;
1517

@@ -68,6 +70,7 @@ public function __construct($path)
6870
* Construct a new file object.
6971
*
7072
* @param string $filename file path
73+
*
7174
* @return SplFileObject
7275
*/
7376
protected function openFile($filename, $mode = 'r')
@@ -102,7 +105,8 @@ protected function getGenerator(array $handles)
102105
* Traverse the stream.
103106
*
104107
* @param Generator $generator
105-
* @param Closure $callback
108+
* @param Closure $callback
109+
*
106110
* @author Seven Du <[email protected]>
107111
*/
108112
protected function traversing(Generator $generator, Closure $callback)

src/MemoryFileDictLoader.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
/*
44
* This file is part of the overtrue/pinyin.
55
*
6-
* (c) 2016 overtrue <[email protected]>
6+
* (c) overtrue <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
710
*/
811

912
namespace Overtrue\Pinyin;

src/Pinyin.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
/*
44
* This file is part of the overtrue/pinyin.
55
*
6-
* (c) 2016 overtrue <[email protected]>
6+
* (c) overtrue <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
710
*/
811

912
namespace Overtrue\Pinyin;
1013

1114
use InvalidArgumentException;
1215

13-
/**
16+
/*
1417
* Chinese to pinyin translator.
1518
*
1619
* @author overtrue <[email protected]>
@@ -144,7 +147,7 @@ public function phrase($string, $delimiter = ' ', $option = self::NONE)
144147
* Chinese to pinyin sentense.
145148
*
146149
* @param string $sentence
147-
* @param bool $withTone
150+
* @param bool $withTone
148151
*
149152
* @return string
150153
*/

tests/AbstractDictLoaderTestCase.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
/*
44
* This file is part of the overtrue/pinyin.
55
*
6-
* (c) 2016 overtrue <[email protected]>
6+
* (c) overtrue <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
710
*/
811

912
namespace Overtrue\Pinyin\Test;

tests/FileDictLoaderTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
/*
44
* This file is part of the overtrue/pinyin.
55
*
6-
* @author Garveen <[email protected]>
6+
* (c) overtrue <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
710
*/
811

912
namespace Overtrue\Pinyin\Test;

tests/FileToMemoryDictLoaderTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
/*
44
* This file is part of the overtrue/pinyin.
55
*
6-
* @author Garveen <[email protected]>
6+
* (c) overtrue <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
710
*/
811

912
namespace Overtrue\Pinyin\Test;

tests/GeneratorFileDictLoaderTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the overtrue/pinyin.
5+
*
6+
* (c) overtrue <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
10+
*/
11+
312
namespace Overtrue\Pinyin\Test;
413

514
use Overtrue\Pinyin\Pinyin;

tests/PinyinTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
/*
44
* This file is part of the overtrue/pinyin.
55
*
6-
* (c) 2016 overtrue <[email protected]>
6+
* (c) overtrue <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
710
*/
811

912
namespace Overtrue\Pinyin\Test;

0 commit comments

Comments
 (0)