Skip to content

Commit

Permalink
Fix php coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentj committed Jan 18, 2024
1 parent 7a96cee commit ea3558f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
17 changes: 8 additions & 9 deletions gobsapi/install/configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,24 @@
*/

use Jelix\Routing\UrlMapping\EntryPointUrlModifier;
use \Jelix\Routing\UrlMapping\MapEntry\MapInclude;
use Jelix\Routing\UrlMapping\MapEntry\MapInclude;

/**
* Configurator for Lizmap 3.6+/Jelix 1.8+
* Configurator for Lizmap 3.6+/Jelix 1.8+.
*/
class gobsapiModuleConfigurator extends \Jelix\Installer\Module\Configurator {

class gobsapiModuleConfigurator extends \Jelix\Installer\Module\Configurator
{
public function getDefaultParameters()
{
return array();
}


public function declareUrls(EntryPointUrlModifier $registerOnEntryPoint)
{
$registerOnEntryPoint->havingName(
'gobsapi',
array(
new MapInclude('urls.xml')
new MapInclude('urls.xml'),
)
)
;
Expand All @@ -41,13 +40,13 @@ public function getEntryPointsToCreate()
'gobsapi/config.ini.php',
'gobsapi.php',
'gobsapi/config.ini.php'
)
),
);
}

function configure(\Jelix\Installer\Module\API\ConfigurationHelpers $helpers)
public function configure(Jelix\Installer\Module\API\ConfigurationHelpers $helpers)
{
$gobs_config_target = $helpers->configFilePath('gobsapi.ini.php');
$helpers->copyFile('config/gobsapi.ini.php.dist', $gobs_config_target);
}
}
}
3 changes: 1 addition & 2 deletions gobsapi/install/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
*
* @license GPL 3
*/
class gobsapiModuleInstaller extends \Jelix\Installer\Module\Installer
class gobsapiModuleInstaller extends \Jelix\Installer\Module\Installer
{
public function install(Jelix\Installer\Module\API\InstallHelpers $helpers)
{

}
}
1 change: 0 additions & 1 deletion gobsapi/install/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ public function install(Jelix\Installer\Module\API\InstallHelpers $helpers)
{
$helpers->updateEntryPointFile('gobsapi.php', 'gobsapi', 'classic');
}

}

0 comments on commit ea3558f

Please sign in to comment.