Completed
Push — master ( c0f9f6...75bed9 )
by Владислав
04:43 queued 02:29
created
src/core/DeCaptchaWikiMain.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function getText($name, $separator = '; ')
89 89
     {
90
-        $getResult = function ($name, $texts) {
90
+        $getResult = function($name, $texts) {
91 91
             if (is_array($name)) {
92 92
                 $name = implode('_', $name);
93 93
             }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
     protected function viewMenu($master = '')
118 118
     {
119
-        $str = "+ [{$this->getText(['slug', 'menu', 'another'])}](../{$master}docs/".$this->getFileName($this->lang == 'ru' ? 'en' : 'ru').')'.PHP_EOL;
119
+        $str = "+ [{$this->getText(['slug', 'menu', 'another'])}](../{$master}docs/" . $this->getFileName($this->lang == 'ru' ? 'en' : 'ru') . ')' . PHP_EOL;
120 120
         foreach ([
121 121
                      ['slug', 'menu', 'desc'],
122 122
                      ['slug', 'menu', 'features'],
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                      ['install'],
125 125
                      ['example'],
126 126
                  ] as $anchor) {
127
-            $str .= "+ [{$this->getText($anchor)}](#".implode('-', explode(' ', $this->getText($anchor))).')'.PHP_EOL;
127
+            $str .= "+ [{$this->getText($anchor)}](#" . implode('-', explode(' ', $this->getText($anchor))) . ')' . PHP_EOL;
128 128
         }
129 129
 
130 130
         return $str;
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             }
141 141
             $tt[$class->getWiki($this->lang)->getFileName()] = true;
142 142
             $fromServiceObjectWiki = $class->getWiki($this->lang);
143
-            $str .= "+ [{$fromServiceObjectWiki->getText(['service', 'name'])}](../{$master}docs/{$fromServiceObjectWiki->getFileName()})".PHP_EOL;
143
+            $str .= "+ [{$fromServiceObjectWiki->getText(['service', 'name'])}](../{$master}docs/{$fromServiceObjectWiki->getFileName()})" . PHP_EOL;
144 144
         }
145 145
 
146 146
         return $str;
@@ -148,25 +148,25 @@  discard block
 block discarded – undo
148 148
 
149 149
     public function view($master = '')
150 150
     {
151
-        $str = $this->viewHeader().PHP_EOL;
151
+        $str = $this->viewHeader() . PHP_EOL;
152 152
 
153
-        $str .= "###{$this->getText(['slug', 'menu'])}".PHP_EOL;
154
-        $str .= $this->viewMenu($master).PHP_EOL.PHP_EOL;
153
+        $str .= "###{$this->getText(['slug', 'menu'])}" . PHP_EOL;
154
+        $str .= $this->viewMenu($master) . PHP_EOL . PHP_EOL;
155 155
 
156
-        $str .= "###{$this->getText(['slug', 'menu', 'desc'])}".PHP_EOL;
157
-        $str .= $this->getText(['readme', 'main', 'desc']).PHP_EOL.PHP_EOL;
156
+        $str .= "###{$this->getText(['slug', 'menu', 'desc'])}" . PHP_EOL;
157
+        $str .= $this->getText(['readme', 'main', 'desc']) . PHP_EOL . PHP_EOL;
158 158
 
159
-        $str .= "###{$this->getText(['slug', 'menu', 'features'])}".PHP_EOL;
160
-        $str .= $this->getText(['readme', 'main', 'features'], PHP_EOL).PHP_EOL.PHP_EOL;
159
+        $str .= "###{$this->getText(['slug', 'menu', 'features'])}" . PHP_EOL;
160
+        $str .= $this->getText(['readme', 'main', 'features'], PHP_EOL) . PHP_EOL . PHP_EOL;
161 161
 
162
-        $str .= "###{$this->getText(['slug', 'menu', 'services'])}".PHP_EOL;
163
-        $str .= "{$this->getText(['readme', 'main', 'services'])}".PHP_EOL.PHP_EOL;
164
-        $str .= "{$this->viewServices($master)}".PHP_EOL.PHP_EOL;
162
+        $str .= "###{$this->getText(['slug', 'menu', 'services'])}" . PHP_EOL;
163
+        $str .= "{$this->getText(['readme', 'main', 'services'])}" . PHP_EOL . PHP_EOL;
164
+        $str .= "{$this->viewServices($master)}" . PHP_EOL . PHP_EOL;
165 165
 
166
-        $str .= "###{$this->getText(['install'])}".PHP_EOL;
167
-        $str .= "{$this->viewInstall()}".PHP_EOL.PHP_EOL;
168
-        $str .= "###{$this->getText(['example'])}".PHP_EOL;
169
-        $str .= "{$this->viewExamples()}".PHP_EOL.PHP_EOL;
166
+        $str .= "###{$this->getText(['install'])}" . PHP_EOL;
167
+        $str .= "{$this->viewInstall()}" . PHP_EOL . PHP_EOL;
168
+        $str .= "###{$this->getText(['example'])}" . PHP_EOL;
169
+        $str .= "{$this->viewExamples()}" . PHP_EOL . PHP_EOL;
170 170
 
171 171
         return $str;
172 172
     }
@@ -177,12 +177,12 @@  discard block
 block discarded – undo
177 177
             $lang = $this->lang;
178 178
         }
179 179
 
180
-        return 'README-'.$lang.'.md';
180
+        return 'README-' . $lang . '.md';
181 181
     }
182 182
 
183 183
     public function save()
184 184
     {
185
-        file_put_contents(__DIR__.'/../../docs/'.$this->getFileName(), $this->view());
186
-        file_put_contents(__DIR__.'/../../README.md', $this->view('master/'));
185
+        file_put_contents(__DIR__ . '/../../docs/' . $this->getFileName(), $this->view());
186
+        file_put_contents(__DIR__ . '/../../README.md', $this->view('master/'));
187 187
     }
188 188
 }
Please login to merge, or discard this patch.