Passed
Push — master ( 689ec5...45f08c )
by Sebastian
05:26
created
src/StyleCollection/StyleBuilder/Flavors/Display.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,27 +24,27 @@
 block discarded – undo
24 24
      * @param bool $important
25 25
      * @return StyleBuilder
26 26
      */
27
-    public function custom(string $value, bool $important=false) : StyleBuilder
27
+    public function custom(string $value, bool $important = false) : StyleBuilder
28 28
     {
29 29
         return $this->setStyle($value, $important);
30 30
     }
31 31
 
32
-    public function block(bool $important=false) : StyleBuilder
32
+    public function block(bool $important = false) : StyleBuilder
33 33
     {
34 34
         return $this->setStyle('block', $important);
35 35
     }
36 36
 
37
-    public function none(bool $important=false) : StyleBuilder
37
+    public function none(bool $important = false) : StyleBuilder
38 38
     {
39 39
         return $this->setStyle('none', $important);
40 40
     }
41 41
 
42
-    public function inline(bool $important=false) : StyleBuilder
42
+    public function inline(bool $important = false) : StyleBuilder
43 43
     {
44 44
         return $this->setStyle('inline', $important);
45 45
     }
46 46
 
47
-    public function inlineBlock(bool $important=false) : StyleBuilder
47
+    public function inlineBlock(bool $important = false) : StyleBuilder
48 48
     {
49 49
         return $this->setStyle('inline-block', $important);
50 50
     }
Please login to merge, or discard this patch.
src/StyleCollection/StyleBuilder/Flavors/Width.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         return 'width';
15 15
     }
16 16
 
17
-    public function auto(bool $important=false) : StyleBuilder
17
+    public function auto(bool $important = false) : StyleBuilder
18 18
     {
19 19
         return $this->setStyle('auto', $important);
20 20
     }
Please login to merge, or discard this patch.
src/StyleCollection/StyleBuilder/Flavors/Font/FontWeight.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param bool $important
37 37
      * @return StyleBuilder
38 38
      */
39
-    public function thin(bool $important=false) : StyleBuilder
39
+    public function thin(bool $important = false) : StyleBuilder
40 40
     {
41 41
         return $this->customNumber(self::WEIGHT_THIN, $important);
42 42
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * @param bool $important
47 47
      * @return StyleBuilder
48 48
      */
49
-    public function extraLight(bool $important=false) : StyleBuilder
49
+    public function extraLight(bool $important = false) : StyleBuilder
50 50
     {
51 51
         return $this->customNumber(self::WEIGHT_EXTRA_LIGHT, $important);
52 52
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param bool $important
57 57
      * @return StyleBuilder
58 58
      */
59
-    public function light(bool $important=false) : StyleBuilder
59
+    public function light(bool $important = false) : StyleBuilder
60 60
     {
61 61
         return $this->customNumber(self::WEIGHT_LIGHT, $important);
62 62
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @param bool $important
67 67
      * @return StyleBuilder
68 68
      */
69
-    public function normal(bool $important=false) : StyleBuilder
69
+    public function normal(bool $important = false) : StyleBuilder
70 70
     {
71 71
         return $this->customNumber(self::WEIGHT_NORMAL, $important);
72 72
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @param bool $important
77 77
      * @return StyleBuilder
78 78
      */
79
-    public function medium(bool $important=false) : StyleBuilder
79
+    public function medium(bool $important = false) : StyleBuilder
80 80
     {
81 81
         return $this->customNumber(self::WEIGHT_MEDIUM, $important);
82 82
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @param bool $important
87 87
      * @return StyleBuilder
88 88
      */
89
-    public function semiBold(bool $important=false) : StyleBuilder
89
+    public function semiBold(bool $important = false) : StyleBuilder
90 90
     {
91 91
         return $this->customNumber(self::WEIGHT_SEMI_BOLD, $important);
92 92
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @param bool $important
97 97
      * @return StyleBuilder
98 98
      */
99
-    public function bold(bool $important=false) : StyleBuilder
99
+    public function bold(bool $important = false) : StyleBuilder
100 100
     {
101 101
         return $this->customNumber(self::WEIGHT_BOLD, $important);
102 102
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      * @param bool $important
107 107
      * @return StyleBuilder
108 108
      */
109
-    public function extraBold(bool $important=false) : StyleBuilder
109
+    public function extraBold(bool $important = false) : StyleBuilder
110 110
     {
111 111
         return $this->customNumber(self::WEIGHT_EXTRA_BOLD, $important);
112 112
     }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * @param bool $important
117 117
      * @return StyleBuilder
118 118
      */
119
-    public function black(bool $important=false) : StyleBuilder
119
+    public function black(bool $important = false) : StyleBuilder
120 120
     {
121 121
         return $this->customNumber(self::WEIGHT_BLACK, $important);
122 122
     }
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      * @param bool $important
131 131
      * @return StyleBuilder
132 132
      */
133
-    public function namedBold(bool $important=false) : StyleBuilder
133
+    public function namedBold(bool $important = false) : StyleBuilder
134 134
     {
135 135
         return $this->setStyle('bold', $important);
136 136
     }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      * @param bool $important
141 141
      * @return StyleBuilder
142 142
      */
143
-    public function namedNormal(bool $important=false) : StyleBuilder
143
+    public function namedNormal(bool $important = false) : StyleBuilder
144 144
     {
145 145
         return $this->setStyle('normal', $important);
146 146
     }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @param bool $important
151 151
      * @return StyleBuilder
152 152
      */
153
-    public function relativeLighter(bool $important=false) : StyleBuilder
153
+    public function relativeLighter(bool $important = false) : StyleBuilder
154 154
     {
155 155
         return $this->setStyle('lighter', $important);
156 156
     }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @param bool $important
161 161
      * @return StyleBuilder
162 162
      */
163
-    public function relativeBolder(bool $important=false) : StyleBuilder
163
+    public function relativeBolder(bool $important = false) : StyleBuilder
164 164
     {
165 165
         return $this->setStyle('bolder', $important);
166 166
     }
Please login to merge, or discard this patch.
src/StyleCollection/StyleBuilder/Flavors/Font/FontFallback.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
         $fonts[] = $fallback;
44 44
         $keep = array();
45 45
 
46
-        foreach($fonts as $font)
46
+        foreach ($fonts as $font)
47 47
         {
48
-            if(strpos($font, ' ') !== false)
48
+            if (strpos($font, ' ') !== false)
49 49
             {
50 50
                 $font = "'".$font."'";
51 51
             }
@@ -64,27 +64,27 @@  discard block
 block discarded – undo
64 64
     public const FALLBACK_CURSIVE = 'cursive';
65 65
     public const FALLBACK_FANTASY = 'fantasy';
66 66
 
67
-    public function serif(bool $important=false) : StyleBuilder
67
+    public function serif(bool $important = false) : StyleBuilder
68 68
     {
69 69
         return $this->compileStyle(self::FALLBACK_SERIF, $important);
70 70
     }
71 71
 
72
-    public function sansSerif(bool $important=false) : StyleBuilder
72
+    public function sansSerif(bool $important = false) : StyleBuilder
73 73
     {
74 74
         return $this->compileStyle(self::FALLBACK_SANS_SERIF, $important);
75 75
     }
76 76
 
77
-    public function cursive(bool $important=false) : StyleBuilder
77
+    public function cursive(bool $important = false) : StyleBuilder
78 78
     {
79 79
         return $this->compileStyle(self::FALLBACK_CURSIVE, $important);
80 80
     }
81 81
 
82
-    public function monospace(bool $important=false) : StyleBuilder
82
+    public function monospace(bool $important = false) : StyleBuilder
83 83
     {
84 84
         return $this->compileStyle(self::FALLBACK_MONOSPACE, $important);
85 85
     }
86 86
 
87
-    public function fantasy(bool $important=false) : StyleBuilder
87
+    public function fantasy(bool $important = false) : StyleBuilder
88 88
     {
89 89
         return $this->compileStyle(self::FALLBACK_FANTASY, $important);
90 90
     }
Please login to merge, or discard this patch.
src/StyleCollection/StyleBuilder/Flavors/Font/FontFamily.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     private function addFont(string $name) : FontFamily
34 34
     {
35
-        if(!in_array($name, $this->fonts))
35
+        if (!in_array($name, $this->fonts))
36 36
         {
37 37
             $this->fonts[] = $name;
38 38
         }
Please login to merge, or discard this patch.
src/StyleCollection/StyleBuilder/Flavors/Font/FontStyle.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         return 'font-style';
19 19
     }
20 20
 
21
-    public function italic(bool $important=false) : StyleBuilder
21
+    public function italic(bool $important = false) : StyleBuilder
22 22
     {
23 23
         return $this->setStyle(self::STYLE_ITALIC, $important);
24 24
     }
@@ -31,11 +31,11 @@  discard block
 block discarded – undo
31 31
      * @return StyleBuilder
32 32
      * @link https://developer.mozilla.org/fr/docs/Web/CSS/font-style
33 33
      */
34
-    public function oblique(int $degrees=self::OBLIQUE_DEFAULT_DEGREES, bool $important=false) : StyleBuilder
34
+    public function oblique(int $degrees = self::OBLIQUE_DEFAULT_DEGREES, bool $important = false) : StyleBuilder
35 35
     {
36 36
         $value = self::STYLE_OBLIQUE;
37 37
 
38
-        if($degrees !== self::OBLIQUE_DEFAULT_DEGREES)
38
+        if ($degrees !== self::OBLIQUE_DEFAULT_DEGREES)
39 39
         {
40 40
             $value .= sprintf(
41 41
                 ' %sdeg',
Please login to merge, or discard this patch.
src/StyleCollection/StyleBuilder/Flavors/Font/FontSize.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,37 +14,37 @@
 block discarded – undo
14 14
         return 'font-size';
15 15
     }
16 16
 
17
-    public function relativeLarger(bool $important=false) : StyleBuilder
17
+    public function relativeLarger(bool $important = false) : StyleBuilder
18 18
     {
19 19
         return $this->setStyle('larger', $important);
20 20
     }
21 21
 
22
-    public function relativeSmaller(bool $important=false) : StyleBuilder
22
+    public function relativeSmaller(bool $important = false) : StyleBuilder
23 23
     {
24 24
         return $this->setStyle('smaller', $important);
25 25
     }
26 26
 
27
-    public function custom(string $value, bool $important=false) : StyleBuilder
27
+    public function custom(string $value, bool $important = false) : StyleBuilder
28 28
     {
29 29
         return $this->setStyle($value, $important);
30 30
     }
31 31
 
32
-    public function percent(float $percent, bool $important=false) : StyleBuilder
32
+    public function percent(float $percent, bool $important = false) : StyleBuilder
33 33
     {
34 34
         return $this->setStylePercent($percent, $important);
35 35
     }
36 36
 
37
-    public function px(int $pixels, bool $important=false) : StyleBuilder
37
+    public function px(int $pixels, bool $important = false) : StyleBuilder
38 38
     {
39 39
         return $this->setStylePX($pixels, $important);
40 40
     }
41 41
 
42
-    public function em(float $em, bool $important=false) : StyleBuilder
42
+    public function em(float $em, bool $important = false) : StyleBuilder
43 43
     {
44 44
         return $this->setStyleEM($em, $important);
45 45
     }
46 46
 
47
-    public function rem(float $rem, bool $important=false) : StyleBuilder
47
+    public function rem(float $rem, bool $important = false) : StyleBuilder
48 48
     {
49 49
         return $this->setStyleREM($rem, $important);
50 50
     }
Please login to merge, or discard this patch.
src/StyleCollection/StyleBuilder/Flavors/Font.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,11 +33,11 @@
 block discarded – undo
33 33
 
34 34
     public function weight() : FontWeight
35 35
     {
36
-        return new FontWeight($this->styles,$this->collection);
36
+        return new FontWeight($this->styles, $this->collection);
37 37
     }
38 38
 
39 39
     public function size() : FontSize
40 40
     {
41
-        return new FontSize($this->styles,$this->collection);
41
+        return new FontSize($this->styles, $this->collection);
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
src/StyleCollection/StyleBuilder/ColorContainer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,17 +11,17 @@  discard block
 block discarded – undo
11 11
 
12 12
 abstract class ColorContainer extends StyleContainer
13 13
 {
14
-    public function rgbaValues(int $red, int $green, int $blue, float $opacity=1) : StyleBuilder
14
+    public function rgbaValues(int $red, int $green, int $blue, float $opacity = 1) : StyleBuilder
15 15
     {
16 16
         return $this->rgba(ColorFactory::createCSS($red, $green, $blue, $opacity));
17 17
     }
18 18
 
19
-    public function rgba(RGBAColor $color, bool $important=false) : StyleBuilder
19
+    public function rgba(RGBAColor $color, bool $important = false) : StyleBuilder
20 20
     {
21 21
         return $this->setStyle($color->toCSS(), $important);
22 22
     }
23 23
 
24
-    public function hex(RGBAColor $color, bool $important=false) : StyleBuilder
24
+    public function hex(RGBAColor $color, bool $important = false) : StyleBuilder
25 25
     {
26 26
         return $this->setStyle('#'.$color->toHEX(), $important);
27 27
     }
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @return StyleBuilder
35 35
      * @throws ColorException
36 36
      */
37
-    public function hexString(string $hex, bool $important=false) : StyleBuilder
37
+    public function hexString(string $hex, bool $important = false) : StyleBuilder
38 38
     {
39 39
         return $this->hex(ColorFactory::createFromHEX($hex), $important);
40 40
     }
Please login to merge, or discard this patch.