Skip to content

Commit

Permalink
Merge pull request #77 from kg-bot/analysis-YjEV1o
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
kg-bot committed Sep 20, 2021
2 parents 5608829 + a82b6a8 commit 58e060a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/Classes/ExportLocalizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class ExportLocalizations implements \JsonSerializable
/**
* ExportLocalizations constructor.
*
* @param string $phpRegex
* @param string $jsonRegex
* @param string $phpRegex
* @param string $jsonRegex
*/
public function __construct($phpRegex = '/^.+\.php$/i', $jsonRegex = '/^.+\.json$/i')
{
Expand Down Expand Up @@ -98,8 +98,7 @@ public function export()
/**
* Find available language files and parse them to array.
*
* @param string $path
*
* @param string $path
* @return array
*/
protected function findLanguageFiles($path)
Expand Down Expand Up @@ -181,9 +180,8 @@ public function toArray()
* If you need special format of array that's recognised by some npm localization packages as Lang.js
* https://github.com/rmariuzzo/Lang.js use this method.
*
* @param array $array
* @param string $prefix
*
* @param array $array
* @param string $prefix
* @return array
*/
public function toFlat($prefix = '.')
Expand Down Expand Up @@ -241,7 +239,7 @@ public function toCollection()
/**
* Method to parse language files.
*
* @param string $file
* @param string $file
*/
protected function parseLangFiles($file, $key, $dir)
{
Expand Down Expand Up @@ -272,7 +270,7 @@ protected function parseLangFiles($file, $key, $dir)
/**
* Method to parse language files from vendor folder.
*
* @param string $file
* @param string $file
*/
protected function parseVendorFiles($file, $key, $dir)
{
Expand Down

0 comments on commit 58e060a

Please sign in to comment.