Skip to content

Commit 7aa082b

Browse files
committed
Minor code style improvements.
1 parent 196ee3e commit 7aa082b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/Core/CodeParser.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace KKomelin\TranslatableStringExporter\Core;
44

5+
use Symfony\Component\Finder\SplFileInfo;
6+
57
class CodeParser
68
{
79
/**
@@ -40,10 +42,10 @@ public function __construct()
4042
/**
4143
* Parse a file in order to find translatable strings.
4244
*
43-
* @param \Symfony\Component\Finder\SplFileInfo $file
45+
* @param SplFileInfo $file
4446
* @return array
4547
*/
46-
public function parse(\Symfony\Component\Finder\SplFileInfo $file)
48+
public function parse(SplFileInfo $file)
4749
{
4850
$strings = [];
4951

src/Core/Exporter.php

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public function __construct()
3535
*
3636
* @param string $base_path
3737
* @param string $language
38-
* @return array
3938
*/
4039
public function export($base_path, $language)
4140
{

src/Core/FileFinder.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace KKomelin\TranslatableStringExporter\Core;
44

5+
use Symfony\Component\Finder\Finder;
6+
57
class FileFinder
68
{
79
/**
@@ -38,7 +40,7 @@ public function __construct()
3840
/**
3941
* Find all files that can contain translatable strings.
4042
*
41-
* @return \Symfony\Component\Finder\Finder|null
43+
* @return Finder|null
4244
*/
4345
public function find()
4446
{
@@ -49,7 +51,7 @@ public function find()
4951
$item = $path . DIRECTORY_SEPARATOR . $item;
5052
});
5153

52-
$finder = new \Symfony\Component\Finder\Finder();
54+
$finder = new Finder();
5355

5456
$finder = $finder->in($directories);
5557

0 commit comments

Comments
 (0)