Git Product home page Git Product logo

Comments (5)

maks-rafalko avatar maks-rafalko commented on July 18, 2024 1

It's funny that the lib that fights against magic numbers has really unclear magic number :)

from phpmnd.

exussum12 avatar exussum12 commented on July 18, 2024

It looks like a bug and should not be there imo.

@MacFJA can you confirm ?

from phpmnd.

exussum12 avatar exussum12 commented on July 18, 2024

Theres 1 more magic number detected as well, I will clean that up later this week

https://github.com/povils/phpmnd/blob/master/src/Printer/Console.php#L48
Printer/Console.php:48 Magic number: 2

48| $output->writeln(str_repeat(' ', 2 * self::TAB) . $hint);

Looking at the class it should be taking input from the console itself rather than just deciding whats best

from phpmnd.

MacFJA avatar MacFJA commented on July 18, 2024

It looks like a bug and should not be there imo.

@MacFJA can you confirm ?

Yeah, I see absolutely no reason for this + 12 to be here

from phpmnd.

sidz avatar sidz commented on July 18, 2024

I found that part a bit weird as well and refactored it in my fork. https://github.com/sidz/phpmnd/blob/master/src/Printer/Xml.php

unfortunately didn't have a chance to release a new version yet.

from phpmnd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.