Test Setup Failed
Push — master ( 6cd2b0...cd58cf )
by George
02:24
created
src/Base.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Store.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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");
Please login to merge, or discard this patch.
src/Validate/ForeignKey/PostgresqlValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         $referenceFields = implode(" || ', ' || ", $referenceFields);
30 30
 
31
-        $validationSql =   "SELECT
31
+        $validationSql = "SELECT
32 32
                                     COUNT(*)
33 33
                                 FROM
34 34
                                     $referenceResource
Please login to merge, or discard this patch.
src/Validate/AbstractFormatValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Analyse/PrimaryKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
examples/example.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
 /*
Please login to merge, or discard this patch.
src/Analyse/Analyse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -228,8 +228,8 @@
 block discarded – undo
228 228
             $type = 'datetime';
229 229
         }
230 230
 
231
-        $typeClassName = ucwords($type) . 'Validator';
232
-        $validatorFile = dirname(dirname(__FILE__)) . "/Validate/$validationType/$typeClassName.php";
231
+        $typeClassName = ucwords($type).'Validator';
232
+        $validatorFile = dirname(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.");
Please login to merge, or discard this patch.