Passed
Push — master ( 3a8597...a95f40 )
by Domenico
02:22
created
src/Contracts/FeatureSetInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,5 +15,5 @@
 block discarded – undo
15 15
      * modified in cascade to the next function in the queue.
16 16
      * @throws \Exception
17 17
      */
18
-    public function filter( $method, $filterable );
18
+    public function filter($method, $filterable);
19 19
 }
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
src/Filters/SpecialEntitiesToPlaceholdersForView.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
 
15 15
 class SpecialEntitiesToPlaceholdersForView extends AbstractHandler {
16 16
 
17
-    public function transform( $segment ) {
17
+    public function transform($segment) {
18 18
 
19 19
         $segment = str_ireplace(
20 20
                 [
Please login to merge, or discard this patch.
src/Filters/LtGtEncode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@
 block discarded – undo
6 6
 
7 7
 class LtGtEncode extends AbstractHandler {
8 8
 
9
-    public function transform( $segment ) {
9
+    public function transform($segment) {
10 10
         // restore < e >
11
-        $segment = str_replace( "<", "&lt;", $segment );
12
-        $segment = str_replace( ">", "&gt;", $segment );
11
+        $segment = str_replace("<", "&lt;", $segment);
12
+        $segment = str_replace(">", "&gt;", $segment);
13 13
 
14 14
         return $segment;
15 15
     }
Please login to merge, or discard this patch.
src/Filters/EmojiToEntity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 
15 15
 class EmojiToEntity extends AbstractHandler {
16 16
 
17
-    public function transform( $segment ) {
18
-        return Emoji::toEntity( $segment );
17
+    public function transform($segment) {
18
+        return Emoji::toEntity($segment);
19 19
     }
20 20
 
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
src/Filters/FromLayer2ToRawXML.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@  discard block
 block discarded – undo
23 23
 
24 24
     private $brokenHTML = false;
25 25
 
26
-    public function transform( $segment ) {
26
+    public function transform($segment) {
27 27
 
28 28
         // Filters BUG, segmentation on HTML, we should never get this at this level ( Should be fixed, anyway we try to cover )
29 29
 //        $segment = $this->placeHoldBrokenHTML( $segment );
30 30
 
31 31
         //normal control characters must be converted to entities
32 32
         $segment = str_replace(
33
-                [ "\r\n", "\r", "\n", "\t", "", ],
33
+                ["\r\n", "\r", "\n", "\t", "", ],
34 34
                 [
35 35
                         '&#13;&#10;',
36 36
                         '&#13;',
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                 ], $segment );
41 41
 
42 42
         // now convert the real &nbsp;
43
-        $segment = str_replace( ConstantEnum::nbspPlaceholder, CatUtils::unicode2chr( 0Xa0 ), $segment );
43
+        $segment = str_replace(ConstantEnum::nbspPlaceholder, CatUtils::unicode2chr(0Xa0), $segment);
44 44
 
45 45
         // Filters BUG, segmentation on HTML, we should never get this at this level ( Should be fixed, anyway we try to cover )
46 46
 //        $segment = $this->resetBrokenHTML( $segment );
Please login to merge, or discard this patch.
src/Filters/EncodeControlCharsInXliff.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
     /**
10 10
      * @inheritDoc
11 11
      */
12
-    public function transform( $segment ) {
12
+    public function transform($segment) {
13 13
         return str_replace(
14
-                [ "\r\n", "\r", "\n", "\t" ],
14
+                ["\r\n", "\r", "\n", "\t"],
15 15
                 [
16 16
                         '&#13;&#10;',
17 17
                         '&#13;',
Please login to merge, or discard this patch.
src/Filters/EntityToEmoji.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 
15 15
 class EntityToEmoji extends AbstractHandler {
16 16
 
17
-    public function transform( $segment ) {
18
-        return Emoji::toEmoji( $segment );
17
+    public function transform($segment) {
18
+        return Emoji::toEmoji($segment);
19 19
     }
20 20
 
21 21
 
Please login to merge, or discard this patch.
src/Filters/RestoreXliffTagsContent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@
 block discarded – undo
15 15
 
16 16
 class RestoreXliffTagsContent extends AbstractHandler {
17 17
 
18
-    public function transform( $segment ) {
18
+    public function transform($segment) {
19 19
 
20
-        $segment = preg_replace_callback( '/' . ConstantEnum::LTPLACEHOLDER . '(.*?)' . ConstantEnum::GTPLACEHOLDER . '/u',
21
-                function ( $matches ) {
22
-                    $_match = base64_decode( $matches[ 1 ] );
20
+        $segment = preg_replace_callback('/'.ConstantEnum::LTPLACEHOLDER.'(.*?)'.ConstantEnum::GTPLACEHOLDER.'/u',
21
+                function($matches) {
22
+                    $_match = base64_decode($matches[1]);
23 23
 
24
-                    return ConstantEnum::LTPLACEHOLDER . $_match . ConstantEnum::GTPLACEHOLDER;
24
+                    return ConstantEnum::LTPLACEHOLDER.$_match.ConstantEnum::GTPLACEHOLDER;
25 25
                 },
26 26
                 $segment
27 27
         ); //base64 decode of the tag content to avoid unwanted manipulation
Please login to merge, or discard this patch.
src/Filters/CtrlCharsPlaceHoldToAscii.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
 
8 8
 class CtrlCharsPlaceHoldToAscii extends AbstractHandler {
9 9
 
10
-    public function transform( $segment ) {
10
+    public function transform($segment) {
11 11
 
12 12
         //Replace br placeholders
13
-        $segment = str_replace( ConstantEnum::crlfPlaceholder, "\r\n", $segment );
14
-        $segment = str_replace( ConstantEnum::lfPlaceholder, "\n", $segment );
15
-        $segment = str_replace( ConstantEnum::crPlaceholder, "\r", $segment );
16
-        $segment = str_replace( ConstantEnum::tabPlaceholder, "\t", $segment );
13
+        $segment = str_replace(ConstantEnum::crlfPlaceholder, "\r\n", $segment);
14
+        $segment = str_replace(ConstantEnum::lfPlaceholder, "\n", $segment);
15
+        $segment = str_replace(ConstantEnum::crPlaceholder, "\r", $segment);
16
+        $segment = str_replace(ConstantEnum::tabPlaceholder, "\t", $segment);
17 17
 
18 18
         return $segment;
19 19
 
Please login to merge, or discard this patch.