Completed
Pull Request — master (#83)
by Scott
02:54 queued 45s
created
other/build_phar.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@  discard block
 block discarded – undo
1 1
 <?php
2
-$dist = dirname(__DIR__).'/dist';
2
+$dist = dirname(__DIR__) . '/dist';
3 3
 if (!is_dir($dist)) {
4 4
     mkdir($dist, 0755);
5 5
 }
6
-if (file_exists($dist.'/random_compat.phar')) {
7
-    unlink($dist.'/random_compat.phar');
6
+if (file_exists($dist . '/random_compat.phar')) {
7
+    unlink($dist . '/random_compat.phar');
8 8
 }
9 9
 $phar = new Phar(
10
-    $dist.'/random_compat.phar',
10
+    $dist . '/random_compat.phar',
11 11
     FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::KEY_AS_FILENAME,
12 12
     'random_compat.phar'
13 13
 );
14 14
 rename(
15
-    dirname(__DIR__).'/lib/random.php', 
16
-    dirname(__DIR__).'/lib/index.php'
15
+    dirname(__DIR__) . '/lib/random.php', 
16
+    dirname(__DIR__) . '/lib/index.php'
17 17
 );
18
-$phar->buildFromDirectory(dirname(__DIR__).'/lib');
18
+$phar->buildFromDirectory(dirname(__DIR__) . '/lib');
19 19
 rename(
20
-    dirname(__DIR__).'/lib/index.php', 
21
-    dirname(__DIR__).'/lib/random.php'
20
+    dirname(__DIR__) . '/lib/index.php', 
21
+    dirname(__DIR__) . '/lib/random.php'
22 22
 );
23 23
 
24 24
 /**
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
         /**
44 44
          * Save the corresponding public key to the file
45 45
          */
46
-        if (!@is_readable($dist.'/random_compat.phar.pubkey')) {
46
+        if (!@is_readable($dist . '/random_compat.phar.pubkey')) {
47 47
             $details = openssl_pkey_get_details($private);
48 48
             file_put_contents(
49
-                $dist.'/random_compat.phar.pubkey',
49
+                $dist . '/random_compat.phar.pubkey',
50 50
                 $details['key']
51 51
             );
52 52
         }
Please login to merge, or discard this patch.