Completed
Push — develop ( 522779...522e93 )
by Novikov
01:22
created
DependencyInjection/SF2HelpersSFTPExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function load(array $configs, ContainerBuilder $container)
16 16
     {
17
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
17
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
18 18
         $loader->load('services.xml');
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
Tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!file_exists($autoloadFile = __DIR__ . '/../vendor/autoload.php')) {
3
+if (!file_exists($autoloadFile = __DIR__.'/../vendor/autoload.php')) {
4 4
     throw new \LogicException("Make sure that you install all dependencies.");
5 5
 }
6 6
 
Please login to merge, or discard this patch.
SFTP/SFTP.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function fetchFrom($remoteFile, $localFile)
57 57
     {
58
-        $remoteData = file_get_contents('ssh2.sftp://' . intval($this->sftp) . $remoteFile);
58
+        $remoteData = file_get_contents('ssh2.sftp://'.intval($this->sftp).$remoteFile);
59 59
         if (!$remoteData) {
60 60
             throw new \Exception('File can`t be loaded from the SFTP server.');
61 61
         }
@@ -67,10 +67,10 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function sendTo($localFile, $remoteFile)
69 69
     {
70
-        $sftp = "ssh2.sftp://" . intval($this->sftp);
70
+        $sftp = "ssh2.sftp://".intval($this->sftp);
71 71
         $data = file_get_contents($localFile);
72 72
 
73
-        if (!file_put_contents($sftp . $remoteFile, $data)) {
73
+        if (!file_put_contents($sftp.$remoteFile, $data)) {
74 74
             throw new \Exception('File could not be uploaded to the SFTP server.');
75 75
         }
76 76
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function getRemoteFilesList($dir)
82 82
     {
83
-        $handle = opendir("ssh2.sftp://" . intval($this->sftp) . $dir);
83
+        $handle = opendir("ssh2.sftp://".intval($this->sftp).$dir);
84 84
         $files  = array();
85 85
 
86 86
         if (is_bool($handle)) {
Please login to merge, or discard this patch.