1
0
Fork 0
mirror of https://github.com/Oreolek/kangana.git synced 2024-06-26 03:40:56 +03:00

Code style and Travis CI

This commit is contained in:
Alexander Yakovlev 2016-11-12 13:06:39 +07:00
parent 6762f6afd0
commit ed4e22e5ac
12 changed files with 35 additions and 19 deletions

16
.travis.yml Normal file
View file

@ -0,0 +1,16 @@
language: php
php:
- "7.0"
before_script:
# install CodeSniffer for Kohana Coding Standards checks
# - git clone https://github.com/squizlabs/PHP_CodeSniffer.git php-codesniffer --depth=1
# Install Kohana Coding Standards
# - git clone https://github.com/kohana/coding-standards.git kohana-coding-standards --depth=1
# - cd php-codesniffer
# - scripts/phpcs --config-set installed_paths ../kohana-coding-standards
script:
- find {application} -name "*.php" -print0 \
| xargs -0 -n1 -P8 php -l \
| grep -v '^No syntax errors detected' \
; test $? -eq 1
# - php-codesniffer/scripts/phpcs -p -s -v -n --standard=Kohana --extensions=php application

View file

@ -65,7 +65,7 @@ class Controller_Client extends Controller_Layout {
**/
public function action_view()
{
$this->template = new View_Client_View();
$this->template = new View_Client_View;
$model = ORM::factory('Client', $this->request->param('id'))
->with('courses')
->with('groups');

View file

@ -46,7 +46,7 @@ class Task_Migrate_Smartresponder extends Minion_Task
$group = ORM::factory('Group')->where('id', '=', $params['group_id'])->find();
if ( ! $group->loaded()) {
echo "No group with id " . $params['group_id'] . " found.\n";
echo "No group with id ".$params['group_id' " found.\n";
return;
}