Skip to content

Commit 326c99b

Browse files
author
Anton
authored
Merge pull request #20 from bluzphp/develop
Added PHP 7.3 build for TravisCI
2 parents fe72c47 + 6738fcb commit 326c99b

File tree

11 files changed

+34
-21
lines changed

11 files changed

+34
-21
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
checks:
2+
javascript: true
23
php:
34
psr2_switch_declaration: true
45
psr2_class_declaration: true
@@ -9,9 +10,6 @@ filter:
910
excluded_paths:
1011
- 'tests/*'
1112
- 'public/js/vendor/*'
12-
checks:
13-
php: true
14-
javascript: true
1513
tools:
1614
php_analyzer: true
1715
php_code_sniffer:

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: php
22
php:
33
- 7.1
44
- 7.2
5+
- 7.3
56
- master
67
matrix:
78
allow_failures:

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2017 by Bluz PHP Team
3+
Copyright (c) 2012-2019 by Bluz PHP Team
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
# Module test for Bluz Skeleton
22

3-
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/bluzphp/main)
4-
53
### Achievements
64

7-
[![Build Status](https://travis-ci.org/bluzphp/module-test.svg?branch=master)](https://travis-ci.org/bluzphp/module-test)
8-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/bluzphp/module-test/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/bluzphp/module-test/?branch=master)
5+
[![PHP >= 7.1+](https://img.shields.io/packagist/php-v/bluzphp/module-test.svg?style=flat)](https://php.net/)
6+
7+
[![Latest Stable Version](https://img.shields.io/packagist/v/bluzphp/module-test.svg?label=version&style=flat)](https://packagist.org/packages/bluzphp/module-test)
8+
9+
[![Build Status](https://img.shields.io/travis/bluzphp/module-test/master.svg?style=flat)](https://travis-ci.org/bluzphp/module-test)
10+
11+
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/bluzphp/module-test.svg?style=flat)](https://scrutinizer-ci.com/g/bluzphp/module-test/)
12+
13+
[![Total Downloads](https://img.shields.io/packagist/dt/bluzphp/module-test.svg?style=flat)](https://packagist.org/packages/bluzphp/module-test)
914

10-
[![Latest Stable Version](https://poser.pugx.org/bluzphp/module-test/v/stable)](https://packagist.org/packages/bluzphp/module-test)
11-
[![Total Downloads](https://poser.pugx.org/bluzphp/module-test/downloads)](https://packagist.org/packages/bluzphp/module-test)
15+
[![License](https://img.shields.io/packagist/l/bluzphp/module-test.svg?style=flat)](https://packagist.org/packages/bluzphp/module-test)
1216

13-
[![License](https://poser.pugx.org/bluzphp/module-test/license)](https://packagist.org/packages/bluzphp/module-test)
1417

1518
Usage
1619
-------------------------

application/modules/test/controllers/options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Options\Table::remove('example');
3434
} else {
3535
$message = 'Option `example` not found, try again later';
36-
Options\Table::set('example', uniqid('example_'));
36+
Options\Table::set('example', uniqid('example_', true));
3737
}
3838

3939
$this->assign('message', $message);

application/modules/test/controllers/rest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
* @acl Delete
2525
*
2626
* @return mixed
27-
* @throws ForbiddenException
2827
*/
2928
return function () {
3029
/**

application/modules/test/views/db-relations.phtml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,16 @@ $roles = $user->getRelations('Roles');
3333
demo($roles);
3434
?>
3535

36-
<h3>User - Page relation</h3>
36+
<h3>User - Find pages by user ID</h3>
37+
<hr/>
38+
<pre class="alert alert-secondary"><code>Db\Relations::findRelations('Users', 'Pages', [1, 2, 3])</code></pre>
39+
40+
<?php
41+
$result = \Bluz\Db\Relations::findRelations('Users', 'Pages', [1, 2, 3]);
42+
demo($result);
43+
?>
44+
45+
<h3>User - Fetch page relation</h3>
3746
<hr/>
3847
<pre class="alert alert-secondary"><code>Db::fetchRelations(
3948
"SELECT '__users', u.*, '__pages', p.* FROM users u LEFT JOIN pages p ON p.userId = u.id LIMIT 1"

application/modules/test/views/grid-sql.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (!$grid) {
5050
<td class="controls d-flex justify-content-around">
5151
<a href="<?= $this->url('test', 'crud', ['id' => $row['id']]) ?>" class="btn btn-primary"
5252
data-ajax-dialog data-ajax-method="get">
53-
<i class="fa fa-pencil"></i>
53+
<i class="fas fa-pencil-alt"></i>
5454
</a>
5555
<a href="<?= $this->url('test', 'crud', ['id' => $row['id']]) ?>" class="btn btn-danger"
5656
data-confirm data-ajax data-ajax-method="delete">

application/modules/test/views/index.phtml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ $this->headScript($this->baseUrl('js/test/config.js'));
208208
$(function(){
209209
$('#ajax-callback') <em>// button above</em>
210210
.on('success.bluz.ajax', function(){
211-
notify.addSuccess("Event `success.bluz.ajax` is fired")
211+
notify.addSuccess("Event `success.bluz.ajax` has been fired")
212212
})
213213
.on('error.bluz.ajax', function(){
214-
notify.addSuccess("Event `error.bluz.ajax` is fired")
214+
notify.addSuccess("Event `error.bluz.ajax` has been fired")
215215
});
216216
});
217217
});</code></pre>
@@ -220,13 +220,13 @@ $this->headScript($this->baseUrl('js/test/config.js'));
220220
$(function () {
221221
$('#ajax-callback')
222222
.on('success.bluz.ajax', function () {
223-
notify.addSuccess("Event `success.bluz.ajax` is fired")
223+
notify.addSuccess("Event `success.bluz.ajax` has been fired")
224224
.done(function () {
225225
console.log("Deferred call")
226226
});
227227
})
228228
.on('error.bluz.ajax', function () {
229-
notify.addSuccess("Event `error.bluz.ajax` is fired")
229+
notify.addSuccess("Event `error.bluz.ajax` has been fired")
230230
.done(function () {
231231
console.log("Deferred call")
232232
});
@@ -254,7 +254,7 @@ $this->headScript($this->baseUrl('js/test/config.js'));
254254
<?= $this->ahref(
255255
'Load + Confirm',
256256
['test', 'ajax-html'],
257-
['class' => 'btn btn-warning', 'data-ajax-load', 'data-ajax-target' => '#load', 'data-confirm' => 'Are you wand to load data from server?']
257+
['class' => 'btn btn-warning', 'data-ajax-load', 'data-ajax-target' => '#load', 'data-confirm' => 'Are you want to load data from server?']
258258
); ?>
259259
<div>
260260
<select class="form-control" name="formName"

application/modules/test/views/mailer.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
<form action="<?= $this->url('test', 'mailer') ?>" method="POST">
66
<div class="form-group">
77
<label class="input-group">
8-
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
8+
<div class="input-group-prepend">
9+
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
10+
</div>
911
<input type="email" class="form-control" name="email" value="<?= $email ?>" placeholder="<?= __('email') ?>"/>
1012
</label>
1113
</div>

0 commit comments

Comments
 (0)