Passed
Push — master ( cbc14c...f7d615 )
by Mauro
08:26 queued 06:07
created
src/MyMemoryFilter.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -52,43 +52,43 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @return mixed
54 54
      */
55
-    public function fromLayer0ToLayer1( $segment, $cid = null ) {
56
-        $channel = new Pipeline( $this->source, $this->target );
57
-        $channel->addLast( new StandardPHToMateCatCustomPH() );
58
-        $channel->addLast( new StandardXEquivTextToMateCatCustomPH() );
59
-        $channel->addLast( new PlaceHoldXliffTags() );
60
-        $channel->addLast( new LtGtDecode() );
61
-        $channel->addLast( new HtmlToPh() );
62
-        $channel->addLast( new Variables() );
63
-        $channel->addLast( new TwigToPh() );
55
+    public function fromLayer0ToLayer1($segment, $cid = null) {
56
+        $channel = new Pipeline($this->source, $this->target);
57
+        $channel->addLast(new StandardPHToMateCatCustomPH());
58
+        $channel->addLast(new StandardXEquivTextToMateCatCustomPH());
59
+        $channel->addLast(new PlaceHoldXliffTags());
60
+        $channel->addLast(new LtGtDecode());
61
+        $channel->addLast(new HtmlToPh());
62
+        $channel->addLast(new Variables());
63
+        $channel->addLast(new TwigToPh());
64 64
 
65
-        if ( $cid == 'airbnb' ) {
66
-            $channel->addLast( new SmartCounts() );
65
+        if ($cid == 'airbnb') {
66
+            $channel->addLast(new SmartCounts());
67 67
         }
68 68
 
69
-        $channel->addLast( new RubyOnRailsI18n() );
70
-        $channel->addLast( new Snails() );
71
-        $channel->addLast( new DoubleSquareBrackets() );
72
-        $channel->addLast( new DollarCurlyBrackets() );
69
+        $channel->addLast(new RubyOnRailsI18n());
70
+        $channel->addLast(new Snails());
71
+        $channel->addLast(new DoubleSquareBrackets());
72
+        $channel->addLast(new DollarCurlyBrackets());
73 73
 
74
-        if ( $cid == 'roblox' ) {
75
-            $channel->addLast( new SingleCurlyBracketsToPh() );
74
+        if ($cid == 'roblox') {
75
+            $channel->addLast(new SingleCurlyBracketsToPh());
76 76
         }
77 77
 
78
-        if ( $cid == 'familysearch' ) {
79
-            $channel->remove( new TwigToPh() );
80
-            $channel->addLast( new SingleCurlyBracketsToPh() );
78
+        if ($cid == 'familysearch') {
79
+            $channel->remove(new TwigToPh());
80
+            $channel->addLast(new SingleCurlyBracketsToPh());
81 81
         }
82 82
 
83
-        $channel->addLast( new PercentSnail() );
84
-        $channel->addLast( new PercentNumberSnail() );
85
-        $channel->addLast( new Percentages() );
86
-        $channel->addLast( new SquareSprintf() );
87
-        $channel->addLast( new SprintfToPH() );
88
-        $channel->addLast( new RestoreXliffTagsContent() );
89
-        $channel->addLast( new RestorePlaceHoldersToXLIFFLtGt() );
83
+        $channel->addLast(new PercentSnail());
84
+        $channel->addLast(new PercentNumberSnail());
85
+        $channel->addLast(new Percentages());
86
+        $channel->addLast(new SquareSprintf());
87
+        $channel->addLast(new SprintfToPH());
88
+        $channel->addLast(new RestoreXliffTagsContent());
89
+        $channel->addLast(new RestorePlaceHoldersToXLIFFLtGt());
90 90
 
91
-        return $channel->transform( $segment );
91
+        return $channel->transform($segment);
92 92
 
93 93
     }
94 94
 
@@ -100,19 +100,19 @@  discard block
 block discarded – undo
100 100
      * @return mixed
101 101
      * @throws \Exception
102 102
      */
103
-    public function fromLayer1ToLayer0( $segment ) {
104
-        $channel = new Pipeline( $this->source, $this->target, $this->dataRefMap );
105
-        $channel->addLast( new MateCatCustomPHToOriginalValue() );
106
-        $channel->addLast( new PlaceHoldXliffTags() );
107
-        $channel->addLast( new EncodeToRawXML() );
108
-        $channel->addLast( new LtGtEncode() );
109
-        $channel->addLast( new RestoreXliffTagsContent() );
110
-        $channel->addLast( new RestorePlaceHoldersToXLIFFLtGt() );
111
-        $channel->addLast( new SplitPlaceholder() );
103
+    public function fromLayer1ToLayer0($segment) {
104
+        $channel = new Pipeline($this->source, $this->target, $this->dataRefMap);
105
+        $channel->addLast(new MateCatCustomPHToOriginalValue());
106
+        $channel->addLast(new PlaceHoldXliffTags());
107
+        $channel->addLast(new EncodeToRawXML());
108
+        $channel->addLast(new LtGtEncode());
109
+        $channel->addLast(new RestoreXliffTagsContent());
110
+        $channel->addLast(new RestorePlaceHoldersToXLIFFLtGt());
111
+        $channel->addLast(new SplitPlaceholder());
112 112
 
113 113
         /** @var $channel Pipeline */
114
-        $channel = $this->featureSet->filter( 'fromLayer1ToLayer0', $channel );
114
+        $channel = $this->featureSet->filter('fromLayer1ToLayer0', $channel);
115 115
 
116
-        return $channel->transform( $segment );
116
+        return $channel->transform($segment);
117 117
     }
118 118
 }
119 119
\ No newline at end of file
Please login to merge, or discard this patch.