Skip to content

Instantly share code, notes, and snippets.

@vstarck
Created December 3, 2012 15:53
Show Gist options
  • Save vstarck/4195901 to your computer and use it in GitHub Desktop.
Save vstarck/4195901 to your computer and use it in GitHub Desktop.
mage_complexity2.php
foreach (/* ... */) {
if (/* ... */) {
if (/* ... */) {
if (/* ... */) {
// ...
} else {
if (/* ... */) {
// ...
} else {
// ...
}
if (/* ... */) {
if (/* ... */) {
// ...
}
}
}
foreach (/* ... */) {
// ...
}
} else {
// ...
if (/* ... */) {
if (/* ... */) {
// ...
foreach (/* ... */) {
// ...
if (/* ... */) {
// ...
}
}
// ...
} else {
// ...
}
}
}
}
if (/* ... */) {
if (/* ... */) {
if (/* ... */) {
// ...
} else {
// ...
}
}
if (/* ... */) {
// ...
if (/* ... */) {
// ...
}
}
}
if (/* ... */) {
if (/* ... */) {
// ...
if (/* ... */) {
// ...
}
} else {
// ...
if (/* ... */) {
/* ... */ = /* ... */
? /* ... */
: /* ... */;
}
}
}
if (/* ... */) {
// ...
if (/* ... */) {
/* ... */ = /* ... */
? /* ... */
: /* ... */;
}
}
// ...
}
@vemv
Copy link

vemv commented Dec 3, 2012

cómo realizaste las sustituciones entre código y la cadena "/* ... */" - con alguna herramienta sofisticada o simplemente armado de ira y frustración? jajaja

@vstarck
Copy link
Author

vstarck commented Dec 3, 2012

La mayoria con regex y un par a mano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment