Completed
Push — master ( 6ed6e7...ca5679 )
by Lars
26:16 queued 07:58
created
src/Intraface/modules/cms/CKEditor.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -468,6 +468,7 @@
 block discarded – undo
468 468
 
469 469
     /**
470 470
      * Return path to ckeditor.js.
471
+     * @return string
471 472
      */
472 473
     private function ckeditorPath()
473 474
     {
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/Templates.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -82,6 +82,9 @@
 block discarded – undo
82 82
         return $this->context->getKernel();
83 83
     }
84 84
 
85
+    /**
86
+     * @return integer
87
+     */
85 88
     function getShopId()
86 89
     {
87 90
         if ($this->query('shop_id')) {
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Element.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     /**
70 70
      * Creates a parameter
71 71
      *
72
-     * @return object
72
+     * @return CMS_Parameter
73 73
      */
74 74
     function createParameter()
75 75
     {
Please login to merge, or discard this patch.
src/Intraface/modules/cms/element/Gallery.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
6 6
 {
7 7
     public $methods = array('single_image');
8 8
 
9
+    /**
10
+     * @param FakeCMSSection $section
11
+     */
9 12
     function __construct($section, $id = 0)
10 13
     {
11 14
         $this->value['type'] = 'gallery';
Please login to merge, or discard this patch.
src/Intraface/modules/cms/element/Pagelist.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -5,6 +5,9 @@
 block discarded – undo
5 5
 class Intraface_modules_cms_element_Pagelist extends CMS_Element
6 6
 {
7 7
 
8
+    /**
9
+     * @param FakeCMSSection $section
10
+     */
8 11
     function __construct($section, $id = 0)
9 12
     {
10 13
         $this->value['type'] = 'pagelist';
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Page.php 1 patch
Doc Comments   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * Returns position object
128 128
      *
129 129
      * @param object $db database object
130
-     * @return object Position
130
+     * @return Ilib_Position Position
131 131
      */
132 132
     public function getPosition($db)
133 133
     {
@@ -137,13 +137,16 @@  discard block
 block discarded – undo
137 137
     /**
138 138
      * returns Template object
139 139
      *
140
-     * @return object Template
140
+     * @return CMS_Template Template
141 141
      */
142 142
     public function getTemplate()
143 143
     {
144 144
         return $this->template;
145 145
     }
146 146
 
147
+    /**
148
+     * @param string $type
149
+     */
147 150
     function factory($kernel, $type, $value)
148 151
     {
149 152
         $gateway = new Intraface_modules_cms_PageGateway($kernel, new DB_Sql);
@@ -745,6 +748,7 @@  discard block
 block discarded – undo
745 748
 
746 749
     /**
747 750
      * @todo is this still used after the introduction of publish and unpublish
751
+     * @param string $status
748 752
      */
749 753
     function setStatus($status)
750 754
     {
@@ -815,7 +819,7 @@  discard block
 block discarded – undo
815 819
     /**
816 820
      * Returns the possible page types
817 821
      *
818
-     * @return array possible page types
822
+     * @return string[] possible page types
819 823
      */
820 824
     public function getTypes()
821 825
     {
@@ -825,7 +829,7 @@  discard block
 block discarded – undo
825 829
     /**
826 830
      * Returns the possible page types but with a binary index
827 831
      *
828
-     * @return array possible page types with binary index
832
+     * @return string[] possible page types with binary index
829 833
      */
830 834
     public static function getTypesWithBinaryIndex()
831 835
     {
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Section.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -62,11 +62,17 @@
 block discarded – undo
62 62
         return new CMS_Parameter($this);
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $key
67
+     */
65 68
     function addParameter($key, $value)
66 69
     {
67 70
         return $this->parameter->save($key, $value);
68 71
     }
69 72
 
73
+    /**
74
+     * @param string $type
75
+     */
70 76
     function factory($object, $type, $value)
71 77
     {
72 78
         $class_prefix = 'Intraface_modules_cms_templatesection_';
Please login to merge, or discard this patch.
src/Intraface/modules/cms/section/Longtext.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@  discard block
 block discarded – undo
12 12
 {
13 13
     private $allowed_tags = '';
14 14
 
15
+    /**
16
+     * @param FakeCMSPage $cmspage
17
+     */
15 18
     function __construct($cmspage, $id = 0)
16 19
     {
17 20
         $this->value['type'] = 'longtext';
@@ -52,6 +55,9 @@  discard block
 block discarded – undo
52 55
         return true;
53 56
     }
54 57
 
58
+    /**
59
+     * @param string[] $array
60
+     */
55 61
     public static function convertArrayToTags($array)
56 62
     {
57 63
         $tags = '';
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Template.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@  discard block
 block discarded – undo
65 65
         return 'cms_template';
66 66
     }
67 67
 
68
+    /**
69
+     * @param DB_Sql $db
70
+     */
68 71
     function getPosition($db)
69 72
     {
70 73
         return new Ilib_Position($db, 'cms_template', $this->id, 'site_id = ' . $this->cmssite->get('id'), 'id', 'position');
@@ -131,6 +134,9 @@  discard block
 block discarded – undo
131 134
     }
132 135
 
133 136
 
137
+    /**
138
+     * @return string
139
+     */
134 140
     function save($var)
135 141
     {
136 142
         if (!empty($var['for_page_type']) && is_array($var['for_page_type'])) {
Please login to merge, or discard this patch.