@@ -18,6 +18,9 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | protected $helper; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $name |
|
| 23 | + */ |
|
| 21 | 24 | public function renderDecorated($name) |
| 22 | 25 | { |
| 23 | 26 | if (!$this->has($name)) { |
@@ -90,6 +93,9 @@ discard block |
||
| 90 | 93 | return $html; |
| 91 | 94 | } |
| 92 | 95 | |
| 96 | + /** |
|
| 97 | + * @param \Phalcon\Forms\ElementInterface|null $element |
|
| 98 | + */ |
|
| 93 | 99 | private function makeLabel($element) |
| 94 | 100 | { |
| 95 | 101 | if ($element->getLabel()) { |
@@ -13,6 +13,9 @@ |
||
| 13 | 13 | |
| 14 | 14 | private $module; |
| 15 | 15 | |
| 16 | + /** |
|
| 17 | + * @param string $template |
|
| 18 | + */ |
|
| 16 | 19 | public function widgetPartial($template, array $data = array()) |
| 17 | 20 | { |
| 18 | 21 | return $this->helper->modulePartial($template, $data, $this->module); |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | |
| 9 | 9 | use Application\Form\Form; |
| 10 | 10 | use Phalcon\Forms\Element\Check; |
| 11 | -use Phalcon\Forms\Element\Select; |
|
| 12 | 11 | use Phalcon\Forms\Element\Text; |
| 13 | 12 | |
| 14 | 13 | class ConfigurationForm extends Form |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | |
| 9 | 9 | use Application\Form\Form; |
| 10 | 10 | use Phalcon\Forms\Element\TextArea; |
| 11 | -use Phalcon\Forms\Element\Hidden; |
|
| 12 | 11 | |
| 13 | 12 | class JavascriptForm extends Form |
| 14 | 13 | { |
@@ -350,6 +350,9 @@ discard block |
||
| 350 | 350 | $this->saveImage($image, $originalAbsPath); |
| 351 | 351 | } |
| 352 | 352 | |
| 353 | + /** |
|
| 354 | + * @param string $originalAbsPath |
|
| 355 | + */ |
|
| 353 | 356 | private function checkOriginalExists($originalAbsPath) |
| 354 | 357 | { |
| 355 | 358 | if (!file_exists($originalAbsPath)) { |
@@ -362,6 +365,9 @@ discard block |
||
| 362 | 365 | } |
| 363 | 366 | } |
| 364 | 367 | |
| 368 | + /** |
|
| 369 | + * @param string $originalAbsPath |
|
| 370 | + */ |
|
| 365 | 371 | private function saveImage($image, $originalAbsPath) |
| 366 | 372 | { |
| 367 | 373 | // Если оригинал не заблокирован, блокируем. Это необходимо для предотвращения множественной генерации кеш-файла параллельными запросами |
@@ -146,6 +146,9 @@ |
||
| 146 | 146 | $this->helper->title($this->helper->at('Unpublishing'), true); |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | + /** |
|
| 150 | + * @param Publication|null $model |
|
| 151 | + */ |
|
| 149 | 152 | private function uploadImage($model) |
| 150 | 153 | { |
| 151 | 154 | if ($this->request->isPost()) { |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | } |
| 250 | 250 | |
| 251 | 251 | /** |
| 252 | - * @return mixed |
|
| 252 | + * @return integer |
|
| 253 | 253 | */ |
| 254 | 254 | public function getLimit() |
| 255 | 255 | { |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | } |
| 326 | 326 | |
| 327 | 327 | /** |
| 328 | - * @param mixed $display_date |
|
| 328 | + * @param integer $display_date |
|
| 329 | 329 | */ |
| 330 | 330 | public function setDisplayDate($display_date) |
| 331 | 331 | { |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | namespace Seo\Controller; |
| 8 | 8 | |
| 9 | 9 | use Application\Mvc\Controller; |
| 10 | -use Seo\Form\ManagerAddForm; |
|
| 11 | 10 | use Seo\Form\ManagerForm; |
| 12 | 11 | use Seo\Model\Manager; |
| 13 | 12 | |
@@ -35,6 +35,9 @@ |
||
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string|null $url |
|
| 40 | + */ |
|
| 38 | 41 | private function matchingUrl($url) |
| 39 | 42 | { |
| 40 | 43 | $urls = Manager::urls(); |