Skip to content

Commit 893eff1

Browse files
HillLiuStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 1694767 commit 893eff1

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

src/ActionForward.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ private function _processView()
350350
Event\B4_PROCESS_VIEW, true,
351351
]
352352
);
353+
353354
return $view->process();
354355
}
355356

src/_app_not_found.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __invoke(
5656
trigger_error(
5757
print_r(
5858
[
59-
'Error' => 'No app found, '.
59+
'Error' => 'No app found, '.
6060
'Please check following debug message.',
6161
'Parent' => $parents,
6262
'App' => $caller[_REAL_APP],

src/util_mvc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ function () use ($folders, $alias) {
7676
$trace = plug('debug')->parseTrace(debug_backtrace(), 12);
7777

7878
return [
79-
'previous'=> folders(_RUN_APP),
80-
'folders' => $folders,
81-
'alias' => $alias,
82-
'trace' => $trace,
79+
'previous' => folders(_RUN_APP),
80+
'folders' => $folders,
81+
'alias' => $alias,
82+
'trace' => $trace,
8383
];
8484
},
8585
'app-folder'

tests/demo/ActionControllerPlugAppTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ public function testSetRealApp()
9999
option('set', _REAL_APP, null);
100100
$another = \PMVC\plug(
101101
'another', [
102-
_CLASS => '\PMVC\AnotherPlugin',
103-
'assert'=> _REAL_APP,
102+
_CLASS => '\PMVC\AnotherPlugin',
103+
'assert' => _REAL_APP,
104104
]
105105
);
106106
$mvc = plug('controller');
107107
$mvc->setApp('testFoo');
108-
$mvc->plugApp([], ['testFoo'=>'testApp']);
108+
$mvc->plugApp([], ['testFoo' => 'testApp']);
109109
$this->assertEquals(
110110
'testApp',
111111
$another['actual']

tests/demo/DefaultFormTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ public function setup()
66
{
77
\PMVC\unplug('controller');
88
\PMVC\option('set', [
9-
_RUN_FORM => null,
10-
_DEFAULT_FORM => null,
11-
'fakeDefaultForm'=> null,
9+
_RUN_FORM => null,
10+
_DEFAULT_FORM => null,
11+
'fakeDefaultForm' => null,
1212
]);
1313
}
1414

tests/src/ActionForwardTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testGet()
3838
public function testAppendConfigToRunApp()
3939
{
4040
$run = plug(_RUN_APP, [
41-
_CLASS=> '\PMVC\FakePlugIn',
41+
_CLASS => '\PMVC\FakePlugIn',
4242
]);
4343
$fakeForward = [
4444
_PATH => '',
@@ -72,6 +72,6 @@ public function testAppendView()
7272
_ACTION => '',
7373
];
7474
$forward = new ActionForward($fakeForward);
75-
$forward->append(['foo'=>'bar']);
75+
$forward->append(['foo' => 'bar']);
7676
}
7777
}

0 commit comments

Comments
 (0)