Skip to content

Commit 922a083

Browse files
committed
[phpcs] Corrected code style issue and remove commented code
1 parent 29678b4 commit 922a083

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

src/JoomlaBrowser.php

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ public function installJoomla()
141141

142142
// @todo: activate the filesystem module
143143

144-
/*$I->expect('no configuration.php is in the Joomla CMS folder');
145-
$I->dontSeeFileFound('configuration.php', $this->config['Joomla folder')];*/
146144
$this->debug('I open Joomla Installation Configuration Page');
147145
$I->amOnPage('/installation/index.php');
148146
$this->debug('I check that FTP tab is not present in installation. Otherwise it means that I have not enough permissions to install joomla and execution will be stoped');
@@ -213,14 +211,6 @@ public function installJoomla()
213211

214212
// @todo: installation of sample data needs to be created
215213

216-
/*if ($this->config['install sample data']) :
217-
$this->debug('I install Sample Data:' . $this->config['sample data']);
218-
$I->selectOption('#jform_sample_file', $this->config['sample data']);
219-
else :
220-
$this->debug('I install Joomla without Sample Data');
221-
$I->selectOption('#jform_sample_file', '#jform_sample_file0'); // No sample data
222-
endif;*/
223-
224214
// No sample data
225215
$I->selectOption(['id' => 'jform_sample_file'], ['id' => 'jform_sample_file0']);
226216
$I->click(['link' => 'Install']);
@@ -297,16 +287,6 @@ public function installJoomlaMultilingualSite($languages = array())
297287
// @todo https://github.com/joomla-projects/joomla-browser/issues/45
298288
$I->wait(2);
299289

300-
/*
301-
$I->waitForElementChange(
302-
['xpath' => "//input[@name='instDefault']"],
303-
function(WebDriverElement $el) {
304-
return !$el->isEnabled();
305-
},
306-
60
307-
);
308-
*/
309-
310290
$this->debug('Joomla is now installed');
311291
$I->see('Congratulations! Joomla! is now installed.', ['xpath' => '//h3']);
312292
}
@@ -802,8 +782,9 @@ public function clickToolbarButton($button)
802782
$I = $this;
803783
$input = strtolower($button);
804784

805-
$screenSize = explode("x",$this->config['window_size']);
806-
if($screenSize[0] <= 480)
785+
$screenSize = explode("x", $this->config['window_size']);
786+
787+
if ($screenSize[0] <= 480)
807788
{
808789
$I->click('Toolbar');
809790
}

0 commit comments

Comments
 (0)