Skip to content

Commit e44540f

Browse files
committed
Conflict with project member
1 parent 50bc775 commit e44540f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Task/PoeditorTask.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class PoeditorTask extends Task
3636
*
3737
* @var string
3838
*/
39-
protected $project;
39+
protected $module;
4040

4141
/**
4242
* @var string
@@ -46,7 +46,7 @@ class PoeditorTask extends Task
4646
/**
4747
* @var string
4848
*/
49-
protected $module;
49+
protected $moduleName;
5050

5151
/**
5252
* Language code
@@ -147,29 +147,29 @@ public function setToken($token)
147147
}
148148

149149
/**
150-
* Get the id
150+
* Get the module
151151
*
152152
* @return string
153153
*/
154-
public function getProject()
154+
public function getModule()
155155
{
156-
return $this->project;
156+
return $this->module;
157157
}
158158

159159
/**
160-
* Set the id
160+
* Set the module
161161
*
162-
* @param string $project
162+
* @param string $module
163163
* @return PoeditorTask
164164
*/
165-
public function setProject($project)
165+
public function setModule($module)
166166
{
167-
$parts = explode('-', $project);
167+
$parts = explode('-', $module);
168168
if (count($parts) > 1) {
169-
$this->module = ucfirst($parts[0]);
169+
$this->moduleName = ucfirst($parts[0]);
170170
$this->id = $parts[1];
171171
}
172-
$this->project = $project;
172+
$this->module = $module;
173173
return $this;
174174
}
175175

@@ -290,7 +290,7 @@ public function main()
290290

291291
protected function retrieveFileName()
292292
{
293-
return $this->getExportPath() . DIRECTORY_SEPARATOR . ucfirst($this->project) . DIRECTORY_SEPARATOR . 'language' . DIRECTORY_SEPARATOR . $this->languages[$this->getLanguage()] . '.' . $this->getType();
293+
return $this->getExportPath() . DIRECTORY_SEPARATOR . ucfirst($this->moduleName) . DIRECTORY_SEPARATOR . 'language' . DIRECTORY_SEPARATOR . $this->languages[$this->getLanguage()] . '.' . $this->getType();
294294
}
295295

296296
/**

0 commit comments

Comments
 (0)