@@ -151,7 +151,7 @@ |
||
151 | 151 | * @access protected |
152 | 152 | * @static |
153 | 153 | * |
154 | - * @return true on success. |
|
154 | + * @return boolean on success. |
|
155 | 155 | */ |
156 | 156 | protected static function setCsvHeaderColumns() |
157 | 157 | { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | private static function loadAbstractStoreFile() |
39 | 39 | { |
40 | - $abstractStoreFile = dirname(__FILE__) . "/Store/AbstractStore.php"; |
|
40 | + $abstractStoreFile = dirname(__FILE__)."/Store/AbstractStore.php"; |
|
41 | 41 | |
42 | 42 | if (!file_exists($abstractStoreFile) || !is_readable($abstractStoreFile)) { |
43 | 43 | throw new \Exception("Could not load the abstract store file."); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | private static function loadStoreTypeFile($storeType) |
63 | 63 | { |
64 | 64 | $storeType = ucwords($storeType); |
65 | - $storeFile = dirname(__FILE__) . "/Store/$storeType" . "Store.php"; |
|
65 | + $storeFile = dirname(__FILE__)."/Store/$storeType"."Store.php"; |
|
66 | 66 | |
67 | 67 | if (!file_exists($storeFile) || !is_readable($storeFile)) { |
68 | 68 | throw new \Exception("Could not load the store file for $storeType."); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | private static function instantiateStoreClass($storeType) |
88 | 88 | { |
89 | - $storeClass = "\\JsonTable\\Store\\$storeType" . "Store"; |
|
89 | + $storeClass = "\\JsonTable\\Store\\$storeType"."Store"; |
|
90 | 90 | |
91 | 91 | if (!class_exists($storeClass)) { |
92 | 92 | throw new \Exception("Could not find the store class $storeClass"); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | { |
29 | 29 | $referenceFields = implode(" || ', ' || ", $referenceFields); |
30 | 30 | |
31 | - $validationSql = "SELECT |
|
31 | + $validationSql = "SELECT |
|
32 | 32 | COUNT(*) |
33 | 33 | FROM |
34 | 34 | $referenceResource |
@@ -90,7 +90,7 @@ |
||
90 | 90 | private function getFormatMethodDetails($format) |
91 | 91 | { |
92 | 92 | $methodDetails = []; |
93 | - $methodDetails['name'] = 'format' . ucwords($format); |
|
93 | + $methodDetails['name'] = 'format'.ucwords($format); |
|
94 | 94 | $methodDetails['parameter'] = null; |
95 | 95 | |
96 | 96 | if ('datetime' === $this->type && 'default' !== $format) { |
@@ -228,8 +228,8 @@ |
||
228 | 228 | $type = 'datetime'; |
229 | 229 | } |
230 | 230 | |
231 | - $typeClassName = ucwords($type) . 'Validator'; |
|
232 | - $validatorFile = dirname(__FILE__) . "/Validate/$validationType/$typeClassName.php"; |
|
231 | + $typeClassName = ucwords($type).'Validator'; |
|
232 | + $validatorFile = dirname(__FILE__)."/Validate/$validationType/$typeClassName.php"; |
|
233 | 233 | |
234 | 234 | if (!file_exists($validatorFile) || !is_readable($validatorFile)) { |
235 | 235 | throw new \Exception("Could not load the validator file for $validationType $type."); |
@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | self::rewindFilePointerToFirstData(); |
71 | 71 | |
72 | - $this->rowNumber= 1; |
|
72 | + $this->rowNumber = 1; |
|
73 | 73 | |
74 | 74 | while ($this->currentCsvRow = self::loopThroughFileRows()) { |
75 | 75 | $this->getPrimaryKeyDataForRow(); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | use \JsonTable\Store; |
18 | 18 | |
19 | 19 | // Use composer's autoloading. |
20 | -require __DIR__ . '/../vendor/autoload.php'; |
|
20 | +require __DIR__.'/../vendor/autoload.php'; |
|
21 | 21 | PhpConsole\Helper::register(); |
22 | 22 | |
23 | 23 | /* |