@@ -86,22 +86,22 @@ class ItemController extends Controller
86
86
{
87
87
return [
88
88
'index' => [
89
- 'class' => ' yii2tech\admin\actions\Index' ,
89
+ 'class' => \ yii2tech\admin\actions\Index::class ,
90
90
'newSearchModel' => function () {
91
91
return new ItemSearch();
92
92
},
93
93
],
94
94
'view' => [
95
- 'class' => ' yii2tech\admin\actions\View' ,
95
+ 'class' => \ yii2tech\admin\actions\View::class ,
96
96
],
97
97
'create' => [
98
- 'class' => ' yii2tech\admin\actions\Create' ,
98
+ 'class' => \ yii2tech\admin\actions\Create::class ,
99
99
],
100
100
'update' => [
101
- 'class' => ' yii2tech\admin\actions\Update' ,
101
+ 'class' => \ yii2tech\admin\actions\Update::class ,
102
102
],
103
103
'delete' => [
104
- 'class' => ' yii2tech\admin\actions\Delete' ,
104
+ 'class' => \ yii2tech\admin\actions\Delete::class ,
105
105
],
106
106
];
107
107
}
@@ -110,9 +110,8 @@ class ItemController extends Controller
110
110
{
111
111
if (($model = Item::findOne($id)) !== null) {
112
112
return $model;
113
- } else {
114
- throw new NotFoundHttpException('The requested page does not exist.');
115
113
}
114
+ throw new NotFoundHttpException('The requested page does not exist.');
116
115
}
117
116
118
117
public function newModel()
@@ -161,13 +160,13 @@ return [
161
160
'modules' => [
162
161
// ...
163
162
'gii' => [
164
- 'class' => ' yii\gii\Module' ,
163
+ 'class' => yii\gii\Module::class ,
165
164
'generators' => [
166
165
'adminMainFrame' => [
167
- 'class' => ' yii2tech\admin\gii\mainframe\Generator'
166
+ 'class' => yii2tech\admin\gii\mainframe\Generator::class
168
167
],
169
168
'adminCrud' => [
170
- 'class' => ' yii2tech\admin\gii\crud\Generator'
169
+ 'class' => yii2tech\admin\gii\crud\Generator::class
171
170
]
172
171
],
173
172
],
@@ -194,7 +193,7 @@ return [
194
193
'i18n' => [
195
194
'translations' => [
196
195
'yii2tech-admin' => [
197
- 'class' => ' yii\i18n\PhpMessageSource' ,
196
+ 'class' => yii\i18n\PhpMessageSource::class ,
198
197
'basePath' => '@yii2tech/admin/messages',
199
198
],
200
199
// ...
0 commit comments