Skip to content

Commit fda2929

Browse files
committed
Fix code style
1 parent 92e8ea5 commit fda2929

File tree

8 files changed

+24
-14
lines changed

8 files changed

+24
-14
lines changed

.phan/config.php

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
return [
4+
'directory_list' => [
5+
'src',
6+
'vendor',
7+
],
8+
9+
'exclude_file_regex' => '@^vendor/.*/(tests?|Tests?)/@',
10+
11+
'exclude_analysis_directory_list' => [
12+
'vendor/',
13+
],
14+
];

src/Jade/JadeSymfonyBundle/Command/AssetsPublishCommand.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Jade\JadeSymfonyBundle\Command;
44

5-
use Jade\Jade;
65
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
76
use Symfony\Component\Console\Input\InputInterface;
87
use Symfony\Component\Console\Output\OutputInterface;

src/Jade/JadeSymfonyEngine.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ public function __construct($kernel)
117117
protected function getAppDirectory($kernel)
118118
{
119119
/* @var KernelInterface $kernel */
120-
if (
121-
method_exists($kernel, 'getProjectDir') &&
120+
if (method_exists($kernel, 'getProjectDir') &&
122121
($directory = $kernel->getProjectDir()) &&
123122
file_exists($directory = "$directory/app")
124123
) {

src/Jade/Symfony/Traits/Filters.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Jade\Symfony\Traits;
44

55
/**
6-
* @internal
7-
*
86
* Trait Filters.
7+
*
8+
* @property-read \Pug\Pug $jade
99
*/
1010
trait Filters
1111
{

src/Jade/Symfony/Traits/HelpersHandler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
use Symfony\Component\DependencyInjection\ContainerInterface;
99

1010
/**
11-
* @internal
12-
*
1311
* Trait HelpersHandler.
12+
*
13+
* @property-read \Pug\Pug $jade
1414
*/
1515
trait HelpersHandler
1616
{

src/Jade/Symfony/Traits/Installer.php

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
use Jade\Symfony\Contracts\InstallerInterface;
77

88
/**
9-
* @internal
10-
*
119
* Trait Installer.
1210
*/
1311
trait Installer

src/Jade/Symfony/Traits/Options.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
use Pug\Pug;
66

77
/**
8-
* @internal
9-
*
108
* Trait Options.
9+
*
10+
* @property-read \Pug\Pug $jade
1111
*/
1212
trait Options
1313
{

tests/Pug/PugSymfonyEngineTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -907,10 +907,10 @@ public function testOptionDefaultingOnException()
907907

908908
public function testMixedLoader()
909909
{
910-
$loader = new MixedLoader(new ArrayLoader(array(
910+
$loader = new MixedLoader(new ArrayLoader([
911911
'fozz' => 'fozz template',
912912
'bazz' => 'bazz template',
913-
)));
913+
]));
914914

915915
$loader->setTemplate('foo', 'bar');
916916
$loader->setTemplateSource('bar', 'biz');
@@ -927,7 +927,7 @@ public function testMixedLoader()
927927

928928
public function testCssWithCustomAssetsHelper()
929929
{
930-
include_once __DIR__.'/AssetsHelper.php';
930+
include_once __DIR__ . '/AssetsHelper.php';
931931
$helper = new AssetsHelper();
932932
$css = new Css($helper);
933933

0 commit comments

Comments
 (0)