Passed
Push — master ( 678db7...164b32 )
by Cody
06:12 queued 03:06
created
lib/phpqrcode/qrlib.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -25,19 +25,19 @@
 block discarded – undo
25 25
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 26
  */
27 27
 	
28
-	$QR_BASEDIR = dirname(__FILE__).DIRECTORY_SEPARATOR;
28
+    $QR_BASEDIR = dirname(__FILE__).DIRECTORY_SEPARATOR;
29 29
 	
30
-	// Required libs
30
+    // Required libs
31 31
 	
32
-	include $QR_BASEDIR."qrconst.php";
33
-	include $QR_BASEDIR."qrconfig.php";
34
-	include $QR_BASEDIR."qrtools.php";
35
-	include $QR_BASEDIR."qrspec.php";
36
-	include $QR_BASEDIR."qrimage.php";
37
-	include $QR_BASEDIR."qrinput.php";
38
-	include $QR_BASEDIR."qrbitstream.php";
39
-	include $QR_BASEDIR."qrsplit.php";
40
-	include $QR_BASEDIR."qrrscode.php";
41
-	include $QR_BASEDIR."qrmask.php";
42
-	include $QR_BASEDIR."qrencode.php";
32
+    include $QR_BASEDIR."qrconst.php";
33
+    include $QR_BASEDIR."qrconfig.php";
34
+    include $QR_BASEDIR."qrtools.php";
35
+    include $QR_BASEDIR."qrspec.php";
36
+    include $QR_BASEDIR."qrimage.php";
37
+    include $QR_BASEDIR."qrinput.php";
38
+    include $QR_BASEDIR."qrbitstream.php";
39
+    include $QR_BASEDIR."qrsplit.php";
40
+    include $QR_BASEDIR."qrrscode.php";
41
+    include $QR_BASEDIR."qrmask.php";
42
+    include $QR_BASEDIR."qrencode.php";
43 43
 
Please login to merge, or discard this patch.
lib/phpqrcode/tools/merge.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $outputCode .= "\n\n".$anotherCode."\n\n";
60 60
     }
61 61
     
62
-	$versionDataEx = explode("\n", file_get_contents($versionFile));
62
+    $versionDataEx = explode("\n", file_get_contents($versionFile));
63 63
 	
64 64
     $outputContents = file_get_contents($headerFile);
65 65
     $outputContents .= "\n\n/*\n * Version: ".trim($versionDataEx[0])."\n * Build: ".trim($versionDataEx[1])."\n */\n\n";
Please login to merge, or discard this patch.
lib/phpqrcode/tools/merged_header.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,4 +33,4 @@
 block discarded – undo
33 33
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
34 34
  */
35 35
  
36
- 
37 36
\ No newline at end of file
37
+    
38 38
\ No newline at end of file
Please login to merge, or discard this patch.
lib/phpqrcode/qrspec.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -335,10 +335,10 @@
 block discarded – undo
335 335
 
336 336
         // Version information pattern -----------------------------------------
337 337
 
338
-		// Version information pattern (BCH coded).
338
+        // Version information pattern (BCH coded).
339 339
         // See Table 1 in Appendix D (pp.68) of JIS X0510:2004.
340 340
         
341
-		// size: [QRSPEC_VERSION_MAX - 6]
341
+        // size: [QRSPEC_VERSION_MAX - 6]
342 342
 		
343 343
         public static $versionPattern = array(
344 344
             0x07c94, 0x085bc, 0x09a99, 0x0a4d3, 0x0bbf6, 0x0c762, 0x0d847, 0x0e60d,
Please login to merge, or discard this patch.
Braces   +24 added lines, -16 removed lines patch added patch discarded remove patch
@@ -115,8 +115,9 @@  discard block
 block discarded – undo
115 115
 
116 116
             for ($i = 1; $i <= QRSPEC_VERSION_MAX; $i++) {
117 117
                 $words = self::$capacity[$i][QRCAP_WORDS] - self::$capacity[$i][QRCAP_EC][$level];
118
-                if ($words >= $size) 
119
-                    return $i;
118
+                if ($words >= $size) {
119
+                                    return $i;
120
+                }
120 121
             }
121 122
 
122 123
             return -1;
@@ -152,8 +153,9 @@  discard block
 block discarded – undo
152 153
         //----------------------------------------------------------------------
153 154
         public static function maximumWords($mode, $version)
154 155
         {
155
-            if ($mode == QR_MODE_STRUCTURE) 
156
-                return 3;
156
+            if ($mode == QR_MODE_STRUCTURE) {
157
+                            return 3;
158
+            }
157 159
                 
158 160
             if ($version <= 9) {
159 161
                 $l = 0;
@@ -299,8 +301,9 @@  discard block
 block discarded – undo
299 301
         //----------------------------------------------------------------------
300 302
         public static function putAlignmentPattern($version, &$frame, $width)
301 303
         {
302
-            if ($version < 2)
303
-                return;
304
+            if ($version < 2) {
305
+                            return;
306
+            }
304 307
 
305 308
             $d = self::$alignmentPattern[$version][1] - self::$alignmentPattern[$version][0];
306 309
             if ($d < 0) {
@@ -352,8 +355,9 @@  discard block
 block discarded – undo
352 355
         //----------------------------------------------------------------------
353 356
         public static function getVersionPattern($version)
354 357
         {
355
-            if ($version < 7 || $version > QRSPEC_VERSION_MAX)
356
-                return 0;
358
+            if ($version < 7 || $version > QRSPEC_VERSION_MAX) {
359
+                            return 0;
360
+            }
357 361
 
358 362
             return self::$versionPattern[$version - 7];
359 363
         }
@@ -370,11 +374,13 @@  discard block
 block discarded – undo
370 374
 
371 375
         public static function getFormatInfo($mask, $level)
372 376
         {
373
-            if ($mask < 0 || $mask > 7)
374
-                return 0;
377
+            if ($mask < 0 || $mask > 7) {
378
+                            return 0;
379
+            }
375 380
                 
376
-            if ($level < 0 || $level > 3)
377
-                return 0;                
381
+            if ($level < 0 || $level > 3) {
382
+                            return 0;
383
+            }
378 384
 
379 385
             return self::$formatInfo[$level][$mask];
380 386
         }
@@ -554,8 +560,9 @@  discard block
 block discarded – undo
554 560
         //----------------------------------------------------------------------
555 561
         public static function newFrame($version)
556 562
         {
557
-            if ($version < 1 || $version > QRSPEC_VERSION_MAX) 
558
-                return null;
563
+            if ($version < 1 || $version > QRSPEC_VERSION_MAX) {
564
+                            return null;
565
+            }
559 566
 
560 567
             if (!isset(self::$frames[$version])) {
561 568
                 
@@ -573,8 +580,9 @@  discard block
 block discarded – undo
573 580
                 }
574 581
             }
575 582
             
576
-            if (is_null(self::$frames[$version]))
577
-                return null;
583
+            if (is_null(self::$frames[$version])) {
584
+                            return null;
585
+            }
578 586
 
579 587
             return self::$frames[$version];
580 588
         }
Please login to merge, or discard this patch.
lib/phpqrcode/qrmask.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,17 +25,17 @@
 block discarded – undo
25 25
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 26
  */
27 27
  
28
-	define('N1', 3);
29
-	define('N2', 3);
30
-	define('N3', 40);
31
-	define('N4', 10);
28
+    define('N1', 3);
29
+    define('N2', 3);
30
+    define('N3', 40);
31
+    define('N4', 10);
32 32
 
33
-	class QRmask {
33
+    class QRmask {
34 34
 	
35
-		public $runLength = array();
35
+        public $runLength = array();
36 36
 		
37
-		//----------------------------------------------------------------------
38
-		public function __construct() 
37
+        //----------------------------------------------------------------------
38
+        public function __construct() 
39 39
         {
40 40
             $this->runLength = array_fill(0, QRSPEC_WIDTH_MAX + 1, 0);
41 41
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -230,8 +230,9 @@
 block discarded – undo
230 230
                 
231 231
                 $frameY = $frame[$y];
232 232
                 
233
-                if ($y > 0)
234
-                    $frameYM = $frame[$y - 1];
233
+                if ($y > 0) {
234
+                                    $frameYM = $frame[$y - 1];
235
+                }
235 236
                 
236 237
                 for ($x = 0; $x < $width; $x++) {
237 238
                     if (($x > 0) && ($y > 0)) {
Please login to merge, or discard this patch.
classes/feeditem.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 abstract class FeedItem {
3
-	abstract function get_id();
4
-	abstract function get_date();
5
-	abstract function get_link();
6
-	abstract function get_title();
7
-	abstract function get_description();
8
-	abstract function get_content();
9
-	abstract function get_comments_url();
10
-	abstract function get_comments_count();
11
-	abstract function get_categories();
12
-	abstract function get_enclosures();
13
-	abstract function get_author();
14
-	abstract function get_language();
3
+    abstract function get_id();
4
+    abstract function get_date();
5
+    abstract function get_link();
6
+    abstract function get_title();
7
+    abstract function get_description();
8
+    abstract function get_content();
9
+    abstract function get_comments_url();
10
+    abstract function get_comments_count();
11
+    abstract function get_categories();
12
+    abstract function get_enclosures();
13
+    abstract function get_author();
14
+    abstract function get_language();
15 15
 }
16 16
 
Please login to merge, or discard this patch.
classes/ihandler.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 interface IHandler {
3
-	public function csrf_ignore($method);
4
-	public function before($method);
5
-	public function after();
3
+    public function csrf_ignore($method);
4
+    public function before($method);
5
+    public function after();
6 6
 }
Please login to merge, or discard this patch.
classes/plugin.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -2,59 +2,59 @@
 block discarded – undo
2 2
 
3 3
 abstract class Plugin {
4 4
 
5
-	const API_VERSION_COMPAT = 1;
5
+    const API_VERSION_COMPAT = 1;
6 6
 
7
-	/**
8
-	 * @var PDO
9
-	 */
10
-	protected $pdo;
7
+    /**
8
+     * @var PDO
9
+     */
10
+    protected $pdo;
11 11
 
12
-	abstract function init(PluginHost $host);
12
+    abstract function init(PluginHost $host);
13 13
 
14
-	/**
15
-	 * @return array(version, name, description, author, false)
16
-	 */
17
-	abstract function about();
14
+    /**
15
+     * @return array(version, name, description, author, false)
16
+     */
17
+    abstract function about();
18 18
 
19
-	public function __construct() {
20
-		$this->pdo = Db::pdo();
21
-	}
19
+    public function __construct() {
20
+        $this->pdo = Db::pdo();
21
+    }
22 22
 
23
-	public function flags() {
24
-		/* associative array, possible keys:
23
+    public function flags() {
24
+        /* associative array, possible keys:
25 25
 			needs_curl = boolean
26 26
 		*/
27
-		return array();
28
-	}
27
+        return array();
28
+    }
29 29
 
30
-	public function is_public_method() {
31
-		return false;
32
-	}
30
+    public function is_public_method() {
31
+        return false;
32
+    }
33 33
 
34
-	public function get_js() {
35
-		return "";
36
-	}
34
+    public function get_js() {
35
+        return "";
36
+    }
37 37
 
38
-	public function get_prefs_js() {
39
-		return "";
40
-	}
38
+    public function get_prefs_js() {
39
+        return "";
40
+    }
41 41
 
42
-	public function api_version() {
43
-		return Plugin::API_VERSION_COMPAT;
44
-	}
42
+    public function api_version() {
43
+        return Plugin::API_VERSION_COMPAT;
44
+    }
45 45
 
46
-	public function __($msgid) {
47
-		return _dgettext(PluginHost::object_to_domain($this), $msgid);
48
-	}
46
+    public function __($msgid) {
47
+        return _dgettext(PluginHost::object_to_domain($this), $msgid);
48
+    }
49 49
 
50
-	public function _ngettext($singular, $plural, $number) {
51
-		return _dngettext(PluginHost::object_to_domain($this), $singular, $plural, $number);
52
-	}
50
+    public function _ngettext($singular, $plural, $number) {
51
+        return _dngettext(PluginHost::object_to_domain($this), $singular, $plural, $number);
52
+    }
53 53
 
54
-	public function T_sprintf() {
55
-		$args = func_get_args();
56
-		$msgid = array_shift($args);
54
+    public function T_sprintf() {
55
+        $args = func_get_args();
56
+        $msgid = array_shift($args);
57 57
 
58
-		return vsprintf($this->__($msgid), $args);
59
-	}
58
+        return vsprintf($this->__($msgid), $args);
59
+    }
60 60
 }
Please login to merge, or discard this patch.
classes/handler/protected.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 class Handler_Protected extends Handler {
3 3
 
4
-	public function before($method) {
5
-		return parent::before($method) && $_SESSION['uid'];
6
-	}
4
+    public function before($method) {
5
+        return parent::before($method) && $_SESSION['uid'];
6
+    }
7 7
 }
Please login to merge, or discard this patch.