Completed
Push — master ( fa9dc3...a2dc9a )
by Владислав
25:38 queued 22:53
created
src/core/DeCaptchaWiki.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@
 block discarded – undo
246 246
      */
247 247
     public function getText($name, $separator = '; ')
248 248
     {
249
-        $getResult = function ($name, $texts) {
249
+        $getResult = function($name, $texts) {
250 250
             if (is_array($name)) {
251 251
                 $name = implode('_', $name);
252 252
             }
Please login to merge, or discard this patch.
src/core/DeCaptchaWikiMain.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function getText($name, $separator = '; ')
105 105
     {
106
-        $getResult = function ($name, $texts) {
106
+        $getResult = function($name, $texts) {
107 107
             if (is_array($name)) {
108 108
                 $name = implode('_', $name);
109 109
             }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
     protected function viewMenu($master = '')
134 134
     {
135
-        $str = "+ [{$this->getText(['slug', 'menu', 'another'])}](../{$master}docs/".$this->getFileName($this->lang == 'ru' ? 'en' : 'ru').')'.PHP_EOL;
135
+        $str = "+ [{$this->getText(['slug', 'menu', 'another'])}](../{$master}docs/" . $this->getFileName($this->lang == 'ru' ? 'en' : 'ru') . ')' . PHP_EOL;
136 136
         foreach ([
137 137
                      ['slug', 'menu', 'desc'],
138 138
                      ['slug', 'menu', 'features'],
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                      ['install'],
141 141
                      ['example'],
142 142
                  ] as $anchor) {
143
-            $str .= "+ [{$this->getText($anchor)}](#".implode('-', explode(' ', ($this->lang === 'en' ? mb_strtolower($this->getText($anchor)) : $this->getText($anchor)))).')'.PHP_EOL;
143
+            $str .= "+ [{$this->getText($anchor)}](#" . implode('-', explode(' ', ($this->lang === 'en' ? mb_strtolower($this->getText($anchor)) : $this->getText($anchor)))) . ')' . PHP_EOL;
144 144
         }
145 145
 
146 146
         return $str;
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             }
157 157
             $tt[$class->getWiki($this->lang)->getFileName()] = true;
158 158
             $fromServiceObjectWiki = $class->getWiki($this->lang);
159
-            $str .= "+ [{$fromServiceObjectWiki->getText(['service', 'name'])}](../{$master}docs/{$fromServiceObjectWiki->getFileName()})".PHP_EOL;
159
+            $str .= "+ [{$fromServiceObjectWiki->getText(['service', 'name'])}](../{$master}docs/{$fromServiceObjectWiki->getFileName()})" . PHP_EOL;
160 160
         }
161 161
 
162 162
         return $str;
@@ -164,25 +164,25 @@  discard block
 block discarded – undo
164 164
 
165 165
     public function view($master = '')
166 166
     {
167
-        $str = $this->viewHeader().PHP_EOL;
167
+        $str = $this->viewHeader() . PHP_EOL;
168 168
 
169
-        $str .= "###{$this->getText(['slug', 'menu'])}".PHP_EOL;
170
-        $str .= $this->viewMenu($master).PHP_EOL.PHP_EOL;
169
+        $str .= "###{$this->getText(['slug', 'menu'])}" . PHP_EOL;
170
+        $str .= $this->viewMenu($master) . PHP_EOL . PHP_EOL;
171 171
 
172
-        $str .= "###{$this->getText(['slug', 'menu', 'desc'])}".PHP_EOL;
173
-        $str .= $this->getText(['readme', 'main', 'desc']).PHP_EOL.PHP_EOL;
172
+        $str .= "###{$this->getText(['slug', 'menu', 'desc'])}" . PHP_EOL;
173
+        $str .= $this->getText(['readme', 'main', 'desc']) . PHP_EOL . PHP_EOL;
174 174
 
175
-        $str .= "###{$this->getText(['slug', 'menu', 'features'])}".PHP_EOL;
176
-        $str .= $this->getText(['readme', 'main', 'features'], PHP_EOL).PHP_EOL.PHP_EOL;
175
+        $str .= "###{$this->getText(['slug', 'menu', 'features'])}" . PHP_EOL;
176
+        $str .= $this->getText(['readme', 'main', 'features'], PHP_EOL) . PHP_EOL . PHP_EOL;
177 177
 
178
-        $str .= "###{$this->getText(['slug', 'menu', 'services'])}".PHP_EOL;
179
-        $str .= "{$this->getText(['readme', 'main', 'services'])}".PHP_EOL.PHP_EOL;
180
-        $str .= "{$this->viewServices($master)}".PHP_EOL.PHP_EOL;
178
+        $str .= "###{$this->getText(['slug', 'menu', 'services'])}" . PHP_EOL;
179
+        $str .= "{$this->getText(['readme', 'main', 'services'])}" . PHP_EOL . PHP_EOL;
180
+        $str .= "{$this->viewServices($master)}" . PHP_EOL . PHP_EOL;
181 181
 
182
-        $str .= "###{$this->getText(['install'])}".PHP_EOL;
183
-        $str .= "{$this->viewInstall()}".PHP_EOL.PHP_EOL;
184
-        $str .= "###{$this->getText(['example'])}".PHP_EOL;
185
-        $str .= "{$this->viewExamples()}".PHP_EOL.PHP_EOL;
182
+        $str .= "###{$this->getText(['install'])}" . PHP_EOL;
183
+        $str .= "{$this->viewInstall()}" . PHP_EOL . PHP_EOL;
184
+        $str .= "###{$this->getText(['example'])}" . PHP_EOL;
185
+        $str .= "{$this->viewExamples()}" . PHP_EOL . PHP_EOL;
186 186
 
187 187
         return $str;
188 188
     }
@@ -193,12 +193,12 @@  discard block
 block discarded – undo
193 193
             $lang = $this->lang;
194 194
         }
195 195
 
196
-        return 'README-'.$lang.'.md';
196
+        return 'README-' . $lang . '.md';
197 197
     }
198 198
 
199 199
     public function save()
200 200
     {
201
-        file_put_contents(__DIR__.'/../../docs/'.$this->getFileName(), $this->view());
202
-        file_put_contents(__DIR__.'/../../README.md', $this->view('master/'));
201
+        file_put_contents(__DIR__ . '/../../docs/' . $this->getFileName(), $this->view());
202
+        file_put_contents(__DIR__ . '/../../README.md', $this->view('master/'));
203 203
     }
204 204
 }
Please login to merge, or discard this patch.