Completed
Branch dev (8a5453)
by
unknown
39s
created
formatter/AdminPageFramework_Form_Model___Format_RepeatableSection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
      * @since   3.8.13
37 37
      */
38 38
     static protected $_aStructure_Disabled = array(
39
-        'message'    => 'The ability of repeating sections is disabled.',   // will be reassigned
40
-        'caption'    => 'Warning',  // will be reassigned
39
+        'message'    => 'The ability of repeating sections is disabled.', // will be reassigned
40
+        'caption'    => 'Warning', // will be reassigned
41 41
         'box_width'  => 300,
42 42
         'box_height' => 72,
43 43
     );
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function __construct( /* array $asArguments, $oMsg */ ) {
56 56
 
57
-        $_aParameters       = func_get_args() + array(
57
+        $_aParameters = func_get_args() + array(
58 58
             $this->_aArguments,
59 59
             null
60 60
         );
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
     public function get() {
74 74
 
75 75
         $_aArguments = $this->_aArguments + self::$_aStructure;
76
-        unset( $_aArguments[ 0 ] );   // remove the 0 index element converted from `'repeatable   => 'true',`.
77
-        if ( ! empty( $_aArguments[ 'disabled' ] ) ) {
76
+        unset( $_aArguments[ 0 ] ); // remove the 0 index element converted from `'repeatable   => 'true',`.
77
+        if ( !empty( $_aArguments[ 'disabled' ] ) ) {
78 78
             $_aArguments[ 'disabled' ] = $_aArguments[ 'disabled' ] + array(
79 79
                 'message'    => $this->_getDefaultMessage(),
80 80
                 'caption'    => $this->_oMsg->get( 'warning_caption' ),
Please login to merge, or discard this patch.
development/factory/_common/_abstract/AdminPageFramework_Factory_Model.php 2 patches
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @since       3.7.0
94 94
      * @return      array       The modified section-sets definition array.
95 95
      */    
96
-    public function _replyToModifySectionsets( $aSectionsets ) {    
96
+    public function _replyToModifySectionsets( $aSectionsets ) {
97 97
         
98 98
         return $this->oUtil->addAndApplyFilter( 
99 99
             $this,  // caller factory object
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
          * An alias of `_setLastInputs()`.
365 365
          * @deprecated      3.7.0
366 366
          */
367
-        public function _setLastInput( $aLastInputs )  {
367
+        public function _setLastInput( $aLastInputs ) {
368 368
             return $this->setLastInputs( $aLastInputs );
369 369
         }    
370 370
 
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         
32 32
         add_filter(
33 33
             // 'field_types_admin_page_framework',
34
-            'field_types_' . $oProp->sClassName,
34
+            'field_types_'.$oProp->sClassName,
35 35
             array( $this, '_replyToFilterFieldTypeDefinitions' )
36 36
         );
37 37
         
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             'title'      => null,
54 54
             'help_aside' => null,
55 55
         );
56
-        if ( ! $aFieldset[ 'help' ] ) {
56
+        if ( !$aFieldset[ 'help' ] ) {
57 57
             return;
58 58
         }
59 59
         $this->oHelpPane->_addHelpTextForFormFields( 
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
     public function _replyToFilterFieldTypeDefinitions( $aFieldTypeDefinitions ) {
74 74
         
75 75
         // Not triggering `__call()` as the filter is fired manually in the form class.
76
-        if ( method_exists( $this, 'field_types_' . $this->oProp->sClassName ) ) {
76
+        if ( method_exists( $this, 'field_types_'.$this->oProp->sClassName ) ) {
77 77
             return call_user_func_array(
78
-                array( $this, 'field_types_' . $this->oProp->sClassName ),
78
+                array( $this, 'field_types_'.$this->oProp->sClassName ),
79 79
                 array( $aFieldTypeDefinitions )
80 80
             );
81 81
         }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     public function _replyToModifySectionsets( $aSectionsets ) {    
97 97
         
98 98
         return $this->oUtil->addAndApplyFilter( 
99
-            $this,  // caller factory object
99
+            $this, // caller factory object
100 100
             "sections_{$this->oProp->sClassName}", 
101 101
             $aSectionsets
102 102
         );
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     public function _replyToModifyFieldsets( $aFieldsets, $aSectionsets ) {
117 117
 
118 118
         // Apply filters to added field-sets
119
-        foreach( $aFieldsets as $_sSectionPath => $_aFields ) {
119
+        foreach ( $aFieldsets as $_sSectionPath => $_aFields ) {
120 120
             $_aSectionPath  = explode( '|', $_sSectionPath );
121 121
             $_sFilterSuffix = implode( '_', $_aSectionPath );
122 122
             $aFieldsets[ $_sSectionPath ] = $this->oUtil->addAndApplyFilter(
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 $_aFields
126 126
             ); 
127 127
         }
128
-        $aFieldsets =  $this->oUtil->addAndApplyFilter( 
128
+        $aFieldsets = $this->oUtil->addAndApplyFilter( 
129 129
             $this,
130 130
             "fields_{$this->oProp->sClassName}",
131 131
             $aFieldsets
@@ -195,14 +195,14 @@  discard block
 block discarded – undo
195 195
          */
196 196
         private function _getHookNameByFieldsetAndPrefix( $sPrefix, $aFieldset ) {
197 197
             
198
-            $_sFieldPart    = '_' . implode( '_', $aFieldset[ '_field_path_array' ] );
198
+            $_sFieldPart    = '_'.implode( '_', $aFieldset[ '_field_path_array' ] );
199 199
             $_sSectionPart  = implode( '_', $aFieldset[ '_section_path_array' ] );
200 200
             $_sSectionPart  = $this->oUtil->getAOrB(
201 201
                 '_default' === $_sSectionPart,
202 202
                 '',
203
-                '_' . $_sSectionPart
203
+                '_'.$_sSectionPart
204 204
             );
205
-            return $sPrefix . $this->oProp->sClassName . $_sSectionPart . $_sFieldPart;
205
+            return $sPrefix.$this->oProp->sClassName.$_sSectionPart.$_sFieldPart;
206 206
             
207 207
         }
208 208
                
@@ -272,9 +272,9 @@  discard block
 block discarded – undo
272 272
     public function _replyToGetSavedFormData() {
273 273
         
274 274
         // Must update the property with the filtered value.
275
-        $this->oProp->aOptions =  $this->oUtil->addAndApplyFilter(
275
+        $this->oProp->aOptions = $this->oUtil->addAndApplyFilter(
276 276
             $this, // the caller factory object
277
-            'options_' . $this->oProp->sClassName,
277
+            'options_'.$this->oProp->sClassName,
278 278
             $this->oProp->aOptions      // subject value to be filtered
279 279
         );
280 280
         return $this->oProp->aOptions;
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
          * An alias of `_setLastInputs()`.
365 365
          * @deprecated      3.7.0
366 366
          */
367
-        public function _setLastInput( $aLastInputs )  {
367
+        public function _setLastInput( $aLastInputs ) {
368 368
             return $this->setLastInputs( $aLastInputs );
369 369
         }    
370 370
 
Please login to merge, or discard this patch.
factory/meta_box/_controller/AdminPageFramework_HelpPane_post_meta_box.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function _replyToRegisterHelpTabText() {
30 30
 
31 31
         // Check if the currently loaded page is of meta box page.
32
-        if ( ! $this->oProp->oCaller->isInThePage() ) {
32
+        if ( !$this->oProp->oCaller->isInThePage() ) {
33 33
             return false; 
34 34
         }
35 35
 
Please login to merge, or discard this patch.
factory/post_type/_view/AdminPageFramework_PageLoadInfo_post_type.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         if ( in_array( $oProp->sClassName, self::$aClassNames ) )
30 30
             return self::$_oInstance;
31 31
         
32
-        self::$aClassNames[] = $oProp->sClassName;
32
+        self::$aClassNames[ ] = $oProp->sClassName;
33 33
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_post_type( $oProp, $oMsg );
34 34
         
35 35
         return self::$_oInstance;
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public function _replyToSetPageLoadInfoInFooter() {
44 44
 
45 45
         // Some users sets $_GET['post_type'] element even in regular admin pages. In that case, do not load the style to avoid duplicates.
46
-        if ( isset( $_GET['page'] ) && $_GET['page'] ) { return; }
46
+        if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] ) { return; }
47 47
     
48 48
         // For post type pages
49 49
         if ( 
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,9 @@
 block discarded – undo
26 26
      */
27 27
     public static function instantiate( $oProp, $oMsg ) {
28 28
         
29
-        if ( in_array( $oProp->sClassName, self::$aClassNames ) )
30
-            return self::$_oInstance;
29
+        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {
30
+                    return self::$_oInstance;
31
+        }
31 32
         
32 33
         self::$aClassNames[] = $oProp->sClassName;
33 34
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_post_type( $oProp, $oMsg );
Please login to merge, or discard this patch.
_common/form/_view/css/AdminPageFramework_Form_View___CSS_FieldError.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      * @since       3.7.0
22 22
      * @return      string
23 23
      */
24
-    protected function _get() {        
24
+    protected function _get() {
25 25
         return $this->_getFieldErrorRules();
26 26
     }
27 27
         /**
Please login to merge, or discard this patch.
factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @since   3.7.0
31 31
      */
32 32
     public function add( $sCSSRules ) {
33
-        $this->aAdded[] = $sCSSRules;
33
+        $this->aAdded[ ] = $sCSSRules;
34 34
     }
35 35
     
36 36
     /**
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function get() {
41 41
         
42
-        $_sCSSRules  = $this->_get() . PHP_EOL;
42
+        $_sCSSRules  = $this->_get().PHP_EOL;
43 43
         $_sCSSRules .= $this->_getVersionSpecific();
44 44
         $_sCSSRules .= implode( PHP_EOL, $this->aAdded );
45 45
         return $_sCSSRules;
Please login to merge, or discard this patch.
factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_Form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     protected function _get() {
24 24
 
25
-        $_sSpinnerURL  = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) );
25
+        $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) );
26 26
         return <<<CSSRULES
27 27
 .admin-page-framework-form-warning {
28 28
     font-size: 1em;
Please login to merge, or discard this patch.
generator/field/AdminPageFramework_Form_View___Generate_FieldAddress.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      * @return      string      The generated field name model.
35 35
      */
36 36
     public function getModel() {
37
-        return $this->get() . '|' . $this->sIndexMark;
37
+        return $this->get().'|'.$this->sIndexMark;
38 38
     }
39 39
  
40 40
 }
Please login to merge, or discard this patch.
_view/generator/field/AdminPageFramework_Form_View___Generate_FieldName.php 2 patches
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.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
         return $_sResult;
26 26
     }
27 27
 
28
-    public function getModel()     {
29
-        return $this->get() . '[' . $this->sIndexMark . ']';
28
+    public function getModel() {
29
+        return $this->get().'['.$this->sIndexMark.']';
30 30
     }
31 31
 
32 32
         /**
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
          */
35 35
         protected function _getFieldName() {
36 36
 
37
-            $_aFieldPath   = $this->aArguments[ '_field_path_array' ];
38
-            if ( ! $this->_isSectionSet() ) {
37
+            $_aFieldPath = $this->aArguments[ '_field_path_array' ];
38
+            if ( !$this->_isSectionSet() ) {
39 39
                 return $this->_getInputNameConstructed( $_aFieldPath );
40 40
             }
41 41
 
42 42
             $_aSectionPath = $this->aArguments[ '_section_path_array' ];
43 43
             if ( $this->_isSectionSet() && isset( $this->aArguments[ '_section_index' ] ) ) {
44
-                $_aSectionPath[] = $this->aArguments[ '_section_index' ];
44
+                $_aSectionPath[ ] = $this->aArguments[ '_section_index' ];
45 45
             }
46 46
             $_sFieldName = $this->_getInputNameConstructed(
47 47
                 array_merge( $_aSectionPath, $_aFieldPath )
Please login to merge, or discard this patch.