Skip to content

Commit

Permalink
Merge pull request #37 from weierophinney/feature/lcs-2.3
Browse files Browse the repository at this point in the history
Adopt laminas-coding-standard 2.3 rules
  • Loading branch information
weierophinney authored Jun 24, 2021
2 parents 2b0e511 + 5f100d7 commit 2d92061
Show file tree
Hide file tree
Showing 20 changed files with 1,579 additions and 752 deletions.
5 changes: 5 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"exclude": [
{"name": "PHPUnit on PHP 7.3 with locked dependencies"}
]
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"require-dev": {
"laminas-api-tools/api-tools-admin": "^1.6",
"laminas-api-tools/api-tools-asset-manager": "^1.2",
"laminas/laminas-coding-standard": "^2.1",
"laminas/laminas-coding-standard": "~2.3.0",
"laminas/laminas-composer-autoloading": "^2.1",
"laminas/laminas-developer-tools": "^1.2.1",
"laminas/laminas-test": "^3.4",
"laminas/laminas-test": "^3.5",
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-master",
"zfcampus/zf-deploy": "^1.3"
Expand Down
2,227 changes: 1,550 additions & 677 deletions composer.lock

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions config/application.config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);

return [
// Retrieve the list of modules for this application.
Expand Down
6 changes: 1 addition & 5 deletions config/autoload/api-tools-config.global.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);

return [
'view_manager' => [
Expand Down
2 changes: 2 additions & 0 deletions config/autoload/api-tools-mvc-auth-oauth2-override.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* OAuth2\Server instances.
*/

declare(strict_types=1);

use Laminas\ApiTools\MvcAuth\Factory\NamedOAuth2ServerFactory;
use Laminas\ApiTools\OAuth2\Service\OAuth2Server;

Expand Down
6 changes: 1 addition & 5 deletions config/autoload/global-development.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);

use Laminas\ApiTools\Admin\Model\ModulePathSpec;

Expand Down
6 changes: 1 addition & 5 deletions config/autoload/global.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);

return [
'api-tools-content-negotiation' => [
Expand Down
8 changes: 2 additions & 6 deletions config/autoload/user.global.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/

/**
* Global Configuration Override
*
Expand All @@ -18,6 +12,8 @@
* file.
*/

declare(strict_types=1);

return [
// ...
];
6 changes: 0 additions & 6 deletions config/development.config.php.dist
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/

return [
// Development time modules
'modules' => [
Expand Down
9 changes: 3 additions & 6 deletions config/modules.config.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/

/**
* List of enabled modules for this application.
*/

declare(strict_types=1);

return [
'Laminas\Db',
'Laminas\Filter',
Expand Down
6 changes: 1 addition & 5 deletions module/Application/config/module.config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);

namespace Application;

Expand Down
6 changes: 1 addition & 5 deletions module/Application/src/Controller/IndexController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);

namespace Application\Controller;

Expand Down
6 changes: 1 addition & 5 deletions module/Application/src/Module.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);

namespace Application;

Expand Down
6 changes: 1 addition & 5 deletions module/Application/test/Controller/IndexControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);

namespace ApplicationTest\Controller;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);

namespace ApplicationTest\Controller;

Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions public/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
apigility-ui/
zf-apigility/
api-tools-ui/
api-tools/
8 changes: 2 additions & 6 deletions src/ApiTools/constants.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?php

/**
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);

namespace ApiTools;

const VERSION = '1.5.1dev';
const VERSION = '1.6.0dev';
6 changes: 2 additions & 4 deletions src/remove-package-artifacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
/**
* This file is triggered by the post-create-project-cmd event in order to
* remove the github workflows used by the package, as well as this file itself.
*
* @see https://github.com/laminas-api-tools/api-tools-skeleton for the canonical source repository
* @copyright https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/COPYRIGHT.md
* @license https://github.com/laminas-api-tools/api-tools-skeleton/blob/master/LICENSE.md New BSD License
*/

declare(strict_types=1);

/**
* @param string $path
* @return void
Expand Down

0 comments on commit 2d92061

Please sign in to comment.