Completed
Branch master (73321e)
by Владислав
03:59 queued 01:48
created
src/core/DeCaptchaAbstract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,9 +109,9 @@
 block discarded – undo
109 109
      */
110 110
     protected function getFilePath($fileName) {
111 111
         if (strpos($fileName, 'http://') !== false || strpos($fileName, 'https://') !== false) {
112
-            try{
112
+            try {
113 113
                 $current = file_get_contents($fileName);
114
-            } catch(\Exception $e) {
114
+            } catch (\Exception $e) {
115 115
                 throw new DeCaptchaErrors(DeCaptchaErrors::ERROR_FILE_IS_NOT_LOADED, $fileName, $this->errorLang);
116 116
             }
117 117
             $path = tempnam(sys_get_temp_dir(), 'captcha');
Please login to merge, or discard this patch.
tests/DeCaptchaAbstractTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,14 +138,14 @@
 block discarded – undo
138 138
         $this->assertTrue(abs($timePassed - 0.25) < 0.035);
139 139
 
140 140
         $start = microtime(true);
141
-        $bound(0.15, function () {
141
+        $bound(0.15, function() {
142 142
             sleep(0.2);
143 143
         });
144 144
         $bound(0.3);
145 145
         $timePassed = microtime(true) - $start;
146 146
         $this->assertTrue(abs($timePassed - 0.45) < 0.035);
147 147
 
148
-        $this->assertEquals(2, $bound(0, function () {
148
+        $this->assertEquals(2, $bound(0, function() {
149 149
             return 2;
150 150
         }));
151 151
         $this->assertEquals(null, $bound(0));
Please login to merge, or discard this patch.