@@ -35,7 +35,7 @@ |
||
35 | 35 | * Set a configuration option. |
36 | 36 | * |
37 | 37 | * @param string $key |
38 | - * @param mixed $value |
|
38 | + * @param \Nip\Records\AbstractModels\Record $value |
|
39 | 39 | * @return void |
40 | 40 | */ |
41 | 41 | public function offsetSet($key, $value) |
@@ -160,7 +160,7 @@ |
||
160 | 160 | |
161 | 161 | /** @noinspection PhpMissingParentCallCommonInspection |
162 | 162 | * @param string $requester |
163 | - * @return null |
|
163 | + * @return string|null |
|
164 | 164 | */ |
165 | 165 | public function getValue($requester = 'abstract') |
166 | 166 | { |
@@ -19,7 +19,7 @@ |
||
19 | 19 | protected $defaultPlaceholder = "head"; |
20 | 20 | |
21 | 21 | /** |
22 | - * @param $file |
|
22 | + * @param string $file |
|
23 | 23 | * @param bool $placeholder |
24 | 24 | * @return $this |
25 | 25 | */ |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
143 | - * @return null|RecordManager|RecordsTrait |
|
143 | + * @return null|RecordManager |
|
144 | 144 | */ |
145 | 145 | public function getRecordManager() |
146 | 146 | { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @param RecordManager|RecordsTrait $recordManager |
|
151 | + * @param RecordsTrait $recordManager |
|
152 | 152 | */ |
153 | 153 | public function setRecordManager($recordManager) |
154 | 154 | { |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
149 | - * @return mixed |
|
149 | + * @return string |
|
150 | 150 | */ |
151 | 151 | public function getWithClass() |
152 | 152 | { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @param mixed $name |
|
165 | + * @param string $name |
|
166 | 166 | */ |
167 | 167 | public function setName($name) |
168 | 168 | { |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | } |
199 | 199 | |
200 | 200 | /** |
201 | - * @param RecordManager|HasRelationsRecordsTrait $manager |
|
201 | + * @param HasRelationsRecordsTrait $manager |
|
202 | 202 | */ |
203 | 203 | public function setManager($manager) |
204 | 204 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | |
267 | 267 | /** |
268 | 268 | * @param $key |
269 | - * @return mixed |
|
269 | + * @return boolean |
|
270 | 270 | */ |
271 | 271 | public function hasParam($key) |
272 | 272 | { |
@@ -515,8 +515,8 @@ discard block |
||
515 | 515 | |
516 | 516 | /** |
517 | 517 | * @param $dictionary |
518 | - * @param $collection |
|
519 | - * @param $record |
|
518 | + * @param Collection $collection |
|
519 | + * @param Record $record |
|
520 | 520 | * @return mixed |
521 | 521 | */ |
522 | 522 | abstract public function getResultsFromCollectionDictionary($dictionary, $collection, $record); |
@@ -17,8 +17,8 @@ discard block |
||
17 | 17 | $hoursElement = $this->getForm()->getNewElement('select'); |
18 | 18 | |
19 | 19 | $hoursElement->addOption('-', 'HH'); |
20 | - for ($i=0; $i<=24 ; $i++) { |
|
21 | - $hoursElement->addOption($i, $i.'h'); |
|
20 | + for ($i = 0; $i <= 24; $i++) { |
|
21 | + $hoursElement->addOption($i, $i . 'h'); |
|
22 | 22 | } |
23 | 23 | $hoursElement->setValue('-'); |
24 | 24 | |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | $minutesElement = $this->getForm()->getNewElement('select'); |
31 | 31 | |
32 | 32 | $minutesElement->addOption('-', 'MM'); |
33 | - for ($i=0; $i<=59 ; $i++) { |
|
34 | - $minutesElement->addOption($i, $i.'m'); |
|
33 | + for ($i = 0; $i <= 59; $i++) { |
|
34 | + $minutesElement->addOption($i, $i . 'm'); |
|
35 | 35 | } |
36 | 36 | $minutesElement->setValue('-'); |
37 | 37 | |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | $secondsElement = $this->getForm()->getNewElement('select'); |
43 | 43 | |
44 | 44 | $secondsElement->addOption('-', 'SS'); |
45 | - for ($i=0; $i<=59 ; $i++) { |
|
46 | - $secondsElement->addOption($i, $i.'s'); |
|
45 | + for ($i = 0; $i <= 59; $i++) { |
|
46 | + $secondsElement->addOption($i, $i . 's'); |
|
47 | 47 | } |
48 | 48 | $secondsElement->setValue('-'); |
49 | 49 | |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | $hour = intval($this->elements['hours']->getValue()); |
126 | 126 | $minutes = intval($this->elements['minutes']->getValue()); |
127 | 127 | $seconds = intval($this->elements['seconds']->getValue()); |
128 | - if ($hour+$minutes+$seconds > 0) { |
|
129 | - return mktime($hour,$minutes,$seconds); |
|
128 | + if ($hour + $minutes + $seconds > 0) { |
|
129 | + return mktime($hour, $minutes, $seconds); |
|
130 | 130 | } |
131 | 131 | return false; |
132 | 132 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $element = $this->getForm()->getNewElement('checkbox'); |
40 | 40 | $name = $this->getName(); |
41 | 41 | if (!strpos($name, '[]')) { |
42 | - $name = $name .'[]'; |
|
42 | + $name = $name . '[]'; |
|
43 | 43 | } |
44 | 44 | $element->setName($name); |
45 | 45 | return $element; |