Menu

[r312]: / trunk / src / PHPCheckstyle / Config / CheckArrayStyleConfig.php  Maximize  Restore  History

Download this file

28 lines (24 with data), 538 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
namespace PHPCheckstyle\Config;
/**
* Loads the test configuration.
*
* @author James Brooks <jbrooksuk@me.com>
*/
class CheckArrayStyleConfig extends CheckStyleConfig {
/**
* Constructor.
*
* @param String $configArray
* The path of the config file
*/
public function __construct($configArray) {
// If the path is a valid file we use it as is
if (is_array($configArray)) {
$this->config = $configArray;
} else {
echo "Config must be an array";
exit(0);
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.