diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 0ff651f60..d821008ae 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -697,7 +697,7 @@ public function cloneQuestion(int $id): DataResponse { $questionData = $sourceQuestion->read(); unset($questionData['id']); - $questionData["order"] = end($allQuestions)->getOrder() + 1; + $questionData['order'] = end($allQuestions)->getOrder() + 1; $newQuestion = Question::fromParams($questionData); $this->questionMapper->insert($newQuestion); @@ -947,7 +947,7 @@ private function storeAnswersForQuestion(Form $form, $submissionId, array $quest if ($optionIndex !== false) { $answerText = $question['options'][$optionIndex]['text']; } elseif (!empty($question['extraSettings']['allowOtherAnswer']) && strpos($answer, Constants::QUESTION_EXTRASETTINGS_OTHER_PREFIX) === 0) { - $answerText = str_replace(Constants::QUESTION_EXTRASETTINGS_OTHER_PREFIX, "", $answer); + $answerText = str_replace(Constants::QUESTION_EXTRASETTINGS_OTHER_PREFIX, '', $answer); } } elseif ($question['type'] === Constants::ANSWER_TYPE_FILE) { $uploadedFile = $this->uploadedFileMapper->getByUploadedFileId($answer['uploadedFileId']); @@ -972,7 +972,7 @@ private function storeAnswersForQuestion(Form $form, $submissionId, array $quest $answerText = $answer; // Not a multiple-question, answerText is given answer } - if ($answerText === "") { + if ($answerText === '') { continue; } @@ -1143,7 +1143,7 @@ public function insertSubmission(int $formId, array $answers, string $shareHash // If not logged in, anonymous, or embedded use anonID if (!$this->currentUser || $form->getIsAnonymous()) { - $anonID = "anon-user-". hash('md5', strval(time() + rand())); + $anonID = 'anon-user-'. hash('md5', strval(time() + rand())); $submission->setUserId($anonID); } else { $submission->setUserId($this->currentUser->getUID()); diff --git a/lib/Db/AnswerMapper.php b/lib/Db/AnswerMapper.php index 5f25acfe2..78b67706c 100644 --- a/lib/Db/AnswerMapper.php +++ b/lib/Db/AnswerMapper.php @@ -66,9 +66,9 @@ public function deleteBySubmission(int $submissionId): void { $qb = $this->db->getQueryBuilder(); $qb->delete($this->getTableName()) - ->where( - $qb->expr()->eq('submission_id', $qb->createNamedParameter($submissionId, IQueryBuilder::PARAM_INT)) - ); + ->where( + $qb->expr()->eq('submission_id', $qb->createNamedParameter($submissionId, IQueryBuilder::PARAM_INT)) + ); $qb->executeStatement(); } diff --git a/lib/Db/ShareMapper.php b/lib/Db/ShareMapper.php index e56ae0cfd..c458c39be 100644 --- a/lib/Db/ShareMapper.php +++ b/lib/Db/ShareMapper.php @@ -112,9 +112,9 @@ public function deleteById(int $id): void { $qb = $this->db->getQueryBuilder(); $qb->delete($this->getTableName()) - ->where( - $qb->expr()->eq('id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT)) - ); + ->where( + $qb->expr()->eq('id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT)) + ); $qb->executeStatement(); } @@ -126,9 +126,9 @@ public function deleteByForm(int $formId): void { $qb = $this->db->getQueryBuilder(); $qb->delete($this->getTableName()) - ->where( - $qb->expr()->eq('form_id', $qb->createNamedParameter($formId, IQueryBuilder::PARAM_INT)) - ); + ->where( + $qb->expr()->eq('form_id', $qb->createNamedParameter($formId, IQueryBuilder::PARAM_INT)) + ); $qb->executeStatement(); } } diff --git a/lib/Db/SubmissionMapper.php b/lib/Db/SubmissionMapper.php index 00814c75f..769005a2a 100644 --- a/lib/Db/SubmissionMapper.php +++ b/lib/Db/SubmissionMapper.php @@ -135,7 +135,7 @@ protected function countSubmissionsWithFilters(int $formId, ?string $userId = nu $row = $result->fetch(); $result->closeCursor(); - return (int) ($row['num_submissions'] ?? 0); + return (int)($row['num_submissions'] ?? 0); } /** @@ -151,9 +151,9 @@ public function deleteById(int $id): void { //Delete Submission $qb->delete($this->getTableName()) - ->where( - $qb->expr()->eq('id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT)) - ); + ->where( + $qb->expr()->eq('id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT)) + ); $qb->executeStatement(); } @@ -173,9 +173,9 @@ public function deleteByForm(int $formId): void { //Delete Submissions $qb->delete($this->getTableName()) - ->where( - $qb->expr()->eq('form_id', $qb->createNamedParameter($formId, IQueryBuilder::PARAM_INT)) - ); + ->where( + $qb->expr()->eq('form_id', $qb->createNamedParameter($formId, IQueryBuilder::PARAM_INT)) + ); $qb->executeStatement(); } diff --git a/lib/Migration/Version010200Date20200323141300.php b/lib/Migration/Version010200Date20200323141300.php index 756405cc8..68bc32551 100644 --- a/lib/Migration/Version010200Date20200323141300.php +++ b/lib/Migration/Version010200Date20200323141300.php @@ -263,12 +263,12 @@ public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array } $qb_restore->insert('forms_v2_questions') - ->values([ - 'form_id' => $qb_restore->createNamedParameter($id_mapping['events'][$question['form_id']]['newId'], IQueryBuilder::PARAM_INT), - 'order' => $qb_restore->createNamedParameter($id_mapping['events'][$question['form_id']]['nextQuestionOrder']++, IQueryBuilder::PARAM_INT), - 'type' => $qb_restore->createNamedParameter($this->questionTypeMap[$question['form_question_type']], IQueryBuilder::PARAM_STR), - 'text' => $qb_restore->createNamedParameter($question['form_question_text'], IQueryBuilder::PARAM_STR) - ]); + ->values([ + 'form_id' => $qb_restore->createNamedParameter($id_mapping['events'][$question['form_id']]['newId'], IQueryBuilder::PARAM_INT), + 'order' => $qb_restore->createNamedParameter($id_mapping['events'][$question['form_id']]['nextQuestionOrder']++, IQueryBuilder::PARAM_INT), + 'type' => $qb_restore->createNamedParameter($this->questionTypeMap[$question['form_question_type']], IQueryBuilder::PARAM_STR), + 'text' => $qb_restore->createNamedParameter($question['form_question_text'], IQueryBuilder::PARAM_STR) + ]); $qb_restore->execute(); $id_mapping['questions'][$question['id']]['newId'] = $qb_restore->getLastInsertId(); //Store new question-id to connect options to new question. } diff --git a/lib/Migration/Version020200Date20210120082018.php b/lib/Migration/Version020200Date20210120082018.php index cb1a0d28f..f1ea2ac09 100644 --- a/lib/Migration/Version020200Date20210120082018.php +++ b/lib/Migration/Version020200Date20210120082018.php @@ -47,30 +47,30 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt if ($schema->hasTable('forms_v2_answers')) { $schema->getTable('forms_v2_answers') - ->addIndex(['submission_id'], 'forms_answers_submission') - ->addIndex(['question_id'], 'forms_answers_question'); + ->addIndex(['submission_id'], 'forms_answers_submission') + ->addIndex(['question_id'], 'forms_answers_question'); } if ($schema->hasTable('forms_v2_forms')) { $schema->getTable('forms_v2_forms') - ->addIndex(['owner_id'], 'forms_forms_owner') - ->addIndex(['created'], 'forms_forms_created'); + ->addIndex(['owner_id'], 'forms_forms_owner') + ->addIndex(['created'], 'forms_forms_created'); } if ($schema->hasTable('forms_v2_options')) { $schema->getTable('forms_v2_options') - ->addIndex(['question_id'], 'forms_options_question'); + ->addIndex(['question_id'], 'forms_options_question'); } if ($schema->hasTable('forms_v2_questions')) { $schema->getTable('forms_v2_questions') - ->addIndex(['form_id', 'order'], 'forms_questions_form_order') - ->addIndex(['form_id'], 'forms_questions_form'); + ->addIndex(['form_id', 'order'], 'forms_questions_form_order') + ->addIndex(['form_id'], 'forms_questions_form'); } if ($schema->hasTable('forms_v2_submissions')) { $schema->getTable('forms_v2_submissions') - ->addIndex(['form_id'], 'forms_submissions_form'); + ->addIndex(['form_id'], 'forms_submissions_form'); } return $schema; diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index ea48f951a..e4d2c4f22 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -52,19 +52,19 @@ public function __construct( * Load the single values, decode, have default values */ public function getAllowPermitAll(): bool { - return json_decode($this->config->getAppValue($this->appName, Constants::CONFIG_KEY_ALLOWPERMITALL, "true")); + return json_decode($this->config->getAppValue($this->appName, Constants::CONFIG_KEY_ALLOWPERMITALL, 'true')); } public function getAllowPublicLink(): bool { - return json_decode($this->config->getAppValue($this->appName, Constants::CONFIG_KEY_ALLOWPUBLICLINK, "true")); + return json_decode($this->config->getAppValue($this->appName, Constants::CONFIG_KEY_ALLOWPUBLICLINK, 'true')); } private function getUnformattedCreationAllowedGroups(): array { - return json_decode($this->config->getAppValue($this->appName, Constants::CONFIG_KEY_CREATIONALLOWEDGROUPS, "[]")); + return json_decode($this->config->getAppValue($this->appName, Constants::CONFIG_KEY_CREATIONALLOWEDGROUPS, '[]')); } public function getCreationAllowedGroups(): array { return $this->formatGroupsForMultiselect($this->getUnformattedCreationAllowedGroups()); } public function getRestrictCreation(): bool { - return json_decode($this->config->getAppValue($this->appName, Constants::CONFIG_KEY_RESTRICTCREATION, "false")); + return json_decode($this->config->getAppValue($this->appName, Constants::CONFIG_KEY_RESTRICTCREATION, 'false')); } /** diff --git a/license.php b/license.php index 6e470a6a1..1b97357f5 100644 --- a/license.php +++ b/license.php @@ -71,7 +71,7 @@ public function __construct() { * */ EOD; - $this->licenseTextLegacy = str_replace('@YEAR@', date("Y"), $this->licenseTextLegacy); + $this->licenseTextLegacy = str_replace('@YEAR@', date('Y'), $this->licenseTextLegacy); } /** @@ -123,7 +123,7 @@ public function exec($folder, $gitRoot = false) { public function writeAuthorsFile() { ksort($this->authors); - $template = "Nextcloud is written by: + $template = 'Nextcloud is written by: @AUTHORS@ With help from many libraries and frameworks including: @@ -131,9 +131,9 @@ public function writeAuthorsFile() { SabreDAV jQuery … -"; +'; $authors = implode(PHP_EOL, array_map(function ($author) { - return " - ".$author; + return ' - '.$author; }, $this->authors)); $template = str_replace('@AUTHORS@', $authors, $template); file_put_contents(__DIR__.'/../AUTHORS', $template); @@ -162,9 +162,9 @@ public function handleFile($path, $gitRoot) { [$source, $isStrict] = $this->eatOldLicense($source); if ($isStrict) { - $source = "checkFiles)) { print "\n"; - print "For following files all lines changed since the Nextcloud fork." . PHP_EOL; - print "Please check if these files can be moved over to AGPLv3 or later" . PHP_EOL; + print 'For following files all lines changed since the Nextcloud fork.' . PHP_EOL; + print 'Please check if these files can be moved over to AGPLv3 or later' . PHP_EOL; print "\n"; foreach ($this->checkFiles as $file) { print $file . PHP_EOL; diff --git a/tests/Integration/Api/ApiV2Test.php b/tests/Integration/Api/ApiV2Test.php index f3a49a86f..902af9def 100644 --- a/tests/Integration/Api/ApiV2Test.php +++ b/tests/Integration/Api/ApiV2Test.php @@ -1421,7 +1421,7 @@ public function testDeleteSingleSubmission(array $submissionsExpected) { * Keep this test at the end as it might break other tests */ public function testTransferOwner() { - $resp = $this->http->request('POST', "api/v2.4/form/transfer", [ + $resp = $this->http->request('POST', 'api/v2.4/form/transfer', [ 'json' => [ 'formId' => $this->testForms[0]['id'], 'uid' => 'user1' diff --git a/tests/Unit/Controller/ApiControllerTest.php b/tests/Unit/Controller/ApiControllerTest.php index 419cac9b3..eae6950d2 100644 --- a/tests/Unit/Controller/ApiControllerTest.php +++ b/tests/Unit/Controller/ApiControllerTest.php @@ -455,26 +455,26 @@ public function testCreateNewForm($expectedForm) { // Create a partial mock, as we only test newForm and not getForm /** @var ApiController|MockObject */ $apiController = $this->getMockBuilder(ApiController::class) - ->onlyMethods(['getForm']) - ->setConstructorArgs(['forms', - $this->request, - $this->createUserSession(), - $this->answerMapper, - $this->formMapper, - $this->optionMapper, - $this->questionMapper, - $this->shareMapper, - $this->submissionMapper, - $this->configService, - $this->formsService, - $this->submissionService, - $this->l10n, - $this->logger, - $this->userManager, - $this->storage, - $this->uploadedFileMapper, - $this->mimeTypeDetector, - ])->getMock(); + ->onlyMethods(['getForm']) + ->setConstructorArgs(['forms', + $this->request, + $this->createUserSession(), + $this->answerMapper, + $this->formMapper, + $this->optionMapper, + $this->questionMapper, + $this->shareMapper, + $this->submissionMapper, + $this->configService, + $this->formsService, + $this->submissionService, + $this->l10n, + $this->logger, + $this->userManager, + $this->storage, + $this->uploadedFileMapper, + $this->mimeTypeDetector, + ])->getMock(); // Set the time that should be set for `lastUpdated` \OCA\Forms\Controller\time(123456789); diff --git a/tests/Unit/Controller/ConfigControllerTest.php b/tests/Unit/Controller/ConfigControllerTest.php index c0fcd90e7..946d71fec 100644 --- a/tests/Unit/Controller/ConfigControllerTest.php +++ b/tests/Unit/Controller/ConfigControllerTest.php @@ -89,13 +89,13 @@ public function dataUpdateAppConfig() { 'booleanConfig' => [ 'configKey' => 'allowPermitAll', 'configValue' => true, - 'strConfig' => "true" + 'strConfig' => 'true' ], 'arrayConfig' => [ 'configKey' => 'allowPermitAll', 'configValue' => [ - "admin", - "group1" + 'admin', + 'group1' ], 'strConfig' => '["admin","group1"]' ] diff --git a/tests/Unit/Db/SubmissionMapperTest.php b/tests/Unit/Db/SubmissionMapperTest.php index 47754ad54..4c25313ce 100644 --- a/tests/Unit/Db/SubmissionMapperTest.php +++ b/tests/Unit/Db/SubmissionMapperTest.php @@ -38,9 +38,9 @@ public function setUp(): void { parent::setUp(); $this->mockSubmissionMapper = $this->getMockBuilder(SubmissionMapper::class) - ->disableOriginalConstructor() - ->setMethods(['countSubmissionsWithFilters']) - ->getMock(); + ->disableOriginalConstructor() + ->setMethods(['countSubmissionsWithFilters']) + ->getMock(); } /** @@ -48,8 +48,8 @@ public function setUp(): void { */ public function testHasMultipleFormSubmissionsByUser(int $numberOfSubmissions, bool $expected) { $this->mockSubmissionMapper->expects($this->once()) - ->method('countSubmissionsWithFilters') - ->will($this->returnValue($numberOfSubmissions)); + ->method('countSubmissionsWithFilters') + ->will($this->returnValue($numberOfSubmissions)); $form = new Form(); $form->setId(1); @@ -83,8 +83,8 @@ public function dataHasMultipleFormSubmissionsByUser() { */ public function testHasFormSubmissionsByUser(int $numberOfSubmissions, bool $expected) { $this->mockSubmissionMapper->expects($this->once()) - ->method('countSubmissionsWithFilters') - ->will($this->returnValue($numberOfSubmissions)); + ->method('countSubmissionsWithFilters') + ->will($this->returnValue($numberOfSubmissions)); $form = new Form(); $form->setId(1); @@ -114,8 +114,8 @@ public function dataHasFormSubmissionsByUser() { */ public function testCountSubmissions(int $numberOfSubmissions, int $expected) { $this->mockSubmissionMapper->expects($this->once()) - ->method('countSubmissionsWithFilters') - ->will($this->returnValue($numberOfSubmissions)); + ->method('countSubmissionsWithFilters') + ->will($this->returnValue($numberOfSubmissions)); $this->assertEquals($expected, $this->mockSubmissionMapper->countSubmissions(1)); } diff --git a/tests/Unit/FormsMigratorTest.php b/tests/Unit/FormsMigratorTest.php index 166c8f2bf..e11e57ba8 100644 --- a/tests/Unit/FormsMigratorTest.php +++ b/tests/Unit/FormsMigratorTest.php @@ -210,19 +210,19 @@ public function testExport(string $expectedJson) { ->with(42) ->willReturn([ [ - "id" => 14, + 'id' => 14, 'formId' => 42, - "order" => 2, - "type" => "multiple", - "isRequired" => false, - "text" => "checkbox", - "description" => "huhu", - "extraSettings" => (object)[], - "options" => [ + 'order' => 2, + 'type' => 'multiple', + 'isRequired' => false, + 'text' => 'checkbox', + 'description' => 'huhu', + 'extraSettings' => (object)[], + 'options' => [ [ 'id' => 35, 'questionId' => 14, - "text" => "ans1" + 'text' => 'ans1' ] ] ] @@ -234,14 +234,14 @@ public function testExport(string $expectedJson) { [ 'id' => 28, 'formId' => 42, - 'userId' => "anyUser", - "timestamp" => 1651354059, + 'userId' => 'anyUser', + 'timestamp' => 1651354059, 'answers' => [ [ 'id' => 35, 'submissionId' => 28, - "questionId" => 14, - "text" => "ans1" + 'questionId' => 14, + 'text' => 'ans1' ] ] ] diff --git a/tests/Unit/Service/ConfigServiceTest.php b/tests/Unit/Service/ConfigServiceTest.php index 325c52590..966024f28 100644 --- a/tests/Unit/Service/ConfigServiceTest.php +++ b/tests/Unit/Service/ConfigServiceTest.php @@ -222,7 +222,7 @@ public function testCanCreateForms(array $config, bool $expected) { $this->groupManager->expects($this->any()) ->method('getUserGroupIds') ->with($this->currentUser) - ->willReturn(["usersGroup"]); + ->willReturn(['usersGroup']); $this->assertEquals($expected, $this->configService->canCreateForms()); } diff --git a/tests/Unit/Service/FormsServiceTest.php b/tests/Unit/Service/FormsServiceTest.php index a2697fcd8..ddea03ba9 100644 --- a/tests/Unit/Service/FormsServiceTest.php +++ b/tests/Unit/Service/FormsServiceTest.php @@ -873,7 +873,7 @@ public function testPublicCanSubmit() { // Make sure, we don't pass the PublicLinkCheck (which would then reach 'getUID') $user = $this->createMock(IUser::class); $user->expects($this->never()) - ->method('getUID'); + ->method('getUID'); $userSession = $this->createMock(IUserSession::class); $userSession->expects($this->once()) ->method('getUser') diff --git a/tests/Unit/Service/SubmissionServiceTest.php b/tests/Unit/Service/SubmissionServiceTest.php index 5f495f4b2..7a1afcbd3 100644 --- a/tests/Unit/Service/SubmissionServiceTest.php +++ b/tests/Unit/Service/SubmissionServiceTest.php @@ -568,16 +568,16 @@ private function setUpCsvTest(array $questions, array $submissions, string $csvT })); $this->questionMapper->expects($this->once()) - ->method('findByForm') - ->with(5) + ->method('findByForm') + ->with(5) // Return QuestionObjects for given Questions - ->will($this->returnCallback(function (int $formId) use ($questions) { - $questionEntities = array_map(function ($question) { - return Question::fromParams($question); - }, $questions); + ->will($this->returnCallback(function (int $formId) use ($questions) { + $questionEntities = array_map(function ($question) { + return Question::fromParams($question); + }, $questions); - return $questionEntities; - })); + return $questionEntities; + })); date_default_timezone_set('Europe/Berlin'); $this->config->expects($this->once()) @@ -601,19 +601,19 @@ private function setUpCsvTest(array $questions, array $submissions, string $csvT ])); $this->answerMapper->expects($this->any()) - ->method('findBySubmission') + ->method('findBySubmission') // Return AnswerObjects for corresponding submission - ->will($this->returnCallback(function (int $submissionId) use ($submissions) { - $matchingSubmission = array_filter($submissions, function ($submission) use ($submissionId) { - return $submission['id'] === $submissionId; - }); + ->will($this->returnCallback(function (int $submissionId) use ($submissions) { + $matchingSubmission = array_filter($submissions, function ($submission) use ($submissionId) { + return $submission['id'] === $submissionId; + }); - $answerEntities = array_map(function ($answer) { - return Answer::fromParams($answer); - }, current($matchingSubmission)['answers']); + $answerEntities = array_map(function ($answer) { + return Answer::fromParams($answer); + }, current($matchingSubmission)['answers']); - return $answerEntities; - })); + return $answerEntities; + })); // Prepend BOM-Sequence as Writer does and remove formatting-artefacts of dataProvider. $dataExpectation = chr(239).chr(187).chr(191) . ltrim(preg_replace('/\t+/', '', $csvText)); diff --git a/vendor-bin/cs-fixer/composer.lock b/vendor-bin/cs-fixer/composer.lock index 1b8e3cd70..d651c7696 100644 --- a/vendor-bin/cs-fixer/composer.lock +++ b/vendor-bin/cs-fixer/composer.lock @@ -1,108 +1,115 @@ { - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", - "This file is @generated automatically" - ], - "content-hash": "f2391d39f330ebebb8b0d663f5b60927", - "packages": [ - { - "name": "nextcloud/coding-standard", - "version": "v1.2.1", - "source": { - "type": "git", - "url": "https://github.com/nextcloud/coding-standard.git", - "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", - "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", - "shasum": "" - }, - "require": { - "php": "^7.3|^8.0", - "php-cs-fixer/shim": "^3.17" - }, - "type": "library", - "autoload": { - "psr-4": { - "Nextcloud\\CodingStandard\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": ["MIT"], - "authors": [ - { - "name": "Christoph Wurst", - "email": "christoph@winzerhof-wurst.at" - } - ], - "description": "Nextcloud coding standards for the php cs fixer", - "support": { - "issues": "https://github.com/nextcloud/coding-standard/issues", - "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.1" - }, - "time": "2024-02-01T14:54:37+00:00" - }, - { - "name": "php-cs-fixer/shim", - "version": "v3.59.3", - "source": { - "type": "git", - "url": "https://github.com/PHP-CS-Fixer/shim.git", - "reference": "c855876e64de3431bc9279f27af7be40d11d7613" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/c855876e64de3431bc9279f27af7be40d11d7613", - "reference": "c855876e64de3431bc9279f27af7be40d11d7613", - "shasum": "" - }, - "require": { - "ext-json": "*", - "ext-tokenizer": "*", - "php": "^7.4 || ^8.0" - }, - "replace": { - "friendsofphp/php-cs-fixer": "self.version" - }, - "suggest": { - "ext-dom": "For handling output formats in XML", - "ext-mbstring": "For handling non-UTF8 characters." - }, - "bin": ["php-cs-fixer", "php-cs-fixer.phar"], - "type": "application", - "notification-url": "https://packagist.org/downloads/", - "license": ["MIT"], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Dariusz Rumiński", - "email": "dariusz.ruminski@gmail.com" - } - ], - "description": "A tool to automatically fix PHP code style", - "support": { - "issues": "https://github.com/PHP-CS-Fixer/shim/issues", - "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.59.3" - }, - "time": "2024-06-16T14:17:34+00:00" - } - ], - "packages-dev": [], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": [], - "platform-dev": [], - "platform-overrides": { - "php": "8.0" - }, - "plugin-api-version": "2.6.0" + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "f2391d39f330ebebb8b0d663f5b60927", + "packages": [ + { + "name": "nextcloud/coding-standard", + "version": "v1.2.3", + "source": { + "type": "git", + "url": "https://github.com/nextcloud/coding-standard.git", + "reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/bc9c53a5306114b60c4363057aff9c2ed10a54da", + "reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0", + "php-cs-fixer/shim": "^3.17" + }, + "type": "library", + "autoload": { + "psr-4": { + "Nextcloud\\CodingStandard\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christoph Wurst", + "email": "christoph@winzerhof-wurst.at" + } + ], + "description": "Nextcloud coding standards for the php cs fixer", + "support": { + "issues": "https://github.com/nextcloud/coding-standard/issues", + "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.3" + }, + "time": "2024-08-23T14:32:32+00:00" + }, + { + "name": "php-cs-fixer/shim", + "version": "v3.62.0", + "source": { + "type": "git", + "url": "https://github.com/PHP-CS-Fixer/shim.git", + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/7a91d5ce45c486f5b445d95901228507a02f60ae", + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0" + }, + "replace": { + "friendsofphp/php-cs-fixer": "self.version" + }, + "suggest": { + "ext-dom": "For handling output formats in XML", + "ext-mbstring": "For handling non-UTF8 characters." + }, + "bin": [ + "php-cs-fixer", + "php-cs-fixer.phar" + ], + "type": "application", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Dariusz Rumiński", + "email": "dariusz.ruminski@gmail.com" + } + ], + "description": "A tool to automatically fix PHP code style", + "support": { + "issues": "https://github.com/PHP-CS-Fixer/shim/issues", + "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.62.0" + }, + "time": "2024-08-07T17:03:46+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "platform-overrides": { + "php": "8.0" + }, + "plugin-api-version": "2.6.0" }