Passed
Push — master ( 2a39ec...3b6c56 )
by Andrea
03:42
created

Fifree2installCommand::generateDefaultData()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 713
Code Lines 60

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 21
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 60
dl 0
loc 713
ccs 21
cts 21
cp 1
rs 8.8727
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
namespace Fi\CoreBundle\Command;
4
5
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
6
use Symfony\Component\Console\Input\InputArgument;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Filesystem\Filesystem;
9
use Symfony\Component\Console\Output\OutputInterface;
10
use Symfony\Component\Console\Input\ArrayInput;
11
12
class Fifree2installCommand extends ContainerAwareCommand
13
{
14
15
    protected $fixtureFile;
16
17 6
    protected function configure()
18
    {
19
        $this
20 6
                ->setName('fifree2:install')
21 6
                ->setDescription('Installazione ambiente fifree')
22 6
                ->setHelp('Crea il database, un utente amministratore e i dati di default')
23 6
                ->addArgument('admin', InputArgument::REQUIRED, 'Username per amministratore')
24 6
                ->addArgument('adminpass', InputArgument::REQUIRED, 'Password per amministratore')
25 6
                ->addArgument('adminemail', InputArgument::REQUIRED, 'Email per amministratore')
26
        ;
27 6
    }
28
29 1
    protected function execute(InputInterface $input, OutputInterface $output)
30
    {
31 1
        $admin = $input->getArgument('admin');
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 13 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
32 1
        $adminpass = $input->getArgument('adminpass');
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
33 1
        $adminemail = $input->getArgument('adminemail');
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
34 1
        $this->fixtureFile = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'fixtures.yml';
35
36 1
        if (!$admin) {
37
            echo "Inserire il nome utente dell'amministratore";
38
39
            return 1;
40
        }
41 1
        if (!$adminpass) {
42
            echo "Inserire la password per dell'amministratore";
43
44
            return 1;
45
        }
46 1
        if (!$adminemail) {
47
            echo "Inserire la mail dell'amministratore";
48
49
            return 1;
50
        }
51
52 1
        $commanddb = $this->getApplication()->find('fifree2:createdatabase');
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
53 1
        $argumentsdb = array('command' => 'fifree2:createdatabase');
54 1
        $inputc = new ArrayInput($argumentsdb);
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
55 1
        $commanddb->run($inputc, $output);
56
57 1
        $this->generateDefaultData($admin, $adminemail);
58
59 1
        $commanddata = $this->getApplication()->find('fifree2:configuratorimport');
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
60
        $argumentsdata = array(
61 1
            'command' => 'fifree2:configuratorimport',
62
            array("--truncatetables" => true)
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal --truncatetables does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
63
        );
64 1
        $inputd = new ArrayInput($argumentsdata);
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
65 1
        $commanddata->run($inputd, $output);
66
67 1
        $fs = new Filesystem();
68 1
        $fs->remove($this->fixtureFile);
69
70 1
        $userManipulator = $this->getContainer()->get('fifree.fos_user.util.user_manipulator');
71
72 1
        $userManipulator->changePassword($admin, $adminpass);
73 1
    }
74
75
    /**
76
     * This will suppress UnusedLocalVariable
77
     * warnings in this method
78
     *
79
     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
80
     */
81 1
    private function generateDefaultData($admin, $adminemail)
82
    {
83 1
        $todaydt = new \DateTime();
84 1
        $today = $todaydt->format("Y-m-d") . "T00:00:00+01:00";
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
Coding Style Comprehensibility introduced by
The string literal Y-m-d does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
Coding Style Comprehensibility introduced by
The string literal T00:00:00+01:00 does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
85
        
86
        $defaultData = <<<EOF
87
Fi\CoreBundle\Entity\Ruoli:
88
    -
89
        id: 1
90
        ruolo: 'Super Admin'
91
        paginainiziale: /adminpanel
92
        is_superadmin: true
93
        is_admin: true
94
        is_user: false
95
    -
96
        id: 2
97
        ruolo: Amministratore
98
        paginainiziale: /adminpanel
99
        is_superadmin: false
100
        is_admin: true
101
        is_user: false
102
    -
103
        id: 3
104
        ruolo: Utente
105
        paginainiziale: /ffprincipale
106
        is_superadmin: false
107
        is_admin: false
108
        is_user: true
109
    -
110
        id: 4
111
        ruolo: Ffprincipale
112
        paginainiziale: /ffprincipale
113
        is_superadmin: false
114
        is_admin: false
115
        is_user: true
116
    -
117
        id: 5
118
        ruolo: Ffsecondaria
119
        paginainiziale: /ffsecondaria
120
        is_superadmin: false
121
        is_admin: false
122
        is_user: true
123
Fi\CoreBundle\Entity\Operatori:
124
    -
125 1
        username: $admin
126 1
        usernameCanonical: $admin
127 1
        email: $adminemail
128 1
        emailCanonical: $adminemail
129
        enabled: true
130
        salt: null
131 1
        password: $admin
132
        lastLogin: null
133
        confirmationToken: null
134
        passwordRequestedAt: null
135
        roles:
136
            - ROLE_SUPER_ADMIN
137
        id: 1
138 1
        operatore: $admin
139
        ruoli_id: 1
140
    -
141
        username: ffprincipalec
142
        usernameCanonical: ffprincipalec
143
        email: [email protected]
144
        emailCanonical: [email protected]
145
        enabled: true
146
        salt: TsslJJBJVZRzYSN1XrR97bTj33MEM0hf5b0xaFgbtF8
147
        password: q3EgysATetLjBY1EEcLJX54wwWv6z/Vv9ftTj+wbEg8E+YfQTHHoAoII0ig40fThp23BdyZ88iOelJ65EYmpwA==
148
        lastLogin: null
149
        confirmationToken: null
150
        passwordRequestedAt: null
151
        roles: {  }
152
        id: 2
153
        operatore: null
154
        ruoli_id: null
155
    -
156
        username: ffprincipaler
157
        usernameCanonical: ffprincipaler
158
        email: [email protected]
159
        emailCanonical: [email protected]
160
        enabled: true
161
        salt: FYjiqs9fg2Rye/rQW2kZOVugzSRYvDEvOeXaRL1NH.Y
162
        password: KZaxi0Vsje3TWwa5/5P/oHy56N0ZPj/IqdeAd8DPuMPFgjI89HcoWrF1PQCEvdCL0p3xuIA+R9zoxC6aw/q1NA==
163
        lastLogin: null
164
        confirmationToken: null
165
        passwordRequestedAt: null
166
        roles: {  }
167
        id: 3
168
        operatore: null
169
        ruoli_id: null
170
    -
171
        username: ffprincipaleu
172
        usernameCanonical: ffprincipaleu
173
        email: [email protected]
174
        emailCanonical: [email protected]
175
        enabled: true
176
        salt: P4NejU4s9XNhkisXm/TX1rFO3Yx6DbO28H8c.kuphq0
177
        password: M6Q7MArq/XbgCRueH93DaMduzTqhTQxqNxD5syKyXsj9tjerQa2ZzvX8Wgg9JE0pqnv1vJVVFFUmfjguSL0NQg==
178
        lastLogin: null
179
        confirmationToken: null
180
        passwordRequestedAt: null
181
        roles: {  }
182
        id: 4
183
        operatore: null
184
        ruoli_id: null
185
    -
186
        username: ffprincipaled
187
        usernameCanonical: ffprincipaled
188
        email: [email protected]
189
        emailCanonical: [email protected]
190
        enabled: true
191
        salt: pE01F9zH7sYq3PqvT4dwykSA.3ax0E7ERZSPxse6/Mw
192
        password: Pj3I9hXVrvx57CKoUyBxzvjLbuZCAthfXsN6qoz+8FhTN/a0iwkfLikd2DPAy2ePCb3Dv2ukRIxoJSRL/fiAnA==
193
        lastLogin: null
194
        confirmationToken: null
195
        passwordRequestedAt: null
196
        roles: {  }
197
        id: 5
198
        operatore: null
199
        ruoli_id: null
200
    -
201
        username: ffsecondariac
202
        usernameCanonical: ffsecondariac
203
        email: [email protected]
204
        emailCanonical: [email protected]
205
        enabled: true
206
        salt: rCmWpPixVyq0.ytBt/Uk7juA.KS6JAscAn3ZhNMscM8
207
        password: sPtyn93cPWF60mKTI5FAoKppJWlX8KGiJKs7DbyxNtA8MKiTl9C4HG9UsNsNdgMexg5/EF5eLFLa4wUqOha37g==
208
        lastLogin: null
209
        confirmationToken: null
210
        passwordRequestedAt: null
211
        roles: {  }
212
        id: 6
213
        operatore: null
214
        ruoli_id: null
215
    -
216
        username: ffsecondariar
217
        usernameCanonical: ffsecondariar
218
        email: [email protected]
219
        emailCanonical: [email protected]
220
        enabled: true
221
        salt: nFDM1Za4bdC4UQqM8trUWT8T4lVi3N1k4F2.651zWTM
222
        password: BJ2+8wWV3MKaDN6t3bHQiAn1C3BNqiIDMCstMPinO1qOwBKNcumBdbMdvRC86Az/c/5srb8wpwCHdZZ7bdTbwQ==
223
        lastLogin: null
224
        confirmationToken: null
225
        passwordRequestedAt: null
226
        roles: {  }
227
        id: 7
228
        operatore: null
229
        ruoli_id: null
230
    -
231
        username: ffsecondariau
232
        usernameCanonical: ffsecondariau
233
        email: [email protected]
234
        emailCanonical: [email protected]
235
        enabled: true
236
        salt: t24V9m5oaJVEHy6bgYmK8R.dZ.WrCrUoj6dR7XUY8H4
237
        password: SeFRn5cJiRZgWU5Hj623v+4FGF5PI0J3cuNb62EhIrazudvMQCGrvdcZutKNZdhdCM7In8fiTE8DjPUJqg64DQ==
238
        lastLogin: null
239
        confirmationToken: null
240
        passwordRequestedAt: null
241
        roles: {  }
242
        id: 8
243
        operatore: null
244
        ruoli_id: null
245
    -
246
        username: ffsecondariad
247
        usernameCanonical: ffsecondariad
248
        email: [email protected]
249
        emailCanonical: [email protected]
250
        enabled: true
251
        salt: 6r2f.2sU8C3FMWvAevOnXA1haSXFywcb2DZhICZE9dI
252
        password: Csop95dNeEv8B6PzVMlzFyZfkLNyU8KaljQlVrWDUtbmNbUPWEFyaFRVOCKVVdlQK+yi+TNDI7sgzrmuwhtg4w==
253
        lastLogin: null
254
        confirmationToken: null
255
        passwordRequestedAt: null
256
        roles: {  }
257
        id: 9
258
        operatore: null
259
        ruoli_id: null
260
    -
261
        username: ffprincipale
262
        usernameCanonical: ffprincipale
263
        email: [email protected]
264
        emailCanonical: [email protected]
265
        enabled: true
266
        salt: .5AIBmH.CKC2oSXdZOFO/ccQew3MP3LVqpFGpvRmrQk
267
        password: qhutSK2csuIn0UluYXOT3DKLxwMMuddfuEjGaa6iMDnVLjntSPccJTmmCa1wcikzQ8mAAwrhOUAcnmatYhg33g==
268
        lastLogin: null
269
        confirmationToken: null
270
        passwordRequestedAt: null
271
        roles: {  }
272
        id: 10
273
        operatore: null
274
        ruoli_id: 4
275
    -
276
        username: ffsecondaria
277
        usernameCanonical: ffsecondaria
278
        email: [email protected]
279
        emailCanonical: [email protected]
280
        enabled: true
281
        salt: Ol1WIAFWsAw7DewtYdyFM86T7fWYOYslvm.7C7rwV5c
282
        password: s/jZyrl4SCACNKiYVq9ie3l4b2Q/AvAhy7eiHPrLxcfeAa/Mn2MvlFkEppQC/JHINIICKjXhNhdZk0PO5vS7IA==
283
        lastLogin: null
284
        confirmationToken: null
285
        passwordRequestedAt: null
286
        roles: {  }
287
        id: 11
288
        operatore: null
289
        ruoli_id: 5
290
    -
291
        username: usernoroles
292
        usernameCanonical: usernoroles
293
        email: [email protected]
294
        emailCanonical: [email protected]
295
        enabled: true
296
        salt: nczIukArDyAEH6vvjehM973qvfDjE.WGzkP24umtpfE
297
        password: Ce0FJ16dd5HfwJ8CbzocZB3UDZWzwvD9l/A3kyJJR1oHoisxGjF06qR4sSj/Nsk8J6aCI1GtgmHbJfeF7TS93w==
298
        lastLogin: null
299
        confirmationToken: null
300
        passwordRequestedAt: null
301
        roles: {  }
302
        id: 12
303
        operatore: null
304
        ruoli_id: null
305
Fi\CoreBundle\Entity\Permessi:
306
    -
307
        id: 1
308
        modulo: MenuApplicazione
309
        crud: crud
310
        operatori_id: null
311
        ruoli_id: 1
312
    -
313
        id: 2
314
        modulo: OpzioniTabella
315
        crud: crud
316
        operatori_id: null
317
        ruoli_id: 1
318
    -
319
        id: 3
320
        modulo: Tabelle
321
        crud: crud
322
        operatori_id: null
323
        ruoli_id: 1
324
    -
325
        id: 4
326
        modulo: Permessi
327
        crud: crud
328
        operatori_id: null
329
        ruoli_id: 1
330
    -
331
        id: 5
332
        modulo: Operatori
333
        crud: cru
334
        operatori_id: null
335
        ruoli_id: 1
336
    -
337
        id: 6
338
        modulo: Ruoli
339
        crud: crud
340
        operatori_id: null
341
        ruoli_id: 1
342
    -
343
        id: 7
344
        modulo: Ffprincipale
345
        crud: crud
346
        operatori_id: null
347
        ruoli_id: 1
348
    -
349
        id: 8
350
        modulo: Ffsecondaria
351
        crud: crud
352
        operatori_id: null
353
        ruoli_id: 1
354
    -
355
        id: 9
356
        modulo: Ffsecondaria
357
        crud: crud
358
        operatori_id: null
359
        ruoli_id: 5
360
    -
361
        id: 10
362
        modulo: Ffprincipale
363
        crud: crud
364
        operatori_id: null
365
        ruoli_id: 4
366
    -
367
        id: 11
368
        modulo: Ffprincipale
369
        crud: c
370
        operatori_id: 2
371
        ruoli_id: null
372
    -
373
        id: 12
374
        modulo: Ffprincipale
375
        crud: r
376
        operatori_id: 3
377
        ruoli_id: null
378
    -
379
        id: 13
380
        modulo: Ffprincipale
381
        crud: u
382
        operatori_id: 4
383
        ruoli_id: null
384
    -
385
        id: 14
386
        modulo: Ffprincipale
387
        crud: d
388
        operatori_id: 5
389
        ruoli_id: null
390
    -
391
        id: 15
392
        modulo: Ffsecondaria
393
        crud: c
394
        operatori_id: 6
395
        ruoli_id: null
396
    -
397
        id: 16
398
        modulo: Ffsecondaria
399
        crud: r
400
        operatori_id: 7
401
        ruoli_id: null
402
    -
403
        id: 17
404
        modulo: Ffsecondaria
405
        crud: u
406
        operatori_id: 8
407
        ruoli_id: null
408
    -
409
        id: 18
410
        modulo: Ffsecondaria
411
        crud: d
412
        operatori_id: 9
413
        ruoli_id: null
414
Fi\CoreBundle\Entity\Tabelle:
415
  -
416
    id: 1
417
    nometabella: '*'
418
    nomecampo: null
419
    mostraindex: null
420
    ordineindex: null
421
    larghezzaindex: null
422
    etichettaindex: null
423
    mostrastampa: null
424
    ordinestampa: null
425
    larghezzastampa: null
426
    etichettastampa: null
427
    operatori_id: null
428
    registrastorico: null
429
  -
430
    id: 2
431
    nometabella: Ffsecondaria
432
    nomecampo: ffprincipale
433
    mostraindex: true
434
    ordineindex: null
435
    larghezzaindex: null
436
    etichettaindex: null
437
    mostrastampa: true
438
    ordinestampa: null
439
    larghezzastampa: null
440
    etichettastampa: null
441
    operatori_id: null
442
    registrastorico: true
443
  -
444
    id: 3
445
    nometabella: Ffsecondaria
446
    nomecampo: descsec
447
    mostraindex: true
448
    ordineindex: null
449
    larghezzaindex: null
450
    etichettaindex: null
451
    mostrastampa: true
452
    ordinestampa: null
453
    larghezzastampa: null
454
    etichettastampa: null
455
    operatori_id: null
456
    registrastorico: true
457
  -
458
    id: 4
459
    nometabella: Ffprincipale
460
    nomecampo: null
461
    mostraindex: null
462
    ordineindex: null
463
    larghezzaindex: null
464
    etichettaindex: null
465
    mostrastampa: null
466
    ordinestampa: null
467
    larghezzastampa: null
468
    etichettastampa: null
469
    operatori_id: null
470
    registrastorico: null
471
Fi\CoreBundle\Entity\OpzioniTabella:
472
  -
473
    id: 1
474
    tabelle_id: 1
475
    descrizione: null
476
    parametro: titolo
477
    valore: 'Elenco dati per %tabella%'
478
  -
479
    id: 2
480
    tabelle_id: 1
481
    descrizione: 'Altezza Griglia'
482
    parametro: altezzagriglia
483
    valore: '400'
484
  -
485
    id: 3
486
    tabelle_id: 1
487
    descrizione: 'Esegue filtri con invio in testata griglia'
488
    parametro: filterToolbar_searchOnEnter
489
    valore: true
490
  -
491
    id: 4
492
    tabelle_id: 1
493
    descrizione: 'Aggiunge filtri di default in testata griglia'
494
    parametro: filterToolbar_searchOperators
495
    valore: true
496
  -
497
    id: 5
498
    tabelle_id: 4
499
    descrizione: 'Allarga griglia Ffprincipale'
500
    parametro: larghezzagriglia
501
    valore: 800
502
  -
503
    id: 6
504
    tabelle_id: 4
505
    descrizione: 'Multisearch Ffprincipale'
506
    parametro: multisearch
507
    valore: true
508
  -
509
    id: 7
510
    tabelle_id: 4
511
    descrizione: 'Showconfig Ffprincipale'
512
    parametro: showconfig
513
    valore: true
514
  -
515
    id: 8
516
    tabelle_id: 4
517
    descrizione: 'Show excel Ffprincipale'
518
    parametro: showexcel
519
    valore: true
520
  -
521
    id: 9
522
    tabelle_id: 4
523
    descrizione: 'Overlayopen Ffprincipale'
524
    parametro: overlayopen
525
    valore: true
526
Fi\CoreBundle\Entity\Ffprincipale:
527
  -
528
    id: 1
529
    descrizione: 'Descrizione primo record'
530
  -
531
    id: 2
532
    descrizione: 'Descrizione secondo record'
533
Fi\CoreBundle\Entity\Ffsecondaria:
534
  -
535
    id: 1
536
    descsec: '1° secondaria legato al 1° record PRINCIPALE'
537
    ffprincipale_id: 1
538 1
    data: $today
539
    intero: 10
540
    giornodellasettimana: 1
541
    importo: 12.34
542
    nota: 'Super Nota ffsecondaria'
543
    attivo: true
544
  -
545
    id: 2
546
    descsec: '2° SECONDARIA legato al 1° record principale'
547
    ffprincipale_id: 1
548 1
    data: $today
549
    intero: 1
550
    giornodellasettimana: 2
551
    importo: 1.23
552
    nota: 'Nota ffsecondaria'
553
    attivo: true
554
  -
555
    id: 3
556
    descsec: '3° secondaria legato al 1° record principale'
557
    ffprincipale_id: 1
558 1
    data: $today
559
    intero: 10
560
    giornodellasettimana: 3
561
    importo: 11.34
562
    nota: 'Nota 3° ffsecondaria'
563
    attivo: false
564
  -
565
    id: 4
566
    descsec: '4° Secondaria legato al 1° record Principale'
567
    ffprincipale_id: 1
568 1
    data: $today
569
    giornodellasettimana: 4
570
    intero: 101
571
    importo: 101.34
572
    nota: 'Nota 4° ffsecondaria'
573
    attivo: true
574
  -
575
    id: 5
576
    descsec: '5° secondaria legato al 1° record principale'
577
    ffprincipale_id: 1
578 1
    data: $today
579
    giornodellasettimana: 5
580
    intero: 101
581
    importo: 101.34
582
    nota: 'Nota 4° ffsecondaria'
583
    attivo: true
584
  -
585
    id: 6
586
    descsec: '6° secondaria legato al 2° record principale'
587
    ffprincipale_id: 2
588 1
    data: $today
589
    intero: 10006
590
    giornodellasettimana: 6
591
    importo: 10006.12
592
    nota: 'Nota altra ffsecondaria'
593
    attivo: true
594
  -
595
    id: 7
596
    descsec: '7° secondaria legato al 2° record principale'
597
    ffprincipale_id: 2
598 1
    data: $today
599
    intero: 10007
600
    giornodellasettimana: 7
601
    importo: 10007.22
602
    nota: 'Nota altra 7 ffsecondaria'
603
    attivo: false
604
  -
605
    id: 8
606
    descsec: null
607
    ffprincipale_id: 2
608 1
    data: $today
609
    intero: 1111
610
    giornodellasettimana: 2
611
    importo: 1111.12
612
    nota: 'Nota ffsecondaria con descsec null'
613
    attivo: false
614
  -
615
    id: 9
616
    descsec: '9° secondaria legato al 2° "record principale"'
617
    ffprincipale_id: 2
618 1
    data: $today
619
    intero: 1000
620
    giornodellasettimana: 1
621
    importo: 1000.12
622
    nota: 'Nota altra ffsecondaria'
623
    attivo: true
624
  -
625
    id: 10
626
    descsec: '10° secondaria legato al 2° record principale ed è l''ultimo record'
627
    ffprincipale_id: 2
628 1
    data: $today
629
    intero: 1100
630
    giornodellasettimana: 2
631
    importo: 1100.99
632
    nota: 'Nota 10° altra ffsecondaria'
633
    attivo: false
634
Fi\CoreBundle\Entity\MenuApplicazione:
635
  -
636
    id: 1
637
    nome: Tabelle
638
    percorso: null
639
    padre: null
640
    ordine: 10
641
    attivo: true
642
    target: null
643
    tag: null
644
    notifiche: null
645
    autorizzazionerichiesta: null
646
    percorsonotifiche: null
647
  -
648
    id: 2
649
    nome: FFprincipale
650
    percorso: Ffprincipale
651
    padre: 1
652
    ordine: 10
653
    attivo: true
654
    target: null
655
    tag: null
656
    notifiche: null
657
    autorizzazionerichiesta: null
658
    percorsonotifiche: null
659
  -
660
    id: 3
661
    nome: FFsecondaria
662
    percorso: Ffsecondaria
663
    padre: 1
664
    ordine: 10
665
    attivo: true
666
    target: null
667
    tag: null
668
    notifiche: null
669
    autorizzazionerichiesta: null
670
    percorsonotifiche: null
671
  -
672
    id: 4
673
    nome: Amministrazione
674
    percorso: null
675
    padre: null
676
    ordine: 20
677
    attivo: true
678
    target: null
679
    tag: null
680
    notifiche: null
681
    autorizzazionerichiesta: null
682
    percorsonotifiche: null
683
  -
684
    id: 5
685
    nome: Operatori
686
    percorso: Operatori
687
    padre: 4
688
    ordine: 10
689
    attivo: true
690
    target: null
691
    tag: null
692
    notifiche: null
693
    autorizzazionerichiesta: null
694
    percorsonotifiche: null
695
  -
696
    id: 6
697
    nome: Ruoli
698
    percorso: Ruoli
699
    padre: 4
700
    ordine: 20
701
    attivo: true
702
    target: null
703
    tag: null
704
    notifiche: null
705
    autorizzazionerichiesta: null
706
    percorsonotifiche: null
707
  -
708
    id: 7
709
    nome: Permessi
710
    percorso: Permessi
711
    padre: 4
712
    ordine: 30
713
    attivo: true
714
    target: null
715
    tag: null
716
    notifiche: null
717
    autorizzazionerichiesta: null
718
    percorsonotifiche: null
719
  -
720
    id: 8
721
    nome: 'Gestione tabelle'
722
    percorso: null
723
    padre: 4
724
    ordine: 40
725
    attivo: true
726
    target: null
727
    tag: null
728
    notifiche: null
729
    autorizzazionerichiesta: null
730
    percorsonotifiche: null
731
  -
732
    id: 9
733
    nome: Tabelle
734
    percorso: Tabelle
735
    padre: 8
736
    ordine: 10
737
    attivo: true
738
    target: null
739
    tag: null
740
    notifiche: null
741
    autorizzazionerichiesta: null
742
    percorsonotifiche: null
743
  -
744
    id: 10
745
    nome: 'Opzioni tabella'
746
    percorso: OpzioniTabella
747
    padre: 8
748
    ordine: 20
749
    attivo: true
750
    target: null
751
    tag: null
752
    notifiche: null
753
    autorizzazionerichiesta: null
754
    percorsonotifiche: null
755
  -
756
    id: 11
757
    nome: 'Menu Applicazione'
758
    percorso: MenuApplicazione_container
759
    padre: 4
760
    ordine: 50
761
    attivo: true
762
    target: null
763
    tag: null
764
    notifiche: null
765
    autorizzazionerichiesta: null
766
    percorsonotifiche: null
767
  -
768
    id: 12
769
    nome: Utilità
770
    percorso: fi_pannello_amministrazione_homepage
771
    padre: 4
772
    ordine: 100
773
    attivo: true
774
    target: null
775
    tag: null
776
    notifiche: null
777
    autorizzazionerichiesta: null
778
    percorsonotifiche: null
779
  -
780
    id: 13
781
    nome: FiDemo
782
    percorso: fi_demo_index
783
    padre: 4
784
    ordine: 150
785
    attivo: false
786
    target: null
787
    tag: null
788
    notifiche: null
789
    autorizzazionerichiesta: null
790
    percorsonotifiche: null
791
EOF;
792 1
        $fs = new Filesystem();
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
793 1
        $fs->dumpFile($this->fixtureFile, $defaultData);
794 1
    }
795
}
796