Completed
Branch dev (0ae946)
by
unknown
04:08 queued 23s
created
development/factory/_common/utility/AdminPageFramework_RegisterClasses.php 3 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * Sets up properties and performs registering classes.
76 76
      *
77 77
      * 
78
-     * @param    array|string       $asScanDirPath       the target directory path to scan
78
+     * @param    array|string       $asScanDirPaths       the target directory path to scan
79 79
      * @param    array              $aOptions            The recursive settings.
80 80
      * <ul>
81 81
      *      <li><code>is_recursive</code> - (boolean) determines whether the scan should be performed recursively.</li>
@@ -217,6 +217,7 @@  discard block
 block discarded – undo
217 217
         /**
218 218
          * The recursive version of the glob() function.
219 219
          * @internal
220
+         * @param string $sPathPatten
220 221
          */
221 222
         protected function doRecursiveGlob( $sPathPatten, $nFlags=0, array $aExcludeDirs=array(), array $aExcludeDirNames=array() ) {
222 223
 
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         'is_recursive'          => true,
67 67
         'exclude_dir_paths'     => array(),
68 68
         'exclude_dir_names'     => array( 'asset', 'assets', 'css', 'js', 'image', 'images', 'license', 'document', 'documents' ),
69
-        'allowed_extensions'    => array( 'php', ), // 'inc'
69
+        'allowed_extensions'    => array( 'php',), // 'inc'
70 70
         'include_function'      => 'include',
71 71
         'exclude_class_names'   => array( /* 'SomeClass', 'SomeOtherClass' */ ),
72 72
     );
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
      * 
106 106
      * @remark The directory paths set for the 'exclude_dir_paths' option should use the system directory separator.
107 107
      */
108
-    public function __construct( $asScanDirPaths, array $aOptions=array(), array $aClasses=array() ) {
108
+    public function __construct( $asScanDirPaths, array $aOptions = array(), array $aClasses = array() ) {
109 109
         
110 110
         $_aOptions = $aOptions + self::$_aStructure_Options;
111
-        $this->_aClasses   = $aClasses + $this->_getClassArray( $asScanDirPaths, $_aOptions );
111
+        $this->_aClasses = $aClasses + $this->_getClassArray( $asScanDirPaths, $_aOptions );
112 112
         $this->_registerClasses( $_aOptions[ 'include_function' ] );
113 113
         
114 114
     }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             return array();
135 135
         }
136 136
         $_aFilePaths = array();
137
-        foreach( ( array ) $asScanDirPaths as $_sClassDirPath ) {
137
+        foreach ( ( array ) $asScanDirPaths as $_sClassDirPath ) {
138 138
             if ( realpath( $_sClassDirPath ) ) {
139 139
                 $_aFilePaths = array_merge( $this->getFilePaths( $_sClassDirPath, $aSearchOptions ), $_aFilePaths );
140 140
             }
@@ -142,11 +142,11 @@  discard block
 block discarded – undo
142 142
         
143 143
         // Store classes in an array.
144 144
         $_aClasses = array();
145
-        foreach( $_aFilePaths as $_sFilePath ) {
145
+        foreach ( $_aFilePaths as $_sFilePath ) {
146 146
             
147 147
             // Class name without a file extension.
148 148
             $_sClassNameWOExt = pathinfo( $_sFilePath, PATHINFO_FILENAME );
149
-            if ( in_array( $_sClassNameWOExt, $aSearchOptions['exclude_class_names'] ) ) {
149
+            if ( in_array( $_sClassNameWOExt, $aSearchOptions[ 'exclude_class_names' ] ) ) {
150 150
                 continue;
151 151
             }
152 152
             $_aClasses[ $_sClassNameWOExt ] = $_sFilePath; 
@@ -176,26 +176,26 @@  discard block
 block discarded – undo
176 176
          */
177 177
         protected function getFilePaths( $sClassDirPath, array $aSearchOptions ) {
178 178
             
179
-            $sClassDirPath = rtrim( $sClassDirPath, '\\/' ) . DIRECTORY_SEPARATOR; // ensures the trailing (back/)slash exists. 
180
-            $_aAllowedExtensions = $aSearchOptions['allowed_extensions'];
181
-            $_aExcludeDirPaths = ( array ) $aSearchOptions['exclude_dir_paths'];
182
-            $_aExcludeDirNames = ( array ) $aSearchOptions['exclude_dir_names'];
179
+            $sClassDirPath = rtrim( $sClassDirPath, '\\/' ).DIRECTORY_SEPARATOR; // ensures the trailing (back/)slash exists. 
180
+            $_aAllowedExtensions = $aSearchOptions[ 'allowed_extensions' ];
181
+            $_aExcludeDirPaths = ( array ) $aSearchOptions[ 'exclude_dir_paths' ];
182
+            $_aExcludeDirNames = ( array ) $aSearchOptions[ 'exclude_dir_names' ];
183 183
             $_bIsRecursive = $aSearchOptions[ 'is_recursive' ];
184 184
             
185 185
             if ( defined( 'GLOB_BRACE' ) ) { // in some OSes this flag constant is not available.
186 186
                 $_aFilePaths = $_bIsRecursive
187
-                    ? $this->doRecursiveGlob( $sClassDirPath . '*.' . $this->_getGlobPatternExtensionPart( $_aAllowedExtensions ), GLOB_BRACE, $_aExcludeDirPaths, $_aExcludeDirNames )
188
-                    : ( array ) glob( $sClassDirPath . '*.' . $this->_getGlobPatternExtensionPart( $_aAllowedExtensions ), GLOB_BRACE );
187
+                    ? $this->doRecursiveGlob( $sClassDirPath.'*.'.$this->_getGlobPatternExtensionPart( $_aAllowedExtensions ), GLOB_BRACE, $_aExcludeDirPaths, $_aExcludeDirNames )
188
+                    : ( array ) glob( $sClassDirPath.'*.'.$this->_getGlobPatternExtensionPart( $_aAllowedExtensions ), GLOB_BRACE );
189 189
                 return array_filter( $_aFilePaths ); // drop non-value elements.    
190 190
             } 
191 191
                 
192 192
             // For the Solaris operation system.
193 193
             $_aFilePaths = array();
194
-            foreach( $_aAllowedExtensions as $__sAllowedExtension ) {
194
+            foreach ( $_aAllowedExtensions as $__sAllowedExtension ) {
195 195
                                 
196 196
                 $__aFilePaths = $_bIsRecursive
197
-                    ? $this->doRecursiveGlob( $sClassDirPath . '*.' . $__sAllowedExtension, 0, $_aExcludeDirPaths, $_aExcludeDirNames )
198
-                    : ( array ) glob( $sClassDirPath . '*.' . $__sAllowedExtension );
197
+                    ? $this->doRecursiveGlob( $sClassDirPath.'*.'.$__sAllowedExtension, 0, $_aExcludeDirPaths, $_aExcludeDirNames )
198
+                    : ( array ) glob( $sClassDirPath.'*.'.$__sAllowedExtension );
199 199
 
200 200
                 $_aFilePaths = array_merge( $__aFilePaths, $_aFilePaths );
201 201
                 
@@ -208,28 +208,28 @@  discard block
 block discarded – undo
208 208
          * Constructs the file pattern of the file extension part used for the glob() function with the given file extensions.
209 209
          * @internal
210 210
          */
211
-        protected function _getGlobPatternExtensionPart( array $aExtensions=array( 'php', 'inc' ) ) {
211
+        protected function _getGlobPatternExtensionPart( array $aExtensions = array( 'php', 'inc' ) ) {
212 212
             return empty( $aExtensions ) 
213 213
                 ? '*'
214
-                : '{' . implode( ',', $aExtensions ) . '}';
214
+                : '{'.implode( ',', $aExtensions ).'}';
215 215
         }
216 216
         
217 217
         /**
218 218
          * The recursive version of the glob() function.
219 219
          * @internal
220 220
          */
221
-        protected function doRecursiveGlob( $sPathPatten, $nFlags=0, array $aExcludeDirs=array(), array $aExcludeDirNames=array() ) {
221
+        protected function doRecursiveGlob( $sPathPatten, $nFlags = 0, array $aExcludeDirs = array(), array $aExcludeDirNames = array() ) {
222 222
 
223 223
             $_aFiles = glob( $sPathPatten, $nFlags );    
224 224
             $_aFiles = is_array( $_aFiles ) ? $_aFiles : array(); // glob() can return false.
225
-            $_aDirs = glob( dirname( $sPathPatten ) . DIRECTORY_SEPARATOR . '*', GLOB_ONLYDIR|GLOB_NOSORT );
225
+            $_aDirs = glob( dirname( $sPathPatten ).DIRECTORY_SEPARATOR.'*', GLOB_ONLYDIR | GLOB_NOSORT );
226 226
             $_aDirs = is_array( $_aDirs ) ? $_aDirs : array();
227 227
             foreach ( $_aDirs as $_sDirPath ) {
228 228
 
229 229
                 if ( in_array( $_sDirPath, $aExcludeDirs ) ) { continue; }
230 230
                 if ( in_array( pathinfo( $_sDirPath, PATHINFO_DIRNAME ), $aExcludeDirNames ) ) { continue; }
231 231
                 
232
-                $_aFiles = array_merge( $_aFiles, $this->doRecursiveGlob( $_sDirPath . DIRECTORY_SEPARATOR . basename( $sPathPatten ), $nFlags, $aExcludeDirs ) );
232
+                $_aFiles = array_merge( $_aFiles, $this->doRecursiveGlob( $_sDirPath.DIRECTORY_SEPARATOR.basename( $sPathPatten ), $nFlags, $aExcludeDirs ) );
233 233
                 
234 234
             }
235 235
             return $_aFiles;
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      * @return      void
245 245
      */
246 246
     protected function _registerClasses( $sIncludeFunction ) {
247
-        spl_autoload_register( array( $this, '_replyToAutoLoad_' . $sIncludeFunction ) );
247
+        spl_autoload_register( array( $this, '_replyToAutoLoad_'.$sIncludeFunction ) );
248 248
     }    
249 249
         /**#@+
250 250
          * Responds to the PHP auto-loader and includes the passed class based on the previously stored path associated with the class name in the constructor.
@@ -252,25 +252,25 @@  discard block
 block discarded – undo
252 252
          * @return      void
253 253
          */        
254 254
         public function _replyToAutoLoad_include( $sCalledUnknownClassName ) {            
255
-            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
255
+            if ( !isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
256 256
                 return; 
257 257
             }
258 258
             include( $this->_aClasses[ $sCalledUnknownClassName ] );
259 259
         }
260 260
         public function _replyToAutoLoad_include_once( $sCalledUnknownClassName ) {            
261
-            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
261
+            if ( !isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
262 262
                 return; 
263 263
             }
264 264
             include_once( $this->_aClasses[ $sCalledUnknownClassName ] );
265 265
         }        
266 266
         public function _replyToAutoLoad_require( $sCalledUnknownClassName ) {            
267
-            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
267
+            if ( !isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
268 268
                 return; 
269 269
             }
270 270
             require( $this->_aClasses[ $sCalledUnknownClassName ] );
271 271
         }        
272 272
         public function _replyToAutoLoad_require_once( $sCalledUnknownClassName ) {            
273
-            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
273
+            if ( !isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
274 274
                 return; 
275 275
             }
276 276
             require_once( $this->_aClasses[ $sCalledUnknownClassName ] );
Please login to merge, or discard this patch.
Braces   +10 added lines, -9 removed lines patch added patch discarded remove patch
@@ -181,7 +181,8 @@  discard block
 block discarded – undo
181 181
             $_aExcludeDirNames = ( array ) $aSearchOptions['exclude_dir_names'];
182 182
             $_bIsRecursive = $aSearchOptions[ 'is_recursive' ];
183 183
             
184
-            if ( defined( 'GLOB_BRACE' ) ) { // in some OSes this flag constant is not available.
184
+            if ( defined( 'GLOB_BRACE' ) ) {
185
+// in some OSes this flag constant is not available.
185 186
                 $_aFilePaths = $_bIsRecursive
186 187
                     ? $this->doRecursiveGlob( $sClassDirPath . '*.' . $this->_getGlobPatternExtensionPart( $_aAllowedExtensions ), GLOB_BRACE, $_aExcludeDirPaths, $_aExcludeDirNames )
187 188
                     : ( array ) glob( $sClassDirPath . '*.' . $this->_getGlobPatternExtensionPart( $_aAllowedExtensions ), GLOB_BRACE );
@@ -250,26 +251,26 @@  discard block
 block discarded – undo
250 251
          * @internal
251 252
          * @return      void
252 253
          */        
253
-        public function _replyToAutoLoad_include( $sCalledUnknownClassName ) {            
254
-            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
254
+        public function _replyToAutoLoad_include( $sCalledUnknownClassName ) {
255
+            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) {
255 256
                 return; 
256 257
             }
257 258
             include( $this->_aClasses[ $sCalledUnknownClassName ] );
258 259
         }
259
-        public function _replyToAutoLoad_include_once( $sCalledUnknownClassName ) {            
260
-            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
260
+        public function _replyToAutoLoad_include_once( $sCalledUnknownClassName ) {
261
+            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) {
261 262
                 return; 
262 263
             }
263 264
             include_once( $this->_aClasses[ $sCalledUnknownClassName ] );
264 265
         }        
265
-        public function _replyToAutoLoad_require( $sCalledUnknownClassName ) {            
266
-            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
266
+        public function _replyToAutoLoad_require( $sCalledUnknownClassName ) {
267
+            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) {
267 268
                 return; 
268 269
             }
269 270
             require( $this->_aClasses[ $sCalledUnknownClassName ] );
270 271
         }        
271
-        public function _replyToAutoLoad_require_once( $sCalledUnknownClassName ) {            
272
-            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) { 
272
+        public function _replyToAutoLoad_require_once( $sCalledUnknownClassName ) {
273
+            if ( ! isset( $this->_aClasses[ $sCalledUnknownClassName ] ) ) {
273 274
                 return; 
274 275
             }
275 276
             require_once( $this->_aClasses[ $sCalledUnknownClassName ] );
Please login to merge, or discard this patch.
development/utility/class_tester/AdminPageFramework_ClassTester.php 2 patches
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * Creates an object instance with dynamic parameters.
46 46
      * 
47 47
      * @since       3.7.10
48
-     * @param       string      $sCalssName     The class name for testing.
48
+     * @param       string      $sClassName     The class name for testing.
49 49
      * @param       array       $aParameters    The parameters to pass to the constructor of the class set in the first parameter.
50 50
      * @return      object      An object instance of the class specified in the first parameter.
51 51
      */
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * 
62 62
      * @since       3.7.10
63 63
      * @param       object      $oClass         The subject class object.
64
-     * @param       string      $sMathodName    The subject method name.
64
+     * @param       string      $sMethodName    The subject method name.
65 65
      * @param       array       $aParameters    The parameters to pass to the method set in the second parameter.    
66 66
      * @remark      This supports private methods to be executed.
67 67
      */
@@ -87,6 +87,7 @@  discard block
 block discarded – undo
87 87
     }
88 88
         /**
89 89
          * @since       3.7.10
90
+         * @param string $sClassName
90 91
          * @return      object
91 92
          * @internal
92 93
          */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param       array       $aParameters    The parameters to pass to the constructor of the class set in the first parameter.
49 49
      * @return      object      An object instance of the class specified in the first parameter.
50 50
      */
51
-    static public function getInstance( $sClassName, array $aParameters=array() ) {
51
+    static public function getInstance( $sClassName, array $aParameters = array() ) {
52 52
         
53 53
         $_oReflection = new ReflectionClass( $sClassName );
54 54
         return $_oReflection->newInstanceArgs( $aParameters );               
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         // For PHP 5.2.x or below
70 70
         if ( version_compare( phpversion(), '<', '5.3.0' ) ) {
71 71
             trigger_error(
72
-                'Program Name' . ': ' 
72
+                'Program Name'.': ' 
73 73
                     . sprintf( 
74 74
                         'The method cannot run with your PHP version: %1$s',
75 75
                         phpversion()
Please login to merge, or discard this patch.
development/document/factory/AdminPageFramework_Documentation.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,6 @@
 block discarded – undo
196 196
  * For common hooks throughout the other factory components, see [Base Factory](./package-AdminPageFramework.Common.Factory.html).
197 197
  * 
198 198
  * <h3>Factory Specific Hooks</h3>
199
-
200 199
  * <h4> Action Hooks</h4>
201 200
  * <ul>
202 201
  *     <li>**load_{page slug}** – [2.1.0+] triggered when the framework's page is loaded before the header gets sent. This will not be triggered in the admin pages that are not registered by the framework. The first parameter: class object [3.1.2+].</li>
Please login to merge, or discard this patch.
factory/user_meta/_model/AdminPageFramework_UserMeta_Model___UserMeta.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
     /**
22 22
      * The callback function name or the callable object to retrieve meta data.
23 23
      */
24
-    protected $osCallable   = 'get_user_meta'; 
24
+    protected $osCallable = 'get_user_meta'; 
25 25
         
26 26
 }
Please login to merge, or discard this patch.
development/factory/_common/_abstract/AdminPageFramework_Factory_View.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
          * @return      string      the input id attribute
42 42
          */    
43 43
         public function _replyToGetSectionName( /* $sSectionName, $aSectionset */ ) {
44
-            $_aParams = func_get_args() + array( null, null, );
44
+            $_aParams = func_get_args() + array( null, null,);
45 45
             return $_aParams[ 0 ];
46 46
         }
47 47
         
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
          * @since       3.6.0
70 70
          * @return      string
71 71
          */
72
-        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ )  {            
73
-            $_aParams = func_get_args() + array( null, null, );
72
+        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ ) {            
73
+            $_aParams = func_get_args() + array( null, null,);
74 74
             return $_aParams[ 0 ];                        
75 75
         }
76 76
         /**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
          * @return      string
81 81
          */        
82 82
         public function _replyToGetFlatFieldName( /* $sFieldName, $aFieldset */ ) {            
83
-            $_aParams = func_get_args() + array( null, null, );
83
+            $_aParams = func_get_args() + array( null, null,);
84 84
             return $_aParams[ 0 ];            
85 85
         }
86 86
         
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
          * @return      string      the flat input name attribute
103 103
          */    
104 104
         public function _replyToGetFlatInputName( /* $sFlatNameAttribute, $aField, $sKey */ ) {
105
-            $_aParams   = func_get_args() + array( null, null, null );
105
+            $_aParams = func_get_args() + array( null, null, null );
106 106
             return $_aParams[ 0 ];
107 107
         }
108 108
 
@@ -144,14 +144,14 @@  discard block
 block discarded – undo
144 144
                 'if'            => true,
145 145
                 'capability'    => '',
146 146
             );
147
-            if ( ! $aElementDefinition[ 'if' ] ) {
147
+            if ( !$aElementDefinition[ 'if' ] ) {
148 148
                 return false;
149 149
             }
150 150
             // For front-end forms that allow guests, the capability level can be empty. In that case, return true.
151
-            if ( ! $aElementDefinition[ 'capability' ] ) {
151
+            if ( !$aElementDefinition[ 'capability' ] ) {
152 152
                 return true;
153 153
             }
154
-            if ( ! current_user_can( $aElementDefinition[ 'capability' ] ) ) {
154
+            if ( !current_user_can( $aElementDefinition[ 'capability' ] ) ) {
155 155
                 return false;
156 156
             }            
157 157
             return $bDefault;
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
             $this,
188 188
             array( 
189 189
                 // section_{instantiated class name}_{section id}
190
-                'section_head_' . $this->oProp->sClassName . '_' . $aSectionset[ 'section_id' ] 
190
+                'section_head_'.$this->oProp->sClassName.'_'.$aSectionset[ 'section_id' ] 
191 191
             ), 
192 192
             $sSectionDescription
193 193
         );
@@ -204,15 +204,15 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public function _replyToGetFieldOutput( $sFieldOutput, $aFieldset ) {
206 206
 
207
-        $_sSectionPart  = $this->oUtil->getAOrB(
207
+        $_sSectionPart = $this->oUtil->getAOrB(
208 208
             isset( $aFieldset[ 'section_id' ] ) && '_default' !== $aFieldset[ 'section_id' ],
209
-            '_' . $aFieldset[ 'section_id' ],
209
+            '_'.$aFieldset[ 'section_id' ],
210 210
             ''
211 211
         );
212 212
         return $this->oUtil->addAndApplyFilters(
213 213
             $this,
214 214
             array( 
215
-                'field_' . $this->oProp->sClassName . $_sSectionPart . '_' . $aFieldset[ 'field_id' ]
215
+                'field_'.$this->oProp->sClassName.$_sSectionPart.'_'.$aFieldset[ 'field_id' ]
216 216
             ),
217 217
             $sFieldOutput,
218 218
             $aFieldset // the field array
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
          * @since       3.6.0
70 70
          * @return      string
71 71
          */
72
-        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ )  {            
72
+        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ ) {
73 73
             $_aParams = func_get_args() + array( null, null, );
74 74
             return $_aParams[ 0 ];                        
75 75
         }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
          * @since       3.6.0
80 80
          * @return      string
81 81
          */        
82
-        public function _replyToGetFlatFieldName( /* $sFieldName, $aFieldset */ ) {            
82
+        public function _replyToGetFlatFieldName( /* $sFieldName, $aFieldset */ ) {
83 83
             $_aParams = func_get_args() + array( null, null, );
84 84
             return $_aParams[ 0 ];            
85 85
         }
Please login to merge, or discard this patch.
factory/_common/_abstract/_controller/AdminPageFramework_Link_Base.php 2 patches
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * Sets up hooks and properties.
28 28
      */ 
29
-    public function __construct( $oProp, $oMsg=null ) {
29
+    public function __construct( $oProp, $oMsg = null ) {
30 30
         
31
-        if ( ! $this->_isLoadable( $oProp ) ) {
31
+        if ( !$this->_isLoadable( $oProp ) ) {
32 32
             return;
33 33
         }
34 34
                 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         // Add an action link in the plugin listing page
41 41
         if ( $this->_shouldSetPluginActionLinks() ) {            
42 42
             add_filter( 
43
-                'plugin_action_links_' . plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ),
43
+                'plugin_action_links_'.plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ),
44 44
                 array( $this, '_replyToAddSettingsLinkInPluginListingPage' ), 
45 45
                 20     // set a lower priority so that the link will be embedded at the beginning ( the most left hand side ).
46 46
             );     
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
          * @return      boolean
56 56
          */
57 57
         private function _isLoadable( $oProp ) {
58
-            if ( ! $oProp->bIsAdmin ) { 
58
+            if ( !$oProp->bIsAdmin ) { 
59 59
                 return false;
60 60
             }
61 61
             if ( $oProp->bIsAdminAjax ) {
62 62
                 return false;
63 63
             }
64
-            return ! $this->hasBeenCalled( 'links_' . $oProp->sClassName );
64
+            return !$this->hasBeenCalled( 'links_'.$oProp->sClassName );
65 65
         }
66 66
         
67 67
     /**
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
     protected function _shouldSetPluginActionLinks() {
73 73
         
74 74
         // It is possible that the sub-objects are not set when the class is considered not loadable.
75
-        if ( ! isset( $this->oProp ) ) {
75
+        if ( !isset( $this->oProp ) ) {
76 76
             return false;
77 77
         }
78 78
         
79
-        if ( ! in_array( $this->oProp->sPageNow, array( 'plugins.php' ) ) ) {
79
+        if ( !in_array( $this->oProp->sPageNow, array( 'plugins.php' ) ) ) {
80 80
             return false;
81 81
         }
82 82
         return 'plugin' === $this->oProp->aScriptInfo[ 'sType' ];
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                         array(
144 144
                             'href'      => $aScriptInfo[ 'sURI' ],
145 145
                             'target'    => '_blank',
146
-                            'title'     => $aScriptInfo[ 'sName' ] . $_sVersion . $_sDescription 
146
+                            'title'     => $aScriptInfo[ 'sName' ].$_sVersion.$_sDescription 
147 147
                         ), 
148 148
                         $aScriptInfo[ 'sName' ] 
149 149
                     )    
@@ -165,13 +165,13 @@  discard block
 block discarded – undo
165 165
                 $_sAuthorInfo = $this->getAOrB(
166 166
                     empty( $aScriptInfo[ 'sAuthor' ] ),
167 167
                     $_sAuthorInfo,
168
-                    ' by ' . $_sAuthorInfo
168
+                    ' by '.$_sAuthorInfo
169 169
                 );
170 170
                 
171 171
                 // Enclosing the output in a span tag as the outer element is a '<p>' tag. So this cannot be div.
172 172
                 // 3.5.7+ Added the class attribute for acceptance testing
173 173
                 return "<span class='apf-script-info'>"  
174
-                        . $_sPluginInfo . $_sAuthorInfo
174
+                        . $_sPluginInfo.$_sAuthorInfo
175 175
                     . "</span>";
176 176
           
177 177
             }
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
                         array(
203 203
                             'href'      => $aScriptInfo[ 'sURI' ],
204 204
                             'target'    => '_blank',
205
-                            'title'     => $aScriptInfo[ 'sName' ] . $_sVersion . $_sDescription,
205
+                            'title'     => $aScriptInfo[ 'sName' ].$_sVersion.$_sDescription,
206 206
                         ), 
207 207
                         $aScriptInfo[ 'sName' ]
208 208
                     )                   
@@ -212,16 +212,16 @@  discard block
 block discarded – undo
212 212
                 // 3.5.7+ added the 'apf-credit' class attribute for acceptance testing
213 213
                 // 3.7.0+  added the footer-thankyou id attribute.
214 214
                 return "<span class='apf-credit' id='footer-thankyou'>" 
215
-                    . $this->oMsg->get( 'powered_by' ) . '&nbsp;' 
215
+                    . $this->oMsg->get( 'powered_by' ).'&nbsp;' 
216 216
                     . $_sLibraryInfo
217 217
                     . ",&nbsp;"
218
-                    . $this->oMsg->get( 'and' ) . '&nbsp;' 
218
+                    . $this->oMsg->get( 'and' ).'&nbsp;' 
219 219
                     . $this->getHTMLTag( 
220 220
                         'a', 
221 221
                         array(
222 222
                             'href'      => 'https://wordpress.org',
223 223
                             'target'    => '_blank',
224
-                            'title'     => 'WordPress ' . $GLOBALS[ 'wp_version' ]
224
+                            'title'     => 'WordPress '.$GLOBALS[ 'wp_version' ]
225 225
                         ), 
226 226
                         'WordPress'
227 227
                     )
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
          */
238 238
         protected function _setFooterHooks() {
239 239
             
240
-            add_filter( 'admin_footer_text' , array( $this, '_replyToAddInfoInFooterLeft' ) );
240
+            add_filter( 'admin_footer_text', array( $this, '_replyToAddInfoInFooterLeft' ) );
241 241
             add_filter( 'update_footer', array( $this, '_replyToAddInfoInFooterRight' ), 11 );
242 242
             
243 243
         }             
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
              * @callback    filter      admin_footer_text
250 250
              * @internal
251 251
              */ 
252
-            public function _replyToAddInfoInFooterLeft( $sLinkHTML='' ) {
252
+            public function _replyToAddInfoInFooterLeft( $sLinkHTML = '' ) {
253 253
 
254 254
                 $sLinkHTML = empty( $this->oProp->aScriptInfo[ 'sName' ] )
255 255
                     ? $sLinkHTML
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
              
258 258
                 return $this->addAndApplyFilters( 
259 259
                     $this->oProp->oCaller, 
260
-                    'footer_left_' . $this->oProp->sClassName, 
260
+                    'footer_left_'.$this->oProp->sClassName, 
261 261
                     $sLinkHTML
262 262
                 );
263 263
              
@@ -270,10 +270,10 @@  discard block
 block discarded – undo
270 270
              * @callback    filter      admin_footer_text
271 271
              * @internal
272 272
              */     
273
-            public function _replyToAddInfoInFooterRight( $sLinkHTML='' ) {
273
+            public function _replyToAddInfoInFooterRight( $sLinkHTML = '' ) {
274 274
                 return $this->addAndApplyFilters( 
275 275
                     $this->oProp->oCaller, 
276
-                    'footer_right_' . $this->oProp->sClassName, 
276
+                    'footer_right_'.$this->oProp->sClassName, 
277 277
                     $this->oProp->aFooterInfo[ 'sRight' ]
278 278
                 );                
279 279
             }       
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         add_action( 'in_admin_footer', array( $this, '_replyToSetFooterInfo' ) );
39 39
         
40 40
         // Add an action link in the plugin listing page
41
-        if ( $this->_shouldSetPluginActionLinks() ) {            
41
+        if ( $this->_shouldSetPluginActionLinks() ) {
42 42
             add_filter( 
43 43
                 'plugin_action_links_' . plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ),
44 44
                 array( $this, '_replyToAddSettingsLinkInPluginListingPage' ), 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
          * @return      boolean
56 56
          */
57 57
         private function _isLoadable( $oProp ) {
58
-            if ( ! $oProp->bIsAdmin ) { 
58
+            if ( ! $oProp->bIsAdmin ) {
59 59
                 return false;
60 60
             }
61 61
             if ( $oProp->bIsAdminAjax ) {
Please login to merge, or discard this patch.
_common/_abstract/_model/AdminPageFramework_Factory_Model___Meta_Base.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,17 +23,17 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * The callback function name or the callable object to retrieve meta data.
25 25
      */
26
-    protected $osCallable   = 'get_post_meta';
26
+    protected $osCallable = 'get_post_meta';
27 27
 
28 28
     /**
29 29
      * The object ID such as post ID, user ID, and term ID.
30 30
      */
31
-    public $iObjectID       = 0;
31
+    public $iObjectID = 0;
32 32
     
33 33
     /**
34 34
      * A form fieldsets array.
35 35
      */
36
-    public $aFieldsets      = array();
36
+    public $aFieldsets = array();
37 37
     
38 38
     /**
39 39
      * Sets up properties.
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function get() {
59 59
 
60
-        if ( ! $this->iObjectID ) {
60
+        if ( !$this->iObjectID ) {
61 61
             return array();
62 62
         }
63 63
         return $this->_getSavedDataFromFieldsets(
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
             
77 77
             $_aMetaKeys = $this->_getMetaKeys( $iObjectID );
78 78
             $_aMetaData = array();
79
-            foreach( $aFieldsets as $_sSectionID => $_aFieldsets ) {
79
+            foreach ( $aFieldsets as $_sSectionID => $_aFieldsets ) {
80 80
                 
81
-                if ( '_default' == $_sSectionID  ) {
82
-                    foreach( $_aFieldsets as $_aFieldset ) {
83
-                        if ( ! in_array( $_aFieldset[ 'field_id' ], $_aMetaKeys ) ) {
81
+                if ( '_default' == $_sSectionID ) {
82
+                    foreach ( $_aFieldsets as $_aFieldset ) {
83
+                        if ( !in_array( $_aFieldset[ 'field_id' ], $_aMetaKeys ) ) {
84 84
                             continue;
85 85
                         }
86 86
                         $_aMetaData[ $_aFieldset[ 'field_id' ] ] = call_user_func_array(
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                         );
94 94
                     }
95 95
                 }
96
-                if ( ! in_array( $_sSectionID, $_aMetaKeys ) ) {
96
+                if ( !in_array( $_sSectionID, $_aMetaKeys ) ) {
97 97
                     continue;
98 98
                 }                
99 99
                 $_aMetaData[ $_sSectionID ] = call_user_func_array(
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -69,6 +69,7 @@
 block discarded – undo
69 69
          * 
70 70
          * @since       3.7.0
71 71
          * @uses        get_post_meta()
72
+         * @param integer $iObjectID
72 73
          * @return      array
73 74
          */
74 75
         private function _getSavedDataFromFieldsets( $iObjectID, $aFieldsets ) {
Please login to merge, or discard this patch.
form/_view/fieldset/AdminPageFramework_Form_View___Fieldset_Base.php 4 patches
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 self::$_bIsLoadedJSScripts_Widget = true;
158 158
             }
159 159
             
160
-            if ( self::$_bIsLoadedJSScripts ) { 
160
+            if ( self::$_bIsLoadedJSScripts ) {
161 161
                 return; 
162 162
             }
163 163
             self::$_bIsLoadedJSScripts = true;
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      * 
256 256
      * @since 3.0.0
257 257
      */    
258
-    protected function _getSortableFieldEnablerScript( $sFieldsContainerID ) {        
258
+    protected function _getSortableFieldEnablerScript( $sFieldsContainerID ) {
259 259
     
260 260
         $_sScript = <<<JAVASCRIPTS
261 261
     jQuery( document ).ready( function() {
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,6 +174,7 @@  discard block
 block discarded – undo
174 174
      * Returns the repeatable fields script.
175 175
      * 
176 176
      * @since 2.1.3
177
+     * @param string $sFieldsContainerID
177 178
      */
178 179
     protected function _getRepeaterFieldEnablerScript( $sFieldsContainerID, $iFieldCount, $aSettings ) {
179 180
         
@@ -244,6 +245,7 @@  discard block
 block discarded – undo
244 245
             /**
245 246
              * @since       3.8.13
246 247
              * @param       array       $aArguments
248
+             * @param string $sSmallButtonSelector
247 249
              * @return      string
248 250
              */
249 251
             private function ___getAddButtonAttribtes( $aArguments, $sFieldsContainerID, $sSmallButtonSelector ) {
@@ -262,7 +264,7 @@  discard block
 block discarded – undo
262 264
             }
263 265
             /**
264 266
              * @since       3.8.13
265
-             * @param       array       $aArguments
267
+             * @param string $sSmallButtonSelector
266 268
              * @return      string
267 269
              */
268 270
             private function ___getRemvoeButtonAttribtes( $sFieldsContainerID, $sSmallButtonSelector, $iFieldCount ) {
@@ -306,6 +308,7 @@  discard block
 block discarded – undo
306 308
      * Returns the sortable fields script.
307 309
      * 
308 310
      * @since 3.0.0
311
+     * @param string $sFieldsContainerID
309 312
      */    
310 313
     protected function _getSortableFieldEnablerScript( $sFieldsContainerID ) {        
311 314
     
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -255,8 +255,8 @@  discard block
 block discarded – undo
255 255
                     'href'      => empty( $aArguments[ 'disabled' ] )
256 256
                         ? null
257 257
                         : '#TB_inline?width=' . $aArguments[ 'disabled' ][ 'box_width' ]
258
-                          . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
259
-                          . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
258
+                            . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
259
+                            . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
260 260
                 );
261 261
                 return $this->getAttributes( $_sPlusButtonAttributes );
262 262
             }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
             private function ___getRemvoeButtonAttribtes( $sFieldsContainerID, $sSmallButtonSelector, $iFieldCount ) {
269 269
                 $_aMinusButtonAttributes = array(
270 270
                     'class'     => 'repeatable-field-remove-button button-secondary repeatable-field-button button'
271
-                         . $sSmallButtonSelector,
271
+                            . $sSmallButtonSelector,
272 272
                     'title'     => $this->oMsg->get( 'remove' ),
273 273
                     'style'     => $iFieldCount <= 1
274 274
                         ? 'visibility: hidden'
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param       object      $oMsg                   An object storing the system messages.
69 69
      * @param       array       $aCallbacks             An array storing the form-field specific callbacks.     
70 70
      */
71
-    public function __construct( $aFieldset, $aOptions, $aErrors, &$aFieldTypeDefinitions, &$oMsg, array $aCallbacks=array() ) {
71
+    public function __construct( $aFieldset, $aOptions, $aErrors, &$aFieldTypeDefinitions, &$oMsg, array $aCallbacks = array() ) {
72 72
 
73 73
         // Set up the properties that will be accessed later in the methods.
74 74
         $this->aFieldset                = $this->_getFormatted( $aFieldset, $aFieldTypeDefinitions );
@@ -77,13 +77,13 @@  discard block
 block discarded – undo
77 77
         $this->aErrors                  = $this->getAsArray( $aErrors );
78 78
         $this->oMsg                     = $oMsg;
79 79
         $this->aCallbacks               = $aCallbacks + array(
80
-            'hfID'              => null,    // the input id attribute
81
-            'hfTagID'           => null,    // the fieldset/field row container id attribute
82
-            'hfName'            => null,    // the input name attribute
83
-            'hfNameFlat'        => null,    // the flat input name attribute                
80
+            'hfID'              => null, // the input id attribute
81
+            'hfTagID'           => null, // the fieldset/field row container id attribute
82
+            'hfName'            => null, // the input name attribute
83
+            'hfNameFlat'        => null, // the flat input name attribute                
84 84
             'hfInputName'       => null,
85 85
             'hfInputNameFlat'   => null,
86
-            'hfClass'           => null,    // the class attribute
86
+            'hfClass'           => null, // the class attribute
87 87
         );        
88 88
         
89 89
         // 2. Load necessary JavaScript scripts.
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
150 150
          * @since   3.2.0   Added the `$sFieldsType` parameter.
151 151
          * @internal
152 152
          */
153
-        private function _loadScripts( $sStructureType='' ) {
153
+        private function _loadScripts( $sStructureType = '' ) {
154 154
 
155
-            if ( 'widget' === $sStructureType && ! self::$_bIsLoadedJSScripts_Widget ) {
155
+            if ( 'widget' === $sStructureType && !self::$_bIsLoadedJSScripts_Widget ) {
156 156
                 new AdminPageFramework_Form_View___Script_Widget;
157 157
                 self::$_bIsLoadedJSScripts_Widget = true;
158 158
             }
@@ -177,8 +177,8 @@  discard block
 block discarded – undo
177 177
      */
178 178
     protected function _getRepeaterFieldEnablerScript( $sFieldsContainerID, $iFieldCount, $aSettings ) {
179 179
         
180
-        $_sSmallButtons         = '"' . $this->___getRepeatableButtonHTML( $sFieldsContainerID, ( array ) $aSettings, $iFieldCount, true ) . '"';
181
-        $_sNestedFieldsButtons  = '"' . $this->___getRepeatableButtonHTML( $sFieldsContainerID, ( array ) $aSettings, $iFieldCount, false ) . '"';
180
+        $_sSmallButtons         = '"'.$this->___getRepeatableButtonHTML( $sFieldsContainerID, ( array ) $aSettings, $iFieldCount, true ).'"';
181
+        $_sNestedFieldsButtons  = '"'.$this->___getRepeatableButtonHTML( $sFieldsContainerID, ( array ) $aSettings, $iFieldCount, false ).'"';
182 182
         $_aJSArray              = json_encode( $aSettings );
183 183
         $_sScript               = <<<JAVASCRIPTS
184 184
 jQuery( document ).ready( function() {
@@ -224,18 +224,18 @@  discard block
 block discarded – undo
224 224
          * @since       3.8.0
225 225
          * @return      string
226 226
          */
227
-        private function ___getRepeatableButtonHTML( $sFieldsContainerID, array $aArguments, $iFieldCount, $bSmall=true ) {
227
+        private function ___getRepeatableButtonHTML( $sFieldsContainerID, array $aArguments, $iFieldCount, $bSmall = true ) {
228 228
 
229 229
             // @todo Move this formatting routine to the field-set formatter class.
230 230
             $_oFormatter             = new AdminPageFramework_Form_Model___Format_RepeatableField( $aArguments, $this->oMsg );
231 231
             $_aArguments             = $_oFormatter->get();
232 232
             $_sSmallButtonSelector   = $bSmall ? ' button-small' : '';
233
-            return "<div " . $this->___getContainerAttributes( $_aArguments ) . " >"
234
-                    . "<a " . $this->___getRemvoeButtonAttribtes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ) . ">-</a>"
235
-                    . "<a " . $this->___getAddButtonAttribtes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ) . ">+</a>"
233
+            return "<div ".$this->___getContainerAttributes( $_aArguments )." >"
234
+                    . "<a ".$this->___getRemvoeButtonAttribtes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ).">-</a>"
235
+                    . "<a ".$this->___getAddButtonAttribtes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ).">+</a>"
236 236
                 . "</div>"
237 237
                 . $this->getModalForDisabledRepeatableElement(
238
-                    'repeatable_field_disabled_' . $sFieldsContainerID,
238
+                    'repeatable_field_disabled_'.$sFieldsContainerID,
239 239
                     $_aArguments[ 'disabled' ]
240 240
                 );
241 241
 
@@ -254,9 +254,9 @@  discard block
 block discarded – undo
254 254
                     'data-id'   => $sFieldsContainerID,
255 255
                     'href'      => empty( $aArguments[ 'disabled' ] )
256 256
                         ? null
257
-                        : '#TB_inline?width=' . $aArguments[ 'disabled' ][ 'box_width' ]
258
-                          . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
259
-                          . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
257
+                        : '#TB_inline?width='.$aArguments[ 'disabled' ][ 'box_width' ]
258
+                          . '&height='.$aArguments[ 'disabled' ][ 'box_height' ]
259
+                          . '&inlineId='.'repeatable_field_disabled_'.$sFieldsContainerID,
260 260
                 );
261 261
                 return $this->getAttributes( $_sPlusButtonAttributes );
262 262
             }
@@ -283,10 +283,10 @@  discard block
 block discarded – undo
283 283
              * @return      string
284 284
              */
285 285
             private function ___getContainerAttributes( $aArguments ) {
286
-                $_aContainerAttributes   = array(
286
+                $_aContainerAttributes = array(
287 287
                     'class' => $this->getClassAttribute(
288 288
                         'admin-page-framework-repeatable-field-buttons',
289
-                        ! empty( $aArguments[ 'disabled' ] )
289
+                        !empty( $aArguments[ 'disabled' ] )
290 290
                             ? 'disabled'
291 291
                             : ''
292 292
                     ),
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
                     unset( $aArguments[ 'disabled' ] );
300 300
                 }
301 301
                 return $this->getAttributes( $_aContainerAttributes )
302
-                    . ' ' . $this->getDataAttributes( $aArguments );
302
+                    . ' '.$this->getDataAttributes( $aArguments );
303 303
             }
304 304
 
305 305
     /**
Please login to merge, or discard this patch.
_view/generator/field/AdminPageFramework_Form_View___Generate_FieldName.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
         return $_sResult;
27 27
     }
28 28
         
29
-    public function getModel()     {
30
-        return $this->get() . '[' . $this->sIndexMark . ']';
29
+    public function getModel() {
30
+        return $this->get().'['.$this->sIndexMark.']';
31 31
     }
32 32
         
33 33
         /**
@@ -35,14 +35,14 @@  discard block
 block discarded – undo
35 35
          */
36 36
         protected function _getFieldName() {
37 37
 
38
-            $_aFieldPath   = $this->aArguments[ '_field_path_array' ];
39
-            if ( ! $this->_isSectionSet() ) {
38
+            $_aFieldPath = $this->aArguments[ '_field_path_array' ];
39
+            if ( !$this->_isSectionSet() ) {
40 40
                 return $this->_getInputNameConstructed( $_aFieldPath );
41 41
             }
42 42
             
43 43
             $_aSectionPath = $this->aArguments[ '_section_path_array' ];
44 44
             if ( $this->_isSectionSet() && isset( $this->aArguments[ '_section_index' ] ) ) {
45
-                $_aSectionPath[] = $this->aArguments[ '_section_index' ];
45
+                $_aSectionPath[ ] = $this->aArguments[ '_section_index' ];
46 46
             }
47 47
             $_sFieldName = $this->_getInputNameConstructed( 
48 48
                 array_merge( $_aSectionPath, $_aFieldPath )
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         return $_sResult;
27 27
     }
28 28
         
29
-    public function getModel()     {
29
+    public function getModel() {
30 30
         return $this->get() . '[' . $this->sIndexMark . ']';
31 31
     }
32 32
         
Please login to merge, or discard this patch.