Test Setup Failed
Push — master ( defeb2...c0e551 )
by Tomasz
11:33
created
web/lib/admin/Maintenance.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public static function deleteObsoleteTempDirs() {
36 36
         $downloadsDirs = [
37
-            'site_installers' => dirname(dirname(dirname(dirname(__FILE__)))) . "/var/installer_cache",
38
-            'silverbullet' => dirname(dirname(dirname(dirname(__FILE__)))) . "/var/silverbullet"
37
+            'site_installers' => dirname(dirname(dirname(dirname(__FILE__))))."/var/installer_cache",
38
+            'silverbullet' => dirname(dirname(dirname(dirname(__FILE__))))."/var/silverbullet"
39 39
         ];
40 40
         $tm = time();
41 41
         $i = 0;
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
                     if ($entry === '.' || $entry === '..' || $entry === '.gitignore') {
55 55
                         continue;
56 56
                     }
57
-                    $ftime = $tm - filemtime($downloads . '/' . $entry);
57
+                    $ftime = $tm - filemtime($downloads.'/'.$entry);
58 58
                     if ($ftime < 3600) {
59 59
                         continue;
60 60
                     }
61 61
                     if (isset($Cache[$entry])) {
62 62
                         continue;
63 63
                     }
64
-                    \core\common\Entity::rrmdir($downloads . '/' . $entry);
64
+                    \core\common\Entity::rrmdir($downloads.'/'.$entry);
65 65
                     $i = $i + 1;
66 66
                     print "$entry\n";
67 67
                 }
Please login to merge, or discard this patch.
web/copyright.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
  * @author Stefan Winter <[email protected]>
26 26
  * @package Core
27 27
  */
28
-require_once dirname(dirname(__FILE__)) . "/config/_config.php";
28
+require_once dirname(dirname(__FILE__))."/config/_config.php";
29 29
 
30 30
 $Gui = new \web\lib\user\Gui();
31 31
 // ... unless overwritten by direct GET/POST parameter in the request or a SESSION setting
Please login to merge, or discard this patch.
web/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
  * @author Stefan Winter <[email protected]>
26 26
  * @package Core
27 27
  */
28
-require_once dirname(dirname(__FILE__)) . "/config/_config.php";
28
+require_once dirname(dirname(__FILE__))."/config/_config.php";
29 29
 
30 30
 $Gui = new \web\lib\user\Gui();
31 31
 // ... unless overwritten by direct GET/POST parameter in the request or a SESSION setting
Please login to merge, or discard this patch.
devices/test_module/DeviceTestModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@
 block discarded – undo
138 138
      */
139 139
     private function zipInstaller() {
140 140
         // one can always access $this->attributes to check things
141
-        $fileName = $this->installerBasename . '.zip';
142
-        $output = system('zip -q ' . $fileName . ' *');
141
+        $fileName = $this->installerBasename.'.zip';
142
+        $output = system('zip -q '.$fileName.' *');
143 143
         if ($output === FALSE) {
144 144
             $this->loggerInstance->debug(2, "unable to zip the installer\n");
145 145
         }
Please login to merge, or discard this patch.
devices/redirect_dev/DeviceRedirectDev.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     final public function __construct() {
31 31
         parent::__construct();
32 32
       $this->setSupportedEapMethods([\core\common\EAP::EAPTYPE_NONE]);
33
-      $this->loggerInstance->debug(4,"RedirectEx called");
33
+      $this->loggerInstance->debug(4, "RedirectEx called");
34 34
     }
35 35
     
36 36
     /**
Please login to merge, or discard this patch.
core/diag/RFC5997Tests.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -88,24 +88,24 @@  discard block
 block discarded – undo
88 88
         $reqAuthenticator = random_bytes(16);
89 89
         $packetIdentifier = random_bytes(1);
90 90
         // construct Status-Server packet
91
-        $prePacket = RFC5997Tests::PACKET_TYPE_STATUS_SERVER .
92
-                $packetIdentifier .
93
-                RFC5997Tests::PACKET_LENGTH .
94
-                $reqAuthenticator .
95
-                RFC5997Tests::ATTRIBUTE_NAS_IDENTIFIER .
96
-                RFC5997Tests::LENGTH_NAS_IDENTIFIER .
91
+        $prePacket = RFC5997Tests::PACKET_TYPE_STATUS_SERVER.
92
+                $packetIdentifier.
93
+                RFC5997Tests::PACKET_LENGTH.
94
+                $reqAuthenticator.
95
+                RFC5997Tests::ATTRIBUTE_NAS_IDENTIFIER.
96
+                RFC5997Tests::LENGTH_NAS_IDENTIFIER.
97 97
                 RFC5997Tests::VALUE_NAS_IDENTIFIER;
98
-        $sigPacket = $prePacket .
99
-                RFC5997Tests::ATTRIBUTE_MESSAGE_AUTHENTICATOR .
100
-                RFC5997Tests::LENGTH_MESSAGE_AUTHENTICATOR .
98
+        $sigPacket = $prePacket.
99
+                RFC5997Tests::ATTRIBUTE_MESSAGE_AUTHENTICATOR.
100
+                RFC5997Tests::LENGTH_MESSAGE_AUTHENTICATOR.
101 101
                 "\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0";
102
-        $authPacket = $prePacket .
103
-                RFC5997Tests::ATTRIBUTE_MESSAGE_AUTHENTICATOR .
104
-                RFC5997Tests::LENGTH_MESSAGE_AUTHENTICATOR .
102
+        $authPacket = $prePacket.
103
+                RFC5997Tests::ATTRIBUTE_MESSAGE_AUTHENTICATOR.
104
+                RFC5997Tests::LENGTH_MESSAGE_AUTHENTICATOR.
105 105
                 hash_hmac("md5", $sigPacket, $this->secret, TRUE);
106 106
         $connectErrorNumber = 0;
107 107
         $connectErrorString = "";
108
-        $netHandle = fsockopen("udp://" . $this->ipAddr, $this->port, $connectErrorNumber, $connectErrorString, RFC5997Tests::CONNECTION_TIMEOUT);
108
+        $netHandle = fsockopen("udp://".$this->ipAddr, $this->port, $connectErrorNumber, $connectErrorString, RFC5997Tests::CONNECTION_TIMEOUT);
109 109
         if ($netHandle === FALSE) {
110 110
             throw new Exception("Unable to establish UDP socket resource. Error number was $connectErrorNumber, '$connectErrorString'");
111 111
         }
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
             return AbstractTest::RETVAL_INVALID;
124 124
         }
125 125
         // check the response authenticator to prevent spoofing.
126
-        $sigResponse = RFC5997Tests::PACKET_TYPE_ACCESS_ACCEPT .
127
-                $packetIdentifier .
128
-                $read[2] . $read[3] .
129
-                $reqAuthenticator .
130
-                substr($read, 20) .
126
+        $sigResponse = RFC5997Tests::PACKET_TYPE_ACCESS_ACCEPT.
127
+                $packetIdentifier.
128
+                $read[2].$read[3].
129
+                $reqAuthenticator.
130
+                substr($read, 20).
131 131
                 $this->secret;
132 132
         $expected = hash("md5", $sigResponse, TRUE);
133 133
         if ($expected != substr($read, 4, 16)) {
Please login to merge, or discard this patch.
web/diag/processSociopath.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(__DIR__)) . "/config/_config.php";
22
+require_once dirname(dirname(__DIR__))."/config/_config.php";
23 23
 \core\CAT::sessionStart();
24 24
 $loggerInstance = new \core\common\Logging();
25 25
 $loggerInstance->debug(4, "Sociopath test\n");
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         return NULL;
34 34
     }
35 35
     $loggerInstance->debug(4, $_SESSION['EVIDENCE']['QUESTIONSASKED']);
36
-    $loggerInstance->debug(4, "\nAnswer question " . $QNUM . "\n");
36
+    $loggerInstance->debug(4, "\nAnswer question ".$QNUM."\n");
37 37
     switch ($answer) {
38 38
         case 1:
39 39
             $loggerInstance->debug(4, "Revaluate with FALSE");
Please login to merge, or discard this patch.
web/user/remindIdP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
23 23
 
24 24
 \core\CAT::sessionStart();
25 25
 
Please login to merge, or discard this patch.
web/lib/admin/Authentication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
         if ($trailerPosition !== FALSE) {
122 122
             $base = substr($scriptself, 0, $trailerPosition);
123 123
             if ($base !== FALSE) {
124
-                $url = "//$servername" . $base . "/logout_check.php";
124
+                $url = "//$servername".$base."/logout_check.php";
125 125
             }
126 126
         }
127 127
 
Please login to merge, or discard this patch.