Passed
Push — scrutinizer-code-quality ( 09f5a1...c4c5fb )
by Adam
56:05 queued 14:08
created
modules/ModuleBuilder/MB/MBPackageTree.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@
 block discarded – undo
52 52
 		return 'Packages';
53 53
 	}
54 54
 	
55
+	/**
56
+	 * @param Tree $parent
57
+	 */
55 58
 	function populateTree($nodes, &$parent){
56 59
 		foreach($nodes as $node){
57 60
 			if(empty($node['label']))$node['label'] = $node['name'];
Please login to merge, or discard this patch.
modules/ModuleBuilder/MB/ModuleBuilder.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,6 +84,9 @@  discard block
 block discarded – undo
84 84
         return $this->packages [ $name ] ;
85 85
     }
86 86
     
87
+    /**
88
+     * @param string $name
89
+     */
87 90
     function getPackageKey ($name)
88 91
     {
89 92
         $manifestPath = MB_PACKAGE_PATH . '/' . $name . '/manifest.php' ;
@@ -156,7 +159,7 @@  discard block
 block discarded – undo
156 159
      * Function return module name and this aliases
157 160
      *
158 161
      * @param string $module
159
-     * @return array $aliases
162
+     * @return string[] $aliases
160 163
      */
161 164
     static public function getModuleAliases($module)
162 165
     {
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/ModuleBuilderParser.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -64,6 +64,9 @@  discard block
 block discarded – undo
64 64
 	{
65 65
 	}
66 66
 	
67
+	/**
68
+	 * @param string $file
69
+	 */
67 70
 	function _loadFromFile($view,$file,$moduleName)
68 71
 	{
69 72
 		
@@ -114,6 +117,10 @@  discard block
 block discarded – undo
114 117
 	/*
115 118
 	 * Save the new layout
116 119
 	 */
120
+
121
+	/**
122
+	 * @param string $view
123
+	 */
117 124
 	function _writeToFile ($file,$view,$moduleName,$defs,$variables)
118 125
 	{
119 126
 	        if(file_exists($file))
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/parser.dropdown.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -134,6 +134,7 @@
 block discarded – undo
134 134
 	 * @param $dropdown array The dropdown currently being saved
135 135
 	 * @param $selected_lang String the language currently selected in Studio/MB
136 136
 	 * @param $saveLov String the path to the directory to save the new lang file in.
137
+	 * @param string $saveLoc
137 138
 	 */
138 139
     function synchDropDown($dropdown_name, $dropdown, $selected_lang, $saveLoc) {
139 140
    		$allLanguages =  get_languages();
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/parser.modifylayoutview.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -179,6 +179,9 @@
 block discarded – undo
179 179
 
180 180
     }
181 181
 
182
+    /**
183
+     * @param string $view
184
+     */
182 185
     function loadModule ($module, $view)
183 186
     {
184 187
         $this->_viewdefs = array();
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/ParserFactory.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -153,6 +153,10 @@
 block discarded – undo
153 153
         return false;
154 154
     }
155 155
 
156
+    /**
157
+     * @param string $view
158
+     * @param string $moduleName
159
+     */
156 160
     protected static function checkForStudioParserOverride($view, $moduleName, $packageName)
157 161
     {
158 162
         require_once('modules/ModuleBuilder/Module/StudioModuleFactory.php');
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/relationships/AbstractRelationship.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -249,6 +249,9 @@  discard block
 block discarded – undo
249 249
         return $labelDefinitions ;
250 250
     }
251 251
 
252
+	/**
253
+	 * @return string
254
+	 */
252 255
 	function getLeftModuleSystemLabel()
253 256
     {
254 257
 		if($this->lhs_module == $this->rhs_module){
@@ -257,6 +260,9 @@  discard block
 block discarded – undo
257 260
 		return $this->lhs_module;
258 261
     }
259 262
 
263
+    /**
264
+     * @return string
265
+     */
260 266
     function getRightModuleSystemLabel()
261 267
     {
262 268
 		if($this->lhs_module == $this->rhs_module){
@@ -631,6 +637,9 @@  discard block
 block discarded – undo
631 637
     }
632 638
 
633 639
     
640
+    /**
641
+     * @return string
642
+     */
634 643
     function getJoinKeyLHS()
635 644
     {
636 645
         if (!isset($this->joinKeyLHS))
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/relationships/AbstractRelationships.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -280,6 +280,10 @@
 block discarded – undo
280 280
      * @param AbstractRelationship The relationship object
281 281
      * @return string A globally unique relationship name
282 282
      */
283
+
284
+    /**
285
+     * @param AbstractRelationship $relationship
286
+     */
283 287
     protected function getUniqueName ($relationship)
284 288
     {
285 289
         $allRelationships = $this->getRelationshipList () ;
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/relationships/ActivitiesRelationship.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -219,6 +219,9 @@  discard block
 block discarded – undo
219 219
      * Shortcut to construct an Activities collection subpanel
220 220
      * @param AbstractRelationship $relationship    Source relationship to Activities module
221 221
      */
222
+    /**
223
+     * @param string $relationshipName
224
+     */
222 225
     protected function buildActivitiesSubpanelDefinition ( $relationshipName )
223 226
     {
224 227
 		return array (
@@ -253,6 +256,10 @@  discard block
 block discarded – undo
253 256
      * Shortcut to construct a History collection subpanel
254 257
      * @param AbstractRelationship $relationship    Source relationship to Activities module
255 258
      */
259
+
260
+    /**
261
+     * @param string $relationshipName
262
+     */
256 263
     protected function buildHistorySubpanelDefinition ( $relationshipName )
257 264
     {
258 265
         return array (
Please login to merge, or discard this patch.