Completed
Push — master ( 7d0b04...5d392f )
by
unknown
12:30 queued 07:31
created
module/Columnis/src/Columnis/Controller/PageController.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@  discard block
 block discarded – undo
37 37
         $this->getResponse()->setStatusCode(404);
38 38
     }
39 39
 
40
+    /**
41
+     * @param integer $pageId
42
+     */
40 43
     protected function fetchPage($pageId, Array $params = null, $withBreakpoints = false) {
41 44
         $page = new Page();
42 45
         $page->setId($pageId);
@@ -94,6 +97,10 @@  discard block
 block discarded – undo
94 97
         }
95 98
         return $ret;
96 99
     }
100
+
101
+    /**
102
+     * @return string
103
+     */
97 104
     private function getPublicPath() {
98 105
         $ret = array();
99 106
         $config = $this->getServiceLocator()->get('Config');
@@ -121,6 +128,9 @@  discard block
 block discarded – undo
121 128
         return array();
122 129
     }
123 130
 
131
+    /**
132
+     * @param string $extension
133
+     */
124 134
     private function searchAssets($path, $extension, Array $excludes = null) {
125 135
         $assets = array();
126 136
         $assetPath = realpath($path.DIRECTORY_SEPARATOR.'fixed');
Please login to merge, or discard this patch.
module/Columnis/src/Columnis/Model/TemplateAssetsResolver.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
      * Returns the template name if the requested asset belongs to a template
240 240
      *
241 241
      * @param string $alias
242
-     * @return boolean|array
242
+     * @return string|false
243 243
      */
244 244
     public function matchTemplateName($alias)
245 245
     {
Please login to merge, or discard this patch.
module/Columnis/src/Columnis/Service/PageBreakpointService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
      * 
155 155
      * @param int $idPage
156 156
      * @param PageBreakpoint $pageBreakpoint
157
-     * @return boolean
157
+     * @return string|false
158 158
      */
159 159
     protected function getCurrentBreakpointFilename($idPage, PageBreakpoint $pageBreakpoint) {
160 160
         $breakpointFiles = glob($pageBreakpoint->getFullPath().$idPage."-*.css");
Please login to merge, or discard this patch.
module/ExpressApi/src/ExpressApi/Apis/xmlapi.php 1 patch
Doc Comments   +14 added lines, -5 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      * the queries made, the response XML/JSON and other such pertinent information.
252 252
      * Calling this function without any parameters will enable debug mode.
253 253
      *
254
-     * @param bool $debug turn on or off debug mode
254
+     * @param integer $debug turn on or off debug mode
255 255
      * @see get_debug()
256 256
      */
257 257
     public function set_debug($debug = 1) {
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      * Get the port to connect to
285 285
      *
286 286
      * This will return which port the class is connecting to
287
-     * @return int $port
287
+     * @return string $port
288 288
      * @see set_port()
289 289
      */
290 290
     public function get_port() {
@@ -680,6 +680,11 @@  discard block
 block discarded – undo
680 680
         return $response;
681 681
     }
682 682
 
683
+    /**
684
+     * @param string $url
685
+     * @param string $postdata
686
+     * @param string $authstr
687
+     */
683 688
     private function curl_query($url, $postdata, $authstr) {
684 689
         $curl = curl_init();
685 690
         curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
@@ -709,6 +714,11 @@  discard block
 block discarded – undo
709 714
         return $result;
710 715
     }
711 716
 
717
+    /**
718
+     * @param string $url
719
+     * @param string $postdata
720
+     * @param string $authstr
721
+     */
712 722
     private function fopen_query($url, $postdata, $authstr) {
713 723
         if (!(ini_get('allow_url_fopen') )) {
714 724
             throw new Exception('fopen_query called on system without allow_url_fopen enabled in php.ini');
@@ -765,7 +775,7 @@  discard block
 block discarded – undo
765 775
      * @param string $module The module of the API1 call to use
766 776
      * @param string $function The function of the API1 call
767 777
      * @param array $args The arguments for the API1 function, this should be a non-associative array
768
-     * @return mixed
778
+     * @return string
769 779
      * @link http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/CallingAPIFunctions XML API Call documentation
770 780
      * @link http://docs.cpanel.net/twiki/bin/view/DeveloperResources/ApiRef/WebHome API1 & API2 Call documentation
771 781
      * @link http://docs.cpanel.net/twiki/bin/view/DeveloperResources/ApiBasics/CallingApiOne API1 Documentation
@@ -883,7 +893,7 @@  discard block
 block discarded – undo
883 893
      * documentation are allowed parameters for this call.
884 894
      * 
885 895
      * @param array $acctconf
886
-     * @return mixed
896
+     * @return string
887 897
      * @link http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/CreateAccount XML API Call documentation
888 898
      */
889 899
     public function createacct($acctconf) {
@@ -1878,7 +1888,6 @@  discard block
 block discarded – undo
1878 1888
      * @param string $nameserver1 The IP of the first nameserver to use
1879 1889
      * @param string $nameserver2 The IP of the second namesever to use
1880 1890
      * @param string $nameserver3 The IP of the third nameserver to use
1881
-     * @param string $nameserver4 The IP of the forth nameserver to use
1882 1891
      * @return mixed
1883 1892
      * @link http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/SetResolvers XML API Call documentation
1884 1893
      */
Please login to merge, or discard this patch.
module/ExpressApi/src/ExpressApi/V1/Rpc/ClearCache/ClearCacheController.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -53,15 +53,24 @@
 block discarded – undo
53 53
         return true;
54 54
     }
55 55
 
56
+    /**
57
+     * @param string $path
58
+     */
56 59
     private function canDeleteCacheFolder($path, $nodeCache) {
57 60
         return (is_dir($path.'/'.$nodeCache) && $nodeCache !== '.' && $nodeCache !== '..');
58 61
     }
59 62
 
63
+    /**
64
+     * @param string $path
65
+     */
60 66
     private function canDeleteCacheFile($path, $nodeCache) {
61 67
         $ext = pathinfo($nodeCache, PATHINFO_EXTENSION);
62 68
         return ($ext === 'php');
63 69
     }
64 70
 
71
+    /**
72
+     * @param string $dir
73
+     */
65 74
     public static function delTree($dir) {
66 75
         $files = array_diff(scandir($dir), array('.', '..'));
67 76
         foreach($files as $file) {
Please login to merge, or discard this patch.
ExpressApi/src/ExpressApi/V1/Rpc/FinishSetup/FinishSetupController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@
 block discarded – undo
45 45
         return __DIR__.'/../../../../../../../config/autoload/';
46 46
     }
47 47
 
48
+    /**
49
+     * @param string $key
50
+     */
48 51
     private function getParam(Array $params, $key) {
49 52
         if(array_key_exists($key, $params)) {
50 53
             return $params[$key];
Please login to merge, or discard this patch.
module/ExpressApi/src/ExpressApi/V1/Rpc/FinishSetup/GenerateConfig.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
     private $sourceFile;
9 9
     private $replaces;
10 10
 
11
+    /**
12
+     * @param string $destinationFile
13
+     */
11 14
     function __construct($destinationFile, $replaces, $sourceFile = null) {
12 15
         $this->destinationFile = $destinationFile;
13 16
         $this->replaces = $replaces;
Please login to merge, or discard this patch.
module/ExpressApi/src/ExpressApi/V1/Rpc/Statistics/SystemStatus.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
 
23 23
     /**
24 24
      * Retorna si esta correctamente configurado el htaccess para que levante el php.ini correspondiente.
25
-     * @param type $file Ruta hacia el .htaccess
26
-     * @return type
25
+     * @param string $file Ruta hacia el .htaccess
26
+     * @return boolean
27 27
      */
28 28
     public static function right_env($file) {
29 29
         $retorno = true;
@@ -54,6 +54,9 @@  discard block
 block discarded – undo
54 54
         return min(self::let_to_num(ini_get('post_max_size')), self::let_to_num(ini_get('upload_max_filesize')));
55 55
     }
56 56
 
57
+    /**
58
+     * @param string $v
59
+     */
57 60
     public static function let_to_num($v) {
58 61
         $l = substr($v, -1);
59 62
         $ret = substr($v, 0, -1);
Please login to merge, or discard this patch.