Skip to content

Commit d2d3dfe

Browse files
committed
Does not use lizmapRepository any more
1 parent e51093f commit d2d3dfe

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

lizmap/modules/lizmap/classes/lizmap.class.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class lizmap
3636
protected static $repositories = array();
3737

3838
/**
39-
* @var lizmapRepository[] list of repository instances. keys are repository names
39+
* @var Repository[] list of repository instances. keys are repository names
4040
*/
4141
protected static $repositoryInstances = array();
4242

@@ -166,8 +166,8 @@ public static function getRepositoryPropertiesOptions()
166166
/**
167167
* Get the jForm for a repository.
168168
*
169-
* @param lizmapRepository $rep
170-
* @param jFormsBase $form
169+
* @param Repository $rep
170+
* @param jFormsBase $form
171171
*
172172
* @return jFormsBase
173173
*/
@@ -259,7 +259,7 @@ public static function constructRepositoryForm($rep, $form)
259259
*
260260
* @param string $key Key of the repository to get
261261
*
262-
* @return null|lizmapRepository
262+
* @return null|Repository
263263
*/
264264
public static function getRepository($key)
265265
{
@@ -286,7 +286,7 @@ public static function getRepository($key)
286286
* @param string $key the repository name
287287
* @param array $data list of properties for the repository
288288
*
289-
* @return null|lizmapRepository
289+
* @return null|Repository
290290
*/
291291
public static function createRepository($key, $data)
292292
{

lizmap/modules/lizmap/classes/lizmapServices.class.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Lizmap\Project\Repository;
34
use Lizmap\Server\Server;
45

56
/**
@@ -706,11 +707,11 @@ public function sendNotificationEmail($subject, $body)
706707
}
707708

708709
/**
709-
* This method will create and return a lizmapRepository instance.
710+
* This method will create and return a lizmap repository instance.
710711
*
711712
* @param string $key the name of the repository
712713
*
713-
* @return lizmapRepository The lizmapRepository instance
714+
* @return bool|Repository The lizmap repository instance
714715
*/
715716
public function getLizmapRepository($key)
716717
{
@@ -727,6 +728,6 @@ public function getLizmapRepository($key)
727728
$data = array();
728729
}
729730

730-
return new lizmapRepository($key, $data, $this->varPath, $this, $this->appContext);
731+
return new Repository($key, $data, $this->varPath, $this, $this->appContext);
731732
}
732733
}

lizmap/modules/lizmap/controllers/edition.classic.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use GuzzleHttp\Psr7\Utils as Psr7Utils;
1515
use Lizmap\Form;
1616
use Lizmap\Project\Project;
17+
use Lizmap\Project\Repository;
1718
use Lizmap\Project\UnknownLizmapProjectException;
1819
use Lizmap\Request\WFSRequest;
1920

@@ -22,7 +23,7 @@ class editionCtrl extends jController
2223
/** @var null|Project */
2324
private $project;
2425

25-
/** @var lizmapRepository */
26+
/** @var null|Repository */
2627
private $repository;
2728

2829
/** @var string layer id in the QGIS project file */

lizmap/modules/lizmap/controllers/service.classic.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use Lizmap\App\Checker;
55
use Lizmap\Project\Project;
66

7+
use Lizmap\Project\Repository;
78
use Lizmap\Project\UnknownLizmapProjectException;
89
use Lizmap\Request\Proxy;
910
use Lizmap\Request\WFSRequest;
@@ -29,7 +30,7 @@ class serviceCtrl extends jController
2930
protected $project;
3031

3132
/**
32-
* @var null|lizmapRepository
33+
* @var null|Repository
3334
*/
3435
protected $repository;
3536

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,6 @@ parameters:
125125
count: 1
126126
path: lizmap/modules/lizmap/classes/lizmapOGCRequest.class.php
127127

128-
-
129-
message: "#^Method lizmapServices\\:\\:getLizmapRepository\\(\\) should return lizmapRepository but returns false\\.$#"
130-
count: 1
131-
path: lizmap/modules/lizmap/classes/lizmapServices.class.php
132-
133128
-
134129
message: "#^Strict comparison using \\=\\=\\= between int\\|false and '1' will always evaluate to false\\.$#"
135130
count: 1

0 commit comments

Comments
 (0)