Skip to content

Commit 2fe8383

Browse files
Fix style issues
1 parent 69d0949 commit 2fe8383

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

src/Backup/Cleaner/Stepwise.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ protected function setupRanges()
117117
$daily = new Range($all->getEnd(), $end, new Stepwise\Keeper\OnePerGroup('Ymd'));
118118

119119
// define the range that keeps backups per week
120-
$end = mktime(0, 0, 0, date('m', $end), (int) date('d', $end) - (7 * $this->weeksToKeepWeekly), date('Y', $end));
120+
$month = date('m', $end);
121+
$day = (int) date('d', $end) - (7 * $this->weeksToKeepWeekly);
122+
$year = date('Y', $end);
123+
$end = mktime(0, 0, 0, $month, $day, $year);
121124
$weekly = new Range($daily->getEnd(), $end, new Stepwise\Keeper\OnePerGroup('YW'));
122125

123126
// define the range that keeps backups per month

src/Backup/Decompressor/Directory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php
22

3-
43
namespace phpbu\App\Backup\Decompressor;
54

6-
75
use phpbu\App\Backup\Target;
86

97
/**

src/Backup/Sync/OpenStack.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ public function setup(array $config)
133133
$this->password = $config['password'];
134134
$this->containerName = $config['container_name'];
135135
$this->serviceName = Util\Arr::getValue($config, 'service_name', 'swift');
136-
$this->path = new Path(Util\Path::withoutLeadingSlash(Util\Arr::getValue($config, 'path', '')), $this->time);
136+
$this->path = new Path(
137+
Util\Path::withoutLeadingSlash(Util\Arr::getValue($config, 'path', '')),
138+
$this->time
139+
);
137140

138141
$this->setUpCleanable($config);
139142
}

src/Backup/Sync/YandexDisk.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class YandexDisk implements Sync\Simulator
3030
* create your app
3131
* - Check all Disks permissions
3232
* - generate access token:
33-
* 1) Goto https://oauth.yandex.ru/authorize?response_type=token&client_id=APP_ID (replace APP_ID with ID giving to you)
33+
* 1) Goto https://oauth.yandex.ru/authorize?response_type=token&client_id=APP_ID
34+
* (replace APP_ID with ID giving to you)
3435
* 2) Then you should get token parameter from GET-parameters of opened page
3536
*
3637
* @var string

src/Cli/Executable/Ldapdump.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Ldapdump extends Abstraction implements Executable
6666
private $password;
6767

6868
/**
69-
* Filter
69+
* Filter
7070
* <filter>
7171
*
7272
* @var string

src/Log/Telegram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @license https://opensource.org/licenses/MIT The MIT License (MIT)
2121
* @link http://phpbu.de/
2222
*/
23-
class Telegram implements Listener, Logger
23+
class Telegram implements Listener, Logger
2424
{
2525
private const URL = 'https://api.telegram.org/bot%d:%s/sendMessage';
2626

0 commit comments

Comments
 (0)