File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace KKomelin \TranslatableStringExporter \Core ;
4
4
5
+ use Symfony \Component \Finder \SplFileInfo ;
6
+
5
7
class CodeParser
6
8
{
7
9
/**
@@ -40,10 +42,10 @@ public function __construct()
40
42
/**
41
43
* Parse a file in order to find translatable strings.
42
44
*
43
- * @param \Symfony\Component\Finder\ SplFileInfo $file
45
+ * @param SplFileInfo $file
44
46
* @return array
45
47
*/
46
- public function parse (\ Symfony \ Component \ Finder \ SplFileInfo $ file )
48
+ public function parse (SplFileInfo $ file )
47
49
{
48
50
$ strings = [];
49
51
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ public function __construct()
35
35
*
36
36
* @param string $base_path
37
37
* @param string $language
38
- * @return array
39
38
*/
40
39
public function export ($ base_path , $ language )
41
40
{
Original file line number Diff line number Diff line change 2
2
3
3
namespace KKomelin \TranslatableStringExporter \Core ;
4
4
5
+ use Symfony \Component \Finder \Finder ;
6
+
5
7
class FileFinder
6
8
{
7
9
/**
@@ -38,7 +40,7 @@ public function __construct()
38
40
/**
39
41
* Find all files that can contain translatable strings.
40
42
*
41
- * @return \Symfony\Component\Finder\ Finder|null
43
+ * @return Finder|null
42
44
*/
43
45
public function find ()
44
46
{
@@ -49,7 +51,7 @@ public function find()
49
51
$ item = $ path . DIRECTORY_SEPARATOR . $ item ;
50
52
});
51
53
52
- $ finder = new \ Symfony \ Component \ Finder \ Finder ();
54
+ $ finder = new Finder ();
53
55
54
56
$ finder = $ finder ->in ($ directories );
55
57
You can’t perform that action at this time.
0 commit comments