Skip to content

Commit bd310e8

Browse files
committed
#114 adjust docblock indentation
1 parent 2027e45 commit bd310e8

File tree

4 files changed

+170
-170
lines changed

4 files changed

+170
-170
lines changed

src/PathPreserver.php

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -12,60 +12,60 @@
1212
class PathPreserver
1313
{
1414

15-
/**
16-
* Temporary file permission to allow moving protected paths.
17-
*/
15+
/**
16+
* Temporary file permission to allow moving protected paths.
17+
*/
1818
const FILEPERM = 0755;
1919

20-
/**
21-
* @var string
22-
*/
20+
/**
21+
* @var string
22+
*/
2323
protected $cacheDir;
2424

25-
/**
26-
* @var string[]
27-
*/
25+
/**
26+
* @var string[]
27+
*/
2828
protected $installPaths;
2929

30-
/**
31-
* @var string[]
32-
*/
30+
/**
31+
* @var string[]
32+
*/
3333
protected $preservePaths;
3434

35-
/**
36-
* @var \Composer\Util\FileSystem
37-
*/
35+
/**
36+
* @var \Composer\Util\FileSystem
37+
*/
3838
protected $filesystem;
3939

40-
/**
41-
* @var \Composer\IO\IOInterface
42-
*/
40+
/**
41+
* @var \Composer\IO\IOInterface
42+
*/
4343
protected $io;
4444

45-
/**
46-
* @var string[string]
47-
*/
45+
/**
46+
* @var string[string]
47+
*/
4848
protected $backups = array();
4949

50-
/**
51-
* @var string[string]
52-
*/
50+
/**
51+
* @var string[string]
52+
*/
5353
protected $filepermissions = array();
5454

55-
/**
56-
* Constructor.
57-
*
58-
* @param string[] $installPaths
59-
* Array of install paths (must be absolute)
60-
* @param string[] $preservePaths
61-
* Array of preservable paths (must be absolute)
62-
* @param string $cacheDir
63-
* Absolute path to composer cache dir.
64-
* @param \Composer\Util\FileSystem $filesystem
65-
* The filesystem provided by composer to work with.
66-
* @param \Composer\IO\IOInterface $io
67-
* IO interface for writing messages.
68-
*/
55+
/**
56+
* Constructor.
57+
*
58+
* @param string[] $installPaths
59+
* Array of install paths (must be absolute)
60+
* @param string[] $preservePaths
61+
* Array of preservable paths (must be absolute)
62+
* @param string $cacheDir
63+
* Absolute path to composer cache dir.
64+
* @param \Composer\Util\FileSystem $filesystem
65+
* The filesystem provided by composer to work with.
66+
* @param \Composer\IO\IOInterface $io
67+
* IO interface for writing messages.
68+
*/
6969
public function __construct($installPaths, $preservePaths, $cacheDir, \Composer\Util\FileSystem $filesystem, \Composer\IO\IOInterface $io)
7070
{
7171
$this->installPaths = array_unique($installPaths);
@@ -75,9 +75,9 @@ public function __construct($installPaths, $preservePaths, $cacheDir, \Composer\
7575
$this->io = $io;
7676
}
7777

78-
/**
79-
* Backs up the paths.
80-
*/
78+
/**
79+
* Backs up the paths.
80+
*/
8181
public function preserve()
8282
{
8383

@@ -114,11 +114,11 @@ public function preserve()
114114
}
115115
}
116116

117-
/**
118-
* Restore previously backed up paths.
119-
*
120-
* @see PathPreserver::backupSubpaths()
121-
*/
117+
/**
118+
* Restore previously backed up paths.
119+
*
120+
* @see PathPreserver::backupSubpaths()
121+
*/
122122
public function rollback()
123123
{
124124
if (empty($this->backups)) {
@@ -158,21 +158,21 @@ public function rollback()
158158
$this->backups = array();
159159
}
160160

161-
/**
162-
* Check if file really exists.
163-
*
164-
* As php can only determine, whether a file or folder exists when the parent
165-
* directory is executable, we need to provide a workaround.
166-
*
167-
* @param string $path
168-
* The path as in file_exists()
169-
*
170-
* @return bool
171-
* Returns TRUE if file exists, like in file_exists(),
172-
* but without restriction.
173-
*
174-
* @see file_exists()
175-
*/
161+
/**
162+
* Check if file really exists.
163+
*
164+
* As php can only determine, whether a file or folder exists when the parent
165+
* directory is executable, we need to provide a workaround.
166+
*
167+
* @param string $path
168+
* The path as in file_exists()
169+
*
170+
* @return bool
171+
* Returns TRUE if file exists, like in file_exists(),
172+
* but without restriction.
173+
*
174+
* @see file_exists()
175+
*/
176176
public static function fileExists($path)
177177
{
178178

@@ -238,11 +238,11 @@ protected function preparePathPermissions($paths)
238238
}
239239
}
240240

241-
/**
242-
* Helper to make path writable.
243-
*
244-
* @param string $path
245-
*/
241+
/**
242+
* Helper to make path writable.
243+
*
244+
* @param string $path
245+
*/
246246
protected function makePathWritable($path)
247247
{
248248
// Make parent writable, before we can change the path itself.
@@ -255,11 +255,11 @@ protected function makePathWritable($path)
255255
chmod($path, static::FILEPERM);
256256
}
257257

258-
/**
259-
* Restores path permissions that have been changed before.
260-
*
261-
* @see PathPreserver::preparePathPermissions()
262-
*/
258+
/**
259+
* Restores path permissions that have been changed before.
260+
*
261+
* @see PathPreserver::preparePathPermissions()
262+
*/
263263
protected function restorePathPermissions()
264264
{
265265
// We restore child permissions first.

src/Plugin.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@
2424
class Plugin implements PluginInterface, EventSubscriberInterface
2525
{
2626

27-
/**
28-
* @var \derhasi\Composer\PluginWrapper
29-
*/
27+
/**
28+
* @var \derhasi\Composer\PluginWrapper
29+
*/
3030
protected $wrapper;
3131

32-
/**
33-
* {@inheritdoc}
34-
*/
32+
/**
33+
* {@inheritdoc}
34+
*/
3535
public function activate(Composer $composer, IOInterface $io)
3636
{
3737
$this->wrapper = new PluginWrapper($composer, $io);
3838
}
3939

40-
/**
41-
* {@inheritdoc}
42-
*/
40+
/**
41+
* {@inheritdoc}
42+
*/
4343
public static function getSubscribedEvents()
4444
{
4545
return array(
@@ -52,22 +52,22 @@ public static function getSubscribedEvents()
5252
);
5353
}
5454

55-
/**
56-
* Pre Package event behaviour for backing up preserved paths.
57-
*
58-
* @param \Composer\Script\PackageEvent $event
59-
*/
55+
/**
56+
* Pre Package event behaviour for backing up preserved paths.
57+
*
58+
* @param \Composer\Script\PackageEvent $event
59+
*/
6060
public function prePackage(PackageEvent $event)
6161
{
6262

6363
$this->wrapper->prePackage($event);
6464
}
6565

66-
/**
67-
* Pre Package event behaviour for backing up preserved paths.
68-
*
69-
* @param \Composer\Script\PackageEvent $event
70-
*/
66+
/**
67+
* Pre Package event behaviour for backing up preserved paths.
68+
*
69+
* @param \Composer\Script\PackageEvent $event
70+
*/
7171
public function postPackage(PackageEvent $event)
7272
{
7373
$this->wrapper->postPackage($event);

0 commit comments

Comments
 (0)