Completed
Pull Request — dev (#237)
by
unknown
10:59
created
factory/post_type/_view/AdminPageFramework_PageLoadInfo_post_type.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         if ( in_array( $oProp->sClassName, self::$aClassNames ) )
31 31
             return self::$_oInstance;
32 32
         
33
-        self::$aClassNames[] = $oProp->sClassName;
33
+        self::$aClassNames[ ] = $oProp->sClassName;
34 34
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_PostType( $oProp, $oMsg );
35 35
         
36 36
         return self::$_oInstance;
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public function _replyToSetPageLoadInfoInFooter() {
45 45
 
46 46
         // Some users sets $_GET['post_type'] element even in regular admin pages. In that case, do not load the style to avoid duplicates.
47
-        if ( isset( $_GET['page'] ) && $_GET['page'] ) { return; }
47
+        if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] ) { return; }
48 48
     
49 49
         // For post type pages
50 50
         if ( 
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,9 @@
 block discarded – undo
27 27
      */
28 28
     public static function instantiate( $oProp, $oMsg ) {
29 29
         
30
-        if ( in_array( $oProp->sClassName, self::$aClassNames ) )
31
-            return self::$_oInstance;
30
+        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {
31
+                    return self::$_oInstance;
32
+        }
32 33
         
33 34
         self::$aClassNames[] = $oProp->sClassName;
34 35
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_PostType( $oProp, $oMsg );
Please login to merge, or discard this patch.
development/factory/post_type/AdminPageFramework_PostType_Router.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function _replyToDetermineToLoadAdmin( /* $oScreen */ ) {
46 46
 
47
-        if ( ! $this->_isInThePage() ) {
47
+        if ( !$this->_isInThePage() ) {
48 48
             return;
49 49
         }
50 50
         
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     public function _isInThePage() {
116 116
         
117 117
         // If it's not in one of the post type's pages
118
-        if ( ! $this->oProp->bIsAdmin ) {
118
+        if ( !$this->oProp->bIsAdmin ) {
119 119
             return false;
120 120
         }
121 121
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             return true;
125 125
         }        
126 126
         
127
-        if ( ! in_array( $this->oProp->sPageNow, array( 'edit.php', 'edit-tags.php', 'post.php', 'post-new.php' ) ) ) {
127
+        if ( !in_array( $this->oProp->sPageNow, array( 'edit.php', 'edit-tags.php', 'post.php', 'post-new.php' ) ) ) {
128 128
             return false;
129 129
         }
130 130
                 
Please login to merge, or discard this patch.
development/cli/AdminPageFramework_MinifiedVersionHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  * If accessed from a console, include the registry class to laod 'AdminPageFramework_Registry_Base'.
12 12
  */
13 13
 if ( php_sapi_name() === 'cli' ) {
14
-    $_sFrameworkFilePath = dirname( dirname( __FILE__ ) ) . '/admin-page-framework.php';
14
+    $_sFrameworkFilePath = dirname( dirname( __FILE__ ) ).'/admin-page-framework.php';
15 15
     if ( file_exists( $_sFrameworkFilePath ) ) {
16 16
         include_once( $_sFrameworkFilePath );
17 17
     }
Please login to merge, or discard this patch.
development/document/AdminPageFramework_NetworkAdmin_Documentation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7 7
  * 
8 8
  */
9
-if ( ! class_exists( 'AdminPageFramework_NetworkAdmin_Documentation', false ) ) :
9
+if ( !class_exists( 'AdminPageFramework_NetworkAdmin_Documentation', false ) ) :
10 10
 /**
11 11
  * Provides an abstract base to create admin pages in the network admin area.
12 12
  *
Please login to merge, or discard this patch.
development/utility/toc/AdminPageFramework_TableOfContents.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Generates an HTML Table of Contents block.
4
- *    
5
- * @package      Admin Page Framework
6
- * @copyright    Copyright (c) 2015, <Michael Uno>
7
- * @author       Michael Uno
8
- * @authorurl    http://michaeluno.jp
9
- */
3
+     * Generates an HTML Table of Contents block.
4
+     *    
5
+     * @package      Admin Page Framework
6
+     * @copyright    Copyright (c) 2015, <Michael Uno>
7
+     * @author       Michael Uno
8
+     * @authorurl    http://michaeluno.jp
9
+     */
10 10
 
11 11
 /**
12 12
  * Generates an HTML Table of Contents block.
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @param       integer     $iDepth     The header number to parse.
32 32
      * @param       string      $sTitle     The heading title which appears at the beginning of the output.
33 33
      */
34
-    public function __construct( $sHTML, $iDepth=4, $sTitle='' ) {
34
+    public function __construct( $sHTML, $iDepth = 4, $sTitle = '' ) {
35 35
         
36 36
         $this->sTitle   = $sTitle;
37 37
         $this->sHTML    = $sHTML;
@@ -64,26 +64,26 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function getTOC() {
66 66
         
67
-        $iDepth     = $this->iDepth;
67
+        $iDepth = $this->iDepth;
68 68
         
69 69
         // get the headings down to the specified depth
70 70
         $this->sHTML = preg_replace_callback(
71
-            '/<h[2-' . $iDepth . ']*[^>]*>.*?<\/h[2-' . $iDepth . ']>/i',
71
+            '/<h[2-'.$iDepth.']*[^>]*>.*?<\/h[2-'.$iDepth.']>/i',
72 72
             array( $this, '_replyToInsertNamedElement' ),
73 73
             $this->sHTML
74 74
         );
75 75
         
76 76
         $_aOutput = array();
77
-        foreach( $this->_aMatches as $_iIndex => $_sMatch ) {
77
+        foreach ( $this->_aMatches as $_iIndex => $_sMatch ) {
78 78
             $_sMatch = strip_tags( $_sMatch, '<h1><h2><h3><h4><h5><h6><h7><h8>' );
79
-            $_sMatch = preg_replace( '/<h([1-' . $iDepth . '])>/', '<li class="toc$1"><a href="#toc_' . $_iIndex . '">', $_sMatch );
80
-            $_sMatch = preg_replace( '/<\/h[1-' . $iDepth . ']>/', '</a></li>', $_sMatch );
81
-            $_aOutput[] = $_sMatch;
79
+            $_sMatch = preg_replace( '/<h([1-'.$iDepth.'])>/', '<li class="toc$1"><a href="#toc_'.$_iIndex.'">', $_sMatch );
80
+            $_sMatch = preg_replace( '/<\/h[1-'.$iDepth.']>/', '</a></li>', $_sMatch );
81
+            $_aOutput[ ] = $_sMatch;
82 82
         }
83 83
 
84 84
         // plug the results into appropriate HTML tags
85 85
         $this->sTitle = $this->sTitle
86
-            ? '<p class="toc-title">' . $this->sTitle . '</p>'
86
+            ? '<p class="toc-title">'.$this->sTitle.'</p>'
87 87
             : '';
88 88
 
89 89
         return '<div class="toc">'
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
         public function _replyToInsertNamedElement( $aMatches ) {
99 99
             static $_icount = -1;
100 100
             $_icount++;
101
-            $this->_aMatches[] = $aMatches[ 0 ];
101
+            $this->_aMatches[ ] = $aMatches[ 0 ];
102 102
 
103
-            return "<span class='toc_header_link' id='toc_{$_icount}'></span>" . PHP_EOL
103
+            return "<span class='toc_header_link' id='toc_{$_icount}'></span>".PHP_EOL
104 104
                 . $aMatches[ 0 ];
105 105
         }
106 106
     
Please login to merge, or discard this patch.
development/utility/zip/AdminPageFramework_Zip.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@
 block discarded – undo
248 248
                         in_array( 
249 249
                             substr( $_sIterationItem, strrpos( $_sIterationItem, '/' ) + 1 ), 
250 250
                             array( '.', '..' ) 
251
-                       )
251
+                        )
252 252
                     ) {
253 253
                         return;
254 254
                     }
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
      * 
51 51
      * @since       3.6.0
52 52
      */
53
-    public $aOptions   = array(
54
-        'include_directory'             => false,   // (boolean) whether the contents should be put inside a root directory.
53
+    public $aOptions = array(
54
+        'include_directory'             => false, // (boolean) whether the contents should be put inside a root directory.
55 55
         'additional_source_directories' => array(),
56 56
         // 'ignoring_file_extensions'      => array(), // not implemented yet.
57 57
     );
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * @param       array|boolean       $abOptions
65 65
      * @param       callable            $aCallbacks
66 66
      */
67
-    public function __construct( $sSource, $sDestination, $abOptions=false, array $aCallbacks=array() ) {
67
+    public function __construct( $sSource, $sDestination, $abOptions = false, array $aCallbacks = array() ) {
68 68
         
69 69
         $this->sSource      = $sSource;
70 70
         $this->sDestination = $sDestination;
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     public function compress() {
98 98
 
99 99
         // Check whether it is possible to perform the task.
100
-        if ( ! $this->isFeasible( $this->sSource ) ) {
100
+        if ( !$this->isFeasible( $this->sSource ) ) {
101 101
             return false;
102 102
         }
103 103
         
@@ -107,19 +107,19 @@  discard block
 block discarded – undo
107 107
         }
108 108
 
109 109
         $_oZip = new ZipArchive();
110
-        if ( ! $_oZip->open( $this->sDestination, ZIPARCHIVE::CREATE ) ) {
110
+        if ( !$_oZip->open( $this->sDestination, ZIPARCHIVE::CREATE ) ) {
111 111
             return false;
112 112
         }
113 113
         
114 114
         $this->sSource = $this->_getSanitizedSourcePath( $this->sSource );
115 115
         // $this->sSource = str_replace( '\\', '/', realpath( $this->sSource ) );
116 116
 
117
-        $_aMethods      = array(
117
+        $_aMethods = array(
118 118
             'unknown'   => '_replyToReturnFalse',
119 119
             'directory' => '_replyToCompressDirectory',
120 120
             'file'      => '_replyToCompressFile',
121 121
         );
122
-        $_sMethodName   = $_aMethods[ $this->_getSourceType( $this->sSource ) ];
122
+        $_sMethodName = $_aMethods[ $this->_getSourceType( $this->sSource ) ];
123 123
 
124 124
         return call_user_func_array(
125 125
             array( $this, $_sMethodName ),
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
          * @since       3.6.0       Changed the name from `_compressDirectory`. Changed the scope to public to allow overriding the method in an extended class.
147 147
          * @return      boolean     True on success, false otherwise.
148 148
          */
149
-        public function _replyToCompressDirectory( ZipArchive $oZip, $sSourceDirPath, array $aCallbacks=array(), $bIncludeDir=false, array $aAdditionalSourceDirs=array() ) {
149
+        public function _replyToCompressDirectory( ZipArchive $oZip, $sSourceDirPath, array $aCallbacks = array(), $bIncludeDir = false, array $aAdditionalSourceDirs = array() ) {
150 150
             
151 151
             $_sArchiveRootDirName = '';
152 152
            
@@ -176,11 +176,11 @@  discard block
 block discarded – undo
176 176
              * @since       3.6.0
177 177
              * @return      void
178 178
              */
179
-            private function _addArchiveItems( $oZip, $aSourceDirPaths, $aCallbacks, $sRootDirName='' ) {
179
+            private function _addArchiveItems( $oZip, $aSourceDirPaths, $aCallbacks, $sRootDirName = '' ) {
180 180
                 
181
-                $sRootDirName = $sRootDirName ? rtrim( $sRootDirName, '/' ) . '/' : '';
181
+                $sRootDirName = $sRootDirName ? rtrim( $sRootDirName, '/' ).'/' : '';
182 182
                 
183
-                foreach( $aSourceDirPaths as $_isIndexOrRelativeDirPath => $_sSourceDirPath ) {
183
+                foreach ( $aSourceDirPaths as $_isIndexOrRelativeDirPath => $_sSourceDirPath ) {
184 184
                     
185 185
                     $_sSourceDirPath   = $this->_getSanitizedSourcePath( $_sSourceDirPath );
186 186
                     $_sInsideDirPrefix = is_integer( $_isIndexOrRelativeDirPath )
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                         : $_isIndexOrRelativeDirPath;
189 189
                         
190 190
                     // Add a directory inside the compressing directory.
191
-                    if( $_sInsideDirPrefix ) {
191
+                    if ( $_sInsideDirPrefix ) {
192 192
                         $this->_addRelativeDir(
193 193
                             $oZip,
194 194
                             $_sInsideDirPrefix,
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                             $_sSourceDirPath,
207 207
                             $_sIterationItem,
208 208
                             $aCallbacks,
209
-                            $sRootDirName . $_sInsideDirPrefix
209
+                            $sRootDirName.$_sInsideDirPrefix
210 210
                         );
211 211
                     }
212 212
                 }
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
                     $sRelativeDirPath = str_replace( '\\', '/', $sRelativeDirPath );
221 221
                     $_aPathPartsParse = array_filter( explode( '/', $sRelativeDirPath ) );
222 222
                     $_aDirPath        = array();
223
-                    foreach( $_aPathPartsParse as $_sDirName ) {
224
-                        $_aDirPath[] = $_sDirName;
223
+                    foreach ( $_aPathPartsParse as $_sDirName ) {
224
+                        $_aDirPath[ ] = $_sDirName;
225 225
                         $this->_addEmptyDir(
226 226
                             $oZip,
227 227
                             implode( '/', $_aDirPath ),
@@ -240,10 +240,10 @@  discard block
 block discarded – undo
240 240
                  * @param       string          $sInsidePathPrefix      The prefix to add to the inside archive directory structure. 
241 241
                  * @return      void
242 242
                  */
243
-                private function _addArchiveItem( ZipArchive $oZip, $sSource, $_sIterationItem, array $aCallbacks, $sInsidePathPrefix='' ) {
243
+                private function _addArchiveItem( ZipArchive $oZip, $sSource, $_sIterationItem, array $aCallbacks, $sInsidePathPrefix = '' ) {
244 244
                     
245 245
                     $_sIterationItem   = str_replace( '\\', '/', $_sIterationItem );
246
-                    $sInsidePathPrefix = rtrim( $sInsidePathPrefix, '/' ) . '/'; // add a trailing slash
246
+                    $sInsidePathPrefix = rtrim( $sInsidePathPrefix, '/' ).'/'; // add a trailing slash
247 247
 
248 248
                     // Ignore "." and ".." folders
249 249
                     if (
@@ -261,18 +261,18 @@  discard block
 block discarded – undo
261 261
                     if ( true === is_dir( $_sIterationItem ) ) {
262 262
                         $this->_addEmptyDir(
263 263
                             $oZip,
264
-                            $sInsidePathPrefix . str_replace(
265
-                                $sSource . '/',
264
+                            $sInsidePathPrefix.str_replace(
265
+                                $sSource.'/',
266 266
                                 '',
267
-                                $_sIterationItem . '/'
267
+                                $_sIterationItem.'/'
268 268
                             ),
269 269
                             $aCallbacks[ 'directory_name' ]
270 270
                         );
271 271
                     } else if ( true === is_file( $_sIterationItem ) ) {
272 272
                         $this->_addFromString(
273 273
                             $oZip,
274
-                            $sInsidePathPrefix . str_replace(
275
-                                $sSource . '/',
274
+                            $sInsidePathPrefix.str_replace(
275
+                                $sSource.'/',
276 276
                                 '',
277 277
                                 $_sIterationItem
278 278
                             ),
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
          * @since       3.6.0       Changed the name from `_compressFile`. Changed the scope from `private` to allow overriding in an extended class.
302 302
          * @return      boolean     True on success, false otherwise.
303 303
          */
304
-        public function _replyToCompressFile( ZipArchive $oZip, $sSourceFilePath, $aCallbacks=null ) {
304
+        public function _replyToCompressFile( ZipArchive $oZip, $sSourceFilePath, $aCallbacks = null ) {
305 305
             $this->_addFromString(
306 306
                 $oZip,
307 307
                 basename( $sSourceFilePath ),
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
      * @return      boolean
335 335
      */
336 336
     private function isFeasible( $sSource ) {
337
-        if ( ! extension_loaded( 'zip' ) ) {
337
+        if ( !extension_loaded( 'zip' ) ) {
338 338
             return false;
339 339
         }
340 340
 
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
      */
360 360
     private function _addEmptyDir( ZipArchive $oZip, $sInsidePath, $oCallable ) {
361 361
         $sInsidePath = $this->_getFilteredArchivePath( $sInsidePath, $oCallable );
362
-        if ( ! strlen( $sInsidePath ) ) {
362
+        if ( !strlen( $sInsidePath ) ) {
363 363
             return;
364 364
         }
365 365
         $oZip->addEmptyDir( $sInsidePath );
@@ -371,10 +371,10 @@  discard block
 block discarded – undo
371 371
      * @remark      If the path is empty, it will not process.
372 372
      * @return      void
373 373
      */
374
-    private function _addFromString( ZipArchive $oZip, $sInsidePath, $sSourceContents='', array $aCallbacks=array() ) {
374
+    private function _addFromString( ZipArchive $oZip, $sInsidePath, $sSourceContents = '', array $aCallbacks = array() ) {
375 375
         
376 376
         $sInsidePath = $this->_getFilteredArchivePath( $sInsidePath, $aCallbacks[ 'file_name' ] );
377
-        if ( ! strlen( $sInsidePath ) ) {
377
+        if ( !strlen( $sInsidePath ) ) {
378 378
             return;
379 379
         }
380 380
         $oZip->addFromString(
Please login to merge, or discard this patch.
development/admin-page-framework.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  * @package     AdminPageFramework
11 11
  */
12 12
 
13
-if ( ! class_exists( 'AdminPageFramework_Registry', false ) ) :
13
+if ( !class_exists( 'AdminPageFramework_Registry', false ) ) :
14 14
 /**
15 15
  * Facilitates WordPress plugin and theme development.
16 16
  *
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 final class AdminPageFramework_Registry extends AdminPageFramework_Registry_Base {
57 57
 
58 58
     const TEXT_DOMAIN        = 'admin-page-framework';
59
-    const TEXT_DOMAIN_PATH   = '/language';  // not used at the moment
59
+    const TEXT_DOMAIN_PATH   = '/language'; // not used at the moment
60 60
 
61 61
     /**
62 62
      * Indicates whether the framework is loaded from the minified version or not.
@@ -98,11 +98,11 @@  discard block
 block discarded – undo
98 98
      * Sets up static properties.
99 99
      * @return      void
100 100
      */
101
-    static public function setUp( $sFilePath=__FILE__ ) {
101
+    static public function setUp( $sFilePath = __FILE__ ) {
102 102
 
103 103
         self::$sFilePath                = $sFilePath;
104 104
         self::$sDirPath                 = dirname( self::$sFilePath );
105
-        self::$sIncludeClassListPath    = self::$sDirPath . '/admin-page-framework-include-class-list.php';
105
+        self::$sIncludeClassListPath    = self::$sDirPath.'/admin-page-framework-include-class-list.php';
106 106
         self::$aClassFiles              = self::_getClassFilePathList( self::$sIncludeClassListPath );
107 107
         self::$sAutoLoaderPath          = isset( self::$aClassFiles[ 'AdminPageFramework_RegisterClasses' ] )
108 108
             ? self::$aClassFiles[ 'AdminPageFramework_RegisterClasses' ]
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
          * @return      array
118 118
          */
119 119
         static private function _getClassFilePathList( $sInclusionClassListPath ) {
120
-            $aClassFiles = array();    // this will be updated if the inclusion below is successful.
120
+            $aClassFiles = array(); // this will be updated if the inclusion below is successful.
121 121
             include( $sInclusionClassListPath );
122 122
             return $aClassFiles;
123 123
         }
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
      */
131 131
     static public function getVersion() {
132 132
 
133
-        if ( ! isset( self::$sAutoLoaderPath ) ) {
134
-            trigger_error( 'Admin Page Framework: ' . ' : ' . sprintf( __( 'The method is called too early. Perform <code>%2$s</code> earlier.', 'admin-page-framework' ), __METHOD__, 'setUp()' ), E_USER_WARNING );
133
+        if ( !isset( self::$sAutoLoaderPath ) ) {
134
+            trigger_error( 'Admin Page Framework: '.' : '.sprintf( __( 'The method is called too early. Perform <code>%2$s</code> earlier.', 'admin-page-framework' ), __METHOD__, 'setUp()' ), E_USER_WARNING );
135 135
             return self::VERSION;
136 136
         }
137
-        $_aMinifiedVesionSuffix     = array(
137
+        $_aMinifiedVesionSuffix = array(
138 138
             0 => '',
139 139
             1 => '.min',
140 140
         );
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 }
164 164
 endif;
165 165
 
166
-if ( ! class_exists( 'AdminPageFramework_Bootstrap', false ) ) :
166
+if ( !class_exists( 'AdminPageFramework_Bootstrap', false ) ) :
167 167
 /**
168 168
  * Loads the Admin Page Framework library.
169 169
  *
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public function __construct( $sLibraryPath ) {
186 186
 
187
-        if ( ! $this->_isLoadable() ) {
187
+        if ( !$this->_isLoadable() ) {
188 188
             return;
189 189
         }
190 190
 
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Admin Page Framework
4
- *
5
- * Facilitates WordPress plugin and theme development.
6
- *
7
- * @author      Michael Uno <[email protected]>
8
- * @copyright   2013-2016 (c) Michael Uno
9
- * @license     MIT <http://opensource.org/licenses/MIT>
10
- * @package     AdminPageFramework
11
- */
3
+     * Admin Page Framework
4
+     *
5
+     * Facilitates WordPress plugin and theme development.
6
+     *
7
+     * @author      Michael Uno <[email protected]>
8
+     * @copyright   2013-2016 (c) Michael Uno
9
+     * @license     MIT <http://opensource.org/licenses/MIT>
10
+     * @package     AdminPageFramework
11
+     */
12 12
 
13 13
 if ( ! class_exists( 'AdminPageFramework_Registry', false ) ) :
14 14
 /**
Please login to merge, or discard this patch.
help/AdminPageFrameworkLoader_AdminPage_Help_Report_Report.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Admin Page Framework Loader
4
- * 
5
- * http://en.michaeluno.jp/admin-page-framework/
6
- * Copyright (c) 2013-2016 Michael Uno; Licensed GPLv2
7
- */
3
+     * Admin Page Framework Loader
4
+     * 
5
+     * http://en.michaeluno.jp/admin-page-framework/
6
+     * Copyright (c) 2013-2016 Michael Uno; Licensed GPLv2
7
+     */
8 8
 
9 9
 /**
10 10
  * Adds the 'Report' form section to the 'Report' tab.
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     public function validate( $aInput, $aOldInput, $oFactory, $aSubmit ) {
165 165
     
166
-       // Local variables
166
+        // Local variables
167 167
         $_bIsValid = true;
168 168
         $_aErrors  = array();
169 169
       
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                 'title'             => __( 'Your Name', 'admin-page-framework-loader' ),
30 30
                 'type'              => 'text',
31 31
                 'default'           => $_oCurrentUser->user_lastname || $_oCurrentUser->user_firstname
32
-                    ? $_oCurrentUser->user_lastname . ' ' .  $_oCurrentUser->user_lastname
32
+                    ? $_oCurrentUser->user_lastname.' '.$_oCurrentUser->user_lastname
33 33
                     : '',
34 34
                 'attributes'        => array(
35 35
                     'required'      => 'required',
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             array(
113 113
                 'field_id'          => 'allow_sending_system_information',
114 114
                 'title'             => __( 'Confirmation', 'admin-page-framework-loader' )
115
-                    . ' (' . __( 'required', 'admin-page-framework-loader' ) . ')',
115
+                    . ' ('.__( 'required', 'admin-page-framework-loader' ).')',
116 116
                 'type'              => 'checkbox',
117 117
                 'label'             => __( 'I understand that the system information including a PHP version and WordPress version etc. will be sent along with the messages to help developer trouble-shoot the problem.', 'admin-page-framework-loader' ),
118 118
                 'attributes'        => array(
@@ -167,12 +167,12 @@  discard block
 block discarded – undo
167 167
         $_bIsValid = true;
168 168
         $_aErrors  = array();
169 169
       
170
-        if ( ! $aInput[ 'allow_sending_system_information' ] ) {
170
+        if ( !$aInput[ 'allow_sending_system_information' ] ) {
171 171
             $_bIsValid = false;
172 172
             $_aErrors[ 'allow_sending_system_information' ] = __( 'We need necessary information to help you.', 'admin-page-framework-loader' );
173 173
         }
174 174
         
175
-        if ( ! $_bIsValid ) {
175
+        if ( !$_bIsValid ) {
176 176
         
177 177
             $oFactory->setFieldErrors( $_aErrors );
178 178
             $oFactory->setSettingNotice( __( 'Please help us to help you.', 'admin-page-framework-loader' ) );
Please login to merge, or discard this patch.
development/cli/AdminPageFramework_InclusionClassFilesHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  * If accessed from a console, include the registry class to laod 'AdminPageFramework_Registry_Base'.
12 12
  */
13 13
 if ( php_sapi_name() === 'cli' ) {
14
-    $_sFrameworkFilePath = dirname( dirname( __FILE__ ) ) . '/admin-page-framework.php';
14
+    $_sFrameworkFilePath = dirname( dirname( __FILE__ ) ).'/admin-page-framework.php';
15 15
     if ( file_exists( $_sFrameworkFilePath ) ) {
16 16
         include_once( $_sFrameworkFilePath );
17 17
     }
Please login to merge, or discard this patch.