Skip to content
This repository
Browse code

CodeSniff on base libraries files

  • Loading branch information...
commit 608c1da629ceb15842045e88ce296b526f384279 1 parent df40289
Michael Babker mbabker authored
3  build.xml
@@ -83,7 +83,8 @@
83 83 <arg value="--report=checkstyle" />
84 84 <arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
85 85 <arg value="--standard=${basedir}/build/phpcs/Joomla" />
86   - <arg path="${source}/joomla" />
  86 + <arg value="--ignore=${source}/phpmailer,${source}/phputf8,${source}/simplepie/${source}/config.example.php" />
  87 + <arg path="${source}" />
87 88 </exec>
88 89 </target>
89 90
6 libraries/import.php
... ... @@ -1,9 +1,9 @@
1 1 <?php
2 2 /**
3   - * @package Joomla.Platform
  3 + * @package Joomla.Platform
4 4 *
5   - * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
6   - * @license GNU General Public License version 2 or later; see LICENSE
  5 + * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
  6 + * @license GNU General Public License version 2 or later; see LICENSE
7 7 */
8 8
9 9 // Set the platform root path as a constant if necessary.
20 libraries/loader.php
... ... @@ -1,9 +1,9 @@
1 1 <?php
2 2 /**
3   - * @package Joomla.Platform
  3 + * @package Joomla.Platform
4 4 *
5   - * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
6   - * @license GNU General Public License version 2 or later; see LICENSE
  5 + * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
  6 + * @license GNU General Public License version 2 or later; see LICENSE
7 7 */
8 8
9 9 defined('JPATH_PLATFORM') or die;
@@ -74,7 +74,7 @@ public static function discover($classPrefix, $parentPath, $force = true, $recur
74 74 // Register the class with the autoloader if not already registered or the force flag is set.
75 75 if (empty(self::$classes[$class]) || $force)
76 76 {
77   - JLoader::register($class, $file->getPath().'/'.$fileName);
  77 + JLoader::register($class, $file->getPath() . '/' . $fileName);
78 78 }
79 79 }
80 80 }
@@ -100,8 +100,8 @@ public static function getClassList()
100 100 /**
101 101 * Loads a class from specified directories.
102 102 *
103   - * @param string $key The class name to look for (dot notation).
104   - * @param string $base Search this directory for the class.
  103 + * @param string $key The class name to look for (dot notation).
  104 + * @param string $base Search this directory for the class.
105 105 *
106 106 * @return boolean True on success.
107 107 *
@@ -168,7 +168,7 @@ public static function import($key, $base = null)
168 168 /**
169 169 * Load the file for a class.
170 170 *
171   - * @param string $class The class to be loaded.
  171 + * @param string $class The class to be loaded.
172 172 *
173 173 * @return boolean True on success
174 174 *
@@ -241,7 +241,7 @@ public static function setup()
241 241 /**
242 242 * Autoload a Joomla Platform class based on name.
243 243 *
244   - * @param string $class The class to be loaded.
  244 + * @param string $class The class to be loaded.
245 245 *
246 246 * @return void
247 247 *
@@ -253,7 +253,7 @@ private static function _autoload($class)
253 253 if ($class[0] == 'J')
254 254 {
255 255 // Split the class name (without the J) into parts separated by camelCase.
256   - $parts = preg_split('/(?<=[a-z])(?=[A-Z])/x',substr($class, 1));
  256 + $parts = preg_split('/(?<=[a-z])(?=[A-Z])/x', substr($class, 1));
257 257
258 258 // If there is only one part we want to duplicate that part for generating the path.
259 259 $parts = (count($parts) === 1) ? array($parts[0], $parts[0]) : $parts;
@@ -290,7 +290,7 @@ function jexit($message = 0)
290 290 /**
291 291 * Intelligent file importer.
292 292 *
293   - * @param string $path A dot syntax path.
  293 + * @param string $path A dot syntax path.
294 294 *
295 295 * @return boolean True on success.
296 296 *
6 libraries/platform.php
... ... @@ -1,9 +1,9 @@
1 1 <?php
2 2 /**
3   - * @package Joomla.Platform
  3 + * @package Joomla.Platform
4 4 *
5   - * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
6   - * @license GNU General Public License version 2 or later; see LICENSE
  5 + * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
  6 + * @license GNU General Public License version 2 or later; see LICENSE
7 7 */
8 8
9 9 defined('JPATH_PLATFORM') or die;

0 comments on commit 608c1da

Please sign in to comment.
Something went wrong with that request. Please try again.