@@ -52,38 +52,38 @@ discard block |
||
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 | - $channel->addLast( new PercentSnail() ); |
|
79 | - $channel->addLast( new PercentNumberSnail() ); |
|
80 | - $channel->addLast( new Percentages() ); |
|
81 | - $channel->addLast( new SquareSprintf() ); |
|
82 | - $channel->addLast( new SprintfToPH() ); |
|
83 | - $channel->addLast( new RestoreXliffTagsContent() ); |
|
84 | - $channel->addLast( new RestorePlaceHoldersToXLIFFLtGt() ); |
|
78 | + $channel->addLast(new PercentSnail()); |
|
79 | + $channel->addLast(new PercentNumberSnail()); |
|
80 | + $channel->addLast(new Percentages()); |
|
81 | + $channel->addLast(new SquareSprintf()); |
|
82 | + $channel->addLast(new SprintfToPH()); |
|
83 | + $channel->addLast(new RestoreXliffTagsContent()); |
|
84 | + $channel->addLast(new RestorePlaceHoldersToXLIFFLtGt()); |
|
85 | 85 | |
86 | - return $channel->transform( $segment ); |
|
86 | + return $channel->transform($segment); |
|
87 | 87 | |
88 | 88 | } |
89 | 89 | |
@@ -95,19 +95,19 @@ discard block |
||
95 | 95 | * @return mixed |
96 | 96 | * @throws \Exception |
97 | 97 | */ |
98 | - public function fromLayer1ToLayer0( $segment ) { |
|
99 | - $channel = new Pipeline( $this->source, $this->target, $this->dataRefMap ); |
|
100 | - $channel->addLast( new MateCatCustomPHToOriginalValue() ); |
|
101 | - $channel->addLast( new PlaceHoldXliffTags() ); |
|
102 | - $channel->addLast( new EncodeToRawXML() ); |
|
103 | - $channel->addLast( new LtGtEncode() ); |
|
104 | - $channel->addLast( new RestoreXliffTagsContent() ); |
|
105 | - $channel->addLast( new RestorePlaceHoldersToXLIFFLtGt() ); |
|
106 | - $channel->addLast( new SplitPlaceholder() ); |
|
98 | + public function fromLayer1ToLayer0($segment) { |
|
99 | + $channel = new Pipeline($this->source, $this->target, $this->dataRefMap); |
|
100 | + $channel->addLast(new MateCatCustomPHToOriginalValue()); |
|
101 | + $channel->addLast(new PlaceHoldXliffTags()); |
|
102 | + $channel->addLast(new EncodeToRawXML()); |
|
103 | + $channel->addLast(new LtGtEncode()); |
|
104 | + $channel->addLast(new RestoreXliffTagsContent()); |
|
105 | + $channel->addLast(new RestorePlaceHoldersToXLIFFLtGt()); |
|
106 | + $channel->addLast(new SplitPlaceholder()); |
|
107 | 107 | |
108 | 108 | /** @var $channel Pipeline */ |
109 | - $channel = $this->featureSet->filter( 'fromLayer1ToLayer0', $channel ); |
|
109 | + $channel = $this->featureSet->filter('fromLayer1ToLayer0', $channel); |
|
110 | 110 | |
111 | - return $channel->transform( $segment ); |
|
111 | + return $channel->transform($segment); |
|
112 | 112 | } |
113 | 113 | } |
114 | 114 | \ No newline at end of file |