Completed
Pull Request — master (#924)
by Greg
03:26
created
tests/src/Fixtures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function mktmpdir($basedir = false)
48 48
     {
49
-        $tempfile = tempnam($basedir ?: $this->testDir ?: sys_get_temp_dir(),'robo-tests');
49
+        $tempfile = tempnam($basedir ?: $this->testDir ?: sys_get_temp_dir(), 'robo-tests');
50 50
         unlink($tempfile);
51 51
         mkdir($tempfile);
52 52
         $this->tmpDirs[] = $tempfile;
Please login to merge, or discard this patch.
tests/functional/FlattenDirTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $this->fixtures->createAndCdToSandbox();
45 45
 
46 46
         $result = $this->taskFlattenDir('some/deeply/nested/*.re')
47
-            ->includeParents([1,1])
47
+            ->includeParents([1, 1])
48 48
             ->parentDir('some')
49 49
             ->to('flattened')
50 50
             ->run();
Please login to merge, or discard this patch.
tests/functional/ExecTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $task = $this->taskExec('env | wc -l')->interactive(false);
69 69
         $result = $task->run();
70 70
         $this->assertTrue($result->wasSuccessful());
71
-        $start_count = (int) $result->getMessage();
71
+        $start_count = (int)$result->getMessage();
72 72
         $this->assertGreaterThan(0, $start_count);
73 73
 
74 74
         // Verify that we get the same amount of environment variables with
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->assertTrue($result->wasSuccessful());
79 79
         $this->assertEquals(
80 80
             $start_count,
81
-            (int) $result->getMessage());
81
+            (int)$result->getMessage());
82 82
 
83 83
         // Now run the same command, but this time add another environment
84 84
         // variable, and see if our count increases by one.
@@ -86,6 +86,6 @@  discard block
 block discarded – undo
86 86
         $task->env('FOO', 'BAR');
87 87
         $result = $task->run();
88 88
         $this->assertTrue($result->wasSuccessful());
89
-        $this->assertEquals($start_count + 1, (int) $result->getMessage());
89
+        $this->assertEquals($start_count + 1, (int)$result->getMessage());
90 90
     }
91 91
 }
Please login to merge, or discard this patch.
src/Runner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     public function __construct($roboClass = null, $roboFile = null)
82 82
     {
83 83
         // set the const as class properties to allow overwriting in child classes
84
-        $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS ;
84
+        $this->roboClass = $roboClass ? $roboClass : self::ROBOCLASS;
85 85
         $this->roboFile  = $roboFile ? $roboFile : self::ROBOFILE;
86 86
         $this->dir = getcwd();
87 87
     }
Please login to merge, or discard this patch.
src/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $createRoboFile = new Command('init');
42 42
         $createRoboFile->setDescription("Intitalizes basic RoboFile in current dir");
43
-        $createRoboFile->setCode(function () use ($roboClass, $roboFile) {
43
+        $createRoboFile->setCode(function() use ($roboClass, $roboFile) {
44 44
             $output = Robo::output();
45 45
             $output->writeln("<comment>  ~~~ Welcome to Robo! ~~~~ </comment>");
46 46
             $output->writeln("<comment>  " . basename($roboFile) . " will be created in the current directory </comment>");
Please login to merge, or discard this patch.
src/Task/Development/GenerateMarkdownDoc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
         return implode(
706 706
             "\n",
707 707
             array_map(
708
-                function ($line) use ($indent) {
708
+                function($line) use ($indent) {
709 709
                     return substr($line, $indent);
710 710
                 },
711 711
                 explode("\n", $doc)
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
         $params = implode(
728 728
             ', ',
729 729
             array_map(
730
-                function ($p) {
730
+                function($p) {
731 731
                     return $this->documentParam($p);
732 732
                 },
733 733
                 $reflectedMethod->getParameters()
Please login to merge, or discard this patch.
src/Task/Filesystem/FlattenDir.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
      */
128 128
     public function dirPermissions($permission)
129 129
     {
130
-        $this->chmod = (int) $permission;
130
+        $this->chmod = (int)$permission;
131 131
 
132 132
         return $this;
133 133
     }
Please login to merge, or discard this patch.
src/ClassDiscovery/RelativeNamespaceDiscovery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $relativePath = $this->convertNamespaceToPath($this->relativeNamespace);
54 54
 
55 55
         foreach ($this->classLoader->getPrefixesPsr4() as $baseNamespace => $directories) {
56
-            $directories = array_filter(array_map(function ($directory) use ($relativePath) {
56
+            $directories = array_filter(array_map(function($directory) use ($relativePath) {
57 57
                 return $directory . $relativePath;
58 58
             }, $directories), 'is_dir');
59 59
 
Please login to merge, or discard this patch.
tests/functional/ForEachTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
         // set iterable in the __constructor
60 60
         $result = $this
61 61
             ->taskForEach($items)
62
-            ->withBuilder(function (CollectionBuilder $builder, $key, $value) use (&$actual) {
63
-                $builder->addCode(function () use ($key, $value, &$actual) {
62
+            ->withBuilder(function(CollectionBuilder $builder, $key, $value) use (&$actual) {
63
+                $builder->addCode(function() use ($key, $value, &$actual) {
64 64
                     $actual[] = "$key = $value";
65 65
 
66 66
                     return 0;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         // set iterable with deferTaskConfiguration()
83 83
         $result = $this
84 84
             ->collectionBuilder()
85
-            ->addCode(function (Data $data) use ($items) {
85
+            ->addCode(function(Data $data) use ($items) {
86 86
                 $data['items'] = $items;
87 87
 
88 88
                 return 0;
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
                 $this
92 92
                     ->taskForEach()
93 93
                     ->deferTaskConfiguration('setIterable', 'items')
94
-                    ->withBuilder(function (CollectionBuilder $builder, $key, $value) use (&$actual) {
95
-                        $builder->addCode(function () use ($key, $value, &$actual) {
94
+                    ->withBuilder(function(CollectionBuilder $builder, $key, $value) use (&$actual) {
95
+                        $builder->addCode(function() use ($key, $value, &$actual) {
96 96
                             $actual[] = "$key = $value";
97 97
 
98 98
                             return 0;
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
         // call the __constructor() without argument
112 112
         $result = $this
113 113
             ->taskForEach()
114
-            ->withBuilder(function (CollectionBuilder $builder, $key, $value) use (&$actual) {
115
-                $builder->addCode(function () use ($key, $value, &$actual) {
114
+            ->withBuilder(function(CollectionBuilder $builder, $key, $value) use (&$actual) {
115
+                $builder->addCode(function() use ($key, $value, &$actual) {
116 116
                     $actual++;
117 117
 
118 118
                     return 0;
Please login to merge, or discard this patch.