@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | /** |
33 | 33 | * @param MY_Form_validation $validator |
34 | - * @return mixed |
|
34 | + * @return MY_Form_validation |
|
35 | 35 | */ |
36 | 36 | public function validateCustomData($validator) { |
37 | 37 | if (!empty($this->entityName)) { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * @param string $entityName |
64 | 64 | * @param int $id |
65 | - * @return bool |
|
65 | + * @return null|false |
|
66 | 66 | */ |
67 | 67 | public function collectCustomData($entityName, $id) { |
68 | 68 | $this->entityId = $id; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | /** |
84 | 84 | * @param int $key |
85 | - * @return bool |
|
85 | + * @return boolean|null |
|
86 | 86 | */ |
87 | 87 | public function curentPostEntitySave($key) { |
88 | 88 | $entity = CustomFieldsQuery::create()->findPk($key); |
@@ -1,6 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use CMSFactory\DependencyInjection\DependencyInjectionProvider; |
|
4 | 3 | use CMSFactory\Events; |
5 | 4 | use core\src\CoreFactory; |
6 | 5 |
@@ -499,7 +499,7 @@ discard block |
||
499 | 499 | * to be used as main alias in the secondary query |
500 | 500 | * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' |
501 | 501 | * |
502 | - * @return \SCategoryQuery A secondary query class using the current class as primary query |
|
502 | + * @return ModelCriteria A secondary query class using the current class as primary query |
|
503 | 503 | */ |
504 | 504 | public function useSCategoryQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
505 | 505 | { |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | * to be used as main alias in the secondary query |
573 | 573 | * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' |
574 | 574 | * |
575 | - * @return \SProductsQuery A secondary query class using the current class as primary query |
|
575 | + * @return ModelCriteria A secondary query class using the current class as primary query |
|
576 | 576 | */ |
577 | 577 | public function useSProductsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
578 | 578 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace core\models; |
4 | 4 | |
5 | 5 | use core\models\Base\Route as BaseRoute; |
6 | -use core\src\CoreConfiguration; |
|
7 | 6 | use core\src\CoreFactory; |
8 | 7 | use Propel\Runtime\ActiveQuery\Criteria; |
9 | 8 | use Propel\Runtime\Collection\ObjectCollection; |
@@ -7,6 +7,9 @@ |
||
7 | 7 | class CategoryController extends Controller |
8 | 8 | { |
9 | 9 | |
10 | + /** |
|
11 | + * @param integer $id |
|
12 | + */ |
|
10 | 13 | public function index($id) { |
11 | 14 | $category = $this->model->getCategory($id); |
12 | 15 |
@@ -7,6 +7,9 @@ |
||
7 | 7 | { |
8 | 8 | const PAGE_TPL_DEFAULT = 'page_full'; |
9 | 9 | |
10 | + /** |
|
11 | + * @param integer $id |
|
12 | + */ |
|
10 | 13 | public function index($id) { |
11 | 14 | |
12 | 15 | $page = $this->model->getPage($id); |
@@ -4,7 +4,6 @@ |
||
4 | 4 | use CMSFactory\Events; |
5 | 5 | use core\src\Exception\PageNotFoundException; |
6 | 6 | use Doctrine\Common\Cache\CacheProvider; |
7 | - |
|
8 | 7 | use Symfony\Component\Debug\Debug; |
9 | 8 | use Symfony\Component\Debug\DebugClassLoader; |
10 | 9 | use Symfony\Component\Debug\ErrorHandler; |
@@ -29,6 +29,9 @@ discard block |
||
29 | 29 | $this->modules = $modules; |
30 | 30 | } |
31 | 31 | |
32 | + /** |
|
33 | + * @param string $url |
|
34 | + */ |
|
32 | 35 | public function findRoute($url) { |
33 | 36 | $this->checkUrl($url); |
34 | 37 | $url = trim($url, '/'); |
@@ -62,6 +65,9 @@ discard block |
||
62 | 65 | } |
63 | 66 | } |
64 | 67 | |
68 | + /** |
|
69 | + * @param string $url |
|
70 | + */ |
|
65 | 71 | private function isMainPage($url) { |
66 | 72 | if ($url == '') { |
67 | 73 | $route = new Route(); |
@@ -70,6 +76,9 @@ discard block |
||
70 | 76 | } |
71 | 77 | } |
72 | 78 | |
79 | + /** |
|
80 | + * @param string $url |
|
81 | + */ |
|
73 | 82 | private function isRoute($url) { |
74 | 83 | $routeUrl = explode('/', $url); |
75 | 84 | $last = array_pop($routeUrl); |
@@ -91,7 +100,7 @@ discard block |
||
91 | 100 | } |
92 | 101 | |
93 | 102 | /** |
94 | - * @param $url |
|
103 | + * @param string $url |
|
95 | 104 | * @return Route |
96 | 105 | */ |
97 | 106 | private function isModule($url) { |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * @author Kaero |
75 | 75 | * @copyright ImageCMS (c) 2012, Kaero <[email protected]> |
76 | 76 | * @param array $EmptyFields |
77 | - * @return bool |
|
77 | + * @return false|null |
|
78 | 78 | */ |
79 | 79 | public function make($EmptyFields) { |
80 | 80 | if (ImportBootstrap::hasErrors()) { |
@@ -601,7 +601,7 @@ discard block |
||
601 | 601 | * Update Shop Products Categories |
602 | 602 | * @param array $arg Processed arguments list |
603 | 603 | * @param integer $productId Product Id for alias |
604 | - * @param $EmptyFields |
|
604 | + * @param boolean $EmptyFields |
|
605 | 605 | * @return bool|null |
606 | 606 | * @author Kaero |
607 | 607 | * @copyright ImageCMS (c) 2012, Kaero <[email protected]> |
@@ -788,7 +788,7 @@ discard block |
||
788 | 788 | * Save the picture on coal in the original folder or the origin/additional |
789 | 789 | * @param string $param url |
790 | 790 | * @param bool|string $type (origin|additional) |
791 | - * @return bool|string Name of file OR False |
|
791 | + * @return false|string Name of file OR False |
|
792 | 792 | * @access private |
793 | 793 | */ |
794 | 794 | private function saveImgByUrl($param, $type = false) { |