Test Setup Failed
Pull Request — master (#190)
by
unknown
12:55 queued 03:21
created
lib/midcom/services/indexer/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
      *
165 165
      * @param midcom_helper_datamanager2_datamanager &$object A reference to the DM2 object
166 166
      */
167
-    protected function _index_cast_to_document(midcom_helper_datamanager2_datamanager &$object)
167
+    protected function _index_cast_to_document(midcom_helper_datamanager2_datamanager & $object)
168 168
     {
169 169
         $object = $this->new_document($object);
170 170
     }
Please login to merge, or discard this patch.
lib/midcom/exec/about.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-midcom::get()->head->add_stylesheet( MIDCOM_STATIC_URL . '/midcom.services.auth/style.css');
2
+midcom::get()->head->add_stylesheet(MIDCOM_STATIC_URL . '/midcom.services.auth/style.css');
3 3
 $title = 'About Midgard';
4 4
 midcom::get()->auth->require_valid_user();
5 5
 ?>
Please login to merge, or discard this patch.
lib/midcom/baseclasses/components/plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function initialize($master)
22 22
     {
23
-        $this->_request_data =& $master->_request_data;
23
+        $this->_request_data = & $master->_request_data;
24 24
         $this->_topic = $master->_topic;
25 25
         $this->_request_data['l10n'] = $this->_l10n;
26 26
 
Please login to merge, or discard this patch.
lib/compat/environment.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 {
48 48
     public function __construct()
49 49
     {
50
-        if (   php_sapi_name() != 'cli'
50
+        if (php_sapi_name() != 'cli'
51 51
             || !empty($_SERVER['REMOTE_ADDR'])) {
52 52
             $this->_httpd_setup();
53 53
         }
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
          *
64 64
          * 2008-09-26: Now also rewrites urls ending in .html to end with trailing slash.
65 65
          */
66
-        $redirect_test_uri = (string)$_SERVER['REQUEST_URI'];
67
-        if (   !isset($_SERVER['MIDCOM_COMPAT_REDIR'])
68
-            || (bool)$_SERVER['MIDCOM_COMPAT_REDIR'] !== false) {
66
+        $redirect_test_uri = (string) $_SERVER['REQUEST_URI'];
67
+        if (!isset($_SERVER['MIDCOM_COMPAT_REDIR'])
68
+            || (bool) $_SERVER['MIDCOM_COMPAT_REDIR'] !== false) {
69 69
             $redirect_test_uri = preg_replace('/\.html$/', '', $redirect_test_uri);
70 70
         }
71
-        if (   !preg_match('%\?|/$|midcom-.+-|/.*\.[^/]+$%', $redirect_test_uri)
71
+        if (!preg_match('%\?|/$|midcom-.+-|/.*\.[^/]+$%', $redirect_test_uri)
72 72
             && (empty($_POST))) {
73 73
             $this->header('HTTP/1.0 301 Moved Permanently');
74 74
             $this->header("Location: {$redirect_test_uri}/");
Please login to merge, or discard this patch.
lib/errors.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     private function send($httpcode, $message)
250 250
     {
251 251
         $error_actions = midcom::get()->config->get('error_actions');
252
-        if (   !isset($error_actions[$httpcode])
252
+        if (!isset($error_actions[$httpcode])
253 253
             || !isset($error_actions[$httpcode]['action'])) {
254 254
             // No action specified for this error code, skip
255 255
             return;
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
             return;
280 280
         }
281 281
 
282
-        if (   !is_writable($config['filename'])
282
+        if (!is_writable($config['filename'])
283 283
             && !is_writable(dirname($config['filename']))) {
284 284
             debug_add("Error logging file {$config['filename']} is not writable", MIDCOM_LOG_WARN);
285 285
             return;
Please login to merge, or discard this patch.
lib/org/openpsa/relatedto/plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public static function create($from_obj, $from_component, $to_obj, $to_component, $status = false, $extra = false)
33 33
     {
34
-        if (   !is_object($from_obj)
34
+        if (!is_object($from_obj)
35 35
             || !is_object($to_obj)) {
36 36
             return false;
37 37
         }
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
             debug_print_r("processing button '{$mode}' with data:", $data);
259 259
             if ($data === false) {
260 260
                 //In case somebody didn't unset() a button from the defaults, just marked it as false
261
-                debug_add('data marked as false, skipping (the correct way is to unset() the key)',  MIDCOM_LOG_WARN);
261
+                debug_add('data marked as false, skipping (the correct way is to unset() the key)', MIDCOM_LOG_WARN);
262 262
                 continue;
263 263
             }
264 264
 
Please login to merge, or discard this patch.
lib/org/openpsa/calendar/handler/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
287 287
         $this->_datamanager = new midcom_helper_datamanager2_datamanager($schemadb);
288 288
 
289 289
         if (!$this->_request_data['event']->can_do('org.openpsa.calendar:read')) {
290
-            $stat =    $this->_datamanager->set_schema('private')
290
+            $stat = $this->_datamanager->set_schema('private')
291 291
                     && $this->_datamanager->set_storage($this->_request_data['event']);
292 292
         } else {
293 293
             $stat = $this->_datamanager->autoset_storage($this->_request_data['event']);
Please login to merge, or discard this patch.
lib/org/openpsa/calendar/midcom/interfaces.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         $root_event = self::find_root_event();
93 93
 
94 94
         $qb = org_openpsa_calendar_event_dba::new_query_builder();
95
-        $qb->add_constraint('up', '=',  $root_event->id);
95
+        $qb->add_constraint('up', '=', $root_event->id);
96 96
         $schemadb = midcom_helper_datamanager2_schema::load_database($config->get('schemadb'));
97 97
 
98 98
         $indexer = new org_openpsa_calendar_midcom_indexer($topic, $indexer);
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/scheduler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         }
84 84
 
85 85
         // TODO: Warehouse management: create new order
86
-        if (   $this->_deliverable->end < $next_cycle_start
86
+        if ($this->_deliverable->end < $next_cycle_start
87 87
             && $this->_deliverable->end != 0) {
88 88
             debug_add('Do not register next cycle, the contract ends before');
89 89
             return $this->_deliverable->end_subscription();
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         if ($this->_deliverable->unit != 'd') {
307 307
             //If previous cycle was run at the end of the month, the new one should be at the end of the month as well
308 308
             $date = new DateTime(gmdate('Y-m-d', $time), new DateTimeZone('GMT'));
309
-            if (   $date->format('t') == $date->format('j')
309
+            if ($date->format('t') == $date->format('j')
310 310
                 && $new_date->format('t') != $new_date->format('j')) {
311 311
                 $new_date->setDate((int) $new_date->format('Y'), (int) $new_date->format('m'), (int) $new_date->format('t'));
312 312
             }
@@ -372,11 +372,11 @@  discard block
 block discarded – undo
372 372
                 break;
373 373
             case 'q':
374 374
                 // Quarterly recurring subscription
375
-                $identifier = ceil(((int)$date->format('n')) / 4) . 'Q' . $date->format('y');
375
+                $identifier = ceil(((int) $date->format('n')) / 4) . 'Q' . $date->format('y');
376 376
                 break;
377 377
             case 'hy':
378 378
                 // Half-yearly recurring subscription
379
-                $identifier = ceil(((int)$date->format('n')) / 6) . '/' . $date->format('Y');
379
+                $identifier = ceil(((int) $date->format('n')) / 6) . '/' . $date->format('Y');
380 380
                 break;
381 381
             case 'y':
382 382
                 // Yearly recurring subscription
Please login to merge, or discard this patch.