@@ -42,7 +42,7 @@ |
||
42 | 42 | if (empty($punctuationSign) || preg_match("/^\s+$/", $punctuationSign)) { |
43 | 43 | return $subject; |
44 | 44 | } |
45 | - $pattern = '/' . preg_quote(trim($punctuationSign)) . '{2,}/'; |
|
45 | + $pattern = '/'.preg_quote(trim($punctuationSign)).'{2,}/'; |
|
46 | 46 | if (preg_match($pattern, $subject)) { |
47 | 47 | return preg_replace($pattern, $punctuationSign, $subject); |
48 | 48 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | if (!in_array($this->display, self::$allowedValues)) { |
58 | 58 | return $text; |
59 | 59 | } |
60 | - $divStyle = "class=\"csl-" . $this->display . "\""; |
|
60 | + $divStyle = "class=\"csl-".$this->display."\""; |
|
61 | 61 | return "<div $divStyle>$text</div>"; |
62 | 62 | } |
63 | 63 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | */ |
65 | 65 | public function __toString() |
66 | 66 | { |
67 | - $directives = "\t" . implode("\n\t", $this->directives->toArray()); |
|
68 | - return $this->selectorType . $this->selector . " {\n" . $directives . "\n}\n"; |
|
67 | + $directives = "\t".implode("\n\t", $this->directives->toArray()); |
|
68 | + return $this->selectorType.$this->selector." {\n".$directives."\n}\n"; |
|
69 | 69 | } |
70 | 70 | } |
@@ -118,7 +118,7 @@ |
||
118 | 118 | //filter by form |
119 | 119 | if ($type !== "options") { |
120 | 120 | /** @var Term $value */ |
121 | - $array = array_filter($array, function ($term) use ($form) { |
|
121 | + $array = array_filter($array, function($term) use ($form) { |
|
122 | 122 | return $term->form === $form; |
123 | 123 | }); |
124 | 124 | } |
@@ -33,10 +33,10 @@ |
||
33 | 33 | { |
34 | 34 | $className = ""; |
35 | 35 | $parts = explode("-", $name); |
36 | - array_walk($parts, function ($part) use (&$className) { |
|
36 | + array_walk($parts, function($part) use (&$className) { |
|
37 | 37 | $className .= ucfirst($part); |
38 | 38 | }); |
39 | - $className = self::NAMESPACE_CONSTRAINTS . $className; |
|
39 | + $className = self::NAMESPACE_CONSTRAINTS.$className; |
|
40 | 40 | |
41 | 41 | if (!class_exists($className)) { |
42 | 42 | throw new ClassNotFoundException($className); |