Code Duplication    Length = 8-8 lines in 3 locations

src/Filesystem.php 1 location

@@ 70-77 (lines=8) @@
67
     *
68
     * @return mixed
69
     */
70
    protected function invokePlugin($method, array $arguments, FilesystemInterface $filesystem)
71
    {
72
        $plugin = $this->findPlugin($method);
73
        $plugin->setFilesystem($filesystem);
74
        $callback = array($plugin, 'handle');
75
76
        return call_user_func_array($callback, $arguments);
77
    }
78
79
    /**
80
     * Plugins pass-through.

src/MountManager.php 1 location

@@ 99-106 (lines=8) @@
96
     *
97
     * @return mixed
98
     */
99
    protected function invokePlugin($method, array $arguments, FilesystemInterface $filesystem)
100
    {
101
        $plugin = $this->findPlugin($method);
102
        $plugin->setFilesystem($filesystem);
103
        $callback = array($plugin, 'handle');
104
105
        return call_user_func_array($callback, $arguments);
106
    }
107
108
109

src/Plugin/PluggableTrait.php 1 location

@@ 61-68 (lines=8) @@
58
     *
59
     * @return mixed
60
     */
61
    protected function invokePlugin($method, array $arguments, FilesystemInterface $filesystem)
62
    {
63
        $plugin = $this->findPlugin($method);
64
        $plugin->setFilesystem($filesystem);
65
        $callback = [$plugin, 'handle'];
66
67
        return call_user_func_array($callback, $arguments);
68
    }
69
70
    /**
71
     * Plugins pass-through.