Passed
Push — master ( b4967f...44f7bf )
by James
08:56 queued 10s
created
app/Http/Request/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@
 block discarded – undo
310 310
      */
311 311
     private function cleanString(string $string): string
312 312
     {
313
-        $search  = [
313
+        $search = [
314 314
             "\u{0001}", // start of heading
315 315
             "\u{0002}", // start of text
316 316
             "\u{0003}", // end of text
Please login to merge, or discard this patch.
app/Http/Controllers/Import/DownloadController.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,13 +44,13 @@
 block discarded – undo
44 44
         $response = response($result);
45 45
         $name     = sprintf('import_config_%s.json', date('Y-m-d'));
46 46
         $response->header('Content-disposition', 'attachment; filename=' . $name)
47
-                 ->header('Content-Type', 'application/json')
48
-                 ->header('Content-Description', 'File Transfer')
49
-                 ->header('Connection', 'Keep-Alive')
50
-                 ->header('Expires', '0')
51
-                 ->header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0')
52
-                 ->header('Pragma', 'public')
53
-                 ->header('Content-Length', strlen($result));
47
+                    ->header('Content-Type', 'application/json')
48
+                    ->header('Content-Description', 'File Transfer')
49
+                    ->header('Connection', 'Keep-Alive')
50
+                    ->header('Expires', '0')
51
+                    ->header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0')
52
+                    ->header('Pragma', 'public')
53
+                    ->header('Content-Length', strlen($result));
54 54
 
55 55
         return $response;
56 56
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/RegisterController.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@
 block discarded – undo
91 91
     {
92 92
         return Validator::make(
93 93
             $data, [
94
-                     'name'     => ['required', 'string', 'max:255'],
95
-                     'email'    => ['required', 'string', 'email', 'max:255', 'unique:users'],
96
-                     'password' => ['required', 'string', 'min:8', 'confirmed'],
97
-                 ]
94
+                        'name'     => ['required', 'string', 'max:255'],
95
+                        'email'    => ['required', 'string', 'email', 'max:255', 'unique:users'],
96
+                        'password' => ['required', 'string', 'min:8', 'confirmed'],
97
+                    ]
98 98
         );
99 99
     }
100 100
 }
Please login to merge, or discard this patch.
app/Services/Import/Routine/CSVFileProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
     {
199 199
         $lineValues = array_values($line);
200 200
         array_walk(
201
-            $lineValues, static function ($element) {
201
+            $lineValues, static function($element) {
202 202
             $element = trim(str_replace(' ', ' ', (string)$element));
203 203
 
204 204
             return $element;
Please login to merge, or discard this patch.
app/Services/Import/Routine/ColumnValueConverter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,11 +161,11 @@
 block discarded – undo
161 161
                 throw new RuntimeException(sprintf('No place for role "%s"', $value->getRole()));
162 162
             }
163 163
             if (null === $parsedValue) {
164
-                Log::debug(sprintf('Skip column #%d with role "%s" (in field "%s")', $columnIndex+1, $role, $transactionField));
164
+                Log::debug(sprintf('Skip column #%d with role "%s" (in field "%s")', $columnIndex + 1, $role, $transactionField));
165 165
                 continue;
166 166
             }
167 167
             Log::debug(
168
-                sprintf('Stored column #%d with value "%s" and role "%s" in field "%s"', $columnIndex+1, $this->toString($parsedValue), $role, $transactionField)
168
+                sprintf('Stored column #%d with value "%s" and role "%s" in field "%s"', $columnIndex + 1, $this->toString($parsedValue), $role, $transactionField)
169 169
             );
170 170
 
171 171
             // if append, append.
Please login to merge, or discard this patch.
app/Services/Import/Task/Accounts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@
 block discarded – undo
321 321
             return 'withdrawal';
322 322
         }
323 323
         // if destination is asset and source is NULL, its a deposit
324
-        if(null === $sourceType && 'asset' === $destinationType){
324
+        if (null === $sourceType && 'asset' === $destinationType) {
325 325
             Log::debug('Return deposit, dest is asset');
326 326
             return 'deposit';
327 327
         }
Please login to merge, or discard this patch.
app/Services/CSV/Roles/RoleService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public static function getColumns(string $content, Configuration $configuration): array
49 49
     {
50
-        $reader  = Reader::createFromString($content);
50
+        $reader = Reader::createFromString($content);
51 51
 
52 52
         // configure reader:
53 53
         $delimiter = $configuration->getDelimiter();
54
-        switch($delimiter) {
54
+        switch ($delimiter) {
55 55
             case 'semicolon':
56 56
                 $reader->setDelimiter(';');
57 57
                 break;
@@ -115,11 +115,11 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public static function getExampleData(string $content, Configuration $configuration): array
117 117
     {
118
-        $reader   = Reader::createFromString($content);
118
+        $reader = Reader::createFromString($content);
119 119
 
120 120
         // configure reader:
121 121
         $delimiter = $configuration->getDelimiter();
122
-        switch($delimiter) {
122
+        switch ($delimiter) {
123 123
             case 'semicolon':
124 124
                 $reader->setDelimiter(';');
125 125
                 break;
Please login to merge, or discard this patch.
app/Services/CSV/Converter/Iban.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     private function isValidIban(string $value): bool
54 54
     {
55 55
         // strip spaces
56
-        $search  = [
56
+        $search = [
57 57
             "\x20", // normal space
58 58
             "\u{0001}", // start of heading
59 59
             "\u{0002}", // start of text
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
         $search  = [' ', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];
109 109
         $replace = ['', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31',
110
-                    '32', '33', '34', '35',];
110
+                    '32', '33', '34', '35', ];
111 111
 
112 112
         // take
113 113
         $first    = substr($value, 0, 4);
Please login to merge, or discard this patch.
app/Services/CSV/Converter/Amount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         if (null === $value) {
72 72
             return '0';
73 73
         }
74
-        if('' === $value) {
74
+        if ('' === $value) {
75 75
             return '0';
76 76
         }
77 77
         Log::debug(sprintf('Start with amount "%s"', $value));
Please login to merge, or discard this patch.