Completed
Push — master ( 312aa1...eb49de )
by Paul
9s
created
src/Elphin/IcoFileLoader/IcoParser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@
 block discarded – undo
62 62
         return $icon;
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $data
67
+     */
65 68
     private function parseIconDirEntries(Icon $icon, $data, $count)
66 69
     {
67 70
         for ($i = 0; $i < $count; ++$i) {
Please login to merge, or discard this patch.
src/Elphin/IcoFileLoader/Icon.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
38 38
     public function findBest()
39 39
     {
40 40
         $bestBitCount = 0;
41
-        $bestWidth=0;
41
+        $bestWidth = 0;
42 42
         $best = null;
43 43
         foreach ($this->images as $image) {
44
-            if (($image->width > $bestWidth)  ||
44
+            if (($image->width > $bestWidth) ||
45 45
                 (($image->width == $bestWidth) && ($image->bitCount > $bestBitCount))
46 46
             ) {
47 47
                 $bestWidth = $image->width;
Please login to merge, or discard this patch.
src/Elphin/IcoFileLoader/IconImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,9 +110,9 @@
 block discarded – undo
110 110
 
111 111
     public function setBitmapInfoHeader($bmpInfo)
112 112
     {
113
-        if ($this->bitCount!=$bmpInfo['BitCount']) {
113
+        if ($this->bitCount != $bmpInfo['BitCount']) {
114 114
             //the original code updated the ICONDIRENTRY with this, but it doesn't seem necessary...
115
-            throw new \Exception("bit count changed from ".$this->bitCount. " to ".$bmpInfo['BitCount']);
115
+            throw new \Exception("bit count changed from " . $this->bitCount . " to " . $bmpInfo['BitCount']);
116 116
         }
117 117
         //we need this to calculate offsets when rendering
118 118
         $this->bmpHeaderWidth = $bmpInfo['Width'];
Please login to merge, or discard this patch.