Completed
Push — master ( 74eec6...73722f )
by Gino
01:25
created

UpdateSettingsTo570::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace GinoPane\AwesomeIconsList\Updates;
4
5
use DB;
6
use Schema;
7
use October\Rain\Database\Updates\Migration;
8
9
/**
10
 * Class UpdateSettingsTo570
11
 *
12
 * @package GinoPane\AwesomeIconsList\Updates
13
 */
14 View Code Duplication
class UpdateSettingsTo570 extends UpdateSettingsAbstract
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
15
{
16
    protected static $PREVIOUS_FONTAWESOME_LINK = 'https://use.fontawesome.com/releases/v5.6.3/css/all.css';
0 ignored issues
show
Coding Style introduced by
$PREVIOUS_FONTAWESOME_LINK does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
17
    protected static $PREVIOUS_FONTAWESOME_LINK_ATTRIBUTES = [
0 ignored issues
show
Coding Style introduced by
$PREVIOUS_FONTAWESOME_LINK_ATTRIBUTES does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
18
        [
19
            'attribute' => 'integrity',
20
            'value'     => 'sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/'
21
        ],
22
        [
23
            'attribute' => 'crossorigin',
24
            'value'     => 'anonymous'
25
        ]
26
    ];
27
28
    protected static $NEW_FONTAWESOME_LINK = 'https://use.fontawesome.com/releases/v5.7.0/css/all.css';
0 ignored issues
show
Coding Style introduced by
$NEW_FONTAWESOME_LINK does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
29
    protected static $NEW_FONTAWESOME_LINK_ATTRIBUTES = [
0 ignored issues
show
Coding Style introduced by
$NEW_FONTAWESOME_LINK_ATTRIBUTES does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
30
        [
31
            'attribute' => 'integrity',
32
            'value'     => 'sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ'
33
        ],
34
        [
35
            'attribute' => 'crossorigin',
36
            'value'     => 'anonymous'
37
        ]
38
    ];
39
}
40