Completed
Push — develop ( 96c874...afc7f7 )
by Novikov
01:21
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   +3 added lines, -3 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
         }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     public function sendTo($localFile, $remoteFile)
69 69
     {
70 70
         $localData = file_get_contents($localFile);
71
-        if (!file_put_contents("ssh2.sftp://" . intval($this->sftp) . $remoteFile, $localData)) {
71
+        if (!file_put_contents("ssh2.sftp://".intval($this->sftp).$remoteFile, $localData)) {
72 72
             throw new \Exception('File could not be uploaded to the SFTP server.');
73 73
         }
74 74
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function getRemoteFilesList($dir)
80 80
     {
81
-        $handle = opendir("ssh2.sftp://" . intval($this->sftp) . $dir);
81
+        $handle = opendir("ssh2.sftp://".intval($this->sftp).$dir);
82 82
         $files  = array();
83 83
 
84 84
         if (is_bool($handle)) {
Please login to merge, or discard this patch.