Skip to content

Commit 98a582d

Browse files
committed
Merge pull request #35 from Miljar/scrutinizer-patch-1
Scrutinizer Auto-Fixes
2 parents 8c3d206 + f2cca4f commit 98a582d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lib/PHPExif/Adapter/Native.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Native extends AdapterAbstract
7070
*
7171
* @var array
7272
*/
73-
protected $iptcMapping = array(
73+
protected $iptcMapping = array(
7474
'title' => '2#005',
7575
'keywords' => '2#025',
7676
'copyright' => '2#116',

lib/PHPExif/Exif.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ public function getExposureMilliseconds()
346346
return false;
347347
}
348348

349-
$exposureParts = explode('/', $this->data[self::EXPOSURE]);
349+
$exposureParts = explode('/', $this->data[self::EXPOSURE]);
350350

351-
return (int)reset($exposureParts) / (int)end($exposureParts);
351+
return (int) reset($exposureParts) / (int) end($exposureParts);
352352
}
353353

354354
/**

lib/PHPExif/Mapper/Exiftool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Exiftool implements MapperInterface
103103
*/
104104
public function setNumeric($numeric)
105105
{
106-
$this->numeric = (bool)$numeric;
106+
$this->numeric = (bool) $numeric;
107107

108108
return $this;
109109
}

lib/PHPExif/Mapper/Native.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ public function mapRawData(array $data)
154154
$value = '1/' . round($denominator);
155155
break;
156156
case self::FOCALLENGTH:
157-
$parts = explode('/', $value);
158-
$value = (int)reset($parts) / (int)end($parts);
157+
$parts = explode('/', $value);
158+
$value = (int) reset($parts) / (int) end($parts);
159159
break;
160160
case self::XRESOLUTION:
161161
case self::YRESOLUTION:
162162
$resolutionParts = explode('/', $value);
163-
$value = (int)reset($resolutionParts);
163+
$value = (int) reset($resolutionParts);
164164
break;
165165
case self::GPSLATITUDE:
166166
$gpsData['lat'] = $this->extractGPSCoordinate($value);
@@ -218,7 +218,7 @@ protected function extractGPSCoordinate(array $components)
218218
*/
219219
protected function normalizeGPSComponent($component)
220220
{
221-
$parts = explode('/', $component);
221+
$parts = explode('/', $component);
222222

223223
return count($parts) === 1 ? $parts[0] : (int) reset($parts) / (int) end($parts);
224224
}

0 commit comments

Comments
 (0)