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:
parent
6762f6afd0
commit
ed4e22e5ac
16
.travis.yml
Normal file
16
.travis.yml
Normal 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
|
|
@ -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');
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue