blob: c41129078473384ca905b839077a9373ce2915d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
diff -up ./php-cs-fixer.rpm ./php-cs-fixer
--- ./php-cs-fixer.rpm 2017-05-25 07:12:21.000000000 +0200
+++ ./php-cs-fixer 2017-05-25 07:51:43.642438002 +0200
@@ -42,12 +42,7 @@ set_error_handler(function ($severity, $
}
});
-// installed via composer?
-if (file_exists($a = __DIR__.'/../../autoload.php')) {
- require_once $a;
-} else {
- require_once __DIR__.'/vendor/autoload.php';
-}
+require_once '/usr/share/php/PhpCsFixer/autoload.php';
use PhpCsFixer\Console\Application;
diff -up ./src/Console/Command/HelpCommand.php.rpm ./src/Console/Command/HelpCommand.php
--- ./src/Console/Command/HelpCommand.php.rpm 2017-05-25 08:09:15.037812996 +0200
+++ ./src/Console/Command/HelpCommand.php 2017-05-25 08:11:00.701454099 +0200
@@ -338,6 +338,8 @@ EOF
return $version;
}
+ return Application::VERSION;
+
$currentMajor = (int) Application::VERSION;
$changelogFile = __DIR__.'/../../../CHANGELOG.md';
$changelog = @file_get_contents($changelogFile);
diff -up ./tests/AutoReview/ProjectCodeTest.php.rpm ./tests/AutoReview/ProjectCodeTest.php
--- ./tests/AutoReview/ProjectCodeTest.php.rpm 2017-05-25 07:12:21.000000000 +0200
+++ ./tests/AutoReview/ProjectCodeTest.php 2017-05-25 07:51:43.642438002 +0200
@@ -315,6 +315,7 @@ final class ProjectCodeTest extends Test
->files()
->name('*.php')
->in(__DIR__.'/../../src')
+ ->notName('autoload.php')
->exclude(array(
'Resources',
))
|