Passed
Push — master ( b42bc9...12939e )
by Sebastian
03:11
created
src/RGBAColor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -339,7 +339,7 @@
 block discarded – undo
339 339
      */
340 340
     private function requireValidComponent(string $name) : void
341 341
     {
342
-        if(in_array($name, self::COLOR_COMPONENTS))
342
+        if (in_array($name, self::COLOR_COMPONENTS))
343 343
         {
344 344
             return;
345 345
         }
Please login to merge, or discard this patch.
src/AttributeCollection/AttributesRenderer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@  discard block
 block discarded – undo
24 24
 
25 25
         $attributes = $this->compileAttributes();
26 26
 
27
-        if(empty($attributes))
27
+        if (empty($attributes))
28 28
         {
29 29
             return '';
30 30
         }
31 31
 
32
-        foreach($attributes as $name => $value)
32
+        foreach ($attributes as $name => $value)
33 33
         {
34
-            if($value === '')
34
+            if ($value === '')
35 35
             {
36 36
                 continue;
37 37
             }
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $attributes = $this->collection->getRawAttributes();
55 55
 
56
-        if($this->collection->hasClasses())
56
+        if ($this->collection->hasClasses())
57 57
         {
58 58
             $attributes['class'] = $this->collection->classesToString();
59 59
         }
60 60
 
61
-        if($this->collection->hasStyles())
61
+        if ($this->collection->hasStyles())
62 62
         {
63 63
             $attributes['style'] = $this->collection->getStyles()
64 64
                 ->configureForInline()
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     private function renderAttribute(string $name, string $value) : string
72 72
     {
73
-        if($name === $value)
73
+        if ($name === $value)
74 74
         {
75 75
             return $name;
76 76
         }
Please login to merge, or discard this patch.
src/StyleCollection/StylesRenderer.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function render() : string
28 28
     {
29
-        if($this->collection->hasStyles())
29
+        if ($this->collection->hasStyles())
30 30
         {
31 31
             return implode(
32 32
                 $this->resolveSeparator(),
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     private function resolveSuffix() : string
41 41
     {
42
-        if($this->options->isTrailingSemicolonEnabled())
42
+        if ($this->options->isTrailingSemicolonEnabled())
43 43
         {
44 44
             return ';';
45 45
         }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     private function resolveSeparator() : string
51 51
     {
52
-        if($this->options->isNewlineEnabled())
52
+        if ($this->options->isNewlineEnabled())
53 53
         {
54 54
             return ';'.PHP_EOL;
55 55
         }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     {
62 62
         $indentLevel = $this->options->getIndentLevel();
63 63
 
64
-        if($indentLevel > 0)
64
+        if ($indentLevel > 0)
65 65
         {
66 66
             return str_repeat($this->options->getIndentChar(), $indentLevel);
67 67
         }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     private function resolveValueSpace() : string
73 73
     {
74
-        if($this->options->isSpaceBeforeValueEnabled())
74
+        if ($this->options->isSpaceBeforeValueEnabled())
75 75
         {
76 76
             return ' ';
77 77
         }
@@ -86,12 +86,12 @@  discard block
 block discarded – undo
86 86
         $indent = $this->resolveIndent();
87 87
         $valueSpace = $this->resolveValueSpace();
88 88
 
89
-        if($this->options->isSortingEnabled())
89
+        if ($this->options->isSortingEnabled())
90 90
         {
91 91
             ksort($styles);
92 92
         }
93 93
 
94
-        foreach($styles as $name => $value)
94
+        foreach ($styles as $name => $value)
95 95
         {
96 96
             $lines[] = sprintf(
97 97
                 '%s%s:%s%s',
Please login to merge, or discard this patch.
src/StyleCollection/StyleOptions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
31 31
         );
32 32
     }
33 33
 
34
-    public function enableSorting(bool $enabled=true) : StyleOptions
34
+    public function enableSorting(bool $enabled = true) : StyleOptions
35 35
     {
36 36
         return $this->setOption(self::OPTION_SORTING, $enabled);
37 37
     }
38 38
 
39
-    public function enableSpaceBeforeValue(bool $enabled=true) : StyleOptions
39
+    public function enableSpaceBeforeValue(bool $enabled = true) : StyleOptions
40 40
     {
41 41
         return $this->setOption(self::OPTION_SPACE_BEFORE_VALUE, $enabled);
42 42
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param bool $enabled
46 46
      * @return $this
47 47
      */
48
-    public function enableNewline(bool $enabled=true) : StyleOptions
48
+    public function enableNewline(bool $enabled = true) : StyleOptions
49 49
     {
50 50
         return $this->setOption(self::OPTION_NEWLINES, $enabled);
51 51
     }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         return $this->getStringOption(self::OPTION_INDENT_CHAR);
119 119
     }
120 120
 
121
-    public function enableTrailingSemicolon(bool $enabled=true) : StyleOptions
121
+    public function enableTrailingSemicolon(bool $enabled = true) : StyleOptions
122 122
     {
123 123
         return $this->setOption(self::OPTION_TRAILING_SEMICOLON, $enabled);
124 124
     }
Please login to merge, or discard this patch.
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.