Skip to content

Commit d707db2

Browse files
committed
add .phpcs.xml enforcing PSR12 and apply fixes
1 parent 0da89b8 commit d707db2

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

.phpcs.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="PSR12" namespace="GregorJ\Standards">
3+
<description>PSR12 programming standard</description>
4+
<!-- display progress -->
5+
<arg value="p"/>
6+
<arg value="n"/>
7+
<!-- directories and files to check -->
8+
<file>./src</file>
9+
<file>./tests</file>
10+
<!-- Use PSR12 as a standard -->
11+
<rule ref="PSR12">
12+
</rule>
13+
</ruleset>

src/SapDateInterval.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* File src/SapDateInterval.php
45
*

src/SapDateTime.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* File src/SapDateTime.php
45
*

tests/SapDateIntervalTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* File tests/SapDateIntervalTest.php
45
*

tests/SapDateTimeTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* File tests/SapDateTimeTest.php
45
*

0 commit comments

Comments
 (0)