Skip to content

Commit d9828fb

Browse files
committed
Fix Bag
1 parent 8e13453 commit d9828fb

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ArticlePageController extends DetailController {
5555
/**
5656
* Init Model from Query
5757
*
58-
* @return \Illuminate\Database\Eloquent\Model
58+
* @return \Illuminate\Database\Config\Model
5959
*/
6060
function model() {
6161
return new Article();
@@ -148,7 +148,7 @@ use Webtack\GenericController\ListController;
148148
class BlogPageController extends ListController {
149149

150150
/**
151-
* @return \Illuminate\Database\Eloquent\Model
151+
* @return \Illuminate\Database\Config\Model
152152
*/
153153
public function model() {
154154
return new Blog();

src/Controllers/BaseController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function asView(Request $request) {
7171
}
7272

7373
/**
74-
* If the view was called with an unsupported HTTP method, this method will be called
74+
* If the views was called with an unsupported HTTP method, this method will be called
7575
*
7676
* @param string $method_name
7777
*/

src/Controllers/TemplateController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function get() {
2121
}
2222

2323
/**
24-
* Init templateName property from view
24+
* Init templateName property from views
2525
*
2626
* @return string
2727
*/

src/Traits/ContextTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function getContextData($request, $column = []) {
2020
abstract function model();
2121

2222
/**
23-
* Init key from context in view
23+
* Init key from context in views
2424
* by default returns the name of the model's slice
2525
*
2626
* @return string

src/Traits/ModifierNameTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ protected function joinPrefix(string $string, $prefix) {
4848
protected function joinSuffix(string $string, $suffix) {
4949

5050
if (!empty($suffix)) {
51-
return $name . $suffix;
51+
return $string . $suffix;
5252
}
5353
else {
54-
return $name;
54+
return $string;
5555
}
5656
}
5757
}

src/Traits/TemplateTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function getTemplateName() {
3232
}
3333

3434
/**
35-
* Init templateName property from view
35+
* Init templateName property from views
3636
*
3737
* @return string
3838
*/

0 commit comments

Comments
 (0)