Completed
Push — master ( 2811bb...6184d4 )
by Andreas
04:56 queued 01:40
created
src/storage/subscriber.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         if (!($entity instanceof repligard)) {
100 100
             $repligard_entry = $em->getRepository('midgard:midgard_repligard')->findOneBy(array('guid' => $entity->guid));
101 101
 
102
-            if (   $entity instanceof metadata
102
+            if ($entity instanceof metadata
103 103
                 && $entity->{metadata::DELETED_FIELD}) {
104 104
                 $repligard_entry->object_action = self::ACTION_DELETE;
105 105
             } else {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
         foreach ($columns as $name => &$config) {
142 142
             if ($platform->getName() === 'sqlite') {
143
-                if (   !empty($config['primary'])
143
+                if (!empty($config['primary'])
144 144
                     && !empty($config['autoincrement'])) {
145 145
                     /*
146 146
                      * This is essentially a workaround for http://www.doctrine-project.org/jira/browse/DBAL-642
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                     $modified = true;
150 150
                     $config['columnDefinition'] = 'INTEGER PRIMARY KEY AUTOINCREMENT';
151 151
                 }
152
-                if (   !empty($config['comment'])
152
+                if (!empty($config['comment'])
153 153
                     && $config['comment'] == 'BINARY') {
154 154
                     $modified = true;
155 155
                     $config['columnDefinition'] = $config['type']->getSQLDeclaration($config, $platform) . ' COLLATE BINARY' . $platform->getDefaultValueDeclarationSQL($config);
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     public function postGenerateSchemaTable(GenerateSchemaTableEventArgs $args)
258 258
     {
259 259
         $table = $args->getClassTable();
260
-        if (   !$table->hasOption('engine')
260
+        if (!$table->hasOption('engine')
261 261
             || $table->getOption('engine') !== 'MyISAM') {
262 262
             return;
263 263
         }
Please login to merge, or discard this patch.
src/mgdschema/translator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         if (!array_key_exists($typeattribute, self::$typemap)) {
39 39
             throw new \Exception('unknown type ' . $typeattribute);
40 40
         }
41
-        $search = array('unsigned ', 'guid',   'datetime', 'text', 'longtext');
41
+        $search = array('unsigned ', 'guid', 'datetime', 'text', 'longtext');
42 42
         $replace = array('', 'string', 'midgard_datetime', 'string', 'string');
43 43
 
44 44
         return str_replace($search, $replace, $typeattribute);
Please login to merge, or discard this patch.
src/command/schema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
         $mgd_config = midgard_connection::get_instance()->config;
57 57
         $mgdschema_file = $mgd_config->vardir . '/mgdschema_classes.php';
58
-        if (   file_exists($mgdschema_file)
58
+        if (file_exists($mgdschema_file)
59 59
             && !unlink($mgdschema_file)) {
60 60
             throw new \RuntimeException('Could not unlink ' . $mgdschema_file);
61 61
         }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $cms = $em->getMetadataFactory()->getAllMetadata();
73 73
 
74 74
         // create storage
75
-        if (    !midgard_storage::create_base_storage()
75
+        if (!midgard_storage::create_base_storage()
76 76
              && midgard_connection::get_instance()->get_error_string() != 'MGD_ERR_OK') {
77 77
             throw new \Exception("Failed to create base database structures" . midgard_connection::get_instance()->get_error_string());
78 78
         }
Please login to merge, or discard this patch.