Skip to content

Commit 939faf0

Browse files
committed
pkp#8845 Fixed namespaces
1 parent d2c060a commit 939faf0

File tree

10 files changed

+16
-11
lines changed

10 files changed

+16
-11
lines changed

classes/controllers/grid/users/reviewer/PKPReviewerGridHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
use PKP\core\PKPServices;
4141
use PKP\db\DAO;
4242
use PKP\db\DAORegistry;
43-
use PKP\emailtemplate\EmailTemplate;
43+
use PKP\emailTemplate\EmailTemplate;
4444
use PKP\facades\Locale;
4545
use PKP\linkAction\LinkAction;
4646
use PKP\linkAction\request\AjaxModal;

classes/core/PKPContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function registerCoreContainerAliases()
151151
'config' => [\Illuminate\Config\Repository::class, \Illuminate\Contracts\Config\Repository::class],
152152
'cache' => [\Illuminate\Cache\CacheManager::class, \Illuminate\Contracts\Cache\Factory::class],
153153
'cache.store' => [\Illuminate\Cache\Repository::class, \Illuminate\Contracts\Cache\Repository::class, \Psr\SimpleCache\CacheInterface::class],
154-
'cache.psr6' => [\Symfony\Component\Cache\Adapter\Psr16Adapter::class, \Symfony\Component\Cache\Adapter\AdapterInterface::class, \Psr\Cache\CacheItemPoolInterface::class],
154+
'cache.psr6' => [\Psr\Cache\CacheItemPoolInterface::class],
155155
'db' => [\Illuminate\Database\DatabaseManager::class, \Illuminate\Database\ConnectionResolverInterface::class],
156156
'db.connection' => [\Illuminate\Database\Connection::class, \Illuminate\Database\ConnectionInterface::class],
157157
'files' => [\Illuminate\Filesystem\Filesystem::class],

classes/db/DAOResultFactory.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
namespace PKP\db;
1818

1919
use APP\submission\DAO;
20+
use Illuminate\Support\Collection;
2021
use Illuminate\Support\Enumerable;
2122
use PKP\core\ItemIterator;
2223
use ReflectionClass;
@@ -113,7 +114,7 @@ public function next()
113114
if ($this->records instanceof \Generator) {
114115
$row = $this->records->current();
115116
$this->records->next();
116-
} elseif ($this->records instanceof Enumerable) {
117+
} elseif ($this->records instanceof Collection) {
117118
$row = $this->records->shift();
118119
} else {
119120
throw new \Exception('Unsupported record set type (' . join(', ', class_implements($this->records)) . ')');
@@ -200,7 +201,9 @@ public function eof()
200201
if ($this->records == null) {
201202
return true;
202203
}
203-
return !$this->records->valid();
204+
/** @var DAOResultIterator */
205+
$records = $this->records;
206+
return !$records->valid();
204207
}
205208

206209
/**

classes/file/FileArchive.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function create($files, $filesDir)
4444
if (self::zipFunctional()) {
4545
$zipTest = true;
4646
$zip = new ZipArchive();
47-
if ($zip->open($archivePath, ZIPARCHIVE::CREATE) == true) {
47+
if ($zip->open($archivePath, ZipArchive::CREATE) == true) {
4848
foreach ($files as $serverPath => $clientFilename) {
4949
$zip->addFile($filesDir . '/' . $serverPath, $clientFilename);
5050
}

classes/xml/PKPXMLParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function parseText($text) {
4747

4848
if (!isset($this->handler)) {
4949
// Use default handler for parsing
50-
$handler = new PKPXMLParserDOMHandler();
50+
$handler = new XMLParserDOMHandler();
5151
$this->setHandler($handler);
5252
}
5353

controllers/grid/eventLog/EventLogGridCellProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use PKP\controllers\grid\DataObjectGridCellProvider;
2121
use PKP\controllers\grid\GridColumn;
2222
use PKP\db\DAORegistry;
23+
use PKP\log\EmailLogEntry;
2324
use PKP\log\EventLogEntry;
2425
use PKP\log\PKPSubmissionEventLogEntry;
2526
use PKP\submission\reviewAssignment\ReviewAssignment;
@@ -56,6 +57,7 @@ public function __construct($isCurrentUserAssignedAuthor)
5657
*/
5758
public function getTemplateVarsFromRowColumn($row, $column)
5859
{
60+
/** @var EmailLogEntry */
5961
$element = $row->getData();
6062
$columnId = $column->getId();
6163
assert($element instanceof \PKP\core\DataObject && !empty($columnId));

controllers/grid/settings/user/form/UserRoleForm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace PKP\controllers\grid\settings\user\form;
1717

18-
use App\core\Application;
18+
use APP\core\Application;
1919
use APP\facades\Repo;
2020
use APP\template\TemplateManager;
2121

@@ -64,7 +64,7 @@ public function execute(...$functionParams)
6464

6565
//save the user's user group assignment
6666
$this->saveUserGroupAssignments($request);
67-
67+
6868
parent::execute(...$functionParams);
6969

7070
// Role management handled by parent form, just return user.

controllers/grid/users/author/AuthorGridHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace PKP\controllers\grid\users\author;
1919

2020
use APP\controllers\grid\users\author\form\AuthorForm;
21-
use App\core\Application;
21+
use APP\core\Application;
2222
use APP\facades\Repo;
2323
use APP\notification\NotificationManager;
2424
use PKP\controllers\grid\feature\OrderGridItemsFeature;

pages/login/LoginHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace PKP\pages\login;
1717

18-
use App\core\Application;
18+
use APP\core\Application;
1919
use APP\facades\Repo;
2020
use APP\handler\Handler;
2121
use APP\template\TemplateManager;

plugins/importexport/users/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
*
1717
*/
1818

19-
return new \PKP\plugins\importexport\user\UserImportExportPlugin();
19+
return new \APP\plugins\importexport\users\UserImportExportPlugin();

0 commit comments

Comments
 (0)