Skip to content

Commit 37d2a39

Browse files
committedSep 1, 2021
Update coding standard
1 parent 2f903bf commit 37d2a39

9 files changed

+30
-2
lines changed
 

‎.php-cs-fixer.dist.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
use Framework\CodingStandard\Config;
1111
use Framework\CodingStandard\Finder;
1212

13-
return (new Config())->setFinder(
13+
return (new Config())->setDefaultHeaderComment(
14+
'Aplus Framework MVC Library',
15+
'Natan Felles <natanfelles@gmail.com>'
16+
)->setFinder(
1417
Finder::create()->in(__DIR__)
15-
)->setDefaultHeaderComment('Aplus Framework MVC Library');
18+
);

‎src/App.php

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131

3232
/**
3333
* Class App.
34+
*
35+
* @package mvc
3436
*/
3537
class App
3638
{

‎src/Controller.php

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
/**
1717
* Class Controller.
18+
*
19+
* @package mvc
1820
*/
1921
abstract class Controller extends RouteActions
2022
{

‎src/Entity.php

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
use InvalidArgumentException;
1414
use OutOfBoundsException;
1515

16+
/**
17+
* Class Entity.
18+
*
19+
* @package mvc
20+
*/
1621
abstract class Entity implements \JsonSerializable //, \Stringable
1722
{
1823
protected static array $jsonVars = [];

‎src/Model.php

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
/**
2323
* Class Model.
24+
*
25+
* @package mvc
2426
*/
2527
abstract class Model implements ModelInterface
2628
{

‎src/Model/CacheTrait.php

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*
2121
* Adds a cache layer for a Model
2222
*
23+
* @package mvc
24+
*
2325
* @mixin Model
2426
*/
2527
trait CacheTrait

‎src/ModelInterface.php

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
/**
1515
* Interface ModelInterface.
16+
*
17+
* @package mvc
1618
*/
1719
interface ModelInterface
1820
{

‎src/Validator.php

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
*/
1010
namespace Framework\MVC;
1111

12+
/**
13+
* Class Validator.
14+
*
15+
* @package mvc
16+
*/
1217
class Validator extends \Framework\Validation\Validator
1318
{
1419
public static function notUnique(

‎src/View.php

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
use Framework\Helpers\Isolation;
1313
use InvalidArgumentException;
1414

15+
/**
16+
* Class View.
17+
*
18+
* @package mvc
19+
*/
1520
class View
1621
{
1722
protected ?string $baseDir = null;

0 commit comments

Comments
 (0)
Please sign in to comment.