Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Oct 6, 2023
1 parent cc74004 commit 5a0b7c6
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 34 deletions.
4 changes: 1 addition & 3 deletions cadastre/classes/atlasPrint.listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ class atlasPrintListener extends jEventListener
/**
* When a user logs in.
*
* @param string $login The login
* @param object $user jAuth user
* @param mixed $event
* @param mixed $event
*/
public function onBeforePdfCreation($event)
{
Expand Down
12 changes: 3 additions & 9 deletions cadastre/classes/cadastreDockable.listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,9 @@ public function onmapDockable($event)
}
}

public function onmapMiniDockable($event)
{
}
public function onmapMiniDockable($event) {}

public function onmapRightDockable($event)
{
}
public function onmapRightDockable($event) {}

public function onmapBottomDockable($event)
{
}
public function onmapBottomDockable($event) {}
}
3 changes: 3 additions & 0 deletions cadastre/classes/cadastreProfile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static function get($repository, $project, $layerName, $profile = 'cadast
$profile = $qgisLayer->getDatasourceProfile(31);
}
}

// jLog::log(json_encode($profile));
return $profile;
}
Expand All @@ -57,6 +58,7 @@ public static function getWithLayerId($repository, $project, $layerId, $profile
if ($qgisLayer) {
$profile = $qgisLayer->getDatasourceProfile(31);
}

// jLog::log(json_encode($profile));
return $profile;
}
Expand Down Expand Up @@ -101,6 +103,7 @@ public static function checkAccess($profile)
public static function checkTableContent($table, $profile)
{
$ok = false;

// Try to get data from geo_commune
try {
// try to get the specific search profile to do not rebuild it
Expand Down
4 changes: 1 addition & 3 deletions cadastre/classes/listGeoCommuneDatasource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class listGeoCommuneDatasource extends jFormsDynamicDatasource
protected $profile;
protected $dao;

public function __construct($formid)
{
}
public function __construct($formid) {}

public function getData($form)
{
Expand Down
4 changes: 1 addition & 3 deletions cadastre/classes/listGeoSectionDatasource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class listGeoSectionDatasource extends jFormsDynamicDatasource

protected $dao;

public function __construct($formid)
{
}
public function __construct($formid) {}

public function getData($form)
{
Expand Down
4 changes: 1 addition & 3 deletions cadastre/classes/listParcelleLieuDatasource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class listParcelleLieuDatasource extends jFormsDynamicDatasource
protected $profile;
protected $dao;

public function __construct($formid)
{
}
public function __construct($formid) {}

public function getData($form)
{
Expand Down
4 changes: 1 addition & 3 deletions cadastre/classes/listParcelleLieuNoMajicDatasource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class listParcelleLieuNoMajicDatasource extends jFormsDynamicDatasource
protected $profile;
protected $dao;

public function __construct($formid)
{
}
public function __construct($formid) {}

public function getData($form)
{
Expand Down
4 changes: 1 addition & 3 deletions cadastre/classes/listParcellePropDatasource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class listParcellePropDatasource extends jFormsDynamicDatasource
protected $profile;
protected $dao;

public function __construct($formid)
{
}
public function __construct($formid) {}

public function getData($form)
{
Expand Down
11 changes: 5 additions & 6 deletions cadastre/classes/search.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,11 @@ public function getData($repository, $project, $parcelleLayer, $term, $field = '
/**
* Method called by the autocomplete input field.
*
* @param string $term Searched term
* @param mixed $repository
* @param mixed $project
* @param mixed $parcelleLayer
* @param mixed $field
* @param mixed $value
* @param mixed $repository
* @param mixed $project
* @param mixed $parcelleLayer
* @param mixed $field
* @param mixed $value
*
* @return object[] List of matching taxons
*/
Expand Down
2 changes: 1 addition & 1 deletion cadastre/controllers/service.classic.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function getCadastrePdf()

if ($type == 'fiche') {
$creq = 'getHtml';
// jLog::log($creq);
// jLog::log($creq);
} else {
$creq = 'createPdf';
}
Expand Down

0 comments on commit 5a0b7c6

Please sign in to comment.