Passed
Push — master ( 77b06d...fe840e )
by Andrea
36:13 queued 15:04
created

Fifree2installCommand   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 728
Duplicated Lines 0 %

Test Coverage

Coverage 90.32%

Importance

Changes 0
Metric Value
wmc 6
dl 0
loc 728
ccs 56
cts 62
cp 0.9032
rs 9.7391
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 9 1
B execute() 0 44 4
B generateDefaultData() 0 659 1
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 6
        $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 1
            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 1
        );
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
        username: $admin
126 1
        usernameCanonical: $admin
127 1
        email: $adminemail
128 1
        emailCanonical: $adminemail
129 1
        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
Fi\CoreBundle\Entity\OpzioniTabella:
458
  -
459
    id: 1
460
    tabelle_id: 1
461
    descrizione: null
462
    parametro: titolo
463
    valore: 'Elenco dati per %tabella%'
464
  -
465
    id: 2
466
    tabelle_id: 1
467
    descrizione: 'Altezza Griglia'
468
    parametro: altezzagriglia
469
    valore: '400'
470
  -
471
    id: 3
472
    tabelle_id: 1
473
    descrizione: 'Esegue filtri con invio in testata griglia'
474
    parametro: filterToolbar_searchOnEnter
475
    valore: true
476
  -
477
    id: 4
478
    tabelle_id: 1
479
    descrizione: 'Aggiunge filtri di default in testata griglia'
480
    parametro: filterToolbar_searchOperators
481
    valore: true
482
Fi\CoreBundle\Entity\Ffprincipale:
483
  -
484
    id: 1
485
    descrizione: 'Descrizione primo record'
486
  -
487
    id: 2
488
    descrizione: 'Descrizione secondo record'
489
Fi\CoreBundle\Entity\Ffsecondaria:
490
  -
491
    id: 1
492
    descsec: '1° secondaria legato al 1° record PRINCIPALE'
493
    ffprincipale_id: 1
494 1
    data: $today
495
    intero: 10
496
    importo: 12.34
497
    nota: 'Super Nota ffsecondaria'
498
    attivo: true
499
  -
500
    id: 2
501
    descsec: '2° SECONDARIA legato al 1° record principale'
502
    ffprincipale_id: 1
503 1
    data: $today
504
    intero: 1
505
    importo: 1.23
506
    nota: 'Nota ffsecondaria'
507
    attivo: true
508
  -
509
    id: 3
510
    descsec: '3° secondaria legato al 1° record principale'
511
    ffprincipale_id: 1
512 1
    data: $today
513
    intero: 10
514
    importo: 11.34
515
    nota: 'Nota 3° ffsecondaria'
516
    attivo: false
517
  -
518
    id: 4
519
    descsec: '4° Secondaria legato al 1° record Principale'
520
    ffprincipale_id: 1
521 1
    data: $today
522
    intero: 101
523
    importo: 101.34
524
    nota: 'Nota 4° ffsecondaria'
525
    attivo: true
526
  -
527
    id: 5
528
    descsec: '5° secondaria legato al 1° record principale'
529
    ffprincipale_id: 1
530 1
    data: $today
531
    intero: 101
532
    importo: 101.34
533
    nota: 'Nota 4° ffsecondaria'
534
    attivo: true
535
  -
536
    id: 6
537
    descsec: '6° secondaria legato al 2° record principale'
538
    ffprincipale_id: 2
539 1
    data: $today
540
    intero: 10006
541
    importo: 10006.12
542
    nota: 'Nota altra ffsecondaria'
543
    attivo: true
544
  -
545
    id: 7
546
    descsec: '7° secondaria legato al 2° record principale'
547
    ffprincipale_id: 2
548 1
    data: $today
549
    intero: 10007
550
    importo: 10007.22
551
    nota: 'Nota altra 7 ffsecondaria'
552
    attivo: false
553
  -
554
    id: 8
555
    descsec: null
556
    ffprincipale_id: 2
557 1
    data: $today
558
    intero: 1111
559
    importo: 1111.12
560
    nota: 'Nota ffsecondaria con descsec null'
561
    attivo: false
562
  -
563
    id: 9
564
    descsec: '9° secondaria legato al 2° "record principale"'
565
    ffprincipale_id: 2
566 1
    data: $today
567
    intero: 1000
568
    importo: 1000.12
569
    nota: 'Nota altra ffsecondaria'
570
    attivo: true
571
  -
572
    id: 10
573
    descsec: '10° secondaria legato al 2° record principale ed è l''ultimo record'
574
    ffprincipale_id: 2
575 1
    data: $today
576
    intero: 1100
577
    importo: 1100.99
578
    nota: 'Nota 10° altra ffsecondaria'
579
    attivo: false
580
Fi\CoreBundle\Entity\MenuApplicazione:
581
  -
582
    id: 1
583
    nome: Tabelle
584
    percorso: null
585
    padre: null
586
    ordine: 10
587
    attivo: true
588
    target: null
589
    tag: null
590
    notifiche: null
591
    autorizzazionerichiesta: null
592
    percorsonotifiche: null
593
  -
594
    id: 2
595
    nome: FFprincipale
596
    percorso: Ffprincipale
597
    padre: 1
598
    ordine: 10
599
    attivo: true
600
    target: null
601
    tag: null
602
    notifiche: null
603
    autorizzazionerichiesta: null
604
    percorsonotifiche: null
605
  -
606
    id: 3
607
    nome: FFsecondaria
608
    percorso: Ffsecondaria
609
    padre: 1
610
    ordine: 10
611
    attivo: true
612
    target: null
613
    tag: null
614
    notifiche: null
615
    autorizzazionerichiesta: null
616
    percorsonotifiche: null
617
  -
618
    id: 4
619
    nome: Amministrazione
620
    percorso: null
621
    padre: null
622
    ordine: 20
623
    attivo: true
624
    target: null
625
    tag: null
626
    notifiche: null
627
    autorizzazionerichiesta: null
628
    percorsonotifiche: null
629
  -
630
    id: 5
631
    nome: Operatori
632
    percorso: Operatori
633
    padre: 4
634
    ordine: 10
635
    attivo: true
636
    target: null
637
    tag: null
638
    notifiche: null
639
    autorizzazionerichiesta: null
640
    percorsonotifiche: null
641
  -
642
    id: 6
643
    nome: Ruoli
644
    percorso: Ruoli
645
    padre: 4
646
    ordine: 20
647
    attivo: true
648
    target: null
649
    tag: null
650
    notifiche: null
651
    autorizzazionerichiesta: null
652
    percorsonotifiche: null
653
  -
654
    id: 7
655
    nome: Permessi
656
    percorso: Permessi
657
    padre: 4
658
    ordine: 30
659
    attivo: true
660
    target: null
661
    tag: null
662
    notifiche: null
663
    autorizzazionerichiesta: null
664
    percorsonotifiche: null
665
  -
666
    id: 8
667
    nome: 'Gestione tabelle'
668
    percorso: null
669
    padre: 4
670
    ordine: 40
671
    attivo: true
672
    target: null
673
    tag: null
674
    notifiche: null
675
    autorizzazionerichiesta: null
676
    percorsonotifiche: null
677
  -
678
    id: 9
679
    nome: Tabelle
680
    percorso: Tabelle
681
    padre: 8
682
    ordine: 10
683
    attivo: true
684
    target: null
685
    tag: null
686
    notifiche: null
687
    autorizzazionerichiesta: null
688
    percorsonotifiche: null
689
  -
690
    id: 10
691
    nome: 'Opzioni tabella'
692
    percorso: OpzioniTabella
693
    padre: 8
694
    ordine: 20
695
    attivo: true
696
    target: null
697
    tag: null
698
    notifiche: null
699
    autorizzazionerichiesta: null
700
    percorsonotifiche: null
701
  -
702
    id: 11
703
    nome: 'Menu Applicazione'
704
    percorso: MenuApplicazione_container
705
    padre: 4
706
    ordine: 50
707
    attivo: true
708
    target: null
709
    tag: null
710
    notifiche: null
711
    autorizzazionerichiesta: null
712
    percorsonotifiche: null
713
  -
714
    id: 12
715
    nome: Utilità
716
    percorso: fi_pannello_amministrazione_homepage
717
    padre: 4
718
    ordine: 100
719
    attivo: true
720
    target: null
721
    tag: null
722
    notifiche: null
723
    autorizzazionerichiesta: null
724
    percorsonotifiche: null
725
  -
726
    id: 13
727
    nome: FiDemo
728
    percorso: fi_demo_index
729
    padre: 4
730
    ordine: 150
731
    attivo: false
732
    target: null
733
    tag: null
734
    notifiche: null
735
    autorizzazionerichiesta: null
736 1
    percorsonotifiche: null
737 1
EOF;
738 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...
739 1
        $fs->dumpFile($this->fixtureFile, $defaultData);
740 1
    }
741
}
742