Skip to content

Commit 2644044

Browse files
author
DGuerra
committed
Renamed added vars to follow convention used by the others ones
1 parent 8865a36 commit 2644044

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

lib/Firefox/FirefoxProfile.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ class FirefoxProfile {
3636
/**
3737
* @var array
3838
*/
39-
private $extensionsDatas = array();
39+
private $extensions_datas = array();
4040

4141
/**
4242
* @var string
4343
*/
44-
private $rdfFile;
44+
private $rdf_file;
4545

4646
/**
4747
* @param string $extension The path to the xpi extension.
@@ -53,28 +53,28 @@ public function addExtension($extension) {
5353
}
5454

5555
/**
56-
* @param string $extensionDatas The path to the folder containing the datas to add to the extension
56+
* @param string $extension_datas The path to the folder containing the datas to add to the extension
5757
* @return FirefoxProfile
5858
*/
59-
public function addExtensionDatas($extensionDatas) {
60-
if(!is_dir($extensionDatas)) {
59+
public function addExtensionDatas($extension_datas) {
60+
if(!is_dir($extension_datas)) {
6161
return;
6262
}
6363

64-
$this->extensionsDatas[dirname($extensionDatas)] = $extensionDatas;
64+
$this->extensions_datas[dirname($extension_datas)] = $extension_datas;
6565
return $this;
6666
}
6767

6868
/**
69-
* @param string $rdfFile The path to the rdf file
69+
* @param string $rdf_file The path to the rdf file
7070
* @return FirefoxProfile
7171
*/
72-
public function setRdfFile($rdfFile) {
73-
if(!is_file($rdfFile)) {
72+
public function setRdfFile($rdf_file) {
73+
if(!is_file($rdf_file)) {
7474
return;
7575
}
7676

77-
$this->rdfFile = $rdfFile;
77+
$this->rdf_file = $rdf_file;
7878
return $this;
7979
}
8080

@@ -105,22 +105,22 @@ public function setPreference($key, $value) {
105105
public function encode() {
106106
$temp_dir = $this->createTempDirectory('WebDriverFirefoxProfile');
107107

108-
if(isset($this->rdfFile)) {
109-
copy($this->rdfFile, $temp_dir . DIRECTORY_SEPARATOR . "mimeTypes.rdf");
108+
if(isset($this->rdf_file)) {
109+
copy($this->rdf_file, $temp_dir . DIRECTORY_SEPARATOR . "mimeTypes.rdf");
110110
}
111111

112112
foreach ($this->extensions as $extension) {
113113
$this->installExtension($extension, $temp_dir);
114114
}
115115

116-
foreach ($this->extensionsDatas as $dirname => $extensionDatas) {
116+
foreach ($this->extensions_datas as $dirname => $extension_datas) {
117117
mkdir($temp_dir . DIRECTORY_SEPARATOR . $dirname);
118-
$files = scandir($extensionDatas);
118+
$files = scandir($extension_datas);
119119
foreach ($files as $file) {
120120
if(is_file($file)
121121
&& $file != "."
122122
&& $file != "..") {
123-
copy($extensionDatas . DIRECTORY_SEPARATOR . $file, $temp_dir . DIRECTORY_SEPARATOR . $dirname . DIRECTORY_SEPARATOR . $file);
123+
copy($extension_datas . DIRECTORY_SEPARATOR . $file, $temp_dir . DIRECTORY_SEPARATOR . $dirname . DIRECTORY_SEPARATOR . $file);
124124
}
125125
}
126126

0 commit comments

Comments
 (0)