@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | <h3>Exception</h3> |
35 | 35 | |
36 | 36 | <div class="lithium-exception-class"> |
37 | - <?=get_class($exception);?> |
|
37 | + <?=get_class($exception); ?> |
|
38 | 38 | |
39 | 39 | <?php if ($code = $exception->getCode()): ?> |
40 | 40 | <span class="lithium-exception-code">(code <?=$code; ?>)</span> |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | if ($frame['line'] === $num): |
81 | 81 | ?><span class="code-highlight"><?php |
82 | - endif;?><?php echo "{$content}\n"; ?><?php |
|
82 | + endif; ?><?php echo "{$content}\n"; ?><?php |
|
83 | 83 | if ($frame['line'] === $num): |
84 | 84 | ?></span><?php |
85 | 85 | endif; |
@@ -7,4 +7,4 @@ |
||
7 | 7 | */ |
8 | 8 | ?> |
9 | 9 | <?php echo '<' . '?xml version="1.0" ?' . '>'; ?> |
10 | -<?=$this->content;?> |
|
11 | 10 | \ No newline at end of file |
11 | +<?=$this->content; ?> |
|
12 | 12 | \ No newline at end of file |
@@ -51,11 +51,11 @@ |
||
51 | 51 | <h3>Configuration</h3> |
52 | 52 | <p> |
53 | 53 | This layout can be changed by modifying |
54 | - <code><?="{$path}/views/layouts/error.html.php";?></code> |
|
54 | + <code><?="{$path}/views/layouts/error.html.php"; ?></code> |
|
55 | 55 | </p> |
56 | 56 | <p> |
57 | 57 | To modify your error-handling configuration, see |
58 | - <code><?="{$path}/config/bootstrap/errors.php";?></code> |
|
58 | + <code><?="{$path}/config/bootstrap/errors.php"; ?></code> |
|
59 | 59 | </p> |
60 | 60 | </div> |
61 | 61 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | <!doctype html> |
10 | 10 | <html> |
11 | 11 | <head> |
12 | - <?php echo $this->html->charset();?> |
|
12 | + <?php echo $this->html->charset(); ?> |
|
13 | 13 | <title>Application > <?php echo $this->title(); ?></title> |
14 | 14 | <?php echo $this->html->style(array('bootstrap.min', 'lithified')); ?> |
15 | 15 | <?php echo $this->scripts(); ?> |
@@ -38,7 +38,7 @@ |
||
38 | 38 | public static function init() |
39 | 39 | { |
40 | 40 | static::finder('setting', |
41 | - function ($params, $next) { |
|
41 | + function($params, $next) { |
|
42 | 42 | |
43 | 43 | if (!is_array($params['options']['conditions'])) { |
44 | 44 | $params['options']['conditions'] = self::dottedToArray($params['options']['conditions']); |
@@ -27,7 +27,8 @@ |
||
27 | 27 | * |
28 | 28 | *@package app\models |
29 | 29 | */ |
30 | -class Settings extends \lithium\data\Model { |
|
30 | +class Settings extends \lithium\data\Model |
|
31 | +{ |
|
31 | 32 | |
32 | 33 | public $validates = []; |
33 | 34 |
@@ -21,17 +21,32 @@ |
||
21 | 21 | |
22 | 22 | use app\controllers\SettingsController; |
23 | 23 | |
24 | -class SettingsControllerTest extends \lithium\test\Unit { |
|
24 | +class SettingsControllerTest extends \lithium\test\Unit |
|
25 | +{ |
|
25 | 26 | |
26 | - public function setUp() {} |
|
27 | + public function setUp() |
|
28 | + { |
|
29 | +} |
|
27 | 30 | |
28 | - public function tearDown() {} |
|
31 | + public function tearDown() |
|
32 | + { |
|
33 | +} |
|
29 | 34 | |
30 | - public function testIndex() {} |
|
31 | - public function testView() {} |
|
32 | - public function testAdd() {} |
|
33 | - public function testEdit() {} |
|
34 | - public function testDelete() {} |
|
35 | + public function testIndex() |
|
36 | + { |
|
37 | +} |
|
38 | + public function testView() |
|
39 | + { |
|
40 | +} |
|
41 | + public function testAdd() |
|
42 | + { |
|
43 | +} |
|
44 | + public function testEdit() |
|
45 | + { |
|
46 | +} |
|
47 | + public function testDelete() |
|
48 | + { |
|
49 | +} |
|
35 | 50 | } |
36 | 51 | |
37 | 52 | ?> |
@@ -21,11 +21,16 @@ |
||
21 | 21 | |
22 | 22 | use app\models\Settings; |
23 | 23 | |
24 | -class SettingsTest extends \lithium\test\Unit { |
|
24 | +class SettingsTest extends \lithium\test\Unit |
|
25 | +{ |
|
25 | 26 | |
26 | - public function setUp() {} |
|
27 | + public function setUp() |
|
28 | + { |
|
29 | +} |
|
27 | 30 | |
28 | - public function tearDown() {} |
|
31 | + public function tearDown() |
|
32 | + { |
|
33 | +} |
|
29 | 34 | |
30 | 35 | |
31 | 36 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | ); |
8 | 8 | } |
9 | 9 | |
10 | -declare(ticks=1); |
|
10 | +declare(ticks = 1); |
|
11 | 11 | require('.do_not_run/require.php'); |
12 | 12 | |
13 | 13 | use \nntmux\libraries\Forking; |
@@ -7,7 +7,7 @@ |
||
7 | 7 | ); |
8 | 8 | } |
9 | 9 | |
10 | -declare(ticks=1); |
|
10 | +declare(ticks = 1); |
|
11 | 11 | require('.do_not_run/require.php'); |
12 | 12 | |
13 | 13 | use \nntmux\libraries\Forking; |