Test Failed
Push — master ( 66758c...c96db4 )
by Владислав
02:06
created
src/core/DeCaptchaWikiMain.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
     protected function viewMenu($master = '')
87 87
     {
88
-        $str = "+ [{$this->getText(['slug', 'menu', 'another'])}](../{$master}docs/".$this->getFileName($this->lang == 'ru' ? 'en' : 'ru').')'.PHP_EOL;
88
+        $str = "+ [{$this->getText(['slug', 'menu', 'another'])}](../{$master}docs/" . $this->getFileName($this->lang == 'ru' ? 'en' : 'ru') . ')' . PHP_EOL;
89 89
         foreach ([
90 90
                      ['slug', 'menu', 'desc'],
91 91
                      ['slug', 'menu', 'features'],
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                      ['install'],
94 94
                      ['example'],
95 95
                  ] as $anchor) {
96
-            $str .= "+ [{$this->getText($anchor)}](#".implode('-', explode(' ', ($this->lang === 'en' ? mb_strtolower($this->getText($anchor)) : $this->getText($anchor)))).')'.PHP_EOL;
96
+            $str .= "+ [{$this->getText($anchor)}](#" . implode('-', explode(' ', ($this->lang === 'en' ? mb_strtolower($this->getText($anchor)) : $this->getText($anchor)))) . ')' . PHP_EOL;
97 97
         }
98 98
 
99 99
         return $str;
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             }
110 110
             $tt[$class->getWiki($this->lang)->getFileName()] = true;
111 111
             $fromServiceObjectWiki = $class->getWiki($this->lang);
112
-            $str .= "+ [{$fromServiceObjectWiki->getText(['service', 'name'])}](../{$master}docs/{$fromServiceObjectWiki->getFileName()})".PHP_EOL;
112
+            $str .= "+ [{$fromServiceObjectWiki->getText(['service', 'name'])}](../{$master}docs/{$fromServiceObjectWiki->getFileName()})" . PHP_EOL;
113 113
         }
114 114
 
115 115
         return $str;
@@ -117,31 +117,31 @@  discard block
 block discarded – undo
117 117
 
118 118
     public function view($master = '')
119 119
     {
120
-        $str = $this->viewHeader().PHP_EOL;
120
+        $str = $this->viewHeader() . PHP_EOL;
121 121
 
122
-        $str .= "{$this->getText(['slug', 'menu'])}".PHP_EOL;
123
-        $str .= '--------------'.PHP_EOL;
124
-        $str .= $this->viewMenu($master).PHP_EOL.PHP_EOL;
122
+        $str .= "{$this->getText(['slug', 'menu'])}" . PHP_EOL;
123
+        $str .= '--------------' . PHP_EOL;
124
+        $str .= $this->viewMenu($master) . PHP_EOL . PHP_EOL;
125 125
 
126
-        $str .= "{$this->getText(['slug', 'menu', 'desc'])}".PHP_EOL;
127
-        $str .= '--------------'.PHP_EOL;
128
-        $str .= $this->getText(['readme', 'main', 'desc']).PHP_EOL.PHP_EOL;
126
+        $str .= "{$this->getText(['slug', 'menu', 'desc'])}" . PHP_EOL;
127
+        $str .= '--------------' . PHP_EOL;
128
+        $str .= $this->getText(['readme', 'main', 'desc']) . PHP_EOL . PHP_EOL;
129 129
 
130
-        $str .= "{$this->getText(['slug', 'menu', 'features'])}".PHP_EOL;
131
-        $str .= '--------------'.PHP_EOL;
132
-        $str .= $this->getText(['readme', 'main', 'features'], PHP_EOL).PHP_EOL.PHP_EOL;
130
+        $str .= "{$this->getText(['slug', 'menu', 'features'])}" . PHP_EOL;
131
+        $str .= '--------------' . PHP_EOL;
132
+        $str .= $this->getText(['readme', 'main', 'features'], PHP_EOL) . PHP_EOL . PHP_EOL;
133 133
 
134
-        $str .= "{$this->getText(['slug', 'menu', 'services'])}".PHP_EOL;
135
-        $str .= '--------------'.PHP_EOL;
136
-        $str .= "{$this->getText(['readme', 'main', 'services'])}".PHP_EOL.PHP_EOL;
137
-        $str .= "{$this->viewServices($master)}".PHP_EOL.PHP_EOL;
134
+        $str .= "{$this->getText(['slug', 'menu', 'services'])}" . PHP_EOL;
135
+        $str .= '--------------' . PHP_EOL;
136
+        $str .= "{$this->getText(['readme', 'main', 'services'])}" . PHP_EOL . PHP_EOL;
137
+        $str .= "{$this->viewServices($master)}" . PHP_EOL . PHP_EOL;
138 138
 
139
-        $str .= "{$this->getText(['install'])}".PHP_EOL;
140
-        $str .= '--------------'.PHP_EOL;
141
-        $str .= "{$this->viewInstall()}".PHP_EOL.PHP_EOL;
142
-        $str .= "{$this->getText(['example'])}".PHP_EOL;
143
-        $str .= '--------------'.PHP_EOL;
144
-        $str .= "{$this->viewExamples()}".PHP_EOL.PHP_EOL;
139
+        $str .= "{$this->getText(['install'])}" . PHP_EOL;
140
+        $str .= '--------------' . PHP_EOL;
141
+        $str .= "{$this->viewInstall()}" . PHP_EOL . PHP_EOL;
142
+        $str .= "{$this->getText(['example'])}" . PHP_EOL;
143
+        $str .= '--------------' . PHP_EOL;
144
+        $str .= "{$this->viewExamples()}" . PHP_EOL . PHP_EOL;
145 145
 
146 146
         return $str;
147 147
     }
@@ -152,12 +152,12 @@  discard block
 block discarded – undo
152 152
             $lang = $this->lang;
153 153
         }
154 154
 
155
-        return 'README-'.$lang.'.md';
155
+        return 'README-' . $lang . '.md';
156 156
     }
157 157
 
158 158
     public function save()
159 159
     {
160
-        file_put_contents(__DIR__.'/../../docs/'.$this->getFileName(), $this->view());
161
-        file_put_contents(__DIR__.'/../../README.md', $this->view('master/'));
160
+        file_put_contents(__DIR__ . '/../../docs/' . $this->getFileName(), $this->view());
161
+        file_put_contents(__DIR__ . '/../../README.md', $this->view('master/'));
162 162
     }
163 163
 }
Please login to merge, or discard this patch.