Skip to content

Commit

Permalink
rename library folder to src (#560)
Browse files Browse the repository at this point in the history
* rename library folder to src

* updated changelog
  • Loading branch information
Markus Kalkbrenner committed Jan 24, 2018
1 parent 749b8f2 commit ea8243e
Show file tree
Hide file tree
Showing 248 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,8 @@

## Unreleased
### Changed
- Renamed folder library to src
- Use PSR-4 class loading
- Updated PHPUnit to v6.5
- Updated required PHP version to >= v7.0

Expand Down
12 changes: 6 additions & 6 deletions build.xml
Expand Up @@ -36,21 +36,21 @@
<arg line="--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg"/>
<arg line="--jdepend-chart=${basedir}/build/pdepend/dependencies.svg"/>
<arg line="--jdepend-xml=${basedir}/build/logs/jdepend.xml"/>
<arg line="library"/>
<arg line="src"/>
</exec>
</target>

<!-- Generate pmd.xml -->
<target name="phpmd">
<exec executable="phpmd">
<arg line="library xml codesize,unusedcode --reportfile ${basedir}/build/logs/pmd.xml"/>
<arg line="src xml codesize,unusedcode --reportfile ${basedir}/build/logs/pmd.xml"/>
</exec>
</target>

<!-- Generate pmd-cpd.xml -->
<target name="phpcpd">
<exec executable="phpcpd">
<arg line="--log-pmd ${basedir}/build/logs/pmd-cpd.xml library"/>
<arg line="--log-pmd ${basedir}/build/logs/pmd-cpd.xml src"/>
</exec>
</target>

Expand All @@ -61,20 +61,20 @@
<arg value="--report-file=${basedir}/build/logs/checkstyle.xml"/>
<arg value="--standard=PSR2"/>
<arg value="--extensions=php"/>
<arg path="library"/>
<arg path="src"/>
</exec>
</target>

<!-- Generate API documentation -->
<target name="docblox">
<exec executable="docblox">
<arg line="run -d library -t build/api"/>
<arg line="run -d src -t build/api"/>
</exec>
</target>

<target name="phpcb">
<exec executable="phpcb">
<arg line="--log ${basedir}/build/logs --source ${basedir}/library --output ${basedir}/build/code-browser"/>
<arg line="--log ${basedir}/build/logs --source ${basedir}/src --output ${basedir}/build/code-browser"/>
</exec>
</target>

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -32,7 +32,7 @@
},
"autoload": {
"psr-4": {
"Solarium\\": "library/"
"Solarium\\": "src/"
}
},
"autoload-dev": {
Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Expand Up @@ -22,9 +22,9 @@

<filter>
<whitelist>
<directory suffix=".php">library</directory>
<directory suffix=".php">src</directory>
<exclude>
<file>library/Solarium/Autoloader.php</file>
<file>src/Solarium/Autoloader.php</file>
</exclude>
</whitelist>
</filter>
Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml.travis
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
syntaxCheck="false"
Expand All @@ -16,9 +16,9 @@

<filter>
<whitelist>
<directory suffix=".php">library</directory>
<directory suffix=".php">src</directory>
<exclude>
<file>library/Solarium/Autoloader.php</file>
<file>src/Solarium/Autoloader.php</file>
</exclude>
</whitelist>
</filter>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ea8243e

Please sign in to comment.