Skip to content

Commit

Permalink
autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
stanma committed Nov 30, 2017
1 parent 5d17d57 commit 9792cbc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"require": {
"squizlabs/php_codesniffer": "3.*"
}
Expand Down
16 changes: 16 additions & 0 deletions src/Installer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace App;

class Installer
{
public static function postInstall()
{
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
system('cmd /c vendor/wickedreports/phpcs-pre-commit-hook/src/setup.bat');
}
else {
system('sh vendor/wickedreports/phpcs-pre-commit-hook/src/setup.sh');
}
}
}
8 changes: 0 additions & 8 deletions src/install.php

This file was deleted.

0 comments on commit 9792cbc

Please sign in to comment.