@@ -27,7 +27,7 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
30 | - * @param $code |
|
30 | + * @param string $code |
|
31 | 31 | * @return Currency |
32 | 32 | */ |
33 | 33 | public function getByCode($code) |
@@ -80,7 +80,7 @@ |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
83 | - * @param null $value |
|
83 | + * @param boolean $value |
|
84 | 84 | * @return bool|null |
85 | 85 | */ |
86 | 86 | public function authenticated($value = null) |
@@ -74,7 +74,7 @@ |
||
74 | 74 | /** |
75 | 75 | * @param SelectQuery $query |
76 | 76 | * @param string $term |
77 | - * @return mixed |
|
77 | + * @return \Nip\Database\Query\Condition\Condition |
|
78 | 78 | */ |
79 | 79 | protected function generateNameAutocompleteQueryCondition($query, $term) |
80 | 80 | { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @param $type |
|
42 | + * @param string $type |
|
43 | 43 | * @param $message |
44 | 44 | * @param array $params |
45 | 45 | */ |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | |
133 | 133 | /** |
134 | 134 | * @param Record $item |
135 | - * @return mixed |
|
135 | + * @return string |
|
136 | 136 | */ |
137 | 137 | public function addRedirect($item) |
138 | 138 | { |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
189 | - * @param Record|boolean $item |
|
189 | + * @param \Nip\Records\AbstractModels\Record $item |
|
190 | 190 | */ |
191 | 191 | protected function viewRedirect($item = null) |
192 | 192 | { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | |
22 | 22 | /** |
23 | - * @param $name |
|
23 | + * @param string $name |
|
24 | 24 | */ |
25 | 25 | public function initViewProperty($name) |
26 | 26 | { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $this->changeSmartPropertyRedirect($name, $item); |
59 | 59 | } else { |
60 | 60 | $redirect = $_SERVER['HTTP_REFERER']; |
61 | - $this->flashRedirect($this->getModelManager()->getMessage(inflector()->pluralize($name).'.invalid-value'), |
|
61 | + $this->flashRedirect($this->getModelManager()->getMessage(inflector()->pluralize($name) . '.invalid-value'), |
|
62 | 62 | $redirect, 'error'); |
63 | 63 | } |
64 | 64 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | public function changeSmartPropertyRedirect($name, $item) |
71 | 71 | { |
72 | 72 | $redirect = $_SERVER['HTTP_REFERER'] ? $_SERVER['HTTP_REFERER'] : $item->getURL(); |
73 | - $this->flashRedirect($this->getModelManager()->getMessage(inflector()->pluralize($name).'.success'), $redirect); |
|
73 | + $this->flashRedirect($this->getModelManager()->getMessage(inflector()->pluralize($name) . '.success'), $redirect); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * @param bool $request |
106 | 106 | * @param $urlKey |
107 | - * @return mixed|string |
|
107 | + * @return string |
|
108 | 108 | */ |
109 | 109 | protected function getItemValueFromRequest($request = false, $urlKey = null) |
110 | 110 | { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @param Controller|HasModels $controller |
|
165 | + * @param HasModelFinder $controller |
|
166 | 166 | * @return string |
167 | 167 | */ |
168 | 168 | protected function getRequestKeyFromController($controller) |
@@ -213,8 +213,8 @@ discard block |
||
213 | 213 | } |
214 | 214 | |
215 | 215 | /** |
216 | - * @param $name |
|
217 | - * @param $key |
|
216 | + * @param string $name |
|
217 | + * @param boolean|string $key |
|
218 | 218 | * @throws \Exception |
219 | 219 | * @return void |
220 | 220 | */ |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | /** |
100 | 100 | * @param Record $parent |
101 | - * @return mixed |
|
101 | + * @return string |
|
102 | 102 | */ |
103 | 103 | protected function getPdfLettersPageUrl($parent) |
104 | 104 | { |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | /** |
109 | 109 | * @param Record $parent |
110 | - * @return mixed |
|
110 | + * @return null|string |
|
111 | 111 | */ |
112 | 112 | protected function getPdfLettersPageController($parent) |
113 | 113 | { |
@@ -128,8 +128,8 @@ discard block |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
131 | - * @param $item |
|
132 | - * @param $type |
|
131 | + * @param Record $item |
|
132 | + * @param string $type |
|
133 | 133 | * @return PdfLetterTrait|Record |
134 | 134 | */ |
135 | 135 | protected function newPdfLetterRecordFromItemType($item, $type) |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | |
225 | 225 | /** |
226 | 226 | * @param bool $key |
227 | - * @return PdfLetterTrait|Record |
|
227 | + * @return PdfLetterTrait |
|
228 | 228 | */ |
229 | 229 | abstract protected function getModelFromRequest($key = false); |
230 | 230 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | |
241 | 241 | /** |
242 | 242 | * @param $message |
243 | - * @param $url |
|
243 | + * @param string $url |
|
244 | 244 | * @param string $type |
245 | 245 | * @param bool $name |
246 | 246 | * @return mixed |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace ByTIC\Common\Controllers\Traits; |
4 | 4 | |
5 | 5 | use ByTIC\Common\Controllers\Traits\Models\HasModelLister; |
6 | -use Nip\Database\Query\Select as SelectQuery; |
|
7 | 6 | use Nip\Records\Record; |
8 | 7 | use Nip\Request; |
9 | 8 | use Nip\View; |