Skip to content

Commit 160b340

Browse files
committed
Applied phpcsfixer
1 parent 5028520 commit 160b340

File tree

63 files changed

+114
-201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+114
-201
lines changed

spec/PHPCR/Shell/Config/ConfigManagerSpec.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@
88

99
class ConfigManagerSpec extends ObjectBehavior
1010
{
11-
function let(
11+
public function let(
1212
Filesystem $filesystem
1313
)
1414
{
1515
$this->beConstructedWith($filesystem);
1616
}
1717

18-
function it_is_initializable()
18+
public function it_is_initializable()
1919
{
2020
$this->shouldHaveType('PHPCR\Shell\Config\ConfigManager');
2121
}
2222

23-
function it_should_have_a_method_to_get_the_users_config_directory()
23+
public function it_should_have_a_method_to_get_the_users_config_directory()
2424
{
2525
putenv('PHPCRSH_HOME=/home/foobar');
2626
$this->getConfigDir()->shouldReturn('/home/foobar');
2727
}
2828

29-
function it_should_be_able_to_parse_a_config_file_and_return_the_config_as_an_array(
29+
public function it_should_be_able_to_parse_a_config_file_and_return_the_config_as_an_array(
3030
Filesystem $filesystem
3131
)
3232
{

spec/PHPCR/Shell/Config/ProfileLoaderSpec.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class ProfileLoaderSpec extends ObjectBehavior
1212
{
13-
function let(
13+
public function let(
1414
ConfigManager $configManager,
1515
Filesystem $filesystem
1616
)
@@ -19,19 +19,19 @@ function let(
1919
$this->beConstructedWith($configManager, $filesystem);
2020
}
2121

22-
function it_is_initializable()
22+
public function it_is_initializable()
2323
{
2424
$this->shouldHaveType('PHPCR\Shell\Config\ProfileLoader');
2525
}
2626

27-
function it_should_list_profile_names()
27+
public function it_should_list_profile_names()
2828
{
2929
$this->getProfileNames()->shouldReturn(array(
3030
'one', 'two'
3131
));
3232
}
3333

34-
function it_should_load_data_into_a_given_profile(
34+
public function it_should_load_data_into_a_given_profile(
3535
Profile $profile,
3636
Filesystem $filesystem
3737
)
@@ -51,7 +51,7 @@ function it_should_load_data_into_a_given_profile(
5151
$this->loadProfile($profile);
5252
}
5353

54-
function it_should_save_a_given_profile(
54+
public function it_should_save_a_given_profile(
5555
Profile $profile,
5656
Filesystem $filesystem
5757
)

spec/PHPCR/Shell/Config/ProfileSpec.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,28 @@
33
namespace spec\PHPCR\Shell\Config;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
7-
use PHPCR\Shell\Transport\TransportConfig;
86

97
class ProfileSpec extends ObjectBehavior
108
{
11-
function let()
9+
public function let()
1210
{
1311
$this->beConstructedWith(
1412
'foobar'
1513
);
1614
}
1715

18-
function it_is_initializable()
16+
public function it_is_initializable()
1917
{
2018
$this->shouldHaveType('PHPCR\Shell\Config\Profile');
2119
}
2220

23-
function it_has_a_method_to_set_config(
21+
public function it_has_a_method_to_set_config(
2422
)
2523
{
2624
$this->set('transport', array());
2725
}
2826

29-
function it_has_a_method_to_get_config()
27+
public function it_has_a_method_to_get_config()
3028
{
3129
$this->set('transport', array(
3230
'foo' => 'bar'

spec/PHPCR/Shell/Config/profiles/one.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
transport:
1+
transport:
22
name: foobar
33
bar_foo: barfoo
44
foo_bar: foobar

spec/PHPCR/Shell/Console/Application/EmbeddedApplicationSpec.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,19 @@
33
namespace spec\PHPCR\Shell\Console\Application;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
76
use PHPCR\Shell\Console\Application\EmbeddedApplication;
87
use Symfony\Component\DependencyInjection\ContainerInterface;
98

109
class EmbeddedApplicationSpec extends ObjectBehavior
1110
{
12-
function let(
11+
public function let(
1312
ContainerInterface $container
1413
)
1514
{
1615
$this->beConstructedWith($container, EmbeddedApplication::MODE_COMMAND);
1716
}
1817

19-
function it_is_initializable()
18+
public function it_is_initializable()
2019
{
2120
$this->shouldHaveType('PHPCR\Shell\Console\Application\EmbeddedApplication');
2221
}

spec/PHPCR/Shell/Console/Application/ShellApplicationSpec.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,19 @@
33
namespace spec\PHPCR\Shell\Console\Application;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
76
use Symfony\Component\DependencyInjection\ContainerInterface;
87
use PHPCR\Shell\Console\Application\EmbeddedApplication;
98

109
class ShellApplicationSpec extends ObjectBehavior
1110
{
12-
function let(
11+
public function let(
1312
ContainerInterface $container
1413
)
1514
{
1615
$this->beConstructedWith($container, EmbeddedApplication::MODE_COMMAND);
1716
}
1817

19-
20-
function it_is_initializable()
18+
public function it_is_initializable()
2119
{
2220
$this->shouldHaveType('PHPCR\Shell\Console\Application\ShellApplication');
2321
}

spec/PHPCR/Shell/Console/Helper/EditorHelperSpec.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
namespace spec\PHPCR\Shell\Console\Helper;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
76

87
class EditorHelperSpec extends ObjectBehavior
98
{
10-
function it_is_initializable()
9+
public function it_is_initializable()
1110
{
1211
$this->shouldHaveType('PHPCR\Shell\Console\Helper\EditorHelper');
1312
}

spec/PHPCR/Shell/Console/Helper/NodeHelperSpec.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
namespace spec\PHPCR\Shell\Console\Helper;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
76
use PHPCR\NodeInterface;
87
use PHPCR\NodeType\NodeTypeInterface;
98

109
class NodeHelperSpec extends ObjectBehavior
1110
{
12-
function it_is_initializable()
11+
public function it_is_initializable()
1312
{
1413
$this->shouldHaveType('PHPCR\Shell\Console\Helper\NodeHelper');
1514
}
1615

17-
function it_should_provide_a_method_to_determine_if_a_node_has_a_given_mixin(
16+
public function it_should_provide_a_method_to_determine_if_a_node_has_a_given_mixin(
1817
NodeInterface $node,
1918
NodeTypeInterface $mixin1,
2019
NodeTypeInterface $mixin2,
@@ -33,7 +32,7 @@ function it_should_provide_a_method_to_determine_if_a_node_has_a_given_mixin(
3332
$this->nodeHasMixinType($node, 'mixin5')->shouldReturn(false);
3433
}
3534

36-
function it_should_provide_a_method_to_determine_if_a_node_is_versionable(
35+
public function it_should_provide_a_method_to_determine_if_a_node_is_versionable(
3736
NodeInterface $nodeVersionable,
3837
NodeInterface $nodeNotVersionable,
3938
NodeTypeInterface $mixin1,

spec/PHPCR/Shell/Console/Helper/PathHelperSpec.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@
33
namespace spec\PHPCR\Shell\Console\Helper;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
76

87
class PathHelperSpec extends ObjectBehavior
98
{
10-
function it_is_initializable()
9+
public function it_is_initializable()
1110
{
1211
$this->shouldHaveType('PHPCR\Shell\Console\Helper\PathHelper');
1312
}
1413

15-
function it_has_a_method_to_provide_the_parent_path_for_a_given_path()
14+
public function it_has_a_method_to_provide_the_parent_path_for_a_given_path()
1615
{
1716
$this->getParentPath('/foo/bar')->shouldReturn('/foo');
1817
}
1918

20-
function it_has_a_method_to_get_the_node_name_of_a_given_path()
19+
public function it_has_a_method_to_get_the_node_name_of_a_given_path()
2120
{
2221
$this->getNodeName('/foo/bar')->shouldReturn('bar');
2322
}

spec/PHPCR/Shell/Console/Helper/RepositoryHelperSpec.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,23 @@
33
namespace spec\PHPCR\Shell\Console\Helper;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
76
use PHPCR\RepositoryInterface;
87
use PHPCR\Shell\Phpcr\SessionManager;
98

109
class RepositoryHelperSpec extends ObjectBehavior
1110
{
12-
function let(
11+
public function let(
1312
SessionManager $sessionManager
1413
) {
1514
$this->beConstructedWith($sessionManager);
1615
}
1716

18-
function it_is_initializable()
17+
public function it_is_initializable()
1918
{
2019
$this->shouldHaveType('PHPCR\Shell\Console\Helper\RepositoryHelper');
2120
}
2221

23-
function it_provides_a_method_to_say_if_a_descriptor_exists_or_not(
22+
public function it_provides_a_method_to_say_if_a_descriptor_exists_or_not(
2423
SessionManager $sessionManager,
2524
RepositoryInterface $repository
2625
) {

spec/PHPCR/Shell/Console/Helper/ResultFormatterHelperSpec.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@
33
namespace spec\PHPCR\Shell\Console\Helper;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
76
use PHPCR\Shell\Console\Helper\TextHelper;
87
use PHPCR\Shell\Console\Helper\TableHelper;
98

109
class ResultFormatterHelperSpec extends ObjectBehavior
1110
{
12-
function let(
11+
public function let(
1312
TextHelper $textHelper,
1413
TableHelper $tableHelper
1514
)
1615
{
1716
$this->beConstructedWith($textHelper, $tableHelper);
1817
}
1918

20-
function it_is_initializable()
19+
public function it_is_initializable()
2120
{
2221
$this->shouldHaveType('PHPCR\Shell\Console\Helper\ResultFormatterHelper');
2322
}

spec/PHPCR/Shell/Console/Helper/TextHelperSpec.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
namespace spec\PHPCR\Shell\Console\Helper;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
76

87
class TextHelperSpec extends ObjectBehavior
98
{
10-
function it_is_initializable()
9+
public function it_is_initializable()
1110
{
1211
$this->shouldHaveType('PHPCR\Shell\Console\Helper\TextHelper');
1312
}
1413

15-
function it_should_truncate_text()
14+
public function it_should_truncate_text()
1615
{
1716
$this->truncate('hello this is some text', 5)->shouldReturn('he...');
1817
}

spec/PHPCR/Shell/Console/Input/StringInputSpec.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
namespace spec\PHPCR\Shell\Console\Input;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
76

87
class StringInputSpec extends ObjectBehavior
98
{
10-
function let()
9+
public function let()
1110
{
1211
$this->beConstructedWith('foobar');
1312
}
1413

15-
function it_is_initializable()
14+
public function it_is_initializable()
1615
{
1716
$this->shouldHaveType('PHPCR\Shell\Console\Input\StringInput');
1817
}

spec/PHPCR/Shell/Event/ApplicationInitEventSpec.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,23 @@
33
namespace spec\PHPCR\Shell\Event;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
76
use Symfony\Component\Console\Application;
87

98
class ApplicationInitEventSpec extends ObjectBehavior
109
{
11-
function it_is_initializable()
10+
public function it_is_initializable()
1211
{
1312
$this->shouldHaveType('PHPCR\Shell\Event\ApplicationInitEvent');
1413
}
1514

16-
function let(
15+
public function let(
1716
Application $application
1817
)
1918
{
2019
$this->beConstructedWith($application);
2120
}
2221

23-
function it_will_return_the_application(
22+
public function it_will_return_the_application(
2423
Application $application
2524
)
2625
{

spec/PHPCR/Shell/Event/CommandExceptionEventSpec.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,25 @@
33
namespace spec\PHPCR\Shell\Event;
44

55
use PhpSpec\ObjectBehavior;
6-
use Prophecy\Argument;
76
use Symfony\Component\Console\Output\OutputInterface;
87
use PHPCR\Shell\Console\Application\ShellApplication;
98

109
class CommandExceptionEventSpec extends ObjectBehavior
1110
{
12-
function it_is_initializable()
11+
public function it_is_initializable()
1312
{
1413
$this->shouldHaveType('PHPCR\Shell\Event\CommandExceptionEvent');
1514
}
1615

17-
function let(
16+
public function let(
1817
\Exception $exception,
1918
ShellApplication $application,
2019
OutputInterface $output
2120
) {
2221
$this->beConstructedWith($exception, $application, $output);
2322
}
2423

25-
function it_should_provide_access_to_event_parameters(
24+
public function it_should_provide_access_to_event_parameters(
2625
\Exception $exception,
2726
OutputInterface $output
2827
) {

0 commit comments

Comments
 (0)