This repository was archived by the owner on Feb 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 14 files changed +42
-12
lines changed Expand file tree Collapse file tree 14 files changed +42
-12
lines changed Original file line number Diff line number Diff line change 14
14
* @author Marc Morera <yuhu@mmoreram.com>
15
15
*/
16
16
17
- require __DIR__ . '/../vendor/autoload .php ' ;
17
+ require __DIR__ . '/../src/bootstrap .php ' ;
18
18
19
19
use Mmoreram \PHPFormatter \Console \Application ;
20
20
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the php-formatter package
5
+ *
6
+ * Copyright (c) >=2014 Marc Morera
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ *
11
+ * Feel free to edit as you please, and have fun.
12
+ *
13
+ * @author Marc Morera <yuhu@mmoreram.com>
14
+ */
15
+
16
+ declare (strict_types=1 );
17
+
18
+ function includeIfExists ($ file )
19
+ {
20
+ return file_exists ($ file ) ? include $ file : false ;
21
+ }
22
+
23
+ if ((!$ loader = includeIfExists (__DIR__ . '/../vendor/autoload.php ' )) && (!$ loader = includeIfExists (__DIR__ . '/../../../autoload.php ' ))) {
24
+ echo 'You must set up the project dependencies, run the following commands: ' . PHP_EOL .
25
+ 'curl -sS https://getcomposer.org/installer | php ' . PHP_EOL .
26
+ 'php composer.phar install ' . PHP_EOL ;
27
+ exit (1 );
28
+ }
29
+
30
+ return $ loader ;
Original file line number Diff line number Diff line change 3
3
/*
4
4
* This file is part of the php-formatter package
5
5
*
6
- * Copyright (c) 2014-2016 Marc Morera
6
+ * Copyright (c) >= 2014 Marc Morera
7
7
*
8
8
* For the full copyright and license information, please view the LICENSE
9
9
* file that was distributed with this source code.
Original file line number Diff line number Diff line change 3
3
/*
4
4
* This file is part of the php-formatter package
5
5
*
6
- * Copyright (c) 2014-2016 Marc Morera
6
+ * Copyright (c) >= 2014 Marc Morera
7
7
*
8
8
* For the full copyright and license information, please view the LICENSE
9
9
* file that was distributed with this source code.
Original file line number Diff line number Diff line change 3
3
/*
4
4
* This file is part of the php-formatter package
5
5
*
6
- * Copyright (c) 2014-2016 Marc Morera
6
+ * Copyright (c) >= 2014 Marc Morera
7
7
*
8
8
* For the full copyright and license information, please view the LICENSE
9
9
* file that was distributed with this source code.
Original file line number Diff line number Diff line change 3
3
/*
4
4
* This file is part of the php-formatter package
5
5
*
6
- * Copyright (c) 2014-2016 Marc Morera
6
+ * Copyright (c) >= 2014 Marc Morera
7
7
*
8
8
* For the full copyright and license information, please view the LICENSE
9
9
* file that was distributed with this source code.
Original file line number Diff line number Diff line change 3
3
/*
4
4
* This file is part of the php-formatter package
5
5
*
6
- * Copyright (c) 2014-2016 Marc Morera
6
+ * Copyright (c) >= 2014 Marc Morera
7
7
*
8
8
* For the full copyright and license information, please view the LICENSE
9
9
* file that was distributed with this source code.
Original file line number Diff line number Diff line change 3
3
/*
4
4
* This file is part of the php-formatter package
5
5
*
6
- * Copyright (c) 2014-2016 Marc Morera
6
+ * Copyright (c) >= 2014 Marc Morera
7
7
*
8
8
* For the full copyright and license information, please view the LICENSE
9
9
* file that was distributed with this source code.
Original file line number Diff line number Diff line change 3
3
/*
4
4
* This file is part of the php-formatter package
5
5
*
6
- * Copyright (c) 2014-2016 Marc Morera
6
+ * Copyright (c) >= 2014 Marc Morera
7
7
*
8
8
* For the full copyright and license information, please view the LICENSE
9
9
* file that was distributed with this source code.
Original file line number Diff line number Diff line change 3
3
/*
4
4
* This file is part of the php-formatter package
5
5
*
6
- * Copyright (c) 2014-2016 Marc Morera
6
+ * Copyright (c) >= 2014 Marc Morera
7
7
*
8
8
* For the full copyright and license information, please view the LICENSE
9
9
* file that was distributed with this source code.
Original file line number Diff line number Diff line change 3
3
/*
4
4
* This file is part of the php-formatter package
5
5
*
6
- * Copyright (c) 2014-2016 Marc Morera
6
+ * Copyright (c) >= 2014 Marc Morera
7
7
*
8
8
* For the full copyright and license information, please view the LICENSE
9
9
* file that was distributed with this source code.
Original file line number Diff line number Diff line change 3
3
/*
4
4
* This file is part of the php-formatter package
5
5
*
6
- * Copyright (c) 2014-2016 Marc Morera
6
+ * Copyright (c) >= 2014 Marc Morera
7
7
*
8
8
* For the full copyright and license information, please view the LICENSE
9
9
* file that was distributed with this source code.
Original file line number Diff line number Diff line change 3
3
/*
4
4
* This file is part of the php-formatter package
5
5
*
6
- * Copyright (c) 2014-2016 Marc Morera
6
+ * Copyright (c) >= 2014 Marc Morera
7
7
*
8
8
* For the full copyright and license information, please view the LICENSE
9
9
* file that was distributed with this source code.
You can’t perform that action at this time.
0 commit comments