Skip to content

Commit

Permalink
Merge pull request #969 from nextcloud/fix/strict-types
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr authored Sep 3, 2023
2 parents 6fcf9eb + 8bda16c commit 55b968a
Show file tree
Hide file tree
Showing 68 changed files with 75 additions and 75 deletions.
2 changes: 1 addition & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Copyright (c) 2021-2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\AppInfo;

use OCA\DAV\Connector\Sabre\Principal;
Expand Down
2 changes: 1 addition & 1 deletion lib/BackgroundJobs/ClassifierJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\BackgroundJobs;

use OCA\Recognize\Service\QueueService;
Expand Down
2 changes: 1 addition & 1 deletion lib/BackgroundJobs/ClassifyFacesJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\BackgroundJobs;

use OCA\Recognize\Classifiers\Images\ClusteringFaceClassifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/BackgroundJobs/ClassifyImagenetJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\BackgroundJobs;

use OCA\Recognize\Classifiers\Images\ImagenetClassifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/BackgroundJobs/ClassifyLandmarksJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\BackgroundJobs;

use OCA\Recognize\Classifiers\Images\LandmarksClassifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/BackgroundJobs/ClassifyMovinetJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\BackgroundJobs;

use OCA\Recognize\Classifiers\Video\MovinetClassifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/BackgroundJobs/ClassifyMusicnnJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\BackgroundJobs;

use OCA\Recognize\Classifiers\Audio\MusicnnClassifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/BackgroundJobs/ClusterFacesJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\BackgroundJobs;

use OCA\Recognize\Service\FaceClusterAnalyzer;
Expand Down
2 changes: 1 addition & 1 deletion lib/BackgroundJobs/SchedulerJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2021-2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\BackgroundJobs;

use OCA\Recognize\Classifiers\Audio\MusicnnClassifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/BackgroundJobs/StorageCrawlJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2021-2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\BackgroundJobs;

use OCA\Recognize\Classifiers\Audio\MusicnnClassifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/Classifiers/Audio/MusicnnClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2021-2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Classifiers\Audio;

use OCA\Recognize\Classifiers\Classifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/Classifiers/Classifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2021-2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Classifiers;

use OCA\Recognize\Classifiers\Images\ClusteringFaceClassifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/Classifiers/Images/ClusteringFaceClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2021-2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Classifiers\Images;

use OCA\Recognize\BackgroundJobs\ClusterFacesJob;
Expand Down
2 changes: 1 addition & 1 deletion lib/Classifiers/Images/ImagenetClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2021-2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Classifiers\Images;

use OCA\Recognize\Classifiers\Classifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/Classifiers/Images/LandmarksClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2021-2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Classifiers\Images;

use OCA\Recognize\Classifiers\Classifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/Classifiers/Video/MovinetClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2021-2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Classifiers\Video;

use OCA\Recognize\Classifiers\Classifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/Clustering/DualTreeBall.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2023 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Clustering;

use \Rubix\ML\Datasets\Labeled;
Expand Down
2 changes: 1 addition & 1 deletion lib/Clustering/DualTreeClique.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2023 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Clustering;

use \Rubix\ML\Datasets\Labeled;
Expand Down
2 changes: 1 addition & 1 deletion lib/Clustering/HDBSCAN.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2023 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Clustering;

use \Rubix\ML\Datasets\Labeled;
Expand Down
2 changes: 1 addition & 1 deletion lib/Clustering/MrdBallTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2023 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Clustering;

use \Rubix\ML\Datasets\Labeled;
Expand Down
2 changes: 1 addition & 1 deletion lib/Clustering/MstClusterer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2023 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Clustering;

// TODO: store vertex lambda length (relative to cluster lambda length) for all vertices for improved soft clustering (see https://hdbscan.readthedocs.io/en/latest/soft_clustering.html)
Expand Down
2 changes: 1 addition & 1 deletion lib/Clustering/MstSolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2023 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Clustering;

use \Rubix\ML\Datasets\Labeled;
Expand Down
2 changes: 1 addition & 1 deletion lib/Clustering/SquaredDistance.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2023 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Clustering;

use \Rubix\ML\DataType;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/Classify.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Command;

use OCA\Recognize\Classifiers\Audio\MusicnnClassifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/CleanupTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Command;

use OCA\Recognize\Service\TagManager;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/ClearBackgroundJobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2023 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Command;

use OCA\Recognize\BackgroundJobs\ClassifyFacesJob;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/ClusterFaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Command;

use OCA\Recognize\Db\FaceDetectionMapper;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/DownloadModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Command;

use OCA\Recognize\Service\DownloadModelsService;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/Recrawl.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Command;

use OCA\Recognize\BackgroundJobs\ClassifyFacesJob;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/RemoveLegacyTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Command;

use OCA\Recognize\Service\TagManager;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/ResetFaceClusters.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Command;

use OCA\Recognize\Db\FaceClusterMapper;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/ResetFaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Command;

use OCA\Recognize\Db\FaceClusterMapper;
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/ResetTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Command;

use OCA\Recognize\Service\TagManager;
Expand Down
2 changes: 1 addition & 1 deletion lib/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize;

class Constants {
Expand Down
2 changes: 1 addition & 1 deletion lib/Dav/Faces/FacePhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Dav\Faces;

use \Rubix\ML\Kernels\Distance\Euclidean;
Expand Down
2 changes: 1 addition & 1 deletion lib/Dav/Faces/FaceRoot.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Dav\Faces;

use OC\Metadata\IMetadataManager;
Expand Down
2 changes: 1 addition & 1 deletion lib/Dav/Faces/FacesHome.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Dav\Faces;

use OC\Metadata\IMetadataManager;
Expand Down
2 changes: 1 addition & 1 deletion lib/Dav/Faces/PropFindPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Dav\Faces;

use \OCA\DAV\Connector\Sabre\FilesPlugin;
Expand Down
2 changes: 1 addition & 1 deletion lib/Dav/Faces/UnassignedFacePhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Dav\Faces;

use OC\Metadata\IMetadataManager;
Expand Down
2 changes: 1 addition & 1 deletion lib/Dav/Faces/UnassignedFacesHome.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Dav\Faces;

use OC\Metadata\IMetadataManager;
Expand Down
2 changes: 1 addition & 1 deletion lib/Dav/RecognizeHome.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Dav;

use OC\Metadata\IMetadataManager;
Expand Down
2 changes: 1 addition & 1 deletion lib/Dav/RootCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Dav;

use \Sabre\DAVACL\AbstractPrincipalCollection;
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/FaceCluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Db;

use OCP\AppFramework\Db\Entity;
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/FaceClusterMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/

declare(strict_types=1);
namespace OCA\Recognize\Db;

use OCP\AppFramework\Db\Entity;
Expand Down
Loading

0 comments on commit 55b968a

Please sign in to comment.