Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Commit

Permalink
Merge pull request #46 from Narno/analysis-qBM3vO
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
ArnaudLigny committed Feb 14, 2016
2 parents 93c33d7 + d935195 commit 2d060e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PHPoole.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function __construct($options = [], $notificationCallback = null)

if ($notificationCallback == null) {
$this->notificationCallback = function ($code, $message = '', $items_count = 0, $items_max = 0, $verbose = false) {
switch($code) {
switch ($code) {
case 'CREATE':
case 'CONVERT':
case 'RENDER':
Expand All @@ -170,7 +170,7 @@ public function __construct($options = [], $notificationCallback = null)
case 'RENDER_PROGRESS':
case 'COPY_PROGRESS':
if ($items_count > 0) {
$length = (int)(($items_count/$items_max)*100);
$length = (int) (($items_count / $items_max) * 100);
printf("\r %d%% (%u/%u) %s", $length, $items_count, $items_max, $message);
} else {
printf("\r %s", $message);
Expand Down

0 comments on commit 2d060e6

Please sign in to comment.