Passed
Push — master ( 4b682e...929ece )
by Andrea
18:49
created

Fifree2installCommand::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 9
ccs 8
cts 8
cp 1
crap 1
rs 9.6666
c 0
b 0
f 0
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 1
    protected function configure()
18
    {
19 1
        $this
20 1
                ->setName('fifree2:install')
21 1
                ->setDescription('Installazione ambiente fifree')
22 1
                ->setHelp('Crea il database, un utente amministratore e i dati di default')
23 1
                ->addArgument('admin', InputArgument::REQUIRED, 'Username per amministratore')
24 1
                ->addArgument('adminpass', InputArgument::REQUIRED, 'Password per amministratore')
25 1
                ->addArgument('adminemail', InputArgument::REQUIRED, 'Email per amministratore')
26
        ;
27 1
    }
28
29
    protected function execute(InputInterface $input, OutputInterface $output)
30
    {
31
        $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
        $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
        $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
        $this->fixtureFile = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'fixtures.yml';
35
36
        if (!$admin) {
37
            echo "Inserire il nome utente dell'amministratore";
38
39
            return 1;
40
        }
41
        if (!$adminpass) {
42
            echo "Inserire la password per dell'amministratore";
43
44
            return 1;
45
        }
46
        if (!$adminemail) {
47
            echo "Inserire la mail dell'amministratore";
48
49
            return 1;
50
        }
51
52
        $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
        $argumentsdb = array('command' => 'fifree2:createdatabase');
54
        $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
        $commanddb->run($inputc, $output);
56
57
        $this->generateDefaultData($admin, $adminemail);
58
59
        $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
            '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
        $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
        $commanddata->run($inputd, $output);
66
67
        $fs = new Filesystem();
68
        $fs->remove($this->fixtureFile);
69
70
        $userManipulator = $this->getContainer()->get('fifree.fos_user.util.user_manipulator');
71
72
        $userManipulator->changePassword($admin, $adminpass);
73
    }
74
75
    /**
76
     * This will suppress UnusedLocalVariable
77
     * warnings in this method
78
     *
79
     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
80
     */
81
    private function generateDefaultData($admin, $adminemail)
82
    {
83
        $todaydt = new \DateTime();
84
        $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
        username: $admin
126
        usernameCanonical: $admin
127
        email: $adminemail
128
        emailCanonical: $adminemail
129
        enabled: true
130
        salt: null
131
        password: $admin
132
        lastLogin: null
133
        confirmationToken: null
134
        passwordRequestedAt: null
135
        roles:
136
            - ROLE_SUPER_ADMIN
137
        id: 1
138
        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
    data: $today
539
    intero: 10
540
    importo: 12.34
541
    nota: 'Super Nota ffsecondaria'
542
    attivo: true
543
  -
544
    id: 2
545
    descsec: '2° SECONDARIA legato al 1° record principale'
546
    ffprincipale_id: 1
547
    data: $today
548
    intero: 1
549
    importo: 1.23
550
    nota: 'Nota ffsecondaria'
551
    attivo: true
552
  -
553
    id: 3
554
    descsec: '3° secondaria legato al 1° record principale'
555
    ffprincipale_id: 1
556
    data: $today
557
    intero: 10
558
    importo: 11.34
559
    nota: 'Nota 3° ffsecondaria'
560
    attivo: false
561
  -
562
    id: 4
563
    descsec: '4° Secondaria legato al 1° record Principale'
564
    ffprincipale_id: 1
565
    data: $today
566
    intero: 101
567
    importo: 101.34
568
    nota: 'Nota 4° ffsecondaria'
569
    attivo: true
570
  -
571
    id: 5
572
    descsec: '5° secondaria legato al 1° record principale'
573
    ffprincipale_id: 1
574
    data: $today
575
    intero: 101
576
    importo: 101.34
577
    nota: 'Nota 4° ffsecondaria'
578
    attivo: true
579
  -
580
    id: 6
581
    descsec: '6° secondaria legato al 2° record principale'
582
    ffprincipale_id: 2
583
    data: $today
584
    intero: 10006
585
    importo: 10006.12
586
    nota: 'Nota altra ffsecondaria'
587
    attivo: true
588
  -
589
    id: 7
590
    descsec: '7° secondaria legato al 2° record principale'
591
    ffprincipale_id: 2
592
    data: $today
593
    intero: 10007
594
    importo: 10007.22
595
    nota: 'Nota altra 7 ffsecondaria'
596
    attivo: false
597
  -
598
    id: 8
599
    descsec: null
600
    ffprincipale_id: 2
601
    data: $today
602
    intero: 1111
603
    importo: 1111.12
604
    nota: 'Nota ffsecondaria con descsec null'
605
    attivo: false
606
  -
607
    id: 9
608
    descsec: '9° secondaria legato al 2° "record principale"'
609
    ffprincipale_id: 2
610
    data: $today
611
    intero: 1000
612
    importo: 1000.12
613
    nota: 'Nota altra ffsecondaria'
614
    attivo: true
615
  -
616
    id: 10
617
    descsec: '10° secondaria legato al 2° record principale ed è l''ultimo record'
618
    ffprincipale_id: 2
619
    data: $today
620
    intero: 1100
621
    importo: 1100.99
622
    nota: 'Nota 10° altra ffsecondaria'
623
    attivo: false
624
Fi\CoreBundle\Entity\MenuApplicazione:
625
  -
626
    id: 1
627
    nome: Tabelle
628
    percorso: null
629
    padre: null
630
    ordine: 10
631
    attivo: true
632
    target: null
633
    tag: null
634
    notifiche: null
635
    autorizzazionerichiesta: null
636
    percorsonotifiche: null
637
  -
638
    id: 2
639
    nome: FFprincipale
640
    percorso: Ffprincipale
641
    padre: 1
642
    ordine: 10
643
    attivo: true
644
    target: null
645
    tag: null
646
    notifiche: null
647
    autorizzazionerichiesta: null
648
    percorsonotifiche: null
649
  -
650
    id: 3
651
    nome: FFsecondaria
652
    percorso: Ffsecondaria
653
    padre: 1
654
    ordine: 10
655
    attivo: true
656
    target: null
657
    tag: null
658
    notifiche: null
659
    autorizzazionerichiesta: null
660
    percorsonotifiche: null
661
  -
662
    id: 4
663
    nome: Amministrazione
664
    percorso: null
665
    padre: null
666
    ordine: 20
667
    attivo: true
668
    target: null
669
    tag: null
670
    notifiche: null
671
    autorizzazionerichiesta: null
672
    percorsonotifiche: null
673
  -
674
    id: 5
675
    nome: Operatori
676
    percorso: Operatori
677
    padre: 4
678
    ordine: 10
679
    attivo: true
680
    target: null
681
    tag: null
682
    notifiche: null
683
    autorizzazionerichiesta: null
684
    percorsonotifiche: null
685
  -
686
    id: 6
687
    nome: Ruoli
688
    percorso: Ruoli
689
    padre: 4
690
    ordine: 20
691
    attivo: true
692
    target: null
693
    tag: null
694
    notifiche: null
695
    autorizzazionerichiesta: null
696
    percorsonotifiche: null
697
  -
698
    id: 7
699
    nome: Permessi
700
    percorso: Permessi
701
    padre: 4
702
    ordine: 30
703
    attivo: true
704
    target: null
705
    tag: null
706
    notifiche: null
707
    autorizzazionerichiesta: null
708
    percorsonotifiche: null
709
  -
710
    id: 8
711
    nome: 'Gestione tabelle'
712
    percorso: null
713
    padre: 4
714
    ordine: 40
715
    attivo: true
716
    target: null
717
    tag: null
718
    notifiche: null
719
    autorizzazionerichiesta: null
720
    percorsonotifiche: null
721
  -
722
    id: 9
723
    nome: Tabelle
724
    percorso: Tabelle
725
    padre: 8
726
    ordine: 10
727
    attivo: true
728
    target: null
729
    tag: null
730
    notifiche: null
731
    autorizzazionerichiesta: null
732
    percorsonotifiche: null
733
  -
734
    id: 10
735
    nome: 'Opzioni tabella'
736
    percorso: OpzioniTabella
737
    padre: 8
738
    ordine: 20
739
    attivo: true
740
    target: null
741
    tag: null
742
    notifiche: null
743
    autorizzazionerichiesta: null
744
    percorsonotifiche: null
745
  -
746
    id: 11
747
    nome: 'Menu Applicazione'
748
    percorso: MenuApplicazione_container
749
    padre: 4
750
    ordine: 50
751
    attivo: true
752
    target: null
753
    tag: null
754
    notifiche: null
755
    autorizzazionerichiesta: null
756
    percorsonotifiche: null
757
  -
758
    id: 12
759
    nome: Utilità
760
    percorso: fi_pannello_amministrazione_homepage
761
    padre: 4
762
    ordine: 100
763
    attivo: true
764
    target: null
765
    tag: null
766
    notifiche: null
767
    autorizzazionerichiesta: null
768
    percorsonotifiche: null
769
  -
770
    id: 13
771
    nome: FiDemo
772
    percorso: fi_demo_index
773
    padre: 4
774
    ordine: 150
775
    attivo: false
776
    target: null
777
    tag: null
778
    notifiche: null
779
    autorizzazionerichiesta: null
780
    percorsonotifiche: null
781
EOF;
782
        $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...
783
        $fs->dumpFile($this->fixtureFile, $defaultData);
784
    }
785
}
786